]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
Generic fix for full row highlight
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_wxChar swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxClientDC swig_types[25]
2492 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493 #define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494 #define SWIGTYPE_p_wxColor swig_types[28]
2495 #define SWIGTYPE_p_wxColour swig_types[29]
2496 #define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497 #define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498 #define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499 #define SWIGTYPE_p_wxControl swig_types[33]
2500 #define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501 #define SWIGTYPE_p_wxCursor swig_types[35]
2502 #define SWIGTYPE_p_wxDC swig_types[36]
2503 #define SWIGTYPE_p_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 void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2981 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2982 wxSize size(self->GetWidth(), self->GetHeight());
2983 return size;
2984 }
2985 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2986 wxMask *mask = new wxMask(*self, colour);
2987 self->SetMask(mask);
2988 }
2989 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2990 self->SetWidth(size.x);
2991 self->SetHeight(size.y);
2992 }
2993 SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2994 int height=self->GetHeight();
2995 int width=self->GetWidth();
2996
2997 if (DATASIZE != width * height * 3) {
2998 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2999 }
3000 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3001 if (! pixData) {
3002 // raise an exception...
3003 wxPyErr_SetString(PyExc_RuntimeError,
3004 "Failed to gain raw access to bitmap data.");
3005 return;
3006 }
3007
3008 wxNativePixelData::Iterator p(pixData);
3009 for (int y=0; y<height; y++) {
3010 wxNativePixelData::Iterator rowStart = p;
3011 for (int x=0; x<width; x++) {
3012 p.Red() = *(data++);
3013 p.Green() = *(data++);
3014 p.Blue() = *(data++);
3015 ++p;
3016 }
3017 p = rowStart;
3018 p.OffsetY(pixData, 1);
3019 }
3020 }
3021 SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3022 int height=self->GetHeight();
3023 int width=self->GetWidth();
3024
3025 if (DATASIZE != width * height * 4) {
3026 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3027 }
3028 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3029 if (! pixData) {
3030 // raise an exception...
3031 wxPyErr_SetString(PyExc_RuntimeError,
3032 "Failed to gain raw access to bitmap data.");
3033 return;
3034 }
3035
3036 pixData.UseAlpha();
3037 wxAlphaPixelData::Iterator p(pixData);
3038 for (int y=0; y<height; y++) {
3039 wxAlphaPixelData::Iterator rowStart = p;
3040 for (int x=0; x<width; x++) {
3041 byte a = data[3];
3042 p.Red() = wxPy_premultiply(*(data++), a);
3043 p.Green() = wxPy_premultiply(*(data++), a);
3044 p.Blue() = wxPy_premultiply(*(data++), a);
3045 p.Alpha() = a; data++;
3046 ++p;
3047 }
3048 p = rowStart;
3049 p.OffsetY(pixData, 1);
3050 }
3051 }
3052 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3053 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
3054
3055 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3056 buffer data, int DATASIZE,
3057 buffer alpha, int ALPHASIZE)
3058 {
3059 if (DATASIZE != width*height*3) {
3060 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3061 return NULL;
3062 }
3063
3064 if (ALPHASIZE != width*height) {
3065 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3066 return NULL;
3067 }
3068
3069 wxBitmap* bmp = new wxBitmap(width, height, 32);
3070 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3071 if (! pixData) {
3072 // raise an exception...
3073 wxPyErr_SetString(PyExc_RuntimeError,
3074 "Failed to gain raw access to bitmap data.");
3075 return NULL;
3076 }
3077
3078 pixData.UseAlpha();
3079 wxAlphaPixelData::Iterator p(pixData);
3080 for (int y=0; y<height; y++) {
3081 wxAlphaPixelData::Iterator rowStart = p;
3082 for (int x=0; x<width; x++) {
3083 byte a = *(alpha++);
3084 p.Red() = wxPy_premultiply(*(data++), a);
3085 p.Green() = wxPy_premultiply(*(data++), a);
3086 p.Blue() = wxPy_premultiply(*(data++), a);
3087 p.Alpha() = a;
3088 ++p;
3089 }
3090 p = rowStart;
3091 p.OffsetY(pixData, 1);
3092 }
3093 return bmp;
3094 }
3095
3096 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3097 {
3098 if (DATASIZE != width*height*3) {
3099 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3100 return NULL;
3101 }
3102
3103 wxBitmap* bmp = new wxBitmap(width, height, 24);
3104 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3105 if (! pixData) {
3106 // raise an exception...
3107 wxPyErr_SetString(PyExc_RuntimeError,
3108 "Failed to gain raw access to bitmap data.");
3109 return NULL;
3110 }
3111
3112 wxNativePixelData::Iterator p(pixData);
3113 for (int y=0; y<height; y++) {
3114 wxNativePixelData::Iterator rowStart = p;
3115 for (int x=0; x<width; x++) {
3116 p.Red() = *(data++);
3117 p.Green() = *(data++);
3118 p.Blue() = *(data++);
3119 ++p;
3120 }
3121 p = rowStart;
3122 p.OffsetY(pixData, 1);
3123 }
3124 return bmp;
3125 }
3126
3127
3128 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3129 {
3130 if (DATASIZE != width*height*4) {
3131 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3132 return NULL;
3133 }
3134
3135 wxBitmap* bmp = new wxBitmap(width, height, 32);
3136 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3137 if (! pixData) {
3138 // raise an exception...
3139 wxPyErr_SetString(PyExc_RuntimeError,
3140 "Failed to gain raw access to bitmap data.");
3141 return NULL;
3142 }
3143
3144 pixData.UseAlpha();
3145 wxAlphaPixelData::Iterator p(pixData);
3146 for (int y=0; y<height; y++) {
3147 wxAlphaPixelData::Iterator rowStart = p;
3148 for (int x=0; x<width; x++) {
3149 byte a = data[3];
3150 p.Red() = wxPy_premultiply(*(data++), a);
3151 p.Green() = wxPy_premultiply(*(data++), a);
3152 p.Blue() = wxPy_premultiply(*(data++), a);
3153 p.Alpha() = a; data++;
3154 ++p;
3155 }
3156 p = rowStart;
3157 p.OffsetY(pixData, 1);
3158 }
3159 return bmp;
3160 }
3161
3162
3163 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3164
3165 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3166 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3167 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3168 self->Red() = red;
3169 self->Green() = green;
3170 self->Blue() = blue;
3171 }
3172 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3173 PyObject* rv = PyTuple_New(3);
3174 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3175 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3176 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3177 return rv;
3178 }
3179
3180 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3181
3182 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3183 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3184 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3185 self->Red() = wxPy_premultiply(red, alpha);
3186 self->Green() = wxPy_premultiply(green, alpha);
3187 self->Blue() = wxPy_premultiply(blue, alpha);
3188 self->Alpha() = alpha;
3189 }
3190 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3191 PyObject* rv = PyTuple_New(4);
3192 int red = self->Red();
3193 int green = self->Green();
3194 int blue = self->Blue();
3195 int alpha = self->Alpha();
3196
3197 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3198 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3199 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3200 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3201 return rv;
3202 }
3203 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3204 if ( !colour.IsOk() )
3205 return new wxMask(bitmap, *wxBLACK);
3206 else
3207 return new wxMask(bitmap, colour);
3208 }
3209
3210 #include <wx/iconbndl.h>
3211
3212 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3213 wxIcon* icon = new wxIcon();
3214 icon->CopyFromBitmap(bmp);
3215 return icon;
3216 }
3217 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3218 char** cArray = NULL;
3219 wxIcon* icon;
3220
3221 cArray = ConvertListOfStrings(listOfStrings);
3222 if (! cArray)
3223 return NULL;
3224 icon = new wxIcon(cArray);
3225 delete [] cArray;
3226 return icon;
3227 }
3228 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3229 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3230
3231 return new wxIconLocation(*filename, num);
3232
3233
3234
3235 }
3236 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3237
3238 self->SetIndex(num);
3239
3240
3241
3242 }
3243 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3244
3245 return self->GetIndex();
3246
3247
3248
3249 }
3250 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3251 #ifdef __WXGTK__
3252 wxImage img(cursorName, type);
3253 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3254 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3255 return new wxCursor(img);
3256 #else
3257 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3258 #endif
3259 }
3260 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3261
3262
3263 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3264 (*self) ++;
3265 }
3266 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3267 return self->operator bool();
3268 }
3269
3270 #include <wx/fontutil.h>
3271 #include <wx/fontmap.h>
3272 #include <wx/fontenum.h>
3273
3274 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3275 return self->ToString();
3276 }
3277
3278 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3279 { wxPyRaiseNotImplemented(); return NULL; }
3280
3281 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3282 { wxPyRaiseNotImplemented(); return false; }
3283
3284
3285 SWIGINTERNINLINE PyObject *
3286 SWIG_From_size_t (size_t value)
3287 {
3288 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3289 }
3290
3291
3292 SWIGINTERNINLINE int
3293 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3294 {
3295 unsigned long v;
3296 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3297 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3298 return res;
3299 }
3300
3301 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3302 wxFontEncoding alt_enc;
3303 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3304 return PyInt_FromLong(alt_enc);
3305 else {
3306 Py_INCREF(Py_None);
3307 return Py_None;
3308 }
3309 }
3310 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3311 wxNativeFontInfo nfi;
3312 nfi.FromString(info);
3313 return new wxFont(nfi);
3314 }
3315 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3316 return wxFont::New(pointSize, family, flags, face, encoding);
3317 }
3318 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3319 return wxFontBase::New(pixelSize, family,
3320 style, weight, underlined,
3321 face, encoding);
3322 }
3323 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3324 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3325 }
3326 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3327 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3328
3329 class wxPyFontEnumerator : public wxFontEnumerator {
3330 public:
3331 wxPyFontEnumerator() {}
3332 ~wxPyFontEnumerator() {}
3333
3334 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3335 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3336
3337 PYPRIVATE;
3338 };
3339
3340 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3341 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3342
3343
3344 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3345 PyObject* ret;
3346 wxArrayString arr = wxFontEnumerator::GetEncodings();
3347 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3348 ret = wxArrayString2PyList_helper(arr);
3349 wxPyEndBlockThreads(blocked);
3350 return ret;
3351 }
3352 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3353 PyObject* ret;
3354 wxArrayString arr = wxFontEnumerator::GetFacenames();
3355 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3356 ret = wxArrayString2PyList_helper(arr);
3357 wxPyEndBlockThreads(blocked);
3358 return ret;
3359 }
3360
3361 #include <locale.h>
3362
3363 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3364 wxLocale* loc;
3365 if (language == -1)
3366 loc = new wxLocale();
3367 else
3368 loc = new wxLocale(language, flags);
3369 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3370 // for the floating point conversions and such to work right.
3371 #if PY_VERSION_HEX < 0x02040000
3372 setlocale(LC_NUMERIC, "C");
3373 #endif
3374 return loc;
3375 }
3376 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3377 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3378 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3379 // for the floating point conversions and such to work right.
3380 #if PY_VERSION_HEX < 0x02040000
3381 setlocale(LC_NUMERIC, "C");
3382 #endif
3383 return rc;
3384 }
3385 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3386 bool rc = self->Init(language, flags);
3387 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3388 // for the floating point conversions and such to work right.
3389 #if PY_VERSION_HEX < 0x02040000
3390 setlocale(LC_NUMERIC, "C");
3391 #endif
3392 return rc;
3393 }
3394
3395 class wxPyLocale : public wxLocale
3396 {
3397 public:
3398 wxPyLocale();
3399
3400 wxPyLocale(const wxChar *szName, // name (for messages)
3401 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3402 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3403 bool bLoadDefault = true, // preload wxstd.mo?
3404 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3405
3406 wxPyLocale(int language, // wxLanguage id or custom language
3407 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3408
3409 ~wxPyLocale();
3410
3411 virtual const wxChar *GetString(const wxChar *szOrigString,
3412 const wxChar *szDomain = NULL) const;
3413 virtual const wxChar *GetString(const wxChar *szOrigString,
3414 const wxChar *szOrigString2, size_t n,
3415 const wxChar *szDomain = NULL) const;
3416
3417 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3418 const wxChar *szDomain = NULL) const;
3419 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3420 const wxChar *szOrigString2, size_t n,
3421 const wxChar *szDomain = NULL) const;
3422
3423 PYPRIVATE;
3424 private:
3425 DECLARE_NO_COPY_CLASS(wxPyLocale)
3426 };
3427
3428 wxPyLocale::wxPyLocale() : wxLocale()
3429 {
3430 }
3431
3432 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3433 const wxChar *szShort, // dir prefix (for msg files)
3434 const wxChar *szLocale, // locale (for setlocale)
3435 bool bLoadDefault, // preload wxstd.mo?
3436 bool bConvertEncoding) // convert Win<->Unix if necessary?
3437 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3438 {
3439 }
3440
3441 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3442 int flags) : wxLocale(language, flags)
3443 {
3444 }
3445
3446 wxPyLocale::~wxPyLocale()
3447 {
3448 }
3449
3450 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3451 const wxChar *szDomain) const
3452 {
3453 wxChar *str = GetSingularString(szOrigString, szDomain);
3454 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3455 }
3456
3457 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3458 const wxChar *szOrigString2, size_t n,
3459 const wxChar *szDomain) const
3460 {
3461 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3462 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3463 }
3464
3465 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3466 const wxChar *szDomain) const
3467 {
3468 bool found;
3469 static wxString str;
3470 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.
3471 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3472 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3473 PyObject* param1 = wx2PyString(szOrigString);
3474 PyObject* param2 = wx2PyString(szDomain);
3475 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3476 Py_DECREF(param1);
3477 Py_DECREF(param2);
3478 if (ret) {
3479 str = Py2wxString(ret);
3480 Py_DECREF(ret);
3481 }
3482 }
3483 wxPyEndBlockThreads(blocked);
3484 return (found ? (wxChar*)str.c_str() : NULL);
3485 }
3486
3487 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3488 const wxChar *szOrigString2, size_t n,
3489 const wxChar *szDomain) const
3490 {
3491 bool found;
3492 static wxString str;
3493 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.
3494 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3495 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3496 PyObject* param1 = wx2PyString(szOrigString);
3497 PyObject* param2 = wx2PyString(szOrigString2);
3498 PyObject* param4 = wx2PyString(szDomain);
3499 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3500 Py_DECREF(param1);
3501 Py_DECREF(param2);
3502 Py_DECREF(param4);
3503 if( ret) {
3504 str = Py2wxString(ret);
3505 Py_DECREF(ret);
3506 }
3507 }
3508 wxPyEndBlockThreads(blocked);
3509 return (found ? (wxChar*)str.c_str() : NULL);
3510 }
3511
3512 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3513 wxPyLocale* loc;
3514 if (language == -1)
3515 loc = new wxPyLocale();
3516 else
3517 loc = new wxPyLocale(language, flags);
3518 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3519 // for the floating point conversions and such to work right.
3520 #if PY_VERSION_HEX < 0x02040000
3521 setlocale(LC_NUMERIC, "C");
3522 #endif
3523 return loc;
3524 }
3525
3526 #include "wx/wxPython/pydrawxxx.h"
3527
3528 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3529 wxColour col;
3530 self->GetPixel(x, y, &col);
3531 return col;
3532 }
3533 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3534 wxColour col;
3535 self->GetPixel(pt, &col);
3536 return col;
3537 }
3538
3539 SWIGINTERN int
3540 SWIG_AsVal_double (PyObject *obj, double* val)
3541 {
3542 if (PyNumber_Check(obj)) {
3543 if (val) *val = PyFloat_AsDouble(obj);
3544 return SWIG_OK;
3545 }
3546 return SWIG_TypeError;
3547 }
3548
3549 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3550 wxRect rv;
3551 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3552 return rv;
3553 }
3554 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3555 wxRect rect;
3556 self->GetClippingBox(rect);
3557 return rect;
3558 }
3559 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3560 wxArrayInt widths;
3561 self->GetPartialTextExtents(text, widths);
3562 return widths;
3563 }
3564
3565 #define SWIG_From_double PyFloat_FromDouble
3566
3567 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3568 self->SetLogicalOrigin(point.x, point.y);
3569 }
3570 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3571 self->SetDeviceOrigin(point.x, point.y);
3572 }
3573 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3574 self->CalcBoundingBox(point.x, point.y);
3575 }
3576 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3577 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3578 }
3579 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3580 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3581 }
3582 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3583 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3584 }
3585 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3586 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3587 }
3588 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3589 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3590 }
3591 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3592 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3593 }
3594
3595 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3596 *x1 = dc->MinX();
3597 *y1 = dc->MinY();
3598 *x2 = dc->MaxX();
3599 *y2 = dc->MaxY();
3600 }
3601
3602
3603 #include <wx/dcbuffer.h>
3604
3605
3606 #include <wx/dcps.h>
3607
3608
3609 #include <wx/metafile.h>
3610
3611
3612 #include <wx/graphics.h>
3613
3614
3615 #if !wxUSE_GRAPHICS_CONTEXT
3616 // C++ stub classes for platforms or build configurations that don't have
3617 // wxGraphicsContext yet.
3618
3619
3620 class wxGraphicsObject : public wxObject
3621 {
3622 public :
3623 wxGraphicsObject( wxGraphicsRenderer* ) {
3624 PyErr_SetString(PyExc_NotImplementedError,
3625 "wx.GraphicsObject is not available on this platform.");
3626 }
3627 wxGraphicsObject( const wxGraphicsObject& ) {}
3628 virtual ~wxGraphicsObject() {}
3629 bool IsNull() const { return false; }
3630 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3631 } ;
3632
3633
3634
3635 class wxGraphicsPen : public wxGraphicsObject
3636 {
3637 wxGraphicsPen() {}
3638 virtual ~wxGraphicsPen() {}
3639 } ;
3640 wxGraphicsPen wxNullGraphicsPen;
3641
3642
3643
3644 class wxGraphicsBrush : public wxGraphicsObject
3645 {
3646 public :
3647 wxGraphicsBrush() {}
3648 virtual ~wxGraphicsBrush() {}
3649 } ;
3650 wxGraphicsBrush wxNullGraphicsBrush;
3651
3652
3653
3654 class wxGraphicsFont : public wxGraphicsObject
3655 {
3656 public :
3657 wxGraphicsFont() {}
3658 virtual ~wxGraphicsFont() {}
3659 } ;
3660 wxGraphicsFont wxNullGraphicsFont;
3661
3662
3663
3664 class wxGraphicsPath : public wxGraphicsObject
3665 {
3666 public :
3667 wxGraphicsPath(wxGraphicsRenderer* ) {
3668 PyErr_SetString(PyExc_NotImplementedError,
3669 "wx.GraphicsPath is not available on this platform.");
3670 }
3671 virtual ~wxGraphicsPath() {}
3672
3673 void MoveToPoint( wxDouble, wxDouble ) {}
3674 void MoveToPoint( const wxPoint2DDouble& ) {}
3675 void AddLineToPoint( wxDouble, wxDouble ) {}
3676 void AddLineToPoint( const wxPoint2DDouble& ) {}
3677 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3678 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3679 void AddPath( const wxGraphicsPath* ) {}
3680 void CloseSubpath() {}
3681 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3682 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
3683 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3684 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3685
3686 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3687 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3688 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3689 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3690
3691 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3692 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3693 void * GetNativePath() const { return NULL; }
3694 void UnGetNativePath(void *) {}
3695 void Transform( wxGraphicsMatrix* ) {}
3696 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3697 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3698
3699 bool Contains( wxDouble , wxDouble , int ) { return false; }
3700 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3701 };
3702 wxGraphicsPath wxNullGraphicsPath;
3703
3704
3705 class wxGraphicsMatrix : public wxGraphicsObject
3706 {
3707 public :
3708 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3709 PyErr_SetString(PyExc_NotImplementedError,
3710 "wx.GraphicsMatrix is not available on this platform.");
3711 }
3712 virtual ~wxGraphicsMatrix() {}
3713 virtual void Concat( const wxGraphicsMatrix * ) {}
3714 virtual void Copy( const wxGraphicsMatrix * ) {}
3715 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3716 wxDouble , wxDouble ) {}
3717 virtual void Invert() {}
3718 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3719 virtual bool IsIdentity() { return false; }
3720 virtual void Translate( wxDouble , wxDouble ) {}
3721 virtual void Scale( wxDouble , wxDouble ) {}
3722 virtual void Rotate( wxDouble ) {}
3723 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3724 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3725 virtual void * GetNativeMatrix() const { return NULL; }
3726 };
3727 wxGraphicsMatrix wxNullGraphicsMatrix;
3728
3729
3730 class wxGraphicsContext : public wxGraphicsObject
3731 {
3732 public:
3733
3734 wxGraphicsContext(wxGraphicsRenderer* ) {
3735 PyErr_SetString(PyExc_NotImplementedError,
3736 "wx.GraphicsContext is not available on this platform.");
3737 }
3738
3739 virtual ~wxGraphicsContext() {}
3740
3741 static wxGraphicsContext* Create( const wxWindowDC& ) {
3742 PyErr_SetString(PyExc_NotImplementedError,
3743 "wx.GraphicsContext is not available on this platform.");
3744 }
3745
3746 static wxGraphicsContext* CreateFromNative( void * ) {
3747 PyErr_SetString(PyExc_NotImplementedError,
3748 "wx.GraphicsContext is not available on this platform.");
3749 }
3750
3751 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3752 PyErr_SetString(PyExc_NotImplementedError,
3753 "wx.GraphicsContext is not available on this platform.");
3754 }
3755
3756 static wxGraphicsContext* Create( wxWindow* ) {
3757 PyErr_SetString(PyExc_NotImplementedError,
3758 "wx.GraphicsContext is not available on this platform.");
3759 }
3760
3761 wxGraphicsPath * CreatePath() { return NULL; }
3762
3763 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3764
3765 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3766
3767 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3768 const wxColour&, const wxColour&) { return NULL; }
3769
3770 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3771 wxDouble xc, wxDouble yc, wxDouble radius,
3772 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3773
3774 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3775
3776 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3777 wxDouble, wxDouble) { return NULL; }
3778
3779 virtual void PushState() {}
3780 virtual void PopState() {}
3781 virtual void Clip( const wxRegion & ) {}
3782 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3783 virtual void ResetClip() {}
3784 virtual void * GetNativeContext() { return NULL; }
3785 virtual void Translate( wxDouble , wxDouble ) {}
3786 virtual void Scale( wxDouble , wxDouble ) {}
3787 virtual void Rotate( wxDouble ) {}
3788 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3789 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3790 virtual void GetTransform( wxGraphicsMatrix* ) {}
3791
3792 virtual void SetPen( const wxGraphicsPen& ) {}
3793 void SetPen( const wxPen& ) {}
3794
3795 virtual void SetBrush( const wxGraphicsBrush& ) {}
3796 void SetBrush( const wxBrush& ) {}
3797
3798 virtual void SetFont( const wxGraphicsFont& ) {}
3799 void SetFont( const wxFont&, const wxColour& ) {}
3800
3801 virtual void StrokePath( const wxGraphicsPath * ) {}
3802 virtual void FillPath( const wxGraphicsPath *, int ) {}
3803 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3804
3805 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3806 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3807 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3808 wxDouble *, wxDouble * ) const {}
3809 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3810
3811 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3812 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3813
3814 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3815 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3816 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3817 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3818 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3819 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3820 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3821 virtual bool ShouldOffset() const { return false; }
3822 };
3823
3824
3825 class wxGraphicsRenderer : public wxObject
3826 {
3827 public :
3828 wxGraphicsRenderer() {
3829 PyErr_SetString(PyExc_NotImplementedError,
3830 "wx.GraphicsRenderer is not available on this platform.");
3831 }
3832
3833 virtual ~wxGraphicsRenderer() {}
3834
3835 static wxGraphicsRenderer* GetDefaultRenderer(
3836 PyErr_SetString(PyExc_NotImplementedError,
3837 "wx.GraphicsRenderer is not available on this platform.");
3838 );
3839
3840 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3841 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3842 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3843 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3844
3845 virtual wxGraphicsPath * CreatePath() { return NULL; }
3846
3847 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3848 wxDouble , wxDouble ) { return NULL; }
3849
3850 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3851 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3852 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3853 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3854 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3855 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3856 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
3857 };
3858
3859
3860
3861 class wxGCDC: public wxWindowDC
3862 {
3863 public:
3864 wxGCDC(const wxWindowDC&) {
3865 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3866 PyErr_SetString(PyExc_NotImplementedError,
3867 "wxGCDC is not available on this platform.");
3868 wxPyEndBlockThreads(blocked);
3869 }
3870
3871 wxGCDC() {
3872 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3873 PyErr_SetString(PyExc_NotImplementedError,
3874 "wxGCDC is not available on this platform.");
3875 wxPyEndBlockThreads(blocked);
3876 }
3877
3878 virtual ~wxGCDC() {}
3879
3880 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3881 void SetGraphicsContext( wxGraphicsContext* ) {}
3882 };
3883
3884 #endif
3885
3886 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3887 wxDouble width = 0.0,
3888 height = 0.0;
3889 self->GetTextExtent(text, &width, &height, NULL, NULL);
3890 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3891 PyObject* rv = PyTuple_New(2);
3892 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3893 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3894 return rv;
3895 }
3896 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3897 wxArrayDouble widths;
3898 self->GetPartialTextExtents(text, widths);
3899 return widths;
3900 }
3901 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3902 size_t c1, c2, count;
3903 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3904 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3905
3906 if ( beginP != NULL && endP != NULL )
3907 {
3908 count = wxMin(c1, c2);
3909 self->StrokeLines(count, beginP, endP);
3910 }
3911 delete [] beginP;
3912 delete [] endP;
3913 }
3914
3915 #include "wx/dcgraph.h"
3916
3917
3918 #include <wx/overlay.h>
3919
3920
3921
3922 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3923 self->AddColour(name, wxColour(red, green, blue));
3924 }
3925
3926 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3927 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3928 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3929 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3930
3931
3932 #include <wx/effects.h>
3933
3934
3935 #include "wx/renderer.h"
3936
3937
3938 SWIGINTERNINLINE PyObject*
3939 SWIG_From_bool (bool value)
3940 {
3941 return PyBool_FromLong(value ? 1 : 0);
3942 }
3943
3944
3945 #include "wx/wxPython/pseudodc.h"
3946
3947 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3948 wxRect rect;
3949 self->GetIdBounds(id, rect);
3950 return rect;
3951 }
3952 #ifdef __cplusplus
3953 extern "C" {
3954 #endif
3955 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3956 PyObject *resultobj = 0;
3957 wxGDIObject *result = 0 ;
3958
3959 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3960 {
3961 if (!wxPyCheckForApp()) SWIG_fail;
3962 PyThreadState* __tstate = wxPyBeginAllowThreads();
3963 result = (wxGDIObject *)new wxGDIObject();
3964 wxPyEndAllowThreads(__tstate);
3965 if (PyErr_Occurred()) SWIG_fail;
3966 }
3967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3968 return resultobj;
3969 fail:
3970 return NULL;
3971 }
3972
3973
3974 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3975 PyObject *resultobj = 0;
3976 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3977 void *argp1 = 0 ;
3978 int res1 = 0 ;
3979 PyObject *swig_obj[1] ;
3980
3981 if (!args) SWIG_fail;
3982 swig_obj[0] = args;
3983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3984 if (!SWIG_IsOK(res1)) {
3985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3986 }
3987 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3988 {
3989 PyThreadState* __tstate = wxPyBeginAllowThreads();
3990 delete arg1;
3991
3992 wxPyEndAllowThreads(__tstate);
3993 if (PyErr_Occurred()) SWIG_fail;
3994 }
3995 resultobj = SWIG_Py_Void();
3996 return resultobj;
3997 fail:
3998 return NULL;
3999 }
4000
4001
4002 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4003 PyObject *resultobj = 0;
4004 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4005 bool result;
4006 void *argp1 = 0 ;
4007 int res1 = 0 ;
4008 PyObject *swig_obj[1] ;
4009
4010 if (!args) SWIG_fail;
4011 swig_obj[0] = args;
4012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4013 if (!SWIG_IsOK(res1)) {
4014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4015 }
4016 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4017 {
4018 PyThreadState* __tstate = wxPyBeginAllowThreads();
4019 result = (bool)(arg1)->IsNull();
4020 wxPyEndAllowThreads(__tstate);
4021 if (PyErr_Occurred()) SWIG_fail;
4022 }
4023 {
4024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4025 }
4026 return resultobj;
4027 fail:
4028 return NULL;
4029 }
4030
4031
4032 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4033 PyObject *obj;
4034 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4035 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4036 return SWIG_Py_Void();
4037 }
4038
4039 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4040 return SWIG_Python_InitShadowInstance(args);
4041 }
4042
4043 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4044 PyObject *resultobj = 0;
4045 byte arg1 = (byte) 0 ;
4046 byte arg2 = (byte) 0 ;
4047 byte arg3 = (byte) 0 ;
4048 byte arg4 = (byte) wxALPHA_OPAQUE ;
4049 wxColour *result = 0 ;
4050 unsigned char val1 ;
4051 int ecode1 = 0 ;
4052 unsigned char val2 ;
4053 int ecode2 = 0 ;
4054 unsigned char val3 ;
4055 int ecode3 = 0 ;
4056 unsigned char val4 ;
4057 int ecode4 = 0 ;
4058 PyObject * obj0 = 0 ;
4059 PyObject * obj1 = 0 ;
4060 PyObject * obj2 = 0 ;
4061 PyObject * obj3 = 0 ;
4062 char * kwnames[] = {
4063 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4064 };
4065
4066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4067 if (obj0) {
4068 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4069 if (!SWIG_IsOK(ecode1)) {
4070 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4071 }
4072 arg1 = static_cast< byte >(val1);
4073 }
4074 if (obj1) {
4075 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4076 if (!SWIG_IsOK(ecode2)) {
4077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4078 }
4079 arg2 = static_cast< byte >(val2);
4080 }
4081 if (obj2) {
4082 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4083 if (!SWIG_IsOK(ecode3)) {
4084 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4085 }
4086 arg3 = static_cast< byte >(val3);
4087 }
4088 if (obj3) {
4089 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4090 if (!SWIG_IsOK(ecode4)) {
4091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4092 }
4093 arg4 = static_cast< byte >(val4);
4094 }
4095 {
4096 PyThreadState* __tstate = wxPyBeginAllowThreads();
4097 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4098 wxPyEndAllowThreads(__tstate);
4099 if (PyErr_Occurred()) SWIG_fail;
4100 }
4101 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4102 return resultobj;
4103 fail:
4104 return NULL;
4105 }
4106
4107
4108 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4109 PyObject *resultobj = 0;
4110 wxString *arg1 = 0 ;
4111 wxColour *result = 0 ;
4112 bool temp1 = false ;
4113 PyObject * obj0 = 0 ;
4114 char * kwnames[] = {
4115 (char *) "colorName", NULL
4116 };
4117
4118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4119 {
4120 arg1 = wxString_in_helper(obj0);
4121 if (arg1 == NULL) SWIG_fail;
4122 temp1 = true;
4123 }
4124 {
4125 if (!wxPyCheckForApp()) SWIG_fail;
4126 PyThreadState* __tstate = wxPyBeginAllowThreads();
4127 result = (wxColour *)new wxColour((wxString const &)*arg1);
4128 wxPyEndAllowThreads(__tstate);
4129 if (PyErr_Occurred()) SWIG_fail;
4130 }
4131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4132 {
4133 if (temp1)
4134 delete arg1;
4135 }
4136 return resultobj;
4137 fail:
4138 {
4139 if (temp1)
4140 delete arg1;
4141 }
4142 return NULL;
4143 }
4144
4145
4146 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4147 PyObject *resultobj = 0;
4148 unsigned long arg1 ;
4149 wxColour *result = 0 ;
4150 unsigned long val1 ;
4151 int ecode1 = 0 ;
4152 PyObject * obj0 = 0 ;
4153 char * kwnames[] = {
4154 (char *) "colRGB", NULL
4155 };
4156
4157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4158 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4159 if (!SWIG_IsOK(ecode1)) {
4160 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4161 }
4162 arg1 = static_cast< unsigned long >(val1);
4163 {
4164 PyThreadState* __tstate = wxPyBeginAllowThreads();
4165 result = (wxColour *)new wxColour(arg1);
4166 wxPyEndAllowThreads(__tstate);
4167 if (PyErr_Occurred()) SWIG_fail;
4168 }
4169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4170 return resultobj;
4171 fail:
4172 return NULL;
4173 }
4174
4175
4176 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4177 PyObject *resultobj = 0;
4178 wxColour *arg1 = (wxColour *) 0 ;
4179 void *argp1 = 0 ;
4180 int res1 = 0 ;
4181 PyObject *swig_obj[1] ;
4182
4183 if (!args) SWIG_fail;
4184 swig_obj[0] = args;
4185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4186 if (!SWIG_IsOK(res1)) {
4187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4188 }
4189 arg1 = reinterpret_cast< wxColour * >(argp1);
4190 {
4191 PyThreadState* __tstate = wxPyBeginAllowThreads();
4192 delete arg1;
4193
4194 wxPyEndAllowThreads(__tstate);
4195 if (PyErr_Occurred()) SWIG_fail;
4196 }
4197 resultobj = SWIG_Py_Void();
4198 return resultobj;
4199 fail:
4200 return NULL;
4201 }
4202
4203
4204 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4205 PyObject *resultobj = 0;
4206 wxColour *arg1 = (wxColour *) 0 ;
4207 byte result;
4208 void *argp1 = 0 ;
4209 int res1 = 0 ;
4210 PyObject *swig_obj[1] ;
4211
4212 if (!args) SWIG_fail;
4213 swig_obj[0] = args;
4214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4215 if (!SWIG_IsOK(res1)) {
4216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4217 }
4218 arg1 = reinterpret_cast< wxColour * >(argp1);
4219 {
4220 PyThreadState* __tstate = wxPyBeginAllowThreads();
4221 result = (byte)(arg1)->Red();
4222 wxPyEndAllowThreads(__tstate);
4223 if (PyErr_Occurred()) SWIG_fail;
4224 }
4225 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4226 return resultobj;
4227 fail:
4228 return NULL;
4229 }
4230
4231
4232 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4233 PyObject *resultobj = 0;
4234 wxColour *arg1 = (wxColour *) 0 ;
4235 byte result;
4236 void *argp1 = 0 ;
4237 int res1 = 0 ;
4238 PyObject *swig_obj[1] ;
4239
4240 if (!args) SWIG_fail;
4241 swig_obj[0] = args;
4242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4243 if (!SWIG_IsOK(res1)) {
4244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4245 }
4246 arg1 = reinterpret_cast< wxColour * >(argp1);
4247 {
4248 PyThreadState* __tstate = wxPyBeginAllowThreads();
4249 result = (byte)(arg1)->Green();
4250 wxPyEndAllowThreads(__tstate);
4251 if (PyErr_Occurred()) SWIG_fail;
4252 }
4253 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4254 return resultobj;
4255 fail:
4256 return NULL;
4257 }
4258
4259
4260 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4261 PyObject *resultobj = 0;
4262 wxColour *arg1 = (wxColour *) 0 ;
4263 byte result;
4264 void *argp1 = 0 ;
4265 int res1 = 0 ;
4266 PyObject *swig_obj[1] ;
4267
4268 if (!args) SWIG_fail;
4269 swig_obj[0] = args;
4270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4271 if (!SWIG_IsOK(res1)) {
4272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4273 }
4274 arg1 = reinterpret_cast< wxColour * >(argp1);
4275 {
4276 PyThreadState* __tstate = wxPyBeginAllowThreads();
4277 result = (byte)(arg1)->Blue();
4278 wxPyEndAllowThreads(__tstate);
4279 if (PyErr_Occurred()) SWIG_fail;
4280 }
4281 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4282 return resultobj;
4283 fail:
4284 return NULL;
4285 }
4286
4287
4288 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4289 PyObject *resultobj = 0;
4290 wxColour *arg1 = (wxColour *) 0 ;
4291 byte result;
4292 void *argp1 = 0 ;
4293 int res1 = 0 ;
4294 PyObject *swig_obj[1] ;
4295
4296 if (!args) SWIG_fail;
4297 swig_obj[0] = args;
4298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4299 if (!SWIG_IsOK(res1)) {
4300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4301 }
4302 arg1 = reinterpret_cast< wxColour * >(argp1);
4303 {
4304 PyThreadState* __tstate = wxPyBeginAllowThreads();
4305 result = (byte)(arg1)->Alpha();
4306 wxPyEndAllowThreads(__tstate);
4307 if (PyErr_Occurred()) SWIG_fail;
4308 }
4309 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4310 return resultobj;
4311 fail:
4312 return NULL;
4313 }
4314
4315
4316 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4317 PyObject *resultobj = 0;
4318 wxColour *arg1 = (wxColour *) 0 ;
4319 bool result;
4320 void *argp1 = 0 ;
4321 int res1 = 0 ;
4322 PyObject *swig_obj[1] ;
4323
4324 if (!args) SWIG_fail;
4325 swig_obj[0] = args;
4326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4327 if (!SWIG_IsOK(res1)) {
4328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4329 }
4330 arg1 = reinterpret_cast< wxColour * >(argp1);
4331 {
4332 PyThreadState* __tstate = wxPyBeginAllowThreads();
4333 result = (bool)(arg1)->IsOk();
4334 wxPyEndAllowThreads(__tstate);
4335 if (PyErr_Occurred()) SWIG_fail;
4336 }
4337 {
4338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4339 }
4340 return resultobj;
4341 fail:
4342 return NULL;
4343 }
4344
4345
4346 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4347 PyObject *resultobj = 0;
4348 wxColour *arg1 = (wxColour *) 0 ;
4349 byte arg2 ;
4350 byte arg3 ;
4351 byte arg4 ;
4352 byte arg5 = (byte) wxALPHA_OPAQUE ;
4353 void *argp1 = 0 ;
4354 int res1 = 0 ;
4355 unsigned char val2 ;
4356 int ecode2 = 0 ;
4357 unsigned char val3 ;
4358 int ecode3 = 0 ;
4359 unsigned char val4 ;
4360 int ecode4 = 0 ;
4361 unsigned char val5 ;
4362 int ecode5 = 0 ;
4363 PyObject * obj0 = 0 ;
4364 PyObject * obj1 = 0 ;
4365 PyObject * obj2 = 0 ;
4366 PyObject * obj3 = 0 ;
4367 PyObject * obj4 = 0 ;
4368 char * kwnames[] = {
4369 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4370 };
4371
4372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4374 if (!SWIG_IsOK(res1)) {
4375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4376 }
4377 arg1 = reinterpret_cast< wxColour * >(argp1);
4378 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4379 if (!SWIG_IsOK(ecode2)) {
4380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4381 }
4382 arg2 = static_cast< byte >(val2);
4383 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4384 if (!SWIG_IsOK(ecode3)) {
4385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4386 }
4387 arg3 = static_cast< byte >(val3);
4388 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4389 if (!SWIG_IsOK(ecode4)) {
4390 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4391 }
4392 arg4 = static_cast< byte >(val4);
4393 if (obj4) {
4394 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4395 if (!SWIG_IsOK(ecode5)) {
4396 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4397 }
4398 arg5 = static_cast< byte >(val5);
4399 }
4400 {
4401 PyThreadState* __tstate = wxPyBeginAllowThreads();
4402 (arg1)->Set(arg2,arg3,arg4,arg5);
4403 wxPyEndAllowThreads(__tstate);
4404 if (PyErr_Occurred()) SWIG_fail;
4405 }
4406 resultobj = SWIG_Py_Void();
4407 return resultobj;
4408 fail:
4409 return NULL;
4410 }
4411
4412
4413 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4414 PyObject *resultobj = 0;
4415 wxColour *arg1 = (wxColour *) 0 ;
4416 unsigned long arg2 ;
4417 void *argp1 = 0 ;
4418 int res1 = 0 ;
4419 unsigned long val2 ;
4420 int ecode2 = 0 ;
4421 PyObject * obj0 = 0 ;
4422 PyObject * obj1 = 0 ;
4423 char * kwnames[] = {
4424 (char *) "self",(char *) "colRGB", NULL
4425 };
4426
4427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4429 if (!SWIG_IsOK(res1)) {
4430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4431 }
4432 arg1 = reinterpret_cast< wxColour * >(argp1);
4433 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4434 if (!SWIG_IsOK(ecode2)) {
4435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4436 }
4437 arg2 = static_cast< unsigned long >(val2);
4438 {
4439 PyThreadState* __tstate = wxPyBeginAllowThreads();
4440 (arg1)->Set(arg2);
4441 wxPyEndAllowThreads(__tstate);
4442 if (PyErr_Occurred()) SWIG_fail;
4443 }
4444 resultobj = SWIG_Py_Void();
4445 return resultobj;
4446 fail:
4447 return NULL;
4448 }
4449
4450
4451 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4452 PyObject *resultobj = 0;
4453 wxColour *arg1 = (wxColour *) 0 ;
4454 wxString *arg2 = 0 ;
4455 void *argp1 = 0 ;
4456 int res1 = 0 ;
4457 bool temp2 = false ;
4458 PyObject * obj0 = 0 ;
4459 PyObject * obj1 = 0 ;
4460 char * kwnames[] = {
4461 (char *) "self",(char *) "colourName", NULL
4462 };
4463
4464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4466 if (!SWIG_IsOK(res1)) {
4467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4468 }
4469 arg1 = reinterpret_cast< wxColour * >(argp1);
4470 {
4471 arg2 = wxString_in_helper(obj1);
4472 if (arg2 == NULL) SWIG_fail;
4473 temp2 = true;
4474 }
4475 {
4476 PyThreadState* __tstate = wxPyBeginAllowThreads();
4477 (arg1)->Set((wxString const &)*arg2);
4478 wxPyEndAllowThreads(__tstate);
4479 if (PyErr_Occurred()) SWIG_fail;
4480 }
4481 resultobj = SWIG_Py_Void();
4482 {
4483 if (temp2)
4484 delete arg2;
4485 }
4486 return resultobj;
4487 fail:
4488 {
4489 if (temp2)
4490 delete arg2;
4491 }
4492 return NULL;
4493 }
4494
4495
4496 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4497 PyObject *resultobj = 0;
4498 wxColour *arg1 = (wxColour *) 0 ;
4499 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4500 wxString result;
4501 void *argp1 = 0 ;
4502 int res1 = 0 ;
4503 long val2 ;
4504 int ecode2 = 0 ;
4505 PyObject * obj0 = 0 ;
4506 PyObject * obj1 = 0 ;
4507 char * kwnames[] = {
4508 (char *) "self",(char *) "flags", NULL
4509 };
4510
4511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4513 if (!SWIG_IsOK(res1)) {
4514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4515 }
4516 arg1 = reinterpret_cast< wxColour * >(argp1);
4517 if (obj1) {
4518 ecode2 = SWIG_AsVal_long(obj1, &val2);
4519 if (!SWIG_IsOK(ecode2)) {
4520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4521 }
4522 arg2 = static_cast< long >(val2);
4523 }
4524 {
4525 PyThreadState* __tstate = wxPyBeginAllowThreads();
4526 result = ((wxColour const *)arg1)->GetAsString(arg2);
4527 wxPyEndAllowThreads(__tstate);
4528 if (PyErr_Occurred()) SWIG_fail;
4529 }
4530 {
4531 #if wxUSE_UNICODE
4532 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4533 #else
4534 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4535 #endif
4536 }
4537 return resultobj;
4538 fail:
4539 return NULL;
4540 }
4541
4542
4543 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4544 PyObject *resultobj = 0;
4545 wxColour *arg1 = (wxColour *) 0 ;
4546 long result;
4547 void *argp1 = 0 ;
4548 int res1 = 0 ;
4549 PyObject *swig_obj[1] ;
4550
4551 if (!args) SWIG_fail;
4552 swig_obj[0] = args;
4553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4554 if (!SWIG_IsOK(res1)) {
4555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4556 }
4557 arg1 = reinterpret_cast< wxColour * >(argp1);
4558 {
4559 PyThreadState* __tstate = wxPyBeginAllowThreads();
4560 result = (long)((wxColour const *)arg1)->GetPixel();
4561 wxPyEndAllowThreads(__tstate);
4562 if (PyErr_Occurred()) SWIG_fail;
4563 }
4564 resultobj = SWIG_From_long(static_cast< long >(result));
4565 return resultobj;
4566 fail:
4567 return NULL;
4568 }
4569
4570
4571 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4572 PyObject *resultobj = 0;
4573 wxColour *arg1 = (wxColour *) 0 ;
4574 PyObject *arg2 = (PyObject *) 0 ;
4575 bool result;
4576 void *argp1 = 0 ;
4577 int res1 = 0 ;
4578 PyObject * obj0 = 0 ;
4579 PyObject * obj1 = 0 ;
4580 char * kwnames[] = {
4581 (char *) "self",(char *) "other", NULL
4582 };
4583
4584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4586 if (!SWIG_IsOK(res1)) {
4587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4588 }
4589 arg1 = reinterpret_cast< wxColour * >(argp1);
4590 arg2 = obj1;
4591 {
4592 result = (bool)wxColour___eq__(arg1,arg2);
4593 if (PyErr_Occurred()) SWIG_fail;
4594 }
4595 {
4596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4597 }
4598 return resultobj;
4599 fail:
4600 return NULL;
4601 }
4602
4603
4604 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4605 PyObject *resultobj = 0;
4606 wxColour *arg1 = (wxColour *) 0 ;
4607 PyObject *arg2 = (PyObject *) 0 ;
4608 bool result;
4609 void *argp1 = 0 ;
4610 int res1 = 0 ;
4611 PyObject * obj0 = 0 ;
4612 PyObject * obj1 = 0 ;
4613 char * kwnames[] = {
4614 (char *) "self",(char *) "other", NULL
4615 };
4616
4617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4619 if (!SWIG_IsOK(res1)) {
4620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4621 }
4622 arg1 = reinterpret_cast< wxColour * >(argp1);
4623 arg2 = obj1;
4624 {
4625 result = (bool)wxColour___ne__(arg1,arg2);
4626 if (PyErr_Occurred()) SWIG_fail;
4627 }
4628 {
4629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4630 }
4631 return resultobj;
4632 fail:
4633 return NULL;
4634 }
4635
4636
4637 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4638 PyObject *resultobj = 0;
4639 wxColour *arg1 = (wxColour *) 0 ;
4640 bool arg2 = (bool) false ;
4641 PyObject *result = 0 ;
4642 void *argp1 = 0 ;
4643 int res1 = 0 ;
4644 bool val2 ;
4645 int ecode2 = 0 ;
4646 PyObject * obj0 = 0 ;
4647 PyObject * obj1 = 0 ;
4648 char * kwnames[] = {
4649 (char *) "self",(char *) "includeAlpha", NULL
4650 };
4651
4652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4654 if (!SWIG_IsOK(res1)) {
4655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4656 }
4657 arg1 = reinterpret_cast< wxColour * >(argp1);
4658 if (obj1) {
4659 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4660 if (!SWIG_IsOK(ecode2)) {
4661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4662 }
4663 arg2 = static_cast< bool >(val2);
4664 }
4665 {
4666 result = (PyObject *)wxColour_Get(arg1,arg2);
4667 if (PyErr_Occurred()) SWIG_fail;
4668 }
4669 resultobj = result;
4670 return resultobj;
4671 fail:
4672 return NULL;
4673 }
4674
4675
4676 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4677 PyObject *resultobj = 0;
4678 wxColour *arg1 = (wxColour *) 0 ;
4679 unsigned long result;
4680 void *argp1 = 0 ;
4681 int res1 = 0 ;
4682 PyObject *swig_obj[1] ;
4683
4684 if (!args) SWIG_fail;
4685 swig_obj[0] = args;
4686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4687 if (!SWIG_IsOK(res1)) {
4688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4689 }
4690 arg1 = reinterpret_cast< wxColour * >(argp1);
4691 {
4692 result = (unsigned long)wxColour_GetRGB(arg1);
4693 if (PyErr_Occurred()) SWIG_fail;
4694 }
4695 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4696 return resultobj;
4697 fail:
4698 return NULL;
4699 }
4700
4701
4702 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4703 PyObject *obj;
4704 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4705 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4706 return SWIG_Py_Void();
4707 }
4708
4709 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4710 return SWIG_Python_InitShadowInstance(args);
4711 }
4712
4713 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4714 PyObject *resultobj = 0;
4715 int arg1 ;
4716 unsigned char *arg2 = (unsigned char *) 0 ;
4717 unsigned char *arg3 = (unsigned char *) 0 ;
4718 unsigned char *arg4 = (unsigned char *) 0 ;
4719 wxPalette *result = 0 ;
4720 int val1 ;
4721 int ecode1 = 0 ;
4722 void *argp2 = 0 ;
4723 int res2 = 0 ;
4724 void *argp3 = 0 ;
4725 int res3 = 0 ;
4726 void *argp4 = 0 ;
4727 int res4 = 0 ;
4728 PyObject * obj0 = 0 ;
4729 PyObject * obj1 = 0 ;
4730 PyObject * obj2 = 0 ;
4731 PyObject * obj3 = 0 ;
4732 char * kwnames[] = {
4733 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4734 };
4735
4736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4737 ecode1 = SWIG_AsVal_int(obj0, &val1);
4738 if (!SWIG_IsOK(ecode1)) {
4739 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4740 }
4741 arg1 = static_cast< int >(val1);
4742 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4743 if (!SWIG_IsOK(res2)) {
4744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4745 }
4746 arg2 = reinterpret_cast< unsigned char * >(argp2);
4747 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4748 if (!SWIG_IsOK(res3)) {
4749 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4750 }
4751 arg3 = reinterpret_cast< unsigned char * >(argp3);
4752 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4753 if (!SWIG_IsOK(res4)) {
4754 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4755 }
4756 arg4 = reinterpret_cast< unsigned char * >(argp4);
4757 {
4758 if (!wxPyCheckForApp()) SWIG_fail;
4759 PyThreadState* __tstate = wxPyBeginAllowThreads();
4760 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4761 wxPyEndAllowThreads(__tstate);
4762 if (PyErr_Occurred()) SWIG_fail;
4763 }
4764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4765 return resultobj;
4766 fail:
4767 return NULL;
4768 }
4769
4770
4771 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4772 PyObject *resultobj = 0;
4773 wxPalette *arg1 = (wxPalette *) 0 ;
4774 void *argp1 = 0 ;
4775 int res1 = 0 ;
4776 PyObject *swig_obj[1] ;
4777
4778 if (!args) SWIG_fail;
4779 swig_obj[0] = args;
4780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4781 if (!SWIG_IsOK(res1)) {
4782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4783 }
4784 arg1 = reinterpret_cast< wxPalette * >(argp1);
4785 {
4786 PyThreadState* __tstate = wxPyBeginAllowThreads();
4787 delete arg1;
4788
4789 wxPyEndAllowThreads(__tstate);
4790 if (PyErr_Occurred()) SWIG_fail;
4791 }
4792 resultobj = SWIG_Py_Void();
4793 return resultobj;
4794 fail:
4795 return NULL;
4796 }
4797
4798
4799 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4800 PyObject *resultobj = 0;
4801 wxPalette *arg1 = (wxPalette *) 0 ;
4802 byte arg2 ;
4803 byte arg3 ;
4804 byte arg4 ;
4805 int result;
4806 void *argp1 = 0 ;
4807 int res1 = 0 ;
4808 unsigned char val2 ;
4809 int ecode2 = 0 ;
4810 unsigned char val3 ;
4811 int ecode3 = 0 ;
4812 unsigned char val4 ;
4813 int ecode4 = 0 ;
4814 PyObject * obj0 = 0 ;
4815 PyObject * obj1 = 0 ;
4816 PyObject * obj2 = 0 ;
4817 PyObject * obj3 = 0 ;
4818 char * kwnames[] = {
4819 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4820 };
4821
4822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4824 if (!SWIG_IsOK(res1)) {
4825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4826 }
4827 arg1 = reinterpret_cast< wxPalette * >(argp1);
4828 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4829 if (!SWIG_IsOK(ecode2)) {
4830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4831 }
4832 arg2 = static_cast< byte >(val2);
4833 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4834 if (!SWIG_IsOK(ecode3)) {
4835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4836 }
4837 arg3 = static_cast< byte >(val3);
4838 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4839 if (!SWIG_IsOK(ecode4)) {
4840 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4841 }
4842 arg4 = static_cast< byte >(val4);
4843 {
4844 PyThreadState* __tstate = wxPyBeginAllowThreads();
4845 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4846 wxPyEndAllowThreads(__tstate);
4847 if (PyErr_Occurred()) SWIG_fail;
4848 }
4849 resultobj = SWIG_From_int(static_cast< int >(result));
4850 return resultobj;
4851 fail:
4852 return NULL;
4853 }
4854
4855
4856 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4857 PyObject *resultobj = 0;
4858 wxPalette *arg1 = (wxPalette *) 0 ;
4859 int arg2 ;
4860 byte *arg3 = (byte *) 0 ;
4861 byte *arg4 = (byte *) 0 ;
4862 byte *arg5 = (byte *) 0 ;
4863 bool result;
4864 void *argp1 = 0 ;
4865 int res1 = 0 ;
4866 int val2 ;
4867 int ecode2 = 0 ;
4868 byte temp3 ;
4869 int res3 = SWIG_TMPOBJ ;
4870 byte temp4 ;
4871 int res4 = SWIG_TMPOBJ ;
4872 byte temp5 ;
4873 int res5 = SWIG_TMPOBJ ;
4874 PyObject * obj0 = 0 ;
4875 PyObject * obj1 = 0 ;
4876 char * kwnames[] = {
4877 (char *) "self",(char *) "pixel", NULL
4878 };
4879
4880 arg3 = &temp3;
4881 arg4 = &temp4;
4882 arg5 = &temp5;
4883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4885 if (!SWIG_IsOK(res1)) {
4886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4887 }
4888 arg1 = reinterpret_cast< wxPalette * >(argp1);
4889 ecode2 = SWIG_AsVal_int(obj1, &val2);
4890 if (!SWIG_IsOK(ecode2)) {
4891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4892 }
4893 arg2 = static_cast< int >(val2);
4894 {
4895 PyThreadState* __tstate = wxPyBeginAllowThreads();
4896 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4897 wxPyEndAllowThreads(__tstate);
4898 if (PyErr_Occurred()) SWIG_fail;
4899 }
4900 {
4901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4902 }
4903 if (SWIG_IsTmpObj(res3)) {
4904 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4905 } else {
4906 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4907 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4908 }
4909 if (SWIG_IsTmpObj(res4)) {
4910 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4911 } else {
4912 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4913 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4914 }
4915 if (SWIG_IsTmpObj(res5)) {
4916 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4917 } else {
4918 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4919 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4920 }
4921 return resultobj;
4922 fail:
4923 return NULL;
4924 }
4925
4926
4927 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4928 PyObject *resultobj = 0;
4929 wxPalette *arg1 = (wxPalette *) 0 ;
4930 int result;
4931 void *argp1 = 0 ;
4932 int res1 = 0 ;
4933 PyObject *swig_obj[1] ;
4934
4935 if (!args) SWIG_fail;
4936 swig_obj[0] = args;
4937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4938 if (!SWIG_IsOK(res1)) {
4939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4940 }
4941 arg1 = reinterpret_cast< wxPalette * >(argp1);
4942 {
4943 PyThreadState* __tstate = wxPyBeginAllowThreads();
4944 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4945 wxPyEndAllowThreads(__tstate);
4946 if (PyErr_Occurred()) SWIG_fail;
4947 }
4948 resultobj = SWIG_From_int(static_cast< int >(result));
4949 return resultobj;
4950 fail:
4951 return NULL;
4952 }
4953
4954
4955 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4956 PyObject *resultobj = 0;
4957 wxPalette *arg1 = (wxPalette *) 0 ;
4958 bool result;
4959 void *argp1 = 0 ;
4960 int res1 = 0 ;
4961 PyObject *swig_obj[1] ;
4962
4963 if (!args) SWIG_fail;
4964 swig_obj[0] = args;
4965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4966 if (!SWIG_IsOK(res1)) {
4967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4968 }
4969 arg1 = reinterpret_cast< wxPalette * >(argp1);
4970 {
4971 PyThreadState* __tstate = wxPyBeginAllowThreads();
4972 result = (bool)(arg1)->IsOk();
4973 wxPyEndAllowThreads(__tstate);
4974 if (PyErr_Occurred()) SWIG_fail;
4975 }
4976 {
4977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4978 }
4979 return resultobj;
4980 fail:
4981 return NULL;
4982 }
4983
4984
4985 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4986 PyObject *obj;
4987 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4988 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4989 return SWIG_Py_Void();
4990 }
4991
4992 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4993 return SWIG_Python_InitShadowInstance(args);
4994 }
4995
4996 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4997 PyObject *resultobj = 0;
4998 wxColour *arg1 = 0 ;
4999 int arg2 = (int) 1 ;
5000 int arg3 = (int) wxSOLID ;
5001 wxPen *result = 0 ;
5002 wxColour temp1 ;
5003 int val2 ;
5004 int ecode2 = 0 ;
5005 int val3 ;
5006 int ecode3 = 0 ;
5007 PyObject * obj0 = 0 ;
5008 PyObject * obj1 = 0 ;
5009 PyObject * obj2 = 0 ;
5010 char * kwnames[] = {
5011 (char *) "colour",(char *) "width",(char *) "style", NULL
5012 };
5013
5014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5015 {
5016 arg1 = &temp1;
5017 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5018 }
5019 if (obj1) {
5020 ecode2 = SWIG_AsVal_int(obj1, &val2);
5021 if (!SWIG_IsOK(ecode2)) {
5022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5023 }
5024 arg2 = static_cast< int >(val2);
5025 }
5026 if (obj2) {
5027 ecode3 = SWIG_AsVal_int(obj2, &val3);
5028 if (!SWIG_IsOK(ecode3)) {
5029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5030 }
5031 arg3 = static_cast< int >(val3);
5032 }
5033 {
5034 if (!wxPyCheckForApp()) SWIG_fail;
5035 PyThreadState* __tstate = wxPyBeginAllowThreads();
5036 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5037 wxPyEndAllowThreads(__tstate);
5038 if (PyErr_Occurred()) SWIG_fail;
5039 }
5040 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5041 return resultobj;
5042 fail:
5043 return NULL;
5044 }
5045
5046
5047 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5048 PyObject *resultobj = 0;
5049 wxPen *arg1 = (wxPen *) 0 ;
5050 void *argp1 = 0 ;
5051 int res1 = 0 ;
5052 PyObject *swig_obj[1] ;
5053
5054 if (!args) SWIG_fail;
5055 swig_obj[0] = args;
5056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5057 if (!SWIG_IsOK(res1)) {
5058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5059 }
5060 arg1 = reinterpret_cast< wxPen * >(argp1);
5061 {
5062 PyThreadState* __tstate = wxPyBeginAllowThreads();
5063 delete arg1;
5064
5065 wxPyEndAllowThreads(__tstate);
5066 if (PyErr_Occurred()) SWIG_fail;
5067 }
5068 resultobj = SWIG_Py_Void();
5069 return resultobj;
5070 fail:
5071 return NULL;
5072 }
5073
5074
5075 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5076 PyObject *resultobj = 0;
5077 wxPen *arg1 = (wxPen *) 0 ;
5078 int result;
5079 void *argp1 = 0 ;
5080 int res1 = 0 ;
5081 PyObject *swig_obj[1] ;
5082
5083 if (!args) SWIG_fail;
5084 swig_obj[0] = args;
5085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5086 if (!SWIG_IsOK(res1)) {
5087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5088 }
5089 arg1 = reinterpret_cast< wxPen * >(argp1);
5090 {
5091 PyThreadState* __tstate = wxPyBeginAllowThreads();
5092 result = (int)(arg1)->GetCap();
5093 wxPyEndAllowThreads(__tstate);
5094 if (PyErr_Occurred()) SWIG_fail;
5095 }
5096 resultobj = SWIG_From_int(static_cast< int >(result));
5097 return resultobj;
5098 fail:
5099 return NULL;
5100 }
5101
5102
5103 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5104 PyObject *resultobj = 0;
5105 wxPen *arg1 = (wxPen *) 0 ;
5106 wxColour result;
5107 void *argp1 = 0 ;
5108 int res1 = 0 ;
5109 PyObject *swig_obj[1] ;
5110
5111 if (!args) SWIG_fail;
5112 swig_obj[0] = args;
5113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5114 if (!SWIG_IsOK(res1)) {
5115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5116 }
5117 arg1 = reinterpret_cast< wxPen * >(argp1);
5118 {
5119 PyThreadState* __tstate = wxPyBeginAllowThreads();
5120 result = (arg1)->GetColour();
5121 wxPyEndAllowThreads(__tstate);
5122 if (PyErr_Occurred()) SWIG_fail;
5123 }
5124 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5125 return resultobj;
5126 fail:
5127 return NULL;
5128 }
5129
5130
5131 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5132 PyObject *resultobj = 0;
5133 wxPen *arg1 = (wxPen *) 0 ;
5134 int result;
5135 void *argp1 = 0 ;
5136 int res1 = 0 ;
5137 PyObject *swig_obj[1] ;
5138
5139 if (!args) SWIG_fail;
5140 swig_obj[0] = args;
5141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5142 if (!SWIG_IsOK(res1)) {
5143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5144 }
5145 arg1 = reinterpret_cast< wxPen * >(argp1);
5146 {
5147 PyThreadState* __tstate = wxPyBeginAllowThreads();
5148 result = (int)(arg1)->GetJoin();
5149 wxPyEndAllowThreads(__tstate);
5150 if (PyErr_Occurred()) SWIG_fail;
5151 }
5152 resultobj = SWIG_From_int(static_cast< int >(result));
5153 return resultobj;
5154 fail:
5155 return NULL;
5156 }
5157
5158
5159 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5160 PyObject *resultobj = 0;
5161 wxPen *arg1 = (wxPen *) 0 ;
5162 int result;
5163 void *argp1 = 0 ;
5164 int res1 = 0 ;
5165 PyObject *swig_obj[1] ;
5166
5167 if (!args) SWIG_fail;
5168 swig_obj[0] = args;
5169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5170 if (!SWIG_IsOK(res1)) {
5171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5172 }
5173 arg1 = reinterpret_cast< wxPen * >(argp1);
5174 {
5175 PyThreadState* __tstate = wxPyBeginAllowThreads();
5176 result = (int)(arg1)->GetStyle();
5177 wxPyEndAllowThreads(__tstate);
5178 if (PyErr_Occurred()) SWIG_fail;
5179 }
5180 resultobj = SWIG_From_int(static_cast< int >(result));
5181 return resultobj;
5182 fail:
5183 return NULL;
5184 }
5185
5186
5187 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5188 PyObject *resultobj = 0;
5189 wxPen *arg1 = (wxPen *) 0 ;
5190 int result;
5191 void *argp1 = 0 ;
5192 int res1 = 0 ;
5193 PyObject *swig_obj[1] ;
5194
5195 if (!args) SWIG_fail;
5196 swig_obj[0] = args;
5197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5198 if (!SWIG_IsOK(res1)) {
5199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5200 }
5201 arg1 = reinterpret_cast< wxPen * >(argp1);
5202 {
5203 PyThreadState* __tstate = wxPyBeginAllowThreads();
5204 result = (int)(arg1)->GetWidth();
5205 wxPyEndAllowThreads(__tstate);
5206 if (PyErr_Occurred()) SWIG_fail;
5207 }
5208 resultobj = SWIG_From_int(static_cast< int >(result));
5209 return resultobj;
5210 fail:
5211 return NULL;
5212 }
5213
5214
5215 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5216 PyObject *resultobj = 0;
5217 wxPen *arg1 = (wxPen *) 0 ;
5218 bool result;
5219 void *argp1 = 0 ;
5220 int res1 = 0 ;
5221 PyObject *swig_obj[1] ;
5222
5223 if (!args) SWIG_fail;
5224 swig_obj[0] = args;
5225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5226 if (!SWIG_IsOK(res1)) {
5227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5228 }
5229 arg1 = reinterpret_cast< wxPen * >(argp1);
5230 {
5231 PyThreadState* __tstate = wxPyBeginAllowThreads();
5232 result = (bool)(arg1)->IsOk();
5233 wxPyEndAllowThreads(__tstate);
5234 if (PyErr_Occurred()) SWIG_fail;
5235 }
5236 {
5237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5238 }
5239 return resultobj;
5240 fail:
5241 return NULL;
5242 }
5243
5244
5245 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5246 PyObject *resultobj = 0;
5247 wxPen *arg1 = (wxPen *) 0 ;
5248 int arg2 ;
5249 void *argp1 = 0 ;
5250 int res1 = 0 ;
5251 int val2 ;
5252 int ecode2 = 0 ;
5253 PyObject * obj0 = 0 ;
5254 PyObject * obj1 = 0 ;
5255 char * kwnames[] = {
5256 (char *) "self",(char *) "cap_style", NULL
5257 };
5258
5259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5261 if (!SWIG_IsOK(res1)) {
5262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5263 }
5264 arg1 = reinterpret_cast< wxPen * >(argp1);
5265 ecode2 = SWIG_AsVal_int(obj1, &val2);
5266 if (!SWIG_IsOK(ecode2)) {
5267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5268 }
5269 arg2 = static_cast< int >(val2);
5270 {
5271 PyThreadState* __tstate = wxPyBeginAllowThreads();
5272 (arg1)->SetCap(arg2);
5273 wxPyEndAllowThreads(__tstate);
5274 if (PyErr_Occurred()) SWIG_fail;
5275 }
5276 resultobj = SWIG_Py_Void();
5277 return resultobj;
5278 fail:
5279 return NULL;
5280 }
5281
5282
5283 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5284 PyObject *resultobj = 0;
5285 wxPen *arg1 = (wxPen *) 0 ;
5286 wxColour *arg2 = 0 ;
5287 void *argp1 = 0 ;
5288 int res1 = 0 ;
5289 wxColour temp2 ;
5290 PyObject * obj0 = 0 ;
5291 PyObject * obj1 = 0 ;
5292 char * kwnames[] = {
5293 (char *) "self",(char *) "colour", NULL
5294 };
5295
5296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5298 if (!SWIG_IsOK(res1)) {
5299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5300 }
5301 arg1 = reinterpret_cast< wxPen * >(argp1);
5302 {
5303 arg2 = &temp2;
5304 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5305 }
5306 {
5307 PyThreadState* __tstate = wxPyBeginAllowThreads();
5308 (arg1)->SetColour(*arg2);
5309 wxPyEndAllowThreads(__tstate);
5310 if (PyErr_Occurred()) SWIG_fail;
5311 }
5312 resultobj = SWIG_Py_Void();
5313 return resultobj;
5314 fail:
5315 return NULL;
5316 }
5317
5318
5319 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5320 PyObject *resultobj = 0;
5321 wxPen *arg1 = (wxPen *) 0 ;
5322 int arg2 ;
5323 void *argp1 = 0 ;
5324 int res1 = 0 ;
5325 int val2 ;
5326 int ecode2 = 0 ;
5327 PyObject * obj0 = 0 ;
5328 PyObject * obj1 = 0 ;
5329 char * kwnames[] = {
5330 (char *) "self",(char *) "join_style", NULL
5331 };
5332
5333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5335 if (!SWIG_IsOK(res1)) {
5336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5337 }
5338 arg1 = reinterpret_cast< wxPen * >(argp1);
5339 ecode2 = SWIG_AsVal_int(obj1, &val2);
5340 if (!SWIG_IsOK(ecode2)) {
5341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5342 }
5343 arg2 = static_cast< int >(val2);
5344 {
5345 PyThreadState* __tstate = wxPyBeginAllowThreads();
5346 (arg1)->SetJoin(arg2);
5347 wxPyEndAllowThreads(__tstate);
5348 if (PyErr_Occurred()) SWIG_fail;
5349 }
5350 resultobj = SWIG_Py_Void();
5351 return resultobj;
5352 fail:
5353 return NULL;
5354 }
5355
5356
5357 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5358 PyObject *resultobj = 0;
5359 wxPen *arg1 = (wxPen *) 0 ;
5360 int arg2 ;
5361 void *argp1 = 0 ;
5362 int res1 = 0 ;
5363 int val2 ;
5364 int ecode2 = 0 ;
5365 PyObject * obj0 = 0 ;
5366 PyObject * obj1 = 0 ;
5367 char * kwnames[] = {
5368 (char *) "self",(char *) "style", NULL
5369 };
5370
5371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5373 if (!SWIG_IsOK(res1)) {
5374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5375 }
5376 arg1 = reinterpret_cast< wxPen * >(argp1);
5377 ecode2 = SWIG_AsVal_int(obj1, &val2);
5378 if (!SWIG_IsOK(ecode2)) {
5379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5380 }
5381 arg2 = static_cast< int >(val2);
5382 {
5383 PyThreadState* __tstate = wxPyBeginAllowThreads();
5384 (arg1)->SetStyle(arg2);
5385 wxPyEndAllowThreads(__tstate);
5386 if (PyErr_Occurred()) SWIG_fail;
5387 }
5388 resultobj = SWIG_Py_Void();
5389 return resultobj;
5390 fail:
5391 return NULL;
5392 }
5393
5394
5395 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5396 PyObject *resultobj = 0;
5397 wxPen *arg1 = (wxPen *) 0 ;
5398 int arg2 ;
5399 void *argp1 = 0 ;
5400 int res1 = 0 ;
5401 int val2 ;
5402 int ecode2 = 0 ;
5403 PyObject * obj0 = 0 ;
5404 PyObject * obj1 = 0 ;
5405 char * kwnames[] = {
5406 (char *) "self",(char *) "width", NULL
5407 };
5408
5409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5411 if (!SWIG_IsOK(res1)) {
5412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5413 }
5414 arg1 = reinterpret_cast< wxPen * >(argp1);
5415 ecode2 = SWIG_AsVal_int(obj1, &val2);
5416 if (!SWIG_IsOK(ecode2)) {
5417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5418 }
5419 arg2 = static_cast< int >(val2);
5420 {
5421 PyThreadState* __tstate = wxPyBeginAllowThreads();
5422 (arg1)->SetWidth(arg2);
5423 wxPyEndAllowThreads(__tstate);
5424 if (PyErr_Occurred()) SWIG_fail;
5425 }
5426 resultobj = SWIG_Py_Void();
5427 return resultobj;
5428 fail:
5429 return NULL;
5430 }
5431
5432
5433 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5434 PyObject *resultobj = 0;
5435 wxPen *arg1 = (wxPen *) 0 ;
5436 int arg2 ;
5437 wxDash *arg3 = (wxDash *) 0 ;
5438 void *argp1 = 0 ;
5439 int res1 = 0 ;
5440 PyObject * obj0 = 0 ;
5441 PyObject * obj1 = 0 ;
5442 char * kwnames[] = {
5443 (char *) "self",(char *) "dashes", NULL
5444 };
5445
5446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5448 if (!SWIG_IsOK(res1)) {
5449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5450 }
5451 arg1 = reinterpret_cast< wxPen * >(argp1);
5452 {
5453 arg2 = PyList_Size(obj1);
5454 arg3 = (wxDash*)byte_LIST_helper(obj1);
5455 if (arg3 == NULL) SWIG_fail;
5456 }
5457 {
5458 PyThreadState* __tstate = wxPyBeginAllowThreads();
5459 (arg1)->SetDashes(arg2,arg3);
5460 wxPyEndAllowThreads(__tstate);
5461 if (PyErr_Occurred()) SWIG_fail;
5462 }
5463 resultobj = SWIG_Py_Void();
5464 {
5465 if (arg3) delete [] arg3;
5466 }
5467 return resultobj;
5468 fail:
5469 {
5470 if (arg3) delete [] arg3;
5471 }
5472 return NULL;
5473 }
5474
5475
5476 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5477 PyObject *resultobj = 0;
5478 wxPen *arg1 = (wxPen *) 0 ;
5479 PyObject *result = 0 ;
5480 void *argp1 = 0 ;
5481 int res1 = 0 ;
5482 PyObject *swig_obj[1] ;
5483
5484 if (!args) SWIG_fail;
5485 swig_obj[0] = args;
5486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5487 if (!SWIG_IsOK(res1)) {
5488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5489 }
5490 arg1 = reinterpret_cast< wxPen * >(argp1);
5491 {
5492 PyThreadState* __tstate = wxPyBeginAllowThreads();
5493 result = (PyObject *)wxPen_GetDashes(arg1);
5494 wxPyEndAllowThreads(__tstate);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 }
5497 resultobj = result;
5498 return resultobj;
5499 fail:
5500 return NULL;
5501 }
5502
5503
5504 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5505 PyObject *resultobj = 0;
5506 wxPen *arg1 = (wxPen *) 0 ;
5507 PyObject *arg2 = (PyObject *) 0 ;
5508 PyObject *arg3 = (PyObject *) 0 ;
5509 void *argp1 = 0 ;
5510 int res1 = 0 ;
5511 PyObject * obj0 = 0 ;
5512 PyObject * obj1 = 0 ;
5513 PyObject * obj2 = 0 ;
5514 char * kwnames[] = {
5515 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5516 };
5517
5518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5520 if (!SWIG_IsOK(res1)) {
5521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5522 }
5523 arg1 = reinterpret_cast< wxPen * >(argp1);
5524 arg2 = obj1;
5525 arg3 = obj2;
5526 {
5527 PyThreadState* __tstate = wxPyBeginAllowThreads();
5528 wxPen__SetDashes(arg1,arg2,arg3);
5529 wxPyEndAllowThreads(__tstate);
5530 if (PyErr_Occurred()) SWIG_fail;
5531 }
5532 resultobj = SWIG_Py_Void();
5533 return resultobj;
5534 fail:
5535 return NULL;
5536 }
5537
5538
5539 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5540 PyObject *resultobj = 0;
5541 wxPen *arg1 = (wxPen *) 0 ;
5542 int result;
5543 void *argp1 = 0 ;
5544 int res1 = 0 ;
5545 PyObject *swig_obj[1] ;
5546
5547 if (!args) SWIG_fail;
5548 swig_obj[0] = args;
5549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5550 if (!SWIG_IsOK(res1)) {
5551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5552 }
5553 arg1 = reinterpret_cast< wxPen * >(argp1);
5554 {
5555 PyThreadState* __tstate = wxPyBeginAllowThreads();
5556 result = (int)((wxPen const *)arg1)->GetDashCount();
5557 wxPyEndAllowThreads(__tstate);
5558 if (PyErr_Occurred()) SWIG_fail;
5559 }
5560 resultobj = SWIG_From_int(static_cast< int >(result));
5561 return resultobj;
5562 fail:
5563 return NULL;
5564 }
5565
5566
5567 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5568 PyObject *resultobj = 0;
5569 wxPen *arg1 = (wxPen *) 0 ;
5570 wxBitmap *result = 0 ;
5571 void *argp1 = 0 ;
5572 int res1 = 0 ;
5573 PyObject *swig_obj[1] ;
5574
5575 if (!args) SWIG_fail;
5576 swig_obj[0] = args;
5577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5578 if (!SWIG_IsOK(res1)) {
5579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5580 }
5581 arg1 = reinterpret_cast< wxPen * >(argp1);
5582 {
5583 PyThreadState* __tstate = wxPyBeginAllowThreads();
5584 result = (wxBitmap *)(arg1)->GetStipple();
5585 wxPyEndAllowThreads(__tstate);
5586 if (PyErr_Occurred()) SWIG_fail;
5587 }
5588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5589 return resultobj;
5590 fail:
5591 return NULL;
5592 }
5593
5594
5595 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5596 PyObject *resultobj = 0;
5597 wxPen *arg1 = (wxPen *) 0 ;
5598 wxBitmap *arg2 = 0 ;
5599 void *argp1 = 0 ;
5600 int res1 = 0 ;
5601 void *argp2 = 0 ;
5602 int res2 = 0 ;
5603 PyObject * obj0 = 0 ;
5604 PyObject * obj1 = 0 ;
5605 char * kwnames[] = {
5606 (char *) "self",(char *) "stipple", NULL
5607 };
5608
5609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5611 if (!SWIG_IsOK(res1)) {
5612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5613 }
5614 arg1 = reinterpret_cast< wxPen * >(argp1);
5615 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5616 if (!SWIG_IsOK(res2)) {
5617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5618 }
5619 if (!argp2) {
5620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5621 }
5622 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5623 {
5624 PyThreadState* __tstate = wxPyBeginAllowThreads();
5625 (arg1)->SetStipple(*arg2);
5626 wxPyEndAllowThreads(__tstate);
5627 if (PyErr_Occurred()) SWIG_fail;
5628 }
5629 resultobj = SWIG_Py_Void();
5630 return resultobj;
5631 fail:
5632 return NULL;
5633 }
5634
5635
5636 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5637 PyObject *resultobj = 0;
5638 wxPen *arg1 = (wxPen *) 0 ;
5639 wxPen *arg2 = (wxPen *) 0 ;
5640 bool result;
5641 void *argp1 = 0 ;
5642 int res1 = 0 ;
5643 void *argp2 = 0 ;
5644 int res2 = 0 ;
5645 PyObject * obj0 = 0 ;
5646 PyObject * obj1 = 0 ;
5647 char * kwnames[] = {
5648 (char *) "self",(char *) "other", NULL
5649 };
5650
5651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5653 if (!SWIG_IsOK(res1)) {
5654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5655 }
5656 arg1 = reinterpret_cast< wxPen * >(argp1);
5657 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5658 if (!SWIG_IsOK(res2)) {
5659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5660 }
5661 arg2 = reinterpret_cast< wxPen * >(argp2);
5662 {
5663 PyThreadState* __tstate = wxPyBeginAllowThreads();
5664 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5665 wxPyEndAllowThreads(__tstate);
5666 if (PyErr_Occurred()) SWIG_fail;
5667 }
5668 {
5669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5670 }
5671 return resultobj;
5672 fail:
5673 return NULL;
5674 }
5675
5676
5677 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5678 PyObject *resultobj = 0;
5679 wxPen *arg1 = (wxPen *) 0 ;
5680 wxPen *arg2 = (wxPen *) 0 ;
5681 bool result;
5682 void *argp1 = 0 ;
5683 int res1 = 0 ;
5684 void *argp2 = 0 ;
5685 int res2 = 0 ;
5686 PyObject * obj0 = 0 ;
5687 PyObject * obj1 = 0 ;
5688 char * kwnames[] = {
5689 (char *) "self",(char *) "other", NULL
5690 };
5691
5692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5694 if (!SWIG_IsOK(res1)) {
5695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5696 }
5697 arg1 = reinterpret_cast< wxPen * >(argp1);
5698 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5699 if (!SWIG_IsOK(res2)) {
5700 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5701 }
5702 arg2 = reinterpret_cast< wxPen * >(argp2);
5703 {
5704 PyThreadState* __tstate = wxPyBeginAllowThreads();
5705 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5706 wxPyEndAllowThreads(__tstate);
5707 if (PyErr_Occurred()) SWIG_fail;
5708 }
5709 {
5710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5711 }
5712 return resultobj;
5713 fail:
5714 return NULL;
5715 }
5716
5717
5718 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5719 PyObject *obj;
5720 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5721 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5722 return SWIG_Py_Void();
5723 }
5724
5725 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5726 return SWIG_Python_InitShadowInstance(args);
5727 }
5728
5729 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5730 PyObject *resultobj = 0;
5731 wxColour *arg1 = 0 ;
5732 int arg2 = (int) wxSOLID ;
5733 wxBrush *result = 0 ;
5734 wxColour temp1 ;
5735 int val2 ;
5736 int ecode2 = 0 ;
5737 PyObject * obj0 = 0 ;
5738 PyObject * obj1 = 0 ;
5739 char * kwnames[] = {
5740 (char *) "colour",(char *) "style", NULL
5741 };
5742
5743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5744 {
5745 arg1 = &temp1;
5746 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5747 }
5748 if (obj1) {
5749 ecode2 = SWIG_AsVal_int(obj1, &val2);
5750 if (!SWIG_IsOK(ecode2)) {
5751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5752 }
5753 arg2 = static_cast< int >(val2);
5754 }
5755 {
5756 if (!wxPyCheckForApp()) SWIG_fail;
5757 PyThreadState* __tstate = wxPyBeginAllowThreads();
5758 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5759 wxPyEndAllowThreads(__tstate);
5760 if (PyErr_Occurred()) SWIG_fail;
5761 }
5762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5763 return resultobj;
5764 fail:
5765 return NULL;
5766 }
5767
5768
5769 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5770 PyObject *resultobj = 0;
5771 wxBitmap *arg1 = 0 ;
5772 wxBrush *result = 0 ;
5773 void *argp1 = 0 ;
5774 int res1 = 0 ;
5775 PyObject * obj0 = 0 ;
5776 char * kwnames[] = {
5777 (char *) "stippleBitmap", NULL
5778 };
5779
5780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5781 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5782 if (!SWIG_IsOK(res1)) {
5783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5784 }
5785 if (!argp1) {
5786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5787 }
5788 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5789 {
5790 if (!wxPyCheckForApp()) SWIG_fail;
5791 PyThreadState* __tstate = wxPyBeginAllowThreads();
5792 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5793 wxPyEndAllowThreads(__tstate);
5794 if (PyErr_Occurred()) SWIG_fail;
5795 }
5796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5797 return resultobj;
5798 fail:
5799 return NULL;
5800 }
5801
5802
5803 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5804 PyObject *resultobj = 0;
5805 wxBrush *arg1 = (wxBrush *) 0 ;
5806 void *argp1 = 0 ;
5807 int res1 = 0 ;
5808 PyObject *swig_obj[1] ;
5809
5810 if (!args) SWIG_fail;
5811 swig_obj[0] = args;
5812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5813 if (!SWIG_IsOK(res1)) {
5814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5815 }
5816 arg1 = reinterpret_cast< wxBrush * >(argp1);
5817 {
5818 PyThreadState* __tstate = wxPyBeginAllowThreads();
5819 delete arg1;
5820
5821 wxPyEndAllowThreads(__tstate);
5822 if (PyErr_Occurred()) SWIG_fail;
5823 }
5824 resultobj = SWIG_Py_Void();
5825 return resultobj;
5826 fail:
5827 return NULL;
5828 }
5829
5830
5831 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5832 PyObject *resultobj = 0;
5833 wxBrush *arg1 = (wxBrush *) 0 ;
5834 wxColour *arg2 = 0 ;
5835 void *argp1 = 0 ;
5836 int res1 = 0 ;
5837 wxColour temp2 ;
5838 PyObject * obj0 = 0 ;
5839 PyObject * obj1 = 0 ;
5840 char * kwnames[] = {
5841 (char *) "self",(char *) "col", NULL
5842 };
5843
5844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5846 if (!SWIG_IsOK(res1)) {
5847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5848 }
5849 arg1 = reinterpret_cast< wxBrush * >(argp1);
5850 {
5851 arg2 = &temp2;
5852 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5853 }
5854 {
5855 PyThreadState* __tstate = wxPyBeginAllowThreads();
5856 (arg1)->SetColour((wxColour const &)*arg2);
5857 wxPyEndAllowThreads(__tstate);
5858 if (PyErr_Occurred()) SWIG_fail;
5859 }
5860 resultobj = SWIG_Py_Void();
5861 return resultobj;
5862 fail:
5863 return NULL;
5864 }
5865
5866
5867 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5868 PyObject *resultobj = 0;
5869 wxBrush *arg1 = (wxBrush *) 0 ;
5870 int arg2 ;
5871 void *argp1 = 0 ;
5872 int res1 = 0 ;
5873 int val2 ;
5874 int ecode2 = 0 ;
5875 PyObject * obj0 = 0 ;
5876 PyObject * obj1 = 0 ;
5877 char * kwnames[] = {
5878 (char *) "self",(char *) "style", NULL
5879 };
5880
5881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5883 if (!SWIG_IsOK(res1)) {
5884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5885 }
5886 arg1 = reinterpret_cast< wxBrush * >(argp1);
5887 ecode2 = SWIG_AsVal_int(obj1, &val2);
5888 if (!SWIG_IsOK(ecode2)) {
5889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5890 }
5891 arg2 = static_cast< int >(val2);
5892 {
5893 PyThreadState* __tstate = wxPyBeginAllowThreads();
5894 (arg1)->SetStyle(arg2);
5895 wxPyEndAllowThreads(__tstate);
5896 if (PyErr_Occurred()) SWIG_fail;
5897 }
5898 resultobj = SWIG_Py_Void();
5899 return resultobj;
5900 fail:
5901 return NULL;
5902 }
5903
5904
5905 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5906 PyObject *resultobj = 0;
5907 wxBrush *arg1 = (wxBrush *) 0 ;
5908 wxBitmap *arg2 = 0 ;
5909 void *argp1 = 0 ;
5910 int res1 = 0 ;
5911 void *argp2 = 0 ;
5912 int res2 = 0 ;
5913 PyObject * obj0 = 0 ;
5914 PyObject * obj1 = 0 ;
5915 char * kwnames[] = {
5916 (char *) "self",(char *) "stipple", NULL
5917 };
5918
5919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5921 if (!SWIG_IsOK(res1)) {
5922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5923 }
5924 arg1 = reinterpret_cast< wxBrush * >(argp1);
5925 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5926 if (!SWIG_IsOK(res2)) {
5927 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5928 }
5929 if (!argp2) {
5930 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5931 }
5932 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5933 {
5934 PyThreadState* __tstate = wxPyBeginAllowThreads();
5935 (arg1)->SetStipple((wxBitmap const &)*arg2);
5936 wxPyEndAllowThreads(__tstate);
5937 if (PyErr_Occurred()) SWIG_fail;
5938 }
5939 resultobj = SWIG_Py_Void();
5940 return resultobj;
5941 fail:
5942 return NULL;
5943 }
5944
5945
5946 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5947 PyObject *resultobj = 0;
5948 wxBrush *arg1 = (wxBrush *) 0 ;
5949 wxColour result;
5950 void *argp1 = 0 ;
5951 int res1 = 0 ;
5952 PyObject *swig_obj[1] ;
5953
5954 if (!args) SWIG_fail;
5955 swig_obj[0] = args;
5956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5957 if (!SWIG_IsOK(res1)) {
5958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5959 }
5960 arg1 = reinterpret_cast< wxBrush * >(argp1);
5961 {
5962 PyThreadState* __tstate = wxPyBeginAllowThreads();
5963 result = ((wxBrush const *)arg1)->GetColour();
5964 wxPyEndAllowThreads(__tstate);
5965 if (PyErr_Occurred()) SWIG_fail;
5966 }
5967 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5968 return resultobj;
5969 fail:
5970 return NULL;
5971 }
5972
5973
5974 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5975 PyObject *resultobj = 0;
5976 wxBrush *arg1 = (wxBrush *) 0 ;
5977 int result;
5978 void *argp1 = 0 ;
5979 int res1 = 0 ;
5980 PyObject *swig_obj[1] ;
5981
5982 if (!args) SWIG_fail;
5983 swig_obj[0] = args;
5984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5985 if (!SWIG_IsOK(res1)) {
5986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5987 }
5988 arg1 = reinterpret_cast< wxBrush * >(argp1);
5989 {
5990 PyThreadState* __tstate = wxPyBeginAllowThreads();
5991 result = (int)((wxBrush const *)arg1)->GetStyle();
5992 wxPyEndAllowThreads(__tstate);
5993 if (PyErr_Occurred()) SWIG_fail;
5994 }
5995 resultobj = SWIG_From_int(static_cast< int >(result));
5996 return resultobj;
5997 fail:
5998 return NULL;
5999 }
6000
6001
6002 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6003 PyObject *resultobj = 0;
6004 wxBrush *arg1 = (wxBrush *) 0 ;
6005 wxBitmap *result = 0 ;
6006 void *argp1 = 0 ;
6007 int res1 = 0 ;
6008 PyObject *swig_obj[1] ;
6009
6010 if (!args) SWIG_fail;
6011 swig_obj[0] = args;
6012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6013 if (!SWIG_IsOK(res1)) {
6014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
6015 }
6016 arg1 = reinterpret_cast< wxBrush * >(argp1);
6017 {
6018 PyThreadState* __tstate = wxPyBeginAllowThreads();
6019 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
6020 wxPyEndAllowThreads(__tstate);
6021 if (PyErr_Occurred()) SWIG_fail;
6022 }
6023 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
6024 return resultobj;
6025 fail:
6026 return NULL;
6027 }
6028
6029
6030 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6031 PyObject *resultobj = 0;
6032 wxBrush *arg1 = (wxBrush *) 0 ;
6033 bool result;
6034 void *argp1 = 0 ;
6035 int res1 = 0 ;
6036 PyObject *swig_obj[1] ;
6037
6038 if (!args) SWIG_fail;
6039 swig_obj[0] = args;
6040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6041 if (!SWIG_IsOK(res1)) {
6042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6043 }
6044 arg1 = reinterpret_cast< wxBrush * >(argp1);
6045 {
6046 PyThreadState* __tstate = wxPyBeginAllowThreads();
6047 result = (bool)((wxBrush const *)arg1)->IsHatch();
6048 wxPyEndAllowThreads(__tstate);
6049 if (PyErr_Occurred()) SWIG_fail;
6050 }
6051 {
6052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6053 }
6054 return resultobj;
6055 fail:
6056 return NULL;
6057 }
6058
6059
6060 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6061 PyObject *resultobj = 0;
6062 wxBrush *arg1 = (wxBrush *) 0 ;
6063 bool result;
6064 void *argp1 = 0 ;
6065 int res1 = 0 ;
6066 PyObject *swig_obj[1] ;
6067
6068 if (!args) SWIG_fail;
6069 swig_obj[0] = args;
6070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6071 if (!SWIG_IsOK(res1)) {
6072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
6073 }
6074 arg1 = reinterpret_cast< wxBrush * >(argp1);
6075 {
6076 PyThreadState* __tstate = wxPyBeginAllowThreads();
6077 result = (bool)(arg1)->IsOk();
6078 wxPyEndAllowThreads(__tstate);
6079 if (PyErr_Occurred()) SWIG_fail;
6080 }
6081 {
6082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6083 }
6084 return resultobj;
6085 fail:
6086 return NULL;
6087 }
6088
6089
6090 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6091 PyObject *obj;
6092 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6093 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6094 return SWIG_Py_Void();
6095 }
6096
6097 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6098 return SWIG_Python_InitShadowInstance(args);
6099 }
6100
6101 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6102 PyObject *resultobj = 0;
6103 wxString *arg1 = 0 ;
6104 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6105 wxBitmap *result = 0 ;
6106 bool temp1 = false ;
6107 int val2 ;
6108 int ecode2 = 0 ;
6109 PyObject * obj0 = 0 ;
6110 PyObject * obj1 = 0 ;
6111 char * kwnames[] = {
6112 (char *) "name",(char *) "type", NULL
6113 };
6114
6115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6116 {
6117 arg1 = wxString_in_helper(obj0);
6118 if (arg1 == NULL) SWIG_fail;
6119 temp1 = true;
6120 }
6121 if (obj1) {
6122 ecode2 = SWIG_AsVal_int(obj1, &val2);
6123 if (!SWIG_IsOK(ecode2)) {
6124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6125 }
6126 arg2 = static_cast< wxBitmapType >(val2);
6127 }
6128 {
6129 if (!wxPyCheckForApp()) SWIG_fail;
6130 PyThreadState* __tstate = wxPyBeginAllowThreads();
6131 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6132 wxPyEndAllowThreads(__tstate);
6133 if (PyErr_Occurred()) SWIG_fail;
6134 }
6135 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6136 {
6137 if (temp1)
6138 delete arg1;
6139 }
6140 return resultobj;
6141 fail:
6142 {
6143 if (temp1)
6144 delete arg1;
6145 }
6146 return NULL;
6147 }
6148
6149
6150 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6151 PyObject *resultobj = 0;
6152 wxBitmap *arg1 = (wxBitmap *) 0 ;
6153 void *argp1 = 0 ;
6154 int res1 = 0 ;
6155 PyObject *swig_obj[1] ;
6156
6157 if (!args) SWIG_fail;
6158 swig_obj[0] = args;
6159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6160 if (!SWIG_IsOK(res1)) {
6161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6162 }
6163 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6164 {
6165 delete arg1;
6166
6167 if (PyErr_Occurred()) SWIG_fail;
6168 }
6169 resultobj = SWIG_Py_Void();
6170 return resultobj;
6171 fail:
6172 return NULL;
6173 }
6174
6175
6176 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6177 PyObject *resultobj = 0;
6178 int arg1 ;
6179 int arg2 ;
6180 int arg3 = (int) -1 ;
6181 wxBitmap *result = 0 ;
6182 int val1 ;
6183 int ecode1 = 0 ;
6184 int val2 ;
6185 int ecode2 = 0 ;
6186 int val3 ;
6187 int ecode3 = 0 ;
6188 PyObject * obj0 = 0 ;
6189 PyObject * obj1 = 0 ;
6190 PyObject * obj2 = 0 ;
6191 char * kwnames[] = {
6192 (char *) "width",(char *) "height",(char *) "depth", NULL
6193 };
6194
6195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6196 ecode1 = SWIG_AsVal_int(obj0, &val1);
6197 if (!SWIG_IsOK(ecode1)) {
6198 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6199 }
6200 arg1 = static_cast< int >(val1);
6201 ecode2 = SWIG_AsVal_int(obj1, &val2);
6202 if (!SWIG_IsOK(ecode2)) {
6203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6204 }
6205 arg2 = static_cast< int >(val2);
6206 if (obj2) {
6207 ecode3 = SWIG_AsVal_int(obj2, &val3);
6208 if (!SWIG_IsOK(ecode3)) {
6209 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6210 }
6211 arg3 = static_cast< int >(val3);
6212 }
6213 {
6214 if (!wxPyCheckForApp()) SWIG_fail;
6215 PyThreadState* __tstate = wxPyBeginAllowThreads();
6216 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6217 wxPyEndAllowThreads(__tstate);
6218 if (PyErr_Occurred()) SWIG_fail;
6219 }
6220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6221 return resultobj;
6222 fail:
6223 return NULL;
6224 }
6225
6226
6227 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6228 PyObject *resultobj = 0;
6229 wxIcon *arg1 = 0 ;
6230 wxBitmap *result = 0 ;
6231 void *argp1 = 0 ;
6232 int res1 = 0 ;
6233 PyObject * obj0 = 0 ;
6234 char * kwnames[] = {
6235 (char *) "icon", NULL
6236 };
6237
6238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6239 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6240 if (!SWIG_IsOK(res1)) {
6241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6242 }
6243 if (!argp1) {
6244 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6245 }
6246 arg1 = reinterpret_cast< wxIcon * >(argp1);
6247 {
6248 if (!wxPyCheckForApp()) SWIG_fail;
6249 PyThreadState* __tstate = wxPyBeginAllowThreads();
6250 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6251 wxPyEndAllowThreads(__tstate);
6252 if (PyErr_Occurred()) SWIG_fail;
6253 }
6254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6255 return resultobj;
6256 fail:
6257 return NULL;
6258 }
6259
6260
6261 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6262 PyObject *resultobj = 0;
6263 wxImage *arg1 = 0 ;
6264 int arg2 = (int) -1 ;
6265 wxBitmap *result = 0 ;
6266 void *argp1 = 0 ;
6267 int res1 = 0 ;
6268 int val2 ;
6269 int ecode2 = 0 ;
6270 PyObject * obj0 = 0 ;
6271 PyObject * obj1 = 0 ;
6272 char * kwnames[] = {
6273 (char *) "image",(char *) "depth", NULL
6274 };
6275
6276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6277 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6278 if (!SWIG_IsOK(res1)) {
6279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6280 }
6281 if (!argp1) {
6282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6283 }
6284 arg1 = reinterpret_cast< wxImage * >(argp1);
6285 if (obj1) {
6286 ecode2 = SWIG_AsVal_int(obj1, &val2);
6287 if (!SWIG_IsOK(ecode2)) {
6288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6289 }
6290 arg2 = static_cast< int >(val2);
6291 }
6292 {
6293 if (!wxPyCheckForApp()) SWIG_fail;
6294 PyThreadState* __tstate = wxPyBeginAllowThreads();
6295 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6296 wxPyEndAllowThreads(__tstate);
6297 if (PyErr_Occurred()) SWIG_fail;
6298 }
6299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6300 return resultobj;
6301 fail:
6302 return NULL;
6303 }
6304
6305
6306 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6307 PyObject *resultobj = 0;
6308 PyObject *arg1 = (PyObject *) 0 ;
6309 wxBitmap *result = 0 ;
6310 PyObject * obj0 = 0 ;
6311 char * kwnames[] = {
6312 (char *) "listOfStrings", NULL
6313 };
6314
6315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6316 arg1 = obj0;
6317 {
6318 if (!wxPyCheckForApp()) SWIG_fail;
6319 PyThreadState* __tstate = wxPyBeginAllowThreads();
6320 result = (wxBitmap *)new_wxBitmap(arg1);
6321 wxPyEndAllowThreads(__tstate);
6322 if (PyErr_Occurred()) SWIG_fail;
6323 }
6324 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6325 return resultobj;
6326 fail:
6327 return NULL;
6328 }
6329
6330
6331 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6332 PyObject *resultobj = 0;
6333 PyObject *arg1 = (PyObject *) 0 ;
6334 int arg2 ;
6335 int arg3 ;
6336 int arg4 = (int) 1 ;
6337 wxBitmap *result = 0 ;
6338 int val2 ;
6339 int ecode2 = 0 ;
6340 int val3 ;
6341 int ecode3 = 0 ;
6342 int val4 ;
6343 int ecode4 = 0 ;
6344 PyObject * obj0 = 0 ;
6345 PyObject * obj1 = 0 ;
6346 PyObject * obj2 = 0 ;
6347 PyObject * obj3 = 0 ;
6348 char * kwnames[] = {
6349 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6350 };
6351
6352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6353 arg1 = obj0;
6354 ecode2 = SWIG_AsVal_int(obj1, &val2);
6355 if (!SWIG_IsOK(ecode2)) {
6356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6357 }
6358 arg2 = static_cast< int >(val2);
6359 ecode3 = SWIG_AsVal_int(obj2, &val3);
6360 if (!SWIG_IsOK(ecode3)) {
6361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6362 }
6363 arg3 = static_cast< int >(val3);
6364 if (obj3) {
6365 ecode4 = SWIG_AsVal_int(obj3, &val4);
6366 if (!SWIG_IsOK(ecode4)) {
6367 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6368 }
6369 arg4 = static_cast< int >(val4);
6370 }
6371 {
6372 if (!wxPyCheckForApp()) SWIG_fail;
6373 PyThreadState* __tstate = wxPyBeginAllowThreads();
6374 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6375 wxPyEndAllowThreads(__tstate);
6376 if (PyErr_Occurred()) SWIG_fail;
6377 }
6378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6379 return resultobj;
6380 fail:
6381 return NULL;
6382 }
6383
6384
6385 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6386 PyObject *resultobj = 0;
6387 wxBitmap *arg1 = (wxBitmap *) 0 ;
6388 long result;
6389 void *argp1 = 0 ;
6390 int res1 = 0 ;
6391 PyObject *swig_obj[1] ;
6392
6393 if (!args) SWIG_fail;
6394 swig_obj[0] = args;
6395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6396 if (!SWIG_IsOK(res1)) {
6397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6398 }
6399 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6400 {
6401 result = (long)(arg1)->GetHandle();
6402 if (PyErr_Occurred()) SWIG_fail;
6403 }
6404 resultobj = SWIG_From_long(static_cast< long >(result));
6405 return resultobj;
6406 fail:
6407 return NULL;
6408 }
6409
6410
6411 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6412 PyObject *resultobj = 0;
6413 wxBitmap *arg1 = (wxBitmap *) 0 ;
6414 long arg2 ;
6415 void *argp1 = 0 ;
6416 int res1 = 0 ;
6417 long val2 ;
6418 int ecode2 = 0 ;
6419 PyObject * obj0 = 0 ;
6420 PyObject * obj1 = 0 ;
6421 char * kwnames[] = {
6422 (char *) "self",(char *) "handle", NULL
6423 };
6424
6425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6427 if (!SWIG_IsOK(res1)) {
6428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6429 }
6430 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6431 ecode2 = SWIG_AsVal_long(obj1, &val2);
6432 if (!SWIG_IsOK(ecode2)) {
6433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6434 }
6435 arg2 = static_cast< long >(val2);
6436 {
6437 wxBitmap_SetHandle(arg1,arg2);
6438 if (PyErr_Occurred()) SWIG_fail;
6439 }
6440 resultobj = SWIG_Py_Void();
6441 return resultobj;
6442 fail:
6443 return NULL;
6444 }
6445
6446
6447 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6448 PyObject *resultobj = 0;
6449 wxBitmap *arg1 = (wxBitmap *) 0 ;
6450 bool result;
6451 void *argp1 = 0 ;
6452 int res1 = 0 ;
6453 PyObject *swig_obj[1] ;
6454
6455 if (!args) SWIG_fail;
6456 swig_obj[0] = args;
6457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6458 if (!SWIG_IsOK(res1)) {
6459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6460 }
6461 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6462 {
6463 result = (bool)(arg1)->IsOk();
6464 if (PyErr_Occurred()) SWIG_fail;
6465 }
6466 {
6467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6468 }
6469 return resultobj;
6470 fail:
6471 return NULL;
6472 }
6473
6474
6475 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6476 PyObject *resultobj = 0;
6477 wxBitmap *arg1 = (wxBitmap *) 0 ;
6478 int result;
6479 void *argp1 = 0 ;
6480 int res1 = 0 ;
6481 PyObject *swig_obj[1] ;
6482
6483 if (!args) SWIG_fail;
6484 swig_obj[0] = args;
6485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6486 if (!SWIG_IsOK(res1)) {
6487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6488 }
6489 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6490 {
6491 result = (int)(arg1)->GetWidth();
6492 if (PyErr_Occurred()) SWIG_fail;
6493 }
6494 resultobj = SWIG_From_int(static_cast< int >(result));
6495 return resultobj;
6496 fail:
6497 return NULL;
6498 }
6499
6500
6501 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6502 PyObject *resultobj = 0;
6503 wxBitmap *arg1 = (wxBitmap *) 0 ;
6504 int result;
6505 void *argp1 = 0 ;
6506 int res1 = 0 ;
6507 PyObject *swig_obj[1] ;
6508
6509 if (!args) SWIG_fail;
6510 swig_obj[0] = args;
6511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6512 if (!SWIG_IsOK(res1)) {
6513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6514 }
6515 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6516 {
6517 result = (int)(arg1)->GetHeight();
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 resultobj = SWIG_From_int(static_cast< int >(result));
6521 return resultobj;
6522 fail:
6523 return NULL;
6524 }
6525
6526
6527 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6528 PyObject *resultobj = 0;
6529 wxBitmap *arg1 = (wxBitmap *) 0 ;
6530 int result;
6531 void *argp1 = 0 ;
6532 int res1 = 0 ;
6533 PyObject *swig_obj[1] ;
6534
6535 if (!args) SWIG_fail;
6536 swig_obj[0] = args;
6537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6538 if (!SWIG_IsOK(res1)) {
6539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6540 }
6541 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6542 {
6543 result = (int)(arg1)->GetDepth();
6544 if (PyErr_Occurred()) SWIG_fail;
6545 }
6546 resultobj = SWIG_From_int(static_cast< int >(result));
6547 return resultobj;
6548 fail:
6549 return NULL;
6550 }
6551
6552
6553 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6554 PyObject *resultobj = 0;
6555 wxBitmap *arg1 = (wxBitmap *) 0 ;
6556 wxSize result;
6557 void *argp1 = 0 ;
6558 int res1 = 0 ;
6559 PyObject *swig_obj[1] ;
6560
6561 if (!args) SWIG_fail;
6562 swig_obj[0] = args;
6563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6564 if (!SWIG_IsOK(res1)) {
6565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6566 }
6567 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6568 {
6569 result = wxBitmap_GetSize(arg1);
6570 if (PyErr_Occurred()) SWIG_fail;
6571 }
6572 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6573 return resultobj;
6574 fail:
6575 return NULL;
6576 }
6577
6578
6579 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6580 PyObject *resultobj = 0;
6581 wxBitmap *arg1 = (wxBitmap *) 0 ;
6582 SwigValueWrapper<wxImage > result;
6583 void *argp1 = 0 ;
6584 int res1 = 0 ;
6585 PyObject *swig_obj[1] ;
6586
6587 if (!args) SWIG_fail;
6588 swig_obj[0] = args;
6589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6590 if (!SWIG_IsOK(res1)) {
6591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6592 }
6593 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6594 {
6595 result = ((wxBitmap const *)arg1)->ConvertToImage();
6596 if (PyErr_Occurred()) SWIG_fail;
6597 }
6598 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6599 return resultobj;
6600 fail:
6601 return NULL;
6602 }
6603
6604
6605 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6606 PyObject *resultobj = 0;
6607 wxBitmap *arg1 = (wxBitmap *) 0 ;
6608 wxMask *result = 0 ;
6609 void *argp1 = 0 ;
6610 int res1 = 0 ;
6611 PyObject *swig_obj[1] ;
6612
6613 if (!args) SWIG_fail;
6614 swig_obj[0] = args;
6615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6616 if (!SWIG_IsOK(res1)) {
6617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6618 }
6619 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6620 {
6621 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6622 if (PyErr_Occurred()) SWIG_fail;
6623 }
6624 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6625 return resultobj;
6626 fail:
6627 return NULL;
6628 }
6629
6630
6631 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6632 PyObject *resultobj = 0;
6633 wxBitmap *arg1 = (wxBitmap *) 0 ;
6634 wxMask *arg2 = (wxMask *) 0 ;
6635 void *argp1 = 0 ;
6636 int res1 = 0 ;
6637 int res2 = 0 ;
6638 PyObject * obj0 = 0 ;
6639 PyObject * obj1 = 0 ;
6640 char * kwnames[] = {
6641 (char *) "self",(char *) "mask", NULL
6642 };
6643
6644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6646 if (!SWIG_IsOK(res1)) {
6647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6648 }
6649 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6650 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6651 if (!SWIG_IsOK(res2)) {
6652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6653 }
6654 {
6655 (arg1)->SetMask(arg2);
6656 if (PyErr_Occurred()) SWIG_fail;
6657 }
6658 resultobj = SWIG_Py_Void();
6659 return resultobj;
6660 fail:
6661 return NULL;
6662 }
6663
6664
6665 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6666 PyObject *resultobj = 0;
6667 wxBitmap *arg1 = (wxBitmap *) 0 ;
6668 wxColour *arg2 = 0 ;
6669 void *argp1 = 0 ;
6670 int res1 = 0 ;
6671 wxColour temp2 ;
6672 PyObject * obj0 = 0 ;
6673 PyObject * obj1 = 0 ;
6674 char * kwnames[] = {
6675 (char *) "self",(char *) "colour", NULL
6676 };
6677
6678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6680 if (!SWIG_IsOK(res1)) {
6681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6682 }
6683 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6684 {
6685 arg2 = &temp2;
6686 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6687 }
6688 {
6689 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6690 if (PyErr_Occurred()) SWIG_fail;
6691 }
6692 resultobj = SWIG_Py_Void();
6693 return resultobj;
6694 fail:
6695 return NULL;
6696 }
6697
6698
6699 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6700 PyObject *resultobj = 0;
6701 wxBitmap *arg1 = (wxBitmap *) 0 ;
6702 wxRect *arg2 = 0 ;
6703 SwigValueWrapper<wxBitmap > result;
6704 void *argp1 = 0 ;
6705 int res1 = 0 ;
6706 wxRect temp2 ;
6707 PyObject * obj0 = 0 ;
6708 PyObject * obj1 = 0 ;
6709 char * kwnames[] = {
6710 (char *) "self",(char *) "rect", NULL
6711 };
6712
6713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6715 if (!SWIG_IsOK(res1)) {
6716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6717 }
6718 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6719 {
6720 arg2 = &temp2;
6721 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6722 }
6723 {
6724 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6725 if (PyErr_Occurred()) SWIG_fail;
6726 }
6727 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6728 return resultobj;
6729 fail:
6730 return NULL;
6731 }
6732
6733
6734 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6735 PyObject *resultobj = 0;
6736 wxBitmap *arg1 = (wxBitmap *) 0 ;
6737 wxString *arg2 = 0 ;
6738 wxBitmapType arg3 ;
6739 wxPalette *arg4 = (wxPalette *) NULL ;
6740 bool result;
6741 void *argp1 = 0 ;
6742 int res1 = 0 ;
6743 bool temp2 = false ;
6744 int val3 ;
6745 int ecode3 = 0 ;
6746 void *argp4 = 0 ;
6747 int res4 = 0 ;
6748 PyObject * obj0 = 0 ;
6749 PyObject * obj1 = 0 ;
6750 PyObject * obj2 = 0 ;
6751 PyObject * obj3 = 0 ;
6752 char * kwnames[] = {
6753 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6754 };
6755
6756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6758 if (!SWIG_IsOK(res1)) {
6759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6760 }
6761 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6762 {
6763 arg2 = wxString_in_helper(obj1);
6764 if (arg2 == NULL) SWIG_fail;
6765 temp2 = true;
6766 }
6767 ecode3 = SWIG_AsVal_int(obj2, &val3);
6768 if (!SWIG_IsOK(ecode3)) {
6769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6770 }
6771 arg3 = static_cast< wxBitmapType >(val3);
6772 if (obj3) {
6773 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6774 if (!SWIG_IsOK(res4)) {
6775 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6776 }
6777 arg4 = reinterpret_cast< wxPalette * >(argp4);
6778 }
6779 {
6780 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6781 if (PyErr_Occurred()) SWIG_fail;
6782 }
6783 {
6784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6785 }
6786 {
6787 if (temp2)
6788 delete arg2;
6789 }
6790 return resultobj;
6791 fail:
6792 {
6793 if (temp2)
6794 delete arg2;
6795 }
6796 return NULL;
6797 }
6798
6799
6800 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6801 PyObject *resultobj = 0;
6802 wxBitmap *arg1 = (wxBitmap *) 0 ;
6803 wxString *arg2 = 0 ;
6804 wxBitmapType arg3 ;
6805 bool result;
6806 void *argp1 = 0 ;
6807 int res1 = 0 ;
6808 bool temp2 = false ;
6809 int val3 ;
6810 int ecode3 = 0 ;
6811 PyObject * obj0 = 0 ;
6812 PyObject * obj1 = 0 ;
6813 PyObject * obj2 = 0 ;
6814 char * kwnames[] = {
6815 (char *) "self",(char *) "name",(char *) "type", NULL
6816 };
6817
6818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6820 if (!SWIG_IsOK(res1)) {
6821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6822 }
6823 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6824 {
6825 arg2 = wxString_in_helper(obj1);
6826 if (arg2 == NULL) SWIG_fail;
6827 temp2 = true;
6828 }
6829 ecode3 = SWIG_AsVal_int(obj2, &val3);
6830 if (!SWIG_IsOK(ecode3)) {
6831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6832 }
6833 arg3 = static_cast< wxBitmapType >(val3);
6834 {
6835 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6836 if (PyErr_Occurred()) SWIG_fail;
6837 }
6838 {
6839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6840 }
6841 {
6842 if (temp2)
6843 delete arg2;
6844 }
6845 return resultobj;
6846 fail:
6847 {
6848 if (temp2)
6849 delete arg2;
6850 }
6851 return NULL;
6852 }
6853
6854
6855 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6856 PyObject *resultobj = 0;
6857 wxBitmap *arg1 = (wxBitmap *) 0 ;
6858 wxPalette *result = 0 ;
6859 void *argp1 = 0 ;
6860 int res1 = 0 ;
6861 PyObject *swig_obj[1] ;
6862
6863 if (!args) SWIG_fail;
6864 swig_obj[0] = args;
6865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6866 if (!SWIG_IsOK(res1)) {
6867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6868 }
6869 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6870 {
6871 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6872 if (PyErr_Occurred()) SWIG_fail;
6873 }
6874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6875 return resultobj;
6876 fail:
6877 return NULL;
6878 }
6879
6880
6881 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6882 PyObject *resultobj = 0;
6883 wxBitmap *arg1 = (wxBitmap *) 0 ;
6884 wxPalette *arg2 = 0 ;
6885 void *argp1 = 0 ;
6886 int res1 = 0 ;
6887 void *argp2 = 0 ;
6888 int res2 = 0 ;
6889 PyObject * obj0 = 0 ;
6890 PyObject * obj1 = 0 ;
6891 char * kwnames[] = {
6892 (char *) "self",(char *) "palette", NULL
6893 };
6894
6895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6897 if (!SWIG_IsOK(res1)) {
6898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6899 }
6900 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6901 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6902 if (!SWIG_IsOK(res2)) {
6903 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6904 }
6905 if (!argp2) {
6906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6907 }
6908 arg2 = reinterpret_cast< wxPalette * >(argp2);
6909 {
6910 (arg1)->SetPalette((wxPalette const &)*arg2);
6911 if (PyErr_Occurred()) SWIG_fail;
6912 }
6913 resultobj = SWIG_Py_Void();
6914 return resultobj;
6915 fail:
6916 return NULL;
6917 }
6918
6919
6920 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6921 PyObject *resultobj = 0;
6922 wxBitmap *arg1 = (wxBitmap *) 0 ;
6923 wxIcon *arg2 = 0 ;
6924 bool result;
6925 void *argp1 = 0 ;
6926 int res1 = 0 ;
6927 void *argp2 = 0 ;
6928 int res2 = 0 ;
6929 PyObject * obj0 = 0 ;
6930 PyObject * obj1 = 0 ;
6931 char * kwnames[] = {
6932 (char *) "self",(char *) "icon", NULL
6933 };
6934
6935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6937 if (!SWIG_IsOK(res1)) {
6938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6939 }
6940 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6941 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6942 if (!SWIG_IsOK(res2)) {
6943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6944 }
6945 if (!argp2) {
6946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6947 }
6948 arg2 = reinterpret_cast< wxIcon * >(argp2);
6949 {
6950 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6951 if (PyErr_Occurred()) SWIG_fail;
6952 }
6953 {
6954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6955 }
6956 return resultobj;
6957 fail:
6958 return NULL;
6959 }
6960
6961
6962 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6963 PyObject *resultobj = 0;
6964 wxBitmap *arg1 = (wxBitmap *) 0 ;
6965 int arg2 ;
6966 void *argp1 = 0 ;
6967 int res1 = 0 ;
6968 int val2 ;
6969 int ecode2 = 0 ;
6970 PyObject * obj0 = 0 ;
6971 PyObject * obj1 = 0 ;
6972 char * kwnames[] = {
6973 (char *) "self",(char *) "height", NULL
6974 };
6975
6976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6978 if (!SWIG_IsOK(res1)) {
6979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6980 }
6981 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6982 ecode2 = SWIG_AsVal_int(obj1, &val2);
6983 if (!SWIG_IsOK(ecode2)) {
6984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6985 }
6986 arg2 = static_cast< int >(val2);
6987 {
6988 (arg1)->SetHeight(arg2);
6989 if (PyErr_Occurred()) SWIG_fail;
6990 }
6991 resultobj = SWIG_Py_Void();
6992 return resultobj;
6993 fail:
6994 return NULL;
6995 }
6996
6997
6998 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6999 PyObject *resultobj = 0;
7000 wxBitmap *arg1 = (wxBitmap *) 0 ;
7001 int arg2 ;
7002 void *argp1 = 0 ;
7003 int res1 = 0 ;
7004 int val2 ;
7005 int ecode2 = 0 ;
7006 PyObject * obj0 = 0 ;
7007 PyObject * obj1 = 0 ;
7008 char * kwnames[] = {
7009 (char *) "self",(char *) "width", NULL
7010 };
7011
7012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7014 if (!SWIG_IsOK(res1)) {
7015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7016 }
7017 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7018 ecode2 = SWIG_AsVal_int(obj1, &val2);
7019 if (!SWIG_IsOK(ecode2)) {
7020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
7021 }
7022 arg2 = static_cast< int >(val2);
7023 {
7024 (arg1)->SetWidth(arg2);
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_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7035 PyObject *resultobj = 0;
7036 wxBitmap *arg1 = (wxBitmap *) 0 ;
7037 int arg2 ;
7038 void *argp1 = 0 ;
7039 int res1 = 0 ;
7040 int val2 ;
7041 int ecode2 = 0 ;
7042 PyObject * obj0 = 0 ;
7043 PyObject * obj1 = 0 ;
7044 char * kwnames[] = {
7045 (char *) "self",(char *) "depth", NULL
7046 };
7047
7048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7050 if (!SWIG_IsOK(res1)) {
7051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7052 }
7053 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7054 ecode2 = SWIG_AsVal_int(obj1, &val2);
7055 if (!SWIG_IsOK(ecode2)) {
7056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
7057 }
7058 arg2 = static_cast< int >(val2);
7059 {
7060 (arg1)->SetDepth(arg2);
7061 if (PyErr_Occurred()) SWIG_fail;
7062 }
7063 resultobj = SWIG_Py_Void();
7064 return resultobj;
7065 fail:
7066 return NULL;
7067 }
7068
7069
7070 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7071 PyObject *resultobj = 0;
7072 wxBitmap *arg1 = (wxBitmap *) 0 ;
7073 wxSize *arg2 = 0 ;
7074 void *argp1 = 0 ;
7075 int res1 = 0 ;
7076 wxSize temp2 ;
7077 PyObject * obj0 = 0 ;
7078 PyObject * obj1 = 0 ;
7079 char * kwnames[] = {
7080 (char *) "self",(char *) "size", NULL
7081 };
7082
7083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7085 if (!SWIG_IsOK(res1)) {
7086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7087 }
7088 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7089 {
7090 arg2 = &temp2;
7091 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7092 }
7093 {
7094 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
7095 if (PyErr_Occurred()) SWIG_fail;
7096 }
7097 resultobj = SWIG_Py_Void();
7098 return resultobj;
7099 fail:
7100 return NULL;
7101 }
7102
7103
7104 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7105 PyObject *resultobj = 0;
7106 wxBitmap *arg1 = (wxBitmap *) 0 ;
7107 wxCursor *arg2 = 0 ;
7108 bool result;
7109 void *argp1 = 0 ;
7110 int res1 = 0 ;
7111 void *argp2 = 0 ;
7112 int res2 = 0 ;
7113 PyObject * obj0 = 0 ;
7114 PyObject * obj1 = 0 ;
7115 char * kwnames[] = {
7116 (char *) "self",(char *) "cursor", NULL
7117 };
7118
7119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
7120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7121 if (!SWIG_IsOK(res1)) {
7122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
7123 }
7124 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7125 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
7126 if (!SWIG_IsOK(res2)) {
7127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7128 }
7129 if (!argp2) {
7130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7131 }
7132 arg2 = reinterpret_cast< wxCursor * >(argp2);
7133 {
7134 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
7135 if (PyErr_Occurred()) SWIG_fail;
7136 }
7137 {
7138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7139 }
7140 return resultobj;
7141 fail:
7142 return NULL;
7143 }
7144
7145
7146 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7147 PyObject *resultobj = 0;
7148 wxBitmap *arg1 = (wxBitmap *) 0 ;
7149 buffer arg2 ;
7150 int arg3 ;
7151 void *argp1 = 0 ;
7152 int res1 = 0 ;
7153 Py_ssize_t temp2 ;
7154 PyObject * obj0 = 0 ;
7155 PyObject * obj1 = 0 ;
7156 char * kwnames[] = {
7157 (char *) "self",(char *) "data", NULL
7158 };
7159
7160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7162 if (!SWIG_IsOK(res1)) {
7163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7164 }
7165 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7166 {
7167 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7168 arg3 = (int)temp2;
7169 }
7170 {
7171 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7172 if (PyErr_Occurred()) SWIG_fail;
7173 }
7174 resultobj = SWIG_Py_Void();
7175 return resultobj;
7176 fail:
7177 return NULL;
7178 }
7179
7180
7181 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7182 PyObject *resultobj = 0;
7183 wxBitmap *arg1 = (wxBitmap *) 0 ;
7184 buffer arg2 ;
7185 int arg3 ;
7186 void *argp1 = 0 ;
7187 int res1 = 0 ;
7188 Py_ssize_t temp2 ;
7189 PyObject * obj0 = 0 ;
7190 PyObject * obj1 = 0 ;
7191 char * kwnames[] = {
7192 (char *) "self",(char *) "data", NULL
7193 };
7194
7195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7197 if (!SWIG_IsOK(res1)) {
7198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7199 }
7200 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7201 {
7202 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7203 arg3 = (int)temp2;
7204 }
7205 {
7206 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7207 if (PyErr_Occurred()) SWIG_fail;
7208 }
7209 resultobj = SWIG_Py_Void();
7210 return resultobj;
7211 fail:
7212 return NULL;
7213 }
7214
7215
7216 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7217 PyObject *resultobj = 0;
7218 wxBitmap *arg1 = (wxBitmap *) 0 ;
7219 wxBitmap *arg2 = (wxBitmap *) 0 ;
7220 bool result;
7221 void *argp1 = 0 ;
7222 int res1 = 0 ;
7223 void *argp2 = 0 ;
7224 int res2 = 0 ;
7225 PyObject * obj0 = 0 ;
7226 PyObject * obj1 = 0 ;
7227 char * kwnames[] = {
7228 (char *) "self",(char *) "other", NULL
7229 };
7230
7231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7233 if (!SWIG_IsOK(res1)) {
7234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7235 }
7236 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7237 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7238 if (!SWIG_IsOK(res2)) {
7239 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7240 }
7241 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7242 {
7243 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
7244 if (PyErr_Occurred()) SWIG_fail;
7245 }
7246 {
7247 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7248 }
7249 return resultobj;
7250 fail:
7251 return NULL;
7252 }
7253
7254
7255 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7256 PyObject *resultobj = 0;
7257 wxBitmap *arg1 = (wxBitmap *) 0 ;
7258 wxBitmap *arg2 = (wxBitmap *) 0 ;
7259 bool result;
7260 void *argp1 = 0 ;
7261 int res1 = 0 ;
7262 void *argp2 = 0 ;
7263 int res2 = 0 ;
7264 PyObject * obj0 = 0 ;
7265 PyObject * obj1 = 0 ;
7266 char * kwnames[] = {
7267 (char *) "self",(char *) "other", NULL
7268 };
7269
7270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7272 if (!SWIG_IsOK(res1)) {
7273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7274 }
7275 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7276 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7277 if (!SWIG_IsOK(res2)) {
7278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7279 }
7280 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7281 {
7282 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7283 if (PyErr_Occurred()) SWIG_fail;
7284 }
7285 {
7286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7287 }
7288 return resultobj;
7289 fail:
7290 return NULL;
7291 }
7292
7293
7294 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7295 PyObject *obj;
7296 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7297 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7298 return SWIG_Py_Void();
7299 }
7300
7301 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7302 return SWIG_Python_InitShadowInstance(args);
7303 }
7304
7305 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7306 PyObject *resultobj = 0;
7307 int arg1 ;
7308 int arg2 ;
7309 buffer arg3 ;
7310 int arg4 ;
7311 buffer arg5 ;
7312 int arg6 ;
7313 wxBitmap *result = 0 ;
7314 int val1 ;
7315 int ecode1 = 0 ;
7316 int val2 ;
7317 int ecode2 = 0 ;
7318 Py_ssize_t temp3 ;
7319 Py_ssize_t temp5 ;
7320 PyObject * obj0 = 0 ;
7321 PyObject * obj1 = 0 ;
7322 PyObject * obj2 = 0 ;
7323 PyObject * obj3 = 0 ;
7324 char * kwnames[] = {
7325 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7326 };
7327
7328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7329 ecode1 = SWIG_AsVal_int(obj0, &val1);
7330 if (!SWIG_IsOK(ecode1)) {
7331 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7332 }
7333 arg1 = static_cast< int >(val1);
7334 ecode2 = SWIG_AsVal_int(obj1, &val2);
7335 if (!SWIG_IsOK(ecode2)) {
7336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7337 }
7338 arg2 = static_cast< int >(val2);
7339 {
7340 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7341 arg4 = (int)temp3;
7342 }
7343 {
7344 if (obj3 != Py_None) {
7345 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7346 arg6 = (int)temp5;
7347 }
7348 }
7349 {
7350 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7351 if (PyErr_Occurred()) SWIG_fail;
7352 }
7353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7354 return resultobj;
7355 fail:
7356 return NULL;
7357 }
7358
7359
7360 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7361 PyObject *resultobj = 0;
7362 int arg1 ;
7363 int arg2 ;
7364 buffer arg3 ;
7365 int arg4 ;
7366 wxBitmap *result = 0 ;
7367 int val1 ;
7368 int ecode1 = 0 ;
7369 int val2 ;
7370 int ecode2 = 0 ;
7371 Py_ssize_t temp3 ;
7372 PyObject * obj0 = 0 ;
7373 PyObject * obj1 = 0 ;
7374 PyObject * obj2 = 0 ;
7375 char * kwnames[] = {
7376 (char *) "width",(char *) "height",(char *) "data", NULL
7377 };
7378
7379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7380 ecode1 = SWIG_AsVal_int(obj0, &val1);
7381 if (!SWIG_IsOK(ecode1)) {
7382 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7383 }
7384 arg1 = static_cast< int >(val1);
7385 ecode2 = SWIG_AsVal_int(obj1, &val2);
7386 if (!SWIG_IsOK(ecode2)) {
7387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7388 }
7389 arg2 = static_cast< int >(val2);
7390 {
7391 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7392 arg4 = (int)temp3;
7393 }
7394 {
7395 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7396 if (PyErr_Occurred()) SWIG_fail;
7397 }
7398 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7399 return resultobj;
7400 fail:
7401 return NULL;
7402 }
7403
7404
7405 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7406 PyObject *resultobj = 0;
7407 int arg1 ;
7408 int arg2 ;
7409 buffer arg3 ;
7410 int arg4 ;
7411 wxBitmap *result = 0 ;
7412 int val1 ;
7413 int ecode1 = 0 ;
7414 int val2 ;
7415 int ecode2 = 0 ;
7416 Py_ssize_t temp3 ;
7417 PyObject * obj0 = 0 ;
7418 PyObject * obj1 = 0 ;
7419 PyObject * obj2 = 0 ;
7420 char * kwnames[] = {
7421 (char *) "width",(char *) "height",(char *) "data", NULL
7422 };
7423
7424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7425 ecode1 = SWIG_AsVal_int(obj0, &val1);
7426 if (!SWIG_IsOK(ecode1)) {
7427 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7428 }
7429 arg1 = static_cast< int >(val1);
7430 ecode2 = SWIG_AsVal_int(obj1, &val2);
7431 if (!SWIG_IsOK(ecode2)) {
7432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7433 }
7434 arg2 = static_cast< int >(val2);
7435 {
7436 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7437 arg4 = (int)temp3;
7438 }
7439 {
7440 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7441 if (PyErr_Occurred()) SWIG_fail;
7442 }
7443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7444 return resultobj;
7445 fail:
7446 return NULL;
7447 }
7448
7449
7450 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7451 PyObject *resultobj = 0;
7452 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7453 wxPoint result;
7454 void *argp1 = 0 ;
7455 int res1 = 0 ;
7456 PyObject *swig_obj[1] ;
7457
7458 if (!args) SWIG_fail;
7459 swig_obj[0] = args;
7460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7461 if (!SWIG_IsOK(res1)) {
7462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7463 }
7464 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7465 {
7466 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7467 if (PyErr_Occurred()) SWIG_fail;
7468 }
7469 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7470 return resultobj;
7471 fail:
7472 return NULL;
7473 }
7474
7475
7476 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7477 PyObject *resultobj = 0;
7478 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7479 int result;
7480 void *argp1 = 0 ;
7481 int res1 = 0 ;
7482 PyObject *swig_obj[1] ;
7483
7484 if (!args) SWIG_fail;
7485 swig_obj[0] = args;
7486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7487 if (!SWIG_IsOK(res1)) {
7488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7489 }
7490 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7491 {
7492 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7493 if (PyErr_Occurred()) SWIG_fail;
7494 }
7495 resultobj = SWIG_From_int(static_cast< int >(result));
7496 return resultobj;
7497 fail:
7498 return NULL;
7499 }
7500
7501
7502 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7503 PyObject *resultobj = 0;
7504 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7505 int result;
7506 void *argp1 = 0 ;
7507 int res1 = 0 ;
7508 PyObject *swig_obj[1] ;
7509
7510 if (!args) SWIG_fail;
7511 swig_obj[0] = args;
7512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7513 if (!SWIG_IsOK(res1)) {
7514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7515 }
7516 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7517 {
7518 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7519 if (PyErr_Occurred()) SWIG_fail;
7520 }
7521 resultobj = SWIG_From_int(static_cast< int >(result));
7522 return resultobj;
7523 fail:
7524 return NULL;
7525 }
7526
7527
7528 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7529 PyObject *resultobj = 0;
7530 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7531 wxSize result;
7532 void *argp1 = 0 ;
7533 int res1 = 0 ;
7534 PyObject *swig_obj[1] ;
7535
7536 if (!args) SWIG_fail;
7537 swig_obj[0] = args;
7538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7539 if (!SWIG_IsOK(res1)) {
7540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7541 }
7542 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7543 {
7544 result = ((wxPixelDataBase const *)arg1)->GetSize();
7545 if (PyErr_Occurred()) SWIG_fail;
7546 }
7547 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7548 return resultobj;
7549 fail:
7550 return NULL;
7551 }
7552
7553
7554 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7555 PyObject *resultobj = 0;
7556 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7557 int result;
7558 void *argp1 = 0 ;
7559 int res1 = 0 ;
7560 PyObject *swig_obj[1] ;
7561
7562 if (!args) SWIG_fail;
7563 swig_obj[0] = args;
7564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7565 if (!SWIG_IsOK(res1)) {
7566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7567 }
7568 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7569 {
7570 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7571 if (PyErr_Occurred()) SWIG_fail;
7572 }
7573 resultobj = SWIG_From_int(static_cast< int >(result));
7574 return resultobj;
7575 fail:
7576 return NULL;
7577 }
7578
7579
7580 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7581 PyObject *obj;
7582 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7583 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7584 return SWIG_Py_Void();
7585 }
7586
7587 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7588 PyObject *resultobj = 0;
7589 wxBitmap *arg1 = 0 ;
7590 wxNativePixelData *result = 0 ;
7591 void *argp1 = 0 ;
7592 int res1 = 0 ;
7593
7594 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7596 if (!SWIG_IsOK(res1)) {
7597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7598 }
7599 if (!argp1) {
7600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7601 }
7602 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7603 {
7604 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7605 if (PyErr_Occurred()) SWIG_fail;
7606 }
7607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7608 return resultobj;
7609 fail:
7610 return NULL;
7611 }
7612
7613
7614 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7615 PyObject *resultobj = 0;
7616 wxBitmap *arg1 = 0 ;
7617 wxRect *arg2 = 0 ;
7618 wxNativePixelData *result = 0 ;
7619 void *argp1 = 0 ;
7620 int res1 = 0 ;
7621 wxRect temp2 ;
7622
7623 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7625 if (!SWIG_IsOK(res1)) {
7626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7627 }
7628 if (!argp1) {
7629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7630 }
7631 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7632 {
7633 arg2 = &temp2;
7634 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7635 }
7636 {
7637 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7638 if (PyErr_Occurred()) SWIG_fail;
7639 }
7640 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7641 return resultobj;
7642 fail:
7643 return NULL;
7644 }
7645
7646
7647 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7648 PyObject *resultobj = 0;
7649 wxBitmap *arg1 = 0 ;
7650 wxPoint *arg2 = 0 ;
7651 wxSize *arg3 = 0 ;
7652 wxNativePixelData *result = 0 ;
7653 void *argp1 = 0 ;
7654 int res1 = 0 ;
7655 wxPoint temp2 ;
7656 wxSize temp3 ;
7657
7658 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7660 if (!SWIG_IsOK(res1)) {
7661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7662 }
7663 if (!argp1) {
7664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7665 }
7666 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7667 {
7668 arg2 = &temp2;
7669 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7670 }
7671 {
7672 arg3 = &temp3;
7673 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7674 }
7675 {
7676 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7677 if (PyErr_Occurred()) SWIG_fail;
7678 }
7679 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7680 return resultobj;
7681 fail:
7682 return NULL;
7683 }
7684
7685
7686 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7687 int argc;
7688 PyObject *argv[4];
7689
7690 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7691 --argc;
7692 if (argc == 1) {
7693 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7694 }
7695 if (argc == 2) {
7696 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7697 }
7698 if (argc == 3) {
7699 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7700 }
7701
7702 fail:
7703 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7704 return NULL;
7705 }
7706
7707
7708 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7709 PyObject *resultobj = 0;
7710 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7711 void *argp1 = 0 ;
7712 int res1 = 0 ;
7713 PyObject *swig_obj[1] ;
7714
7715 if (!args) SWIG_fail;
7716 swig_obj[0] = args;
7717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7718 if (!SWIG_IsOK(res1)) {
7719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7720 }
7721 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7722 {
7723 delete arg1;
7724
7725 if (PyErr_Occurred()) SWIG_fail;
7726 }
7727 resultobj = SWIG_Py_Void();
7728 return resultobj;
7729 fail:
7730 return NULL;
7731 }
7732
7733
7734 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7735 PyObject *resultobj = 0;
7736 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7737 wxNativePixelData_Accessor result;
7738 void *argp1 = 0 ;
7739 int res1 = 0 ;
7740 PyObject *swig_obj[1] ;
7741
7742 if (!args) SWIG_fail;
7743 swig_obj[0] = args;
7744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7745 if (!SWIG_IsOK(res1)) {
7746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7747 }
7748 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7749 {
7750 result = ((wxNativePixelData const *)arg1)->GetPixels();
7751 if (PyErr_Occurred()) SWIG_fail;
7752 }
7753 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7754 return resultobj;
7755 fail:
7756 return NULL;
7757 }
7758
7759
7760 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7761 PyObject *resultobj = 0;
7762 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7763 void *argp1 = 0 ;
7764 int res1 = 0 ;
7765 PyObject *swig_obj[1] ;
7766
7767 if (!args) SWIG_fail;
7768 swig_obj[0] = args;
7769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7770 if (!SWIG_IsOK(res1)) {
7771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7772 }
7773 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7774 {
7775 (arg1)->UseAlpha();
7776 if (PyErr_Occurred()) SWIG_fail;
7777 }
7778 resultobj = SWIG_Py_Void();
7779 return resultobj;
7780 fail:
7781 return NULL;
7782 }
7783
7784
7785 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7786 PyObject *resultobj = 0;
7787 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7788 bool result;
7789 void *argp1 = 0 ;
7790 int res1 = 0 ;
7791 PyObject *swig_obj[1] ;
7792
7793 if (!args) SWIG_fail;
7794 swig_obj[0] = args;
7795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7796 if (!SWIG_IsOK(res1)) {
7797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7798 }
7799 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7800 {
7801 result = (bool)wxNativePixelData___nonzero__(arg1);
7802 if (PyErr_Occurred()) SWIG_fail;
7803 }
7804 {
7805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7806 }
7807 return resultobj;
7808 fail:
7809 return NULL;
7810 }
7811
7812
7813 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7814 PyObject *obj;
7815 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7816 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7817 return SWIG_Py_Void();
7818 }
7819
7820 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7821 return SWIG_Python_InitShadowInstance(args);
7822 }
7823
7824 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7825 PyObject *resultobj = 0;
7826 wxNativePixelData *arg1 = 0 ;
7827 wxNativePixelData_Accessor *result = 0 ;
7828 void *argp1 = 0 ;
7829 int res1 = 0 ;
7830
7831 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7833 if (!SWIG_IsOK(res1)) {
7834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7835 }
7836 if (!argp1) {
7837 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7838 }
7839 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7840 {
7841 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7842 if (PyErr_Occurred()) SWIG_fail;
7843 }
7844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7845 return resultobj;
7846 fail:
7847 return NULL;
7848 }
7849
7850
7851 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7852 PyObject *resultobj = 0;
7853 wxBitmap *arg1 = 0 ;
7854 wxNativePixelData *arg2 = 0 ;
7855 wxNativePixelData_Accessor *result = 0 ;
7856 void *argp1 = 0 ;
7857 int res1 = 0 ;
7858 void *argp2 = 0 ;
7859 int res2 = 0 ;
7860
7861 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7863 if (!SWIG_IsOK(res1)) {
7864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7865 }
7866 if (!argp1) {
7867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7868 }
7869 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7870 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7871 if (!SWIG_IsOK(res2)) {
7872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7873 }
7874 if (!argp2) {
7875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7876 }
7877 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7878 {
7879 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7880 if (PyErr_Occurred()) SWIG_fail;
7881 }
7882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7883 return resultobj;
7884 fail:
7885 return NULL;
7886 }
7887
7888
7889 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7890 PyObject *resultobj = 0;
7891 wxNativePixelData_Accessor *result = 0 ;
7892
7893 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7894 {
7895 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7896 if (PyErr_Occurred()) SWIG_fail;
7897 }
7898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7899 return resultobj;
7900 fail:
7901 return NULL;
7902 }
7903
7904
7905 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7906 int argc;
7907 PyObject *argv[3];
7908
7909 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7910 --argc;
7911 if (argc == 0) {
7912 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7913 }
7914 if (argc == 1) {
7915 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7916 }
7917 if (argc == 2) {
7918 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7919 }
7920
7921 fail:
7922 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7923 return NULL;
7924 }
7925
7926
7927 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7928 PyObject *resultobj = 0;
7929 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7930 void *argp1 = 0 ;
7931 int res1 = 0 ;
7932 PyObject *swig_obj[1] ;
7933
7934 if (!args) SWIG_fail;
7935 swig_obj[0] = args;
7936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7937 if (!SWIG_IsOK(res1)) {
7938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7939 }
7940 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7941 {
7942 delete arg1;
7943
7944 if (PyErr_Occurred()) SWIG_fail;
7945 }
7946 resultobj = SWIG_Py_Void();
7947 return resultobj;
7948 fail:
7949 return NULL;
7950 }
7951
7952
7953 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7954 PyObject *resultobj = 0;
7955 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7956 wxNativePixelData *arg2 = 0 ;
7957 void *argp1 = 0 ;
7958 int res1 = 0 ;
7959 void *argp2 = 0 ;
7960 int res2 = 0 ;
7961 PyObject * obj0 = 0 ;
7962 PyObject * obj1 = 0 ;
7963 char * kwnames[] = {
7964 (char *) "self",(char *) "data", NULL
7965 };
7966
7967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7969 if (!SWIG_IsOK(res1)) {
7970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7971 }
7972 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7973 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7974 if (!SWIG_IsOK(res2)) {
7975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7976 }
7977 if (!argp2) {
7978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7979 }
7980 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7981 {
7982 (arg1)->Reset((wxNativePixelData const &)*arg2);
7983 if (PyErr_Occurred()) SWIG_fail;
7984 }
7985 resultobj = SWIG_Py_Void();
7986 return resultobj;
7987 fail:
7988 return NULL;
7989 }
7990
7991
7992 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7993 PyObject *resultobj = 0;
7994 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7995 bool result;
7996 void *argp1 = 0 ;
7997 int res1 = 0 ;
7998 PyObject *swig_obj[1] ;
7999
8000 if (!args) SWIG_fail;
8001 swig_obj[0] = args;
8002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8003 if (!SWIG_IsOK(res1)) {
8004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
8005 }
8006 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8007 {
8008 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
8009 if (PyErr_Occurred()) SWIG_fail;
8010 }
8011 {
8012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8013 }
8014 return resultobj;
8015 fail:
8016 return NULL;
8017 }
8018
8019
8020 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8021 PyObject *resultobj = 0;
8022 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8023 void *argp1 = 0 ;
8024 int res1 = 0 ;
8025 PyObject *swig_obj[1] ;
8026
8027 if (!args) SWIG_fail;
8028 swig_obj[0] = args;
8029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8030 if (!SWIG_IsOK(res1)) {
8031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8032 }
8033 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8034 {
8035 wxNativePixelData_Accessor_nextPixel(arg1);
8036 if (PyErr_Occurred()) SWIG_fail;
8037 }
8038 resultobj = SWIG_Py_Void();
8039 return resultobj;
8040 fail:
8041 return NULL;
8042 }
8043
8044
8045 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8046 PyObject *resultobj = 0;
8047 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8048 wxNativePixelData *arg2 = 0 ;
8049 int arg3 ;
8050 int arg4 ;
8051 void *argp1 = 0 ;
8052 int res1 = 0 ;
8053 void *argp2 = 0 ;
8054 int res2 = 0 ;
8055 int val3 ;
8056 int ecode3 = 0 ;
8057 int val4 ;
8058 int ecode4 = 0 ;
8059 PyObject * obj0 = 0 ;
8060 PyObject * obj1 = 0 ;
8061 PyObject * obj2 = 0 ;
8062 PyObject * obj3 = 0 ;
8063 char * kwnames[] = {
8064 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8065 };
8066
8067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8069 if (!SWIG_IsOK(res1)) {
8070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8071 }
8072 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8073 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8074 if (!SWIG_IsOK(res2)) {
8075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8076 }
8077 if (!argp2) {
8078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8079 }
8080 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8081 ecode3 = SWIG_AsVal_int(obj2, &val3);
8082 if (!SWIG_IsOK(ecode3)) {
8083 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8084 }
8085 arg3 = static_cast< int >(val3);
8086 ecode4 = SWIG_AsVal_int(obj3, &val4);
8087 if (!SWIG_IsOK(ecode4)) {
8088 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8089 }
8090 arg4 = static_cast< int >(val4);
8091 {
8092 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
8093 if (PyErr_Occurred()) SWIG_fail;
8094 }
8095 resultobj = SWIG_Py_Void();
8096 return resultobj;
8097 fail:
8098 return NULL;
8099 }
8100
8101
8102 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8103 PyObject *resultobj = 0;
8104 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8105 wxNativePixelData *arg2 = 0 ;
8106 int arg3 ;
8107 void *argp1 = 0 ;
8108 int res1 = 0 ;
8109 void *argp2 = 0 ;
8110 int res2 = 0 ;
8111 int val3 ;
8112 int ecode3 = 0 ;
8113 PyObject * obj0 = 0 ;
8114 PyObject * obj1 = 0 ;
8115 PyObject * obj2 = 0 ;
8116 char * kwnames[] = {
8117 (char *) "self",(char *) "data",(char *) "x", NULL
8118 };
8119
8120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8122 if (!SWIG_IsOK(res1)) {
8123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8124 }
8125 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8126 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8127 if (!SWIG_IsOK(res2)) {
8128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8129 }
8130 if (!argp2) {
8131 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8132 }
8133 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8134 ecode3 = SWIG_AsVal_int(obj2, &val3);
8135 if (!SWIG_IsOK(ecode3)) {
8136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8137 }
8138 arg3 = static_cast< int >(val3);
8139 {
8140 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8141 if (PyErr_Occurred()) SWIG_fail;
8142 }
8143 resultobj = SWIG_Py_Void();
8144 return resultobj;
8145 fail:
8146 return NULL;
8147 }
8148
8149
8150 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8151 PyObject *resultobj = 0;
8152 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8153 wxNativePixelData *arg2 = 0 ;
8154 int arg3 ;
8155 void *argp1 = 0 ;
8156 int res1 = 0 ;
8157 void *argp2 = 0 ;
8158 int res2 = 0 ;
8159 int val3 ;
8160 int ecode3 = 0 ;
8161 PyObject * obj0 = 0 ;
8162 PyObject * obj1 = 0 ;
8163 PyObject * obj2 = 0 ;
8164 char * kwnames[] = {
8165 (char *) "self",(char *) "data",(char *) "y", NULL
8166 };
8167
8168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8170 if (!SWIG_IsOK(res1)) {
8171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8172 }
8173 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8174 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8175 if (!SWIG_IsOK(res2)) {
8176 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8177 }
8178 if (!argp2) {
8179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8180 }
8181 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8182 ecode3 = SWIG_AsVal_int(obj2, &val3);
8183 if (!SWIG_IsOK(ecode3)) {
8184 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8185 }
8186 arg3 = static_cast< int >(val3);
8187 {
8188 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8189 if (PyErr_Occurred()) SWIG_fail;
8190 }
8191 resultobj = SWIG_Py_Void();
8192 return resultobj;
8193 fail:
8194 return NULL;
8195 }
8196
8197
8198 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8199 PyObject *resultobj = 0;
8200 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8201 wxNativePixelData *arg2 = 0 ;
8202 int arg3 ;
8203 int arg4 ;
8204 void *argp1 = 0 ;
8205 int res1 = 0 ;
8206 void *argp2 = 0 ;
8207 int res2 = 0 ;
8208 int val3 ;
8209 int ecode3 = 0 ;
8210 int val4 ;
8211 int ecode4 = 0 ;
8212 PyObject * obj0 = 0 ;
8213 PyObject * obj1 = 0 ;
8214 PyObject * obj2 = 0 ;
8215 PyObject * obj3 = 0 ;
8216 char * kwnames[] = {
8217 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8218 };
8219
8220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8222 if (!SWIG_IsOK(res1)) {
8223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8224 }
8225 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8226 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8227 if (!SWIG_IsOK(res2)) {
8228 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8229 }
8230 if (!argp2) {
8231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8232 }
8233 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8234 ecode3 = SWIG_AsVal_int(obj2, &val3);
8235 if (!SWIG_IsOK(ecode3)) {
8236 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8237 }
8238 arg3 = static_cast< int >(val3);
8239 ecode4 = SWIG_AsVal_int(obj3, &val4);
8240 if (!SWIG_IsOK(ecode4)) {
8241 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8242 }
8243 arg4 = static_cast< int >(val4);
8244 {
8245 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8246 if (PyErr_Occurred()) SWIG_fail;
8247 }
8248 resultobj = SWIG_Py_Void();
8249 return resultobj;
8250 fail:
8251 return NULL;
8252 }
8253
8254
8255 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8256 PyObject *resultobj = 0;
8257 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8258 byte arg2 ;
8259 byte arg3 ;
8260 byte arg4 ;
8261 void *argp1 = 0 ;
8262 int res1 = 0 ;
8263 unsigned char val2 ;
8264 int ecode2 = 0 ;
8265 unsigned char val3 ;
8266 int ecode3 = 0 ;
8267 unsigned char val4 ;
8268 int ecode4 = 0 ;
8269 PyObject * obj0 = 0 ;
8270 PyObject * obj1 = 0 ;
8271 PyObject * obj2 = 0 ;
8272 PyObject * obj3 = 0 ;
8273 char * kwnames[] = {
8274 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8275 };
8276
8277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8279 if (!SWIG_IsOK(res1)) {
8280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8281 }
8282 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8283 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8284 if (!SWIG_IsOK(ecode2)) {
8285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8286 }
8287 arg2 = static_cast< byte >(val2);
8288 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8289 if (!SWIG_IsOK(ecode3)) {
8290 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8291 }
8292 arg3 = static_cast< byte >(val3);
8293 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8294 if (!SWIG_IsOK(ecode4)) {
8295 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8296 }
8297 arg4 = static_cast< byte >(val4);
8298 {
8299 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8300 if (PyErr_Occurred()) SWIG_fail;
8301 }
8302 resultobj = SWIG_Py_Void();
8303 return resultobj;
8304 fail:
8305 return NULL;
8306 }
8307
8308
8309 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8310 PyObject *resultobj = 0;
8311 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8312 PyObject *result = 0 ;
8313 void *argp1 = 0 ;
8314 int res1 = 0 ;
8315 PyObject *swig_obj[1] ;
8316
8317 if (!args) SWIG_fail;
8318 swig_obj[0] = args;
8319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8320 if (!SWIG_IsOK(res1)) {
8321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8322 }
8323 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8324 {
8325 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8326 if (PyErr_Occurred()) SWIG_fail;
8327 }
8328 resultobj = result;
8329 return resultobj;
8330 fail:
8331 return NULL;
8332 }
8333
8334
8335 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8336 PyObject *obj;
8337 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8338 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8339 return SWIG_Py_Void();
8340 }
8341
8342 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8343 return SWIG_Python_InitShadowInstance(args);
8344 }
8345
8346 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8347 PyObject *resultobj = 0;
8348 wxBitmap *arg1 = 0 ;
8349 wxAlphaPixelData *result = 0 ;
8350 void *argp1 = 0 ;
8351 int res1 = 0 ;
8352
8353 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8355 if (!SWIG_IsOK(res1)) {
8356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8357 }
8358 if (!argp1) {
8359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8360 }
8361 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8362 {
8363 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8364 if (PyErr_Occurred()) SWIG_fail;
8365 }
8366 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8367 return resultobj;
8368 fail:
8369 return NULL;
8370 }
8371
8372
8373 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8374 PyObject *resultobj = 0;
8375 wxBitmap *arg1 = 0 ;
8376 wxRect *arg2 = 0 ;
8377 wxAlphaPixelData *result = 0 ;
8378 void *argp1 = 0 ;
8379 int res1 = 0 ;
8380 wxRect temp2 ;
8381
8382 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8384 if (!SWIG_IsOK(res1)) {
8385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8386 }
8387 if (!argp1) {
8388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8389 }
8390 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8391 {
8392 arg2 = &temp2;
8393 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8394 }
8395 {
8396 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8397 if (PyErr_Occurred()) SWIG_fail;
8398 }
8399 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8400 return resultobj;
8401 fail:
8402 return NULL;
8403 }
8404
8405
8406 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8407 PyObject *resultobj = 0;
8408 wxBitmap *arg1 = 0 ;
8409 wxPoint *arg2 = 0 ;
8410 wxSize *arg3 = 0 ;
8411 wxAlphaPixelData *result = 0 ;
8412 void *argp1 = 0 ;
8413 int res1 = 0 ;
8414 wxPoint temp2 ;
8415 wxSize temp3 ;
8416
8417 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8419 if (!SWIG_IsOK(res1)) {
8420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8421 }
8422 if (!argp1) {
8423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8424 }
8425 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8426 {
8427 arg2 = &temp2;
8428 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8429 }
8430 {
8431 arg3 = &temp3;
8432 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8433 }
8434 {
8435 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8436 if (PyErr_Occurred()) SWIG_fail;
8437 }
8438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8439 return resultobj;
8440 fail:
8441 return NULL;
8442 }
8443
8444
8445 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8446 int argc;
8447 PyObject *argv[4];
8448
8449 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8450 --argc;
8451 if (argc == 1) {
8452 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8453 }
8454 if (argc == 2) {
8455 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8456 }
8457 if (argc == 3) {
8458 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8459 }
8460
8461 fail:
8462 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8463 return NULL;
8464 }
8465
8466
8467 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8468 PyObject *resultobj = 0;
8469 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8470 void *argp1 = 0 ;
8471 int res1 = 0 ;
8472 PyObject *swig_obj[1] ;
8473
8474 if (!args) SWIG_fail;
8475 swig_obj[0] = args;
8476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8477 if (!SWIG_IsOK(res1)) {
8478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8479 }
8480 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8481 {
8482 delete arg1;
8483
8484 if (PyErr_Occurred()) SWIG_fail;
8485 }
8486 resultobj = SWIG_Py_Void();
8487 return resultobj;
8488 fail:
8489 return NULL;
8490 }
8491
8492
8493 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8494 PyObject *resultobj = 0;
8495 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8496 wxAlphaPixelData_Accessor result;
8497 void *argp1 = 0 ;
8498 int res1 = 0 ;
8499 PyObject *swig_obj[1] ;
8500
8501 if (!args) SWIG_fail;
8502 swig_obj[0] = args;
8503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8504 if (!SWIG_IsOK(res1)) {
8505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8506 }
8507 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8508 {
8509 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8510 if (PyErr_Occurred()) SWIG_fail;
8511 }
8512 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8513 return resultobj;
8514 fail:
8515 return NULL;
8516 }
8517
8518
8519 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8520 PyObject *resultobj = 0;
8521 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8522 void *argp1 = 0 ;
8523 int res1 = 0 ;
8524 PyObject *swig_obj[1] ;
8525
8526 if (!args) SWIG_fail;
8527 swig_obj[0] = args;
8528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8529 if (!SWIG_IsOK(res1)) {
8530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8531 }
8532 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8533 {
8534 (arg1)->UseAlpha();
8535 if (PyErr_Occurred()) SWIG_fail;
8536 }
8537 resultobj = SWIG_Py_Void();
8538 return resultobj;
8539 fail:
8540 return NULL;
8541 }
8542
8543
8544 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8545 PyObject *resultobj = 0;
8546 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8547 bool result;
8548 void *argp1 = 0 ;
8549 int res1 = 0 ;
8550 PyObject *swig_obj[1] ;
8551
8552 if (!args) SWIG_fail;
8553 swig_obj[0] = args;
8554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8555 if (!SWIG_IsOK(res1)) {
8556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8557 }
8558 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8559 {
8560 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8561 if (PyErr_Occurred()) SWIG_fail;
8562 }
8563 {
8564 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8565 }
8566 return resultobj;
8567 fail:
8568 return NULL;
8569 }
8570
8571
8572 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8573 PyObject *obj;
8574 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8575 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8576 return SWIG_Py_Void();
8577 }
8578
8579 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8580 return SWIG_Python_InitShadowInstance(args);
8581 }
8582
8583 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8584 PyObject *resultobj = 0;
8585 wxAlphaPixelData *arg1 = 0 ;
8586 wxAlphaPixelData_Accessor *result = 0 ;
8587 void *argp1 = 0 ;
8588 int res1 = 0 ;
8589
8590 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8592 if (!SWIG_IsOK(res1)) {
8593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8594 }
8595 if (!argp1) {
8596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8597 }
8598 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8599 {
8600 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8601 if (PyErr_Occurred()) SWIG_fail;
8602 }
8603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8604 return resultobj;
8605 fail:
8606 return NULL;
8607 }
8608
8609
8610 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8611 PyObject *resultobj = 0;
8612 wxBitmap *arg1 = 0 ;
8613 wxAlphaPixelData *arg2 = 0 ;
8614 wxAlphaPixelData_Accessor *result = 0 ;
8615 void *argp1 = 0 ;
8616 int res1 = 0 ;
8617 void *argp2 = 0 ;
8618 int res2 = 0 ;
8619
8620 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8622 if (!SWIG_IsOK(res1)) {
8623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8624 }
8625 if (!argp1) {
8626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8627 }
8628 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8629 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8630 if (!SWIG_IsOK(res2)) {
8631 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8632 }
8633 if (!argp2) {
8634 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8635 }
8636 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8637 {
8638 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8639 if (PyErr_Occurred()) SWIG_fail;
8640 }
8641 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8642 return resultobj;
8643 fail:
8644 return NULL;
8645 }
8646
8647
8648 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8649 PyObject *resultobj = 0;
8650 wxAlphaPixelData_Accessor *result = 0 ;
8651
8652 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8653 {
8654 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8655 if (PyErr_Occurred()) SWIG_fail;
8656 }
8657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8658 return resultobj;
8659 fail:
8660 return NULL;
8661 }
8662
8663
8664 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8665 int argc;
8666 PyObject *argv[3];
8667
8668 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8669 --argc;
8670 if (argc == 0) {
8671 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8672 }
8673 if (argc == 1) {
8674 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8675 }
8676 if (argc == 2) {
8677 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8678 }
8679
8680 fail:
8681 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8682 return NULL;
8683 }
8684
8685
8686 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8687 PyObject *resultobj = 0;
8688 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8689 void *argp1 = 0 ;
8690 int res1 = 0 ;
8691 PyObject *swig_obj[1] ;
8692
8693 if (!args) SWIG_fail;
8694 swig_obj[0] = args;
8695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8696 if (!SWIG_IsOK(res1)) {
8697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8698 }
8699 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8700 {
8701 delete arg1;
8702
8703 if (PyErr_Occurred()) SWIG_fail;
8704 }
8705 resultobj = SWIG_Py_Void();
8706 return resultobj;
8707 fail:
8708 return NULL;
8709 }
8710
8711
8712 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8713 PyObject *resultobj = 0;
8714 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8715 wxAlphaPixelData *arg2 = 0 ;
8716 void *argp1 = 0 ;
8717 int res1 = 0 ;
8718 void *argp2 = 0 ;
8719 int res2 = 0 ;
8720 PyObject * obj0 = 0 ;
8721 PyObject * obj1 = 0 ;
8722 char * kwnames[] = {
8723 (char *) "self",(char *) "data", NULL
8724 };
8725
8726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8728 if (!SWIG_IsOK(res1)) {
8729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8730 }
8731 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8732 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8733 if (!SWIG_IsOK(res2)) {
8734 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8735 }
8736 if (!argp2) {
8737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8738 }
8739 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8740 {
8741 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8742 if (PyErr_Occurred()) SWIG_fail;
8743 }
8744 resultobj = SWIG_Py_Void();
8745 return resultobj;
8746 fail:
8747 return NULL;
8748 }
8749
8750
8751 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8752 PyObject *resultobj = 0;
8753 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8754 bool result;
8755 void *argp1 = 0 ;
8756 int res1 = 0 ;
8757 PyObject *swig_obj[1] ;
8758
8759 if (!args) SWIG_fail;
8760 swig_obj[0] = args;
8761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8762 if (!SWIG_IsOK(res1)) {
8763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8764 }
8765 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8766 {
8767 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8768 if (PyErr_Occurred()) SWIG_fail;
8769 }
8770 {
8771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8772 }
8773 return resultobj;
8774 fail:
8775 return NULL;
8776 }
8777
8778
8779 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8780 PyObject *resultobj = 0;
8781 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8782 void *argp1 = 0 ;
8783 int res1 = 0 ;
8784 PyObject *swig_obj[1] ;
8785
8786 if (!args) SWIG_fail;
8787 swig_obj[0] = args;
8788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8789 if (!SWIG_IsOK(res1)) {
8790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8791 }
8792 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8793 {
8794 wxAlphaPixelData_Accessor_nextPixel(arg1);
8795 if (PyErr_Occurred()) SWIG_fail;
8796 }
8797 resultobj = SWIG_Py_Void();
8798 return resultobj;
8799 fail:
8800 return NULL;
8801 }
8802
8803
8804 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8805 PyObject *resultobj = 0;
8806 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8807 wxAlphaPixelData *arg2 = 0 ;
8808 int arg3 ;
8809 int arg4 ;
8810 void *argp1 = 0 ;
8811 int res1 = 0 ;
8812 void *argp2 = 0 ;
8813 int res2 = 0 ;
8814 int val3 ;
8815 int ecode3 = 0 ;
8816 int val4 ;
8817 int ecode4 = 0 ;
8818 PyObject * obj0 = 0 ;
8819 PyObject * obj1 = 0 ;
8820 PyObject * obj2 = 0 ;
8821 PyObject * obj3 = 0 ;
8822 char * kwnames[] = {
8823 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8824 };
8825
8826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8828 if (!SWIG_IsOK(res1)) {
8829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8830 }
8831 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8832 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8833 if (!SWIG_IsOK(res2)) {
8834 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8835 }
8836 if (!argp2) {
8837 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8838 }
8839 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8840 ecode3 = SWIG_AsVal_int(obj2, &val3);
8841 if (!SWIG_IsOK(ecode3)) {
8842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8843 }
8844 arg3 = static_cast< int >(val3);
8845 ecode4 = SWIG_AsVal_int(obj3, &val4);
8846 if (!SWIG_IsOK(ecode4)) {
8847 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8848 }
8849 arg4 = static_cast< int >(val4);
8850 {
8851 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8852 if (PyErr_Occurred()) SWIG_fail;
8853 }
8854 resultobj = SWIG_Py_Void();
8855 return resultobj;
8856 fail:
8857 return NULL;
8858 }
8859
8860
8861 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8862 PyObject *resultobj = 0;
8863 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8864 wxAlphaPixelData *arg2 = 0 ;
8865 int arg3 ;
8866 void *argp1 = 0 ;
8867 int res1 = 0 ;
8868 void *argp2 = 0 ;
8869 int res2 = 0 ;
8870 int val3 ;
8871 int ecode3 = 0 ;
8872 PyObject * obj0 = 0 ;
8873 PyObject * obj1 = 0 ;
8874 PyObject * obj2 = 0 ;
8875 char * kwnames[] = {
8876 (char *) "self",(char *) "data",(char *) "x", NULL
8877 };
8878
8879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8881 if (!SWIG_IsOK(res1)) {
8882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8883 }
8884 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8885 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8886 if (!SWIG_IsOK(res2)) {
8887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8888 }
8889 if (!argp2) {
8890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8891 }
8892 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8893 ecode3 = SWIG_AsVal_int(obj2, &val3);
8894 if (!SWIG_IsOK(ecode3)) {
8895 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8896 }
8897 arg3 = static_cast< int >(val3);
8898 {
8899 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8900 if (PyErr_Occurred()) SWIG_fail;
8901 }
8902 resultobj = SWIG_Py_Void();
8903 return resultobj;
8904 fail:
8905 return NULL;
8906 }
8907
8908
8909 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8910 PyObject *resultobj = 0;
8911 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8912 wxAlphaPixelData *arg2 = 0 ;
8913 int arg3 ;
8914 void *argp1 = 0 ;
8915 int res1 = 0 ;
8916 void *argp2 = 0 ;
8917 int res2 = 0 ;
8918 int val3 ;
8919 int ecode3 = 0 ;
8920 PyObject * obj0 = 0 ;
8921 PyObject * obj1 = 0 ;
8922 PyObject * obj2 = 0 ;
8923 char * kwnames[] = {
8924 (char *) "self",(char *) "data",(char *) "y", NULL
8925 };
8926
8927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8929 if (!SWIG_IsOK(res1)) {
8930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8931 }
8932 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8933 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8934 if (!SWIG_IsOK(res2)) {
8935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8936 }
8937 if (!argp2) {
8938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8939 }
8940 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8941 ecode3 = SWIG_AsVal_int(obj2, &val3);
8942 if (!SWIG_IsOK(ecode3)) {
8943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8944 }
8945 arg3 = static_cast< int >(val3);
8946 {
8947 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8948 if (PyErr_Occurred()) SWIG_fail;
8949 }
8950 resultobj = SWIG_Py_Void();
8951 return resultobj;
8952 fail:
8953 return NULL;
8954 }
8955
8956
8957 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8958 PyObject *resultobj = 0;
8959 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8960 wxAlphaPixelData *arg2 = 0 ;
8961 int arg3 ;
8962 int arg4 ;
8963 void *argp1 = 0 ;
8964 int res1 = 0 ;
8965 void *argp2 = 0 ;
8966 int res2 = 0 ;
8967 int val3 ;
8968 int ecode3 = 0 ;
8969 int val4 ;
8970 int ecode4 = 0 ;
8971 PyObject * obj0 = 0 ;
8972 PyObject * obj1 = 0 ;
8973 PyObject * obj2 = 0 ;
8974 PyObject * obj3 = 0 ;
8975 char * kwnames[] = {
8976 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8977 };
8978
8979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8981 if (!SWIG_IsOK(res1)) {
8982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8983 }
8984 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8985 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8986 if (!SWIG_IsOK(res2)) {
8987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8988 }
8989 if (!argp2) {
8990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8991 }
8992 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8993 ecode3 = SWIG_AsVal_int(obj2, &val3);
8994 if (!SWIG_IsOK(ecode3)) {
8995 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8996 }
8997 arg3 = static_cast< int >(val3);
8998 ecode4 = SWIG_AsVal_int(obj3, &val4);
8999 if (!SWIG_IsOK(ecode4)) {
9000 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
9001 }
9002 arg4 = static_cast< int >(val4);
9003 {
9004 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
9005 if (PyErr_Occurred()) SWIG_fail;
9006 }
9007 resultobj = SWIG_Py_Void();
9008 return resultobj;
9009 fail:
9010 return NULL;
9011 }
9012
9013
9014 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9015 PyObject *resultobj = 0;
9016 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9017 byte arg2 ;
9018 byte arg3 ;
9019 byte arg4 ;
9020 byte arg5 ;
9021 void *argp1 = 0 ;
9022 int res1 = 0 ;
9023 unsigned char val2 ;
9024 int ecode2 = 0 ;
9025 unsigned char val3 ;
9026 int ecode3 = 0 ;
9027 unsigned char val4 ;
9028 int ecode4 = 0 ;
9029 unsigned char val5 ;
9030 int ecode5 = 0 ;
9031 PyObject * obj0 = 0 ;
9032 PyObject * obj1 = 0 ;
9033 PyObject * obj2 = 0 ;
9034 PyObject * obj3 = 0 ;
9035 PyObject * obj4 = 0 ;
9036 char * kwnames[] = {
9037 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
9038 };
9039
9040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9042 if (!SWIG_IsOK(res1)) {
9043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9044 }
9045 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9046 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
9047 if (!SWIG_IsOK(ecode2)) {
9048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
9049 }
9050 arg2 = static_cast< byte >(val2);
9051 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
9052 if (!SWIG_IsOK(ecode3)) {
9053 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
9054 }
9055 arg3 = static_cast< byte >(val3);
9056 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
9057 if (!SWIG_IsOK(ecode4)) {
9058 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
9059 }
9060 arg4 = static_cast< byte >(val4);
9061 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
9062 if (!SWIG_IsOK(ecode5)) {
9063 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
9064 }
9065 arg5 = static_cast< byte >(val5);
9066 {
9067 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
9068 if (PyErr_Occurred()) SWIG_fail;
9069 }
9070 resultobj = SWIG_Py_Void();
9071 return resultobj;
9072 fail:
9073 return NULL;
9074 }
9075
9076
9077 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9078 PyObject *resultobj = 0;
9079 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9080 PyObject *result = 0 ;
9081 void *argp1 = 0 ;
9082 int res1 = 0 ;
9083 PyObject *swig_obj[1] ;
9084
9085 if (!args) SWIG_fail;
9086 swig_obj[0] = args;
9087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9088 if (!SWIG_IsOK(res1)) {
9089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9090 }
9091 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9092 {
9093 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
9094 if (PyErr_Occurred()) SWIG_fail;
9095 }
9096 resultobj = result;
9097 return resultobj;
9098 fail:
9099 return NULL;
9100 }
9101
9102
9103 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9104 PyObject *obj;
9105 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9106 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
9107 return SWIG_Py_Void();
9108 }
9109
9110 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9111 return SWIG_Python_InitShadowInstance(args);
9112 }
9113
9114 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9115 PyObject *resultobj = 0;
9116 wxBitmap *arg1 = 0 ;
9117 wxColour const &arg2_defvalue = wxNullColour ;
9118 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9119 wxMask *result = 0 ;
9120 void *argp1 = 0 ;
9121 int res1 = 0 ;
9122 wxColour temp2 ;
9123 PyObject * obj0 = 0 ;
9124 PyObject * obj1 = 0 ;
9125 char * kwnames[] = {
9126 (char *) "bitmap",(char *) "colour", NULL
9127 };
9128
9129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9130 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9131 if (!SWIG_IsOK(res1)) {
9132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9133 }
9134 if (!argp1) {
9135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9136 }
9137 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9138 if (obj1) {
9139 {
9140 arg2 = &temp2;
9141 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9142 }
9143 }
9144 {
9145 if (!wxPyCheckForApp()) SWIG_fail;
9146 PyThreadState* __tstate = wxPyBeginAllowThreads();
9147 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9148 wxPyEndAllowThreads(__tstate);
9149 if (PyErr_Occurred()) SWIG_fail;
9150 }
9151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9152 return resultobj;
9153 fail:
9154 return NULL;
9155 }
9156
9157
9158 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9159 PyObject *resultobj = 0;
9160 wxMask *arg1 = (wxMask *) 0 ;
9161 void *argp1 = 0 ;
9162 int res1 = 0 ;
9163 PyObject *swig_obj[1] ;
9164
9165 if (!args) SWIG_fail;
9166 swig_obj[0] = args;
9167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9168 if (!SWIG_IsOK(res1)) {
9169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9170 }
9171 arg1 = reinterpret_cast< wxMask * >(argp1);
9172 {
9173 delete arg1;
9174
9175 if (PyErr_Occurred()) SWIG_fail;
9176 }
9177 resultobj = SWIG_Py_Void();
9178 return resultobj;
9179 fail:
9180 return NULL;
9181 }
9182
9183
9184 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9185 PyObject *obj;
9186 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9187 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9188 return SWIG_Py_Void();
9189 }
9190
9191 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9192 return SWIG_Python_InitShadowInstance(args);
9193 }
9194
9195 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9196 PyObject *resultobj = 0;
9197 wxString *arg1 = 0 ;
9198 wxBitmapType arg2 ;
9199 int arg3 = (int) -1 ;
9200 int arg4 = (int) -1 ;
9201 wxIcon *result = 0 ;
9202 bool temp1 = false ;
9203 int val2 ;
9204 int ecode2 = 0 ;
9205 int val3 ;
9206 int ecode3 = 0 ;
9207 int val4 ;
9208 int ecode4 = 0 ;
9209 PyObject * obj0 = 0 ;
9210 PyObject * obj1 = 0 ;
9211 PyObject * obj2 = 0 ;
9212 PyObject * obj3 = 0 ;
9213 char * kwnames[] = {
9214 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9215 };
9216
9217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9218 {
9219 arg1 = wxString_in_helper(obj0);
9220 if (arg1 == NULL) SWIG_fail;
9221 temp1 = true;
9222 }
9223 ecode2 = SWIG_AsVal_int(obj1, &val2);
9224 if (!SWIG_IsOK(ecode2)) {
9225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9226 }
9227 arg2 = static_cast< wxBitmapType >(val2);
9228 if (obj2) {
9229 ecode3 = SWIG_AsVal_int(obj2, &val3);
9230 if (!SWIG_IsOK(ecode3)) {
9231 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9232 }
9233 arg3 = static_cast< int >(val3);
9234 }
9235 if (obj3) {
9236 ecode4 = SWIG_AsVal_int(obj3, &val4);
9237 if (!SWIG_IsOK(ecode4)) {
9238 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9239 }
9240 arg4 = static_cast< int >(val4);
9241 }
9242 {
9243 if (!wxPyCheckForApp()) SWIG_fail;
9244 PyThreadState* __tstate = wxPyBeginAllowThreads();
9245 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9246 wxPyEndAllowThreads(__tstate);
9247 if (PyErr_Occurred()) SWIG_fail;
9248 }
9249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9250 {
9251 if (temp1)
9252 delete arg1;
9253 }
9254 return resultobj;
9255 fail:
9256 {
9257 if (temp1)
9258 delete arg1;
9259 }
9260 return NULL;
9261 }
9262
9263
9264 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9265 PyObject *resultobj = 0;
9266 wxIcon *arg1 = (wxIcon *) 0 ;
9267 void *argp1 = 0 ;
9268 int res1 = 0 ;
9269 PyObject *swig_obj[1] ;
9270
9271 if (!args) SWIG_fail;
9272 swig_obj[0] = args;
9273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9274 if (!SWIG_IsOK(res1)) {
9275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9276 }
9277 arg1 = reinterpret_cast< wxIcon * >(argp1);
9278 {
9279 PyThreadState* __tstate = wxPyBeginAllowThreads();
9280 delete arg1;
9281
9282 wxPyEndAllowThreads(__tstate);
9283 if (PyErr_Occurred()) SWIG_fail;
9284 }
9285 resultobj = SWIG_Py_Void();
9286 return resultobj;
9287 fail:
9288 return NULL;
9289 }
9290
9291
9292 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9293 PyObject *resultobj = 0;
9294 wxIcon *result = 0 ;
9295
9296 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9297 {
9298 if (!wxPyCheckForApp()) SWIG_fail;
9299 PyThreadState* __tstate = wxPyBeginAllowThreads();
9300 result = (wxIcon *)new wxIcon();
9301 wxPyEndAllowThreads(__tstate);
9302 if (PyErr_Occurred()) SWIG_fail;
9303 }
9304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9305 return resultobj;
9306 fail:
9307 return NULL;
9308 }
9309
9310
9311 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9312 PyObject *resultobj = 0;
9313 wxIconLocation *arg1 = 0 ;
9314 wxIcon *result = 0 ;
9315 void *argp1 = 0 ;
9316 int res1 = 0 ;
9317 PyObject * obj0 = 0 ;
9318 char * kwnames[] = {
9319 (char *) "loc", NULL
9320 };
9321
9322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9323 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9324 if (!SWIG_IsOK(res1)) {
9325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9326 }
9327 if (!argp1) {
9328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9329 }
9330 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9331 {
9332 if (!wxPyCheckForApp()) SWIG_fail;
9333 PyThreadState* __tstate = wxPyBeginAllowThreads();
9334 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9335 wxPyEndAllowThreads(__tstate);
9336 if (PyErr_Occurred()) SWIG_fail;
9337 }
9338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9339 return resultobj;
9340 fail:
9341 return NULL;
9342 }
9343
9344
9345 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9346 PyObject *resultobj = 0;
9347 wxBitmap *arg1 = 0 ;
9348 wxIcon *result = 0 ;
9349 void *argp1 = 0 ;
9350 int res1 = 0 ;
9351 PyObject * obj0 = 0 ;
9352 char * kwnames[] = {
9353 (char *) "bmp", NULL
9354 };
9355
9356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9357 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9358 if (!SWIG_IsOK(res1)) {
9359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9360 }
9361 if (!argp1) {
9362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9363 }
9364 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9365 {
9366 if (!wxPyCheckForApp()) SWIG_fail;
9367 PyThreadState* __tstate = wxPyBeginAllowThreads();
9368 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9369 wxPyEndAllowThreads(__tstate);
9370 if (PyErr_Occurred()) SWIG_fail;
9371 }
9372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9373 return resultobj;
9374 fail:
9375 return NULL;
9376 }
9377
9378
9379 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9380 PyObject *resultobj = 0;
9381 PyObject *arg1 = (PyObject *) 0 ;
9382 wxIcon *result = 0 ;
9383 PyObject * obj0 = 0 ;
9384 char * kwnames[] = {
9385 (char *) "listOfStrings", NULL
9386 };
9387
9388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9389 arg1 = obj0;
9390 {
9391 if (!wxPyCheckForApp()) SWIG_fail;
9392 PyThreadState* __tstate = wxPyBeginAllowThreads();
9393 result = (wxIcon *)new_wxIcon(arg1);
9394 wxPyEndAllowThreads(__tstate);
9395 if (PyErr_Occurred()) SWIG_fail;
9396 }
9397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9398 return resultobj;
9399 fail:
9400 return NULL;
9401 }
9402
9403
9404 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9405 PyObject *resultobj = 0;
9406 wxIcon *arg1 = (wxIcon *) 0 ;
9407 wxString *arg2 = 0 ;
9408 wxBitmapType arg3 ;
9409 bool result;
9410 void *argp1 = 0 ;
9411 int res1 = 0 ;
9412 bool temp2 = false ;
9413 int val3 ;
9414 int ecode3 = 0 ;
9415 PyObject * obj0 = 0 ;
9416 PyObject * obj1 = 0 ;
9417 PyObject * obj2 = 0 ;
9418 char * kwnames[] = {
9419 (char *) "self",(char *) "name",(char *) "type", NULL
9420 };
9421
9422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9424 if (!SWIG_IsOK(res1)) {
9425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9426 }
9427 arg1 = reinterpret_cast< wxIcon * >(argp1);
9428 {
9429 arg2 = wxString_in_helper(obj1);
9430 if (arg2 == NULL) SWIG_fail;
9431 temp2 = true;
9432 }
9433 ecode3 = SWIG_AsVal_int(obj2, &val3);
9434 if (!SWIG_IsOK(ecode3)) {
9435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9436 }
9437 arg3 = static_cast< wxBitmapType >(val3);
9438 {
9439 PyThreadState* __tstate = wxPyBeginAllowThreads();
9440 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9441 wxPyEndAllowThreads(__tstate);
9442 if (PyErr_Occurred()) SWIG_fail;
9443 }
9444 {
9445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9446 }
9447 {
9448 if (temp2)
9449 delete arg2;
9450 }
9451 return resultobj;
9452 fail:
9453 {
9454 if (temp2)
9455 delete arg2;
9456 }
9457 return NULL;
9458 }
9459
9460
9461 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9462 PyObject *resultobj = 0;
9463 wxIcon *arg1 = (wxIcon *) 0 ;
9464 long result;
9465 void *argp1 = 0 ;
9466 int res1 = 0 ;
9467 PyObject *swig_obj[1] ;
9468
9469 if (!args) SWIG_fail;
9470 swig_obj[0] = args;
9471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9472 if (!SWIG_IsOK(res1)) {
9473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9474 }
9475 arg1 = reinterpret_cast< wxIcon * >(argp1);
9476 {
9477 PyThreadState* __tstate = wxPyBeginAllowThreads();
9478 result = (long)(arg1)->GetHandle();
9479 wxPyEndAllowThreads(__tstate);
9480 if (PyErr_Occurred()) SWIG_fail;
9481 }
9482 resultobj = SWIG_From_long(static_cast< long >(result));
9483 return resultobj;
9484 fail:
9485 return NULL;
9486 }
9487
9488
9489 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9490 PyObject *resultobj = 0;
9491 wxIcon *arg1 = (wxIcon *) 0 ;
9492 long arg2 ;
9493 void *argp1 = 0 ;
9494 int res1 = 0 ;
9495 long val2 ;
9496 int ecode2 = 0 ;
9497 PyObject * obj0 = 0 ;
9498 PyObject * obj1 = 0 ;
9499 char * kwnames[] = {
9500 (char *) "self",(char *) "handle", NULL
9501 };
9502
9503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9505 if (!SWIG_IsOK(res1)) {
9506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9507 }
9508 arg1 = reinterpret_cast< wxIcon * >(argp1);
9509 ecode2 = SWIG_AsVal_long(obj1, &val2);
9510 if (!SWIG_IsOK(ecode2)) {
9511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9512 }
9513 arg2 = static_cast< long >(val2);
9514 {
9515 PyThreadState* __tstate = wxPyBeginAllowThreads();
9516 wxIcon_SetHandle(arg1,arg2);
9517 wxPyEndAllowThreads(__tstate);
9518 if (PyErr_Occurred()) SWIG_fail;
9519 }
9520 resultobj = SWIG_Py_Void();
9521 return resultobj;
9522 fail:
9523 return NULL;
9524 }
9525
9526
9527 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9528 PyObject *resultobj = 0;
9529 wxIcon *arg1 = (wxIcon *) 0 ;
9530 bool result;
9531 void *argp1 = 0 ;
9532 int res1 = 0 ;
9533 PyObject *swig_obj[1] ;
9534
9535 if (!args) SWIG_fail;
9536 swig_obj[0] = args;
9537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9538 if (!SWIG_IsOK(res1)) {
9539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9540 }
9541 arg1 = reinterpret_cast< wxIcon * >(argp1);
9542 {
9543 PyThreadState* __tstate = wxPyBeginAllowThreads();
9544 result = (bool)(arg1)->IsOk();
9545 wxPyEndAllowThreads(__tstate);
9546 if (PyErr_Occurred()) SWIG_fail;
9547 }
9548 {
9549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9550 }
9551 return resultobj;
9552 fail:
9553 return NULL;
9554 }
9555
9556
9557 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9558 PyObject *resultobj = 0;
9559 wxIcon *arg1 = (wxIcon *) 0 ;
9560 int result;
9561 void *argp1 = 0 ;
9562 int res1 = 0 ;
9563 PyObject *swig_obj[1] ;
9564
9565 if (!args) SWIG_fail;
9566 swig_obj[0] = args;
9567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9568 if (!SWIG_IsOK(res1)) {
9569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9570 }
9571 arg1 = reinterpret_cast< wxIcon * >(argp1);
9572 {
9573 PyThreadState* __tstate = wxPyBeginAllowThreads();
9574 result = (int)(arg1)->GetWidth();
9575 wxPyEndAllowThreads(__tstate);
9576 if (PyErr_Occurred()) SWIG_fail;
9577 }
9578 resultobj = SWIG_From_int(static_cast< int >(result));
9579 return resultobj;
9580 fail:
9581 return NULL;
9582 }
9583
9584
9585 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9586 PyObject *resultobj = 0;
9587 wxIcon *arg1 = (wxIcon *) 0 ;
9588 int result;
9589 void *argp1 = 0 ;
9590 int res1 = 0 ;
9591 PyObject *swig_obj[1] ;
9592
9593 if (!args) SWIG_fail;
9594 swig_obj[0] = args;
9595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9596 if (!SWIG_IsOK(res1)) {
9597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9598 }
9599 arg1 = reinterpret_cast< wxIcon * >(argp1);
9600 {
9601 PyThreadState* __tstate = wxPyBeginAllowThreads();
9602 result = (int)(arg1)->GetHeight();
9603 wxPyEndAllowThreads(__tstate);
9604 if (PyErr_Occurred()) SWIG_fail;
9605 }
9606 resultobj = SWIG_From_int(static_cast< int >(result));
9607 return resultobj;
9608 fail:
9609 return NULL;
9610 }
9611
9612
9613 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9614 PyObject *resultobj = 0;
9615 wxIcon *arg1 = (wxIcon *) 0 ;
9616 int result;
9617 void *argp1 = 0 ;
9618 int res1 = 0 ;
9619 PyObject *swig_obj[1] ;
9620
9621 if (!args) SWIG_fail;
9622 swig_obj[0] = args;
9623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9624 if (!SWIG_IsOK(res1)) {
9625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9626 }
9627 arg1 = reinterpret_cast< wxIcon * >(argp1);
9628 {
9629 PyThreadState* __tstate = wxPyBeginAllowThreads();
9630 result = (int)(arg1)->GetDepth();
9631 wxPyEndAllowThreads(__tstate);
9632 if (PyErr_Occurred()) SWIG_fail;
9633 }
9634 resultobj = SWIG_From_int(static_cast< int >(result));
9635 return resultobj;
9636 fail:
9637 return NULL;
9638 }
9639
9640
9641 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9642 PyObject *resultobj = 0;
9643 wxIcon *arg1 = (wxIcon *) 0 ;
9644 int arg2 ;
9645 void *argp1 = 0 ;
9646 int res1 = 0 ;
9647 int val2 ;
9648 int ecode2 = 0 ;
9649 PyObject * obj0 = 0 ;
9650 PyObject * obj1 = 0 ;
9651 char * kwnames[] = {
9652 (char *) "self",(char *) "w", NULL
9653 };
9654
9655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9657 if (!SWIG_IsOK(res1)) {
9658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9659 }
9660 arg1 = reinterpret_cast< wxIcon * >(argp1);
9661 ecode2 = SWIG_AsVal_int(obj1, &val2);
9662 if (!SWIG_IsOK(ecode2)) {
9663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9664 }
9665 arg2 = static_cast< int >(val2);
9666 {
9667 PyThreadState* __tstate = wxPyBeginAllowThreads();
9668 (arg1)->SetWidth(arg2);
9669 wxPyEndAllowThreads(__tstate);
9670 if (PyErr_Occurred()) SWIG_fail;
9671 }
9672 resultobj = SWIG_Py_Void();
9673 return resultobj;
9674 fail:
9675 return NULL;
9676 }
9677
9678
9679 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9680 PyObject *resultobj = 0;
9681 wxIcon *arg1 = (wxIcon *) 0 ;
9682 int arg2 ;
9683 void *argp1 = 0 ;
9684 int res1 = 0 ;
9685 int val2 ;
9686 int ecode2 = 0 ;
9687 PyObject * obj0 = 0 ;
9688 PyObject * obj1 = 0 ;
9689 char * kwnames[] = {
9690 (char *) "self",(char *) "h", NULL
9691 };
9692
9693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9695 if (!SWIG_IsOK(res1)) {
9696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9697 }
9698 arg1 = reinterpret_cast< wxIcon * >(argp1);
9699 ecode2 = SWIG_AsVal_int(obj1, &val2);
9700 if (!SWIG_IsOK(ecode2)) {
9701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9702 }
9703 arg2 = static_cast< int >(val2);
9704 {
9705 PyThreadState* __tstate = wxPyBeginAllowThreads();
9706 (arg1)->SetHeight(arg2);
9707 wxPyEndAllowThreads(__tstate);
9708 if (PyErr_Occurred()) SWIG_fail;
9709 }
9710 resultobj = SWIG_Py_Void();
9711 return resultobj;
9712 fail:
9713 return NULL;
9714 }
9715
9716
9717 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9718 PyObject *resultobj = 0;
9719 wxIcon *arg1 = (wxIcon *) 0 ;
9720 int arg2 ;
9721 void *argp1 = 0 ;
9722 int res1 = 0 ;
9723 int val2 ;
9724 int ecode2 = 0 ;
9725 PyObject * obj0 = 0 ;
9726 PyObject * obj1 = 0 ;
9727 char * kwnames[] = {
9728 (char *) "self",(char *) "d", NULL
9729 };
9730
9731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9733 if (!SWIG_IsOK(res1)) {
9734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9735 }
9736 arg1 = reinterpret_cast< wxIcon * >(argp1);
9737 ecode2 = SWIG_AsVal_int(obj1, &val2);
9738 if (!SWIG_IsOK(ecode2)) {
9739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9740 }
9741 arg2 = static_cast< int >(val2);
9742 {
9743 PyThreadState* __tstate = wxPyBeginAllowThreads();
9744 (arg1)->SetDepth(arg2);
9745 wxPyEndAllowThreads(__tstate);
9746 if (PyErr_Occurred()) SWIG_fail;
9747 }
9748 resultobj = SWIG_Py_Void();
9749 return resultobj;
9750 fail:
9751 return NULL;
9752 }
9753
9754
9755 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9756 PyObject *resultobj = 0;
9757 wxIcon *arg1 = (wxIcon *) 0 ;
9758 wxSize *arg2 = 0 ;
9759 void *argp1 = 0 ;
9760 int res1 = 0 ;
9761 wxSize temp2 ;
9762 PyObject * obj0 = 0 ;
9763 PyObject * obj1 = 0 ;
9764 char * kwnames[] = {
9765 (char *) "self",(char *) "size", NULL
9766 };
9767
9768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9770 if (!SWIG_IsOK(res1)) {
9771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9772 }
9773 arg1 = reinterpret_cast< wxIcon * >(argp1);
9774 {
9775 arg2 = &temp2;
9776 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9777 }
9778 {
9779 PyThreadState* __tstate = wxPyBeginAllowThreads();
9780 (arg1)->SetSize((wxSize const &)*arg2);
9781 wxPyEndAllowThreads(__tstate);
9782 if (PyErr_Occurred()) SWIG_fail;
9783 }
9784 resultobj = SWIG_Py_Void();
9785 return resultobj;
9786 fail:
9787 return NULL;
9788 }
9789
9790
9791 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9792 PyObject *resultobj = 0;
9793 wxIcon *arg1 = (wxIcon *) 0 ;
9794 wxBitmap *arg2 = 0 ;
9795 void *argp1 = 0 ;
9796 int res1 = 0 ;
9797 void *argp2 = 0 ;
9798 int res2 = 0 ;
9799 PyObject * obj0 = 0 ;
9800 PyObject * obj1 = 0 ;
9801 char * kwnames[] = {
9802 (char *) "self",(char *) "bmp", NULL
9803 };
9804
9805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9807 if (!SWIG_IsOK(res1)) {
9808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9809 }
9810 arg1 = reinterpret_cast< wxIcon * >(argp1);
9811 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9812 if (!SWIG_IsOK(res2)) {
9813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9814 }
9815 if (!argp2) {
9816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9817 }
9818 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9819 {
9820 PyThreadState* __tstate = wxPyBeginAllowThreads();
9821 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9822 wxPyEndAllowThreads(__tstate);
9823 if (PyErr_Occurred()) SWIG_fail;
9824 }
9825 resultobj = SWIG_Py_Void();
9826 return resultobj;
9827 fail:
9828 return NULL;
9829 }
9830
9831
9832 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9833 PyObject *obj;
9834 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9835 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9836 return SWIG_Py_Void();
9837 }
9838
9839 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9840 return SWIG_Python_InitShadowInstance(args);
9841 }
9842
9843 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9844 PyObject *resultobj = 0;
9845 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9846 int arg2 = (int) 0 ;
9847 wxIconLocation *result = 0 ;
9848 bool temp1 = false ;
9849 int val2 ;
9850 int ecode2 = 0 ;
9851 PyObject * obj0 = 0 ;
9852 PyObject * obj1 = 0 ;
9853 char * kwnames[] = {
9854 (char *) "filename",(char *) "num", NULL
9855 };
9856
9857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9858 if (obj0) {
9859 {
9860 arg1 = wxString_in_helper(obj0);
9861 if (arg1 == NULL) SWIG_fail;
9862 temp1 = true;
9863 }
9864 }
9865 if (obj1) {
9866 ecode2 = SWIG_AsVal_int(obj1, &val2);
9867 if (!SWIG_IsOK(ecode2)) {
9868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9869 }
9870 arg2 = static_cast< int >(val2);
9871 }
9872 {
9873 PyThreadState* __tstate = wxPyBeginAllowThreads();
9874 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9875 wxPyEndAllowThreads(__tstate);
9876 if (PyErr_Occurred()) SWIG_fail;
9877 }
9878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9879 {
9880 if (temp1)
9881 delete arg1;
9882 }
9883 return resultobj;
9884 fail:
9885 {
9886 if (temp1)
9887 delete arg1;
9888 }
9889 return NULL;
9890 }
9891
9892
9893 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9894 PyObject *resultobj = 0;
9895 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9896 void *argp1 = 0 ;
9897 int res1 = 0 ;
9898 PyObject *swig_obj[1] ;
9899
9900 if (!args) SWIG_fail;
9901 swig_obj[0] = args;
9902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9903 if (!SWIG_IsOK(res1)) {
9904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9905 }
9906 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9907 {
9908 PyThreadState* __tstate = wxPyBeginAllowThreads();
9909 delete arg1;
9910
9911 wxPyEndAllowThreads(__tstate);
9912 if (PyErr_Occurred()) SWIG_fail;
9913 }
9914 resultobj = SWIG_Py_Void();
9915 return resultobj;
9916 fail:
9917 return NULL;
9918 }
9919
9920
9921 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9922 PyObject *resultobj = 0;
9923 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9924 bool result;
9925 void *argp1 = 0 ;
9926 int res1 = 0 ;
9927 PyObject *swig_obj[1] ;
9928
9929 if (!args) SWIG_fail;
9930 swig_obj[0] = args;
9931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9932 if (!SWIG_IsOK(res1)) {
9933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9934 }
9935 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9936 {
9937 PyThreadState* __tstate = wxPyBeginAllowThreads();
9938 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9939 wxPyEndAllowThreads(__tstate);
9940 if (PyErr_Occurred()) SWIG_fail;
9941 }
9942 {
9943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9944 }
9945 return resultobj;
9946 fail:
9947 return NULL;
9948 }
9949
9950
9951 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9952 PyObject *resultobj = 0;
9953 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9954 wxString *arg2 = 0 ;
9955 void *argp1 = 0 ;
9956 int res1 = 0 ;
9957 bool temp2 = false ;
9958 PyObject * obj0 = 0 ;
9959 PyObject * obj1 = 0 ;
9960 char * kwnames[] = {
9961 (char *) "self",(char *) "filename", NULL
9962 };
9963
9964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9966 if (!SWIG_IsOK(res1)) {
9967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9968 }
9969 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9970 {
9971 arg2 = wxString_in_helper(obj1);
9972 if (arg2 == NULL) SWIG_fail;
9973 temp2 = true;
9974 }
9975 {
9976 PyThreadState* __tstate = wxPyBeginAllowThreads();
9977 (arg1)->SetFileName((wxString const &)*arg2);
9978 wxPyEndAllowThreads(__tstate);
9979 if (PyErr_Occurred()) SWIG_fail;
9980 }
9981 resultobj = SWIG_Py_Void();
9982 {
9983 if (temp2)
9984 delete arg2;
9985 }
9986 return resultobj;
9987 fail:
9988 {
9989 if (temp2)
9990 delete arg2;
9991 }
9992 return NULL;
9993 }
9994
9995
9996 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9997 PyObject *resultobj = 0;
9998 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9999 wxString *result = 0 ;
10000 void *argp1 = 0 ;
10001 int res1 = 0 ;
10002 PyObject *swig_obj[1] ;
10003
10004 if (!args) SWIG_fail;
10005 swig_obj[0] = args;
10006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10007 if (!SWIG_IsOK(res1)) {
10008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
10009 }
10010 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10011 {
10012 PyThreadState* __tstate = wxPyBeginAllowThreads();
10013 {
10014 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
10015 result = (wxString *) &_result_ref;
10016 }
10017 wxPyEndAllowThreads(__tstate);
10018 if (PyErr_Occurred()) SWIG_fail;
10019 }
10020 {
10021 #if wxUSE_UNICODE
10022 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10023 #else
10024 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10025 #endif
10026 }
10027 return resultobj;
10028 fail:
10029 return NULL;
10030 }
10031
10032
10033 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10034 PyObject *resultobj = 0;
10035 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10036 int arg2 ;
10037 void *argp1 = 0 ;
10038 int res1 = 0 ;
10039 int val2 ;
10040 int ecode2 = 0 ;
10041 PyObject * obj0 = 0 ;
10042 PyObject * obj1 = 0 ;
10043 char * kwnames[] = {
10044 (char *) "self",(char *) "num", NULL
10045 };
10046
10047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
10048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10049 if (!SWIG_IsOK(res1)) {
10050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10051 }
10052 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10053 ecode2 = SWIG_AsVal_int(obj1, &val2);
10054 if (!SWIG_IsOK(ecode2)) {
10055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
10056 }
10057 arg2 = static_cast< int >(val2);
10058 {
10059 PyThreadState* __tstate = wxPyBeginAllowThreads();
10060 wxIconLocation_SetIndex(arg1,arg2);
10061 wxPyEndAllowThreads(__tstate);
10062 if (PyErr_Occurred()) SWIG_fail;
10063 }
10064 resultobj = SWIG_Py_Void();
10065 return resultobj;
10066 fail:
10067 return NULL;
10068 }
10069
10070
10071 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10072 PyObject *resultobj = 0;
10073 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10074 int result;
10075 void *argp1 = 0 ;
10076 int res1 = 0 ;
10077 PyObject *swig_obj[1] ;
10078
10079 if (!args) SWIG_fail;
10080 swig_obj[0] = args;
10081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10082 if (!SWIG_IsOK(res1)) {
10083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10084 }
10085 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10086 {
10087 PyThreadState* __tstate = wxPyBeginAllowThreads();
10088 result = (int)wxIconLocation_GetIndex(arg1);
10089 wxPyEndAllowThreads(__tstate);
10090 if (PyErr_Occurred()) SWIG_fail;
10091 }
10092 resultobj = SWIG_From_int(static_cast< int >(result));
10093 return resultobj;
10094 fail:
10095 return NULL;
10096 }
10097
10098
10099 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10100 PyObject *obj;
10101 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10102 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
10103 return SWIG_Py_Void();
10104 }
10105
10106 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10107 return SWIG_Python_InitShadowInstance(args);
10108 }
10109
10110 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10111 PyObject *resultobj = 0;
10112 wxIconBundle *result = 0 ;
10113
10114 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
10115 {
10116 PyThreadState* __tstate = wxPyBeginAllowThreads();
10117 result = (wxIconBundle *)new wxIconBundle();
10118 wxPyEndAllowThreads(__tstate);
10119 if (PyErr_Occurred()) SWIG_fail;
10120 }
10121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
10122 return resultobj;
10123 fail:
10124 return NULL;
10125 }
10126
10127
10128 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10129 PyObject *resultobj = 0;
10130 wxString *arg1 = 0 ;
10131 long arg2 ;
10132 wxIconBundle *result = 0 ;
10133 bool temp1 = false ;
10134 long val2 ;
10135 int ecode2 = 0 ;
10136 PyObject * obj0 = 0 ;
10137 PyObject * obj1 = 0 ;
10138 char * kwnames[] = {
10139 (char *) "file",(char *) "type", NULL
10140 };
10141
10142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
10143 {
10144 arg1 = wxString_in_helper(obj0);
10145 if (arg1 == NULL) SWIG_fail;
10146 temp1 = true;
10147 }
10148 ecode2 = SWIG_AsVal_long(obj1, &val2);
10149 if (!SWIG_IsOK(ecode2)) {
10150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
10151 }
10152 arg2 = static_cast< long >(val2);
10153 {
10154 PyThreadState* __tstate = wxPyBeginAllowThreads();
10155 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
10156 wxPyEndAllowThreads(__tstate);
10157 if (PyErr_Occurred()) SWIG_fail;
10158 }
10159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10160 {
10161 if (temp1)
10162 delete arg1;
10163 }
10164 return resultobj;
10165 fail:
10166 {
10167 if (temp1)
10168 delete arg1;
10169 }
10170 return NULL;
10171 }
10172
10173
10174 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10175 PyObject *resultobj = 0;
10176 wxIcon *arg1 = 0 ;
10177 wxIconBundle *result = 0 ;
10178 void *argp1 = 0 ;
10179 int res1 = 0 ;
10180 PyObject * obj0 = 0 ;
10181 char * kwnames[] = {
10182 (char *) "icon", NULL
10183 };
10184
10185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
10186 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
10187 if (!SWIG_IsOK(res1)) {
10188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10189 }
10190 if (!argp1) {
10191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10192 }
10193 arg1 = reinterpret_cast< wxIcon * >(argp1);
10194 {
10195 PyThreadState* __tstate = wxPyBeginAllowThreads();
10196 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
10197 wxPyEndAllowThreads(__tstate);
10198 if (PyErr_Occurred()) SWIG_fail;
10199 }
10200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10201 return resultobj;
10202 fail:
10203 return NULL;
10204 }
10205
10206
10207 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10208 PyObject *resultobj = 0;
10209 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10210 void *argp1 = 0 ;
10211 int res1 = 0 ;
10212 PyObject *swig_obj[1] ;
10213
10214 if (!args) SWIG_fail;
10215 swig_obj[0] = args;
10216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
10217 if (!SWIG_IsOK(res1)) {
10218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10219 }
10220 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10221 {
10222 PyThreadState* __tstate = wxPyBeginAllowThreads();
10223 delete arg1;
10224
10225 wxPyEndAllowThreads(__tstate);
10226 if (PyErr_Occurred()) SWIG_fail;
10227 }
10228 resultobj = SWIG_Py_Void();
10229 return resultobj;
10230 fail:
10231 return NULL;
10232 }
10233
10234
10235 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10236 PyObject *resultobj = 0;
10237 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10238 wxIcon *arg2 = 0 ;
10239 void *argp1 = 0 ;
10240 int res1 = 0 ;
10241 void *argp2 = 0 ;
10242 int res2 = 0 ;
10243 PyObject * obj0 = 0 ;
10244 PyObject * obj1 = 0 ;
10245 char * kwnames[] = {
10246 (char *) "self",(char *) "icon", NULL
10247 };
10248
10249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10251 if (!SWIG_IsOK(res1)) {
10252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10253 }
10254 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10256 if (!SWIG_IsOK(res2)) {
10257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10258 }
10259 if (!argp2) {
10260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10261 }
10262 arg2 = reinterpret_cast< wxIcon * >(argp2);
10263 {
10264 PyThreadState* __tstate = wxPyBeginAllowThreads();
10265 (arg1)->AddIcon((wxIcon const &)*arg2);
10266 wxPyEndAllowThreads(__tstate);
10267 if (PyErr_Occurred()) SWIG_fail;
10268 }
10269 resultobj = SWIG_Py_Void();
10270 return resultobj;
10271 fail:
10272 return NULL;
10273 }
10274
10275
10276 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10277 PyObject *resultobj = 0;
10278 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10279 wxString *arg2 = 0 ;
10280 long arg3 ;
10281 void *argp1 = 0 ;
10282 int res1 = 0 ;
10283 bool temp2 = false ;
10284 long val3 ;
10285 int ecode3 = 0 ;
10286 PyObject * obj0 = 0 ;
10287 PyObject * obj1 = 0 ;
10288 PyObject * obj2 = 0 ;
10289 char * kwnames[] = {
10290 (char *) "self",(char *) "file",(char *) "type", NULL
10291 };
10292
10293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10295 if (!SWIG_IsOK(res1)) {
10296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10297 }
10298 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10299 {
10300 arg2 = wxString_in_helper(obj1);
10301 if (arg2 == NULL) SWIG_fail;
10302 temp2 = true;
10303 }
10304 ecode3 = SWIG_AsVal_long(obj2, &val3);
10305 if (!SWIG_IsOK(ecode3)) {
10306 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10307 }
10308 arg3 = static_cast< long >(val3);
10309 {
10310 PyThreadState* __tstate = wxPyBeginAllowThreads();
10311 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10312 wxPyEndAllowThreads(__tstate);
10313 if (PyErr_Occurred()) SWIG_fail;
10314 }
10315 resultobj = SWIG_Py_Void();
10316 {
10317 if (temp2)
10318 delete arg2;
10319 }
10320 return resultobj;
10321 fail:
10322 {
10323 if (temp2)
10324 delete arg2;
10325 }
10326 return NULL;
10327 }
10328
10329
10330 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10331 PyObject *resultobj = 0;
10332 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10333 wxSize *arg2 = 0 ;
10334 wxIcon *result = 0 ;
10335 void *argp1 = 0 ;
10336 int res1 = 0 ;
10337 wxSize temp2 ;
10338 PyObject * obj0 = 0 ;
10339 PyObject * obj1 = 0 ;
10340 char * kwnames[] = {
10341 (char *) "self",(char *) "size", NULL
10342 };
10343
10344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10346 if (!SWIG_IsOK(res1)) {
10347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10348 }
10349 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10350 {
10351 arg2 = &temp2;
10352 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10353 }
10354 {
10355 PyThreadState* __tstate = wxPyBeginAllowThreads();
10356 {
10357 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10358 result = (wxIcon *) &_result_ref;
10359 }
10360 wxPyEndAllowThreads(__tstate);
10361 if (PyErr_Occurred()) SWIG_fail;
10362 }
10363 {
10364 wxIcon* resultptr = new wxIcon(*result);
10365 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10366 }
10367 return resultobj;
10368 fail:
10369 return NULL;
10370 }
10371
10372
10373 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10374 PyObject *obj;
10375 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10376 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10377 return SWIG_Py_Void();
10378 }
10379
10380 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10381 return SWIG_Python_InitShadowInstance(args);
10382 }
10383
10384 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10385 PyObject *resultobj = 0;
10386 wxString *arg1 = 0 ;
10387 long arg2 ;
10388 int arg3 = (int) 0 ;
10389 int arg4 = (int) 0 ;
10390 wxCursor *result = 0 ;
10391 bool temp1 = false ;
10392 long val2 ;
10393 int ecode2 = 0 ;
10394 int val3 ;
10395 int ecode3 = 0 ;
10396 int val4 ;
10397 int ecode4 = 0 ;
10398 PyObject * obj0 = 0 ;
10399 PyObject * obj1 = 0 ;
10400 PyObject * obj2 = 0 ;
10401 PyObject * obj3 = 0 ;
10402 char * kwnames[] = {
10403 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10404 };
10405
10406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10407 {
10408 arg1 = wxString_in_helper(obj0);
10409 if (arg1 == NULL) SWIG_fail;
10410 temp1 = true;
10411 }
10412 ecode2 = SWIG_AsVal_long(obj1, &val2);
10413 if (!SWIG_IsOK(ecode2)) {
10414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10415 }
10416 arg2 = static_cast< long >(val2);
10417 if (obj2) {
10418 ecode3 = SWIG_AsVal_int(obj2, &val3);
10419 if (!SWIG_IsOK(ecode3)) {
10420 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10421 }
10422 arg3 = static_cast< int >(val3);
10423 }
10424 if (obj3) {
10425 ecode4 = SWIG_AsVal_int(obj3, &val4);
10426 if (!SWIG_IsOK(ecode4)) {
10427 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10428 }
10429 arg4 = static_cast< int >(val4);
10430 }
10431 {
10432 if (!wxPyCheckForApp()) SWIG_fail;
10433 PyThreadState* __tstate = wxPyBeginAllowThreads();
10434 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10435 wxPyEndAllowThreads(__tstate);
10436 if (PyErr_Occurred()) SWIG_fail;
10437 }
10438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10439 {
10440 if (temp1)
10441 delete arg1;
10442 }
10443 return resultobj;
10444 fail:
10445 {
10446 if (temp1)
10447 delete arg1;
10448 }
10449 return NULL;
10450 }
10451
10452
10453 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10454 PyObject *resultobj = 0;
10455 wxCursor *arg1 = (wxCursor *) 0 ;
10456 void *argp1 = 0 ;
10457 int res1 = 0 ;
10458 PyObject *swig_obj[1] ;
10459
10460 if (!args) SWIG_fail;
10461 swig_obj[0] = args;
10462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10463 if (!SWIG_IsOK(res1)) {
10464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10465 }
10466 arg1 = reinterpret_cast< wxCursor * >(argp1);
10467 {
10468 PyThreadState* __tstate = wxPyBeginAllowThreads();
10469 delete arg1;
10470
10471 wxPyEndAllowThreads(__tstate);
10472 if (PyErr_Occurred()) SWIG_fail;
10473 }
10474 resultobj = SWIG_Py_Void();
10475 return resultobj;
10476 fail:
10477 return NULL;
10478 }
10479
10480
10481 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10482 PyObject *resultobj = 0;
10483 int arg1 ;
10484 wxCursor *result = 0 ;
10485 int val1 ;
10486 int ecode1 = 0 ;
10487 PyObject * obj0 = 0 ;
10488 char * kwnames[] = {
10489 (char *) "id", NULL
10490 };
10491
10492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10493 ecode1 = SWIG_AsVal_int(obj0, &val1);
10494 if (!SWIG_IsOK(ecode1)) {
10495 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10496 }
10497 arg1 = static_cast< int >(val1);
10498 {
10499 if (!wxPyCheckForApp()) SWIG_fail;
10500 PyThreadState* __tstate = wxPyBeginAllowThreads();
10501 result = (wxCursor *)new wxCursor(arg1);
10502 wxPyEndAllowThreads(__tstate);
10503 if (PyErr_Occurred()) SWIG_fail;
10504 }
10505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10506 return resultobj;
10507 fail:
10508 return NULL;
10509 }
10510
10511
10512 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10513 PyObject *resultobj = 0;
10514 wxImage *arg1 = 0 ;
10515 wxCursor *result = 0 ;
10516 void *argp1 = 0 ;
10517 int res1 = 0 ;
10518 PyObject * obj0 = 0 ;
10519 char * kwnames[] = {
10520 (char *) "image", NULL
10521 };
10522
10523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10524 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10525 if (!SWIG_IsOK(res1)) {
10526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10527 }
10528 if (!argp1) {
10529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10530 }
10531 arg1 = reinterpret_cast< wxImage * >(argp1);
10532 {
10533 if (!wxPyCheckForApp()) SWIG_fail;
10534 PyThreadState* __tstate = wxPyBeginAllowThreads();
10535 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10536 wxPyEndAllowThreads(__tstate);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10540 return resultobj;
10541 fail:
10542 return NULL;
10543 }
10544
10545
10546 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10547 PyObject *resultobj = 0;
10548 wxCursor *arg1 = (wxCursor *) 0 ;
10549 long result;
10550 void *argp1 = 0 ;
10551 int res1 = 0 ;
10552 PyObject *swig_obj[1] ;
10553
10554 if (!args) SWIG_fail;
10555 swig_obj[0] = args;
10556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10557 if (!SWIG_IsOK(res1)) {
10558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10559 }
10560 arg1 = reinterpret_cast< wxCursor * >(argp1);
10561 {
10562 PyThreadState* __tstate = wxPyBeginAllowThreads();
10563 result = (long)(arg1)->GetHandle();
10564 wxPyEndAllowThreads(__tstate);
10565 if (PyErr_Occurred()) SWIG_fail;
10566 }
10567 resultobj = SWIG_From_long(static_cast< long >(result));
10568 return resultobj;
10569 fail:
10570 return NULL;
10571 }
10572
10573
10574 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10575 PyObject *resultobj = 0;
10576 wxCursor *arg1 = (wxCursor *) 0 ;
10577 long arg2 ;
10578 void *argp1 = 0 ;
10579 int res1 = 0 ;
10580 long val2 ;
10581 int ecode2 = 0 ;
10582 PyObject * obj0 = 0 ;
10583 PyObject * obj1 = 0 ;
10584 char * kwnames[] = {
10585 (char *) "self",(char *) "handle", NULL
10586 };
10587
10588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10590 if (!SWIG_IsOK(res1)) {
10591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10592 }
10593 arg1 = reinterpret_cast< wxCursor * >(argp1);
10594 ecode2 = SWIG_AsVal_long(obj1, &val2);
10595 if (!SWIG_IsOK(ecode2)) {
10596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10597 }
10598 arg2 = static_cast< long >(val2);
10599 {
10600 PyThreadState* __tstate = wxPyBeginAllowThreads();
10601 wxCursor_SetHandle(arg1,arg2);
10602 wxPyEndAllowThreads(__tstate);
10603 if (PyErr_Occurred()) SWIG_fail;
10604 }
10605 resultobj = SWIG_Py_Void();
10606 return resultobj;
10607 fail:
10608 return NULL;
10609 }
10610
10611
10612 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10613 PyObject *resultobj = 0;
10614 wxCursor *arg1 = (wxCursor *) 0 ;
10615 bool result;
10616 void *argp1 = 0 ;
10617 int res1 = 0 ;
10618 PyObject *swig_obj[1] ;
10619
10620 if (!args) SWIG_fail;
10621 swig_obj[0] = args;
10622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10623 if (!SWIG_IsOK(res1)) {
10624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10625 }
10626 arg1 = reinterpret_cast< wxCursor * >(argp1);
10627 {
10628 PyThreadState* __tstate = wxPyBeginAllowThreads();
10629 result = (bool)(arg1)->IsOk();
10630 wxPyEndAllowThreads(__tstate);
10631 if (PyErr_Occurred()) SWIG_fail;
10632 }
10633 {
10634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10635 }
10636 return resultobj;
10637 fail:
10638 return NULL;
10639 }
10640
10641
10642 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10643 PyObject *resultobj = 0;
10644 wxCursor *arg1 = (wxCursor *) 0 ;
10645 int result;
10646 void *argp1 = 0 ;
10647 int res1 = 0 ;
10648 PyObject *swig_obj[1] ;
10649
10650 if (!args) SWIG_fail;
10651 swig_obj[0] = args;
10652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10653 if (!SWIG_IsOK(res1)) {
10654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10655 }
10656 arg1 = reinterpret_cast< wxCursor * >(argp1);
10657 {
10658 PyThreadState* __tstate = wxPyBeginAllowThreads();
10659 result = (int)(arg1)->GetWidth();
10660 wxPyEndAllowThreads(__tstate);
10661 if (PyErr_Occurred()) SWIG_fail;
10662 }
10663 resultobj = SWIG_From_int(static_cast< int >(result));
10664 return resultobj;
10665 fail:
10666 return NULL;
10667 }
10668
10669
10670 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10671 PyObject *resultobj = 0;
10672 wxCursor *arg1 = (wxCursor *) 0 ;
10673 int result;
10674 void *argp1 = 0 ;
10675 int res1 = 0 ;
10676 PyObject *swig_obj[1] ;
10677
10678 if (!args) SWIG_fail;
10679 swig_obj[0] = args;
10680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10681 if (!SWIG_IsOK(res1)) {
10682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10683 }
10684 arg1 = reinterpret_cast< wxCursor * >(argp1);
10685 {
10686 PyThreadState* __tstate = wxPyBeginAllowThreads();
10687 result = (int)(arg1)->GetHeight();
10688 wxPyEndAllowThreads(__tstate);
10689 if (PyErr_Occurred()) SWIG_fail;
10690 }
10691 resultobj = SWIG_From_int(static_cast< int >(result));
10692 return resultobj;
10693 fail:
10694 return NULL;
10695 }
10696
10697
10698 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10699 PyObject *resultobj = 0;
10700 wxCursor *arg1 = (wxCursor *) 0 ;
10701 int result;
10702 void *argp1 = 0 ;
10703 int res1 = 0 ;
10704 PyObject *swig_obj[1] ;
10705
10706 if (!args) SWIG_fail;
10707 swig_obj[0] = args;
10708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10709 if (!SWIG_IsOK(res1)) {
10710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10711 }
10712 arg1 = reinterpret_cast< wxCursor * >(argp1);
10713 {
10714 PyThreadState* __tstate = wxPyBeginAllowThreads();
10715 result = (int)(arg1)->GetDepth();
10716 wxPyEndAllowThreads(__tstate);
10717 if (PyErr_Occurred()) SWIG_fail;
10718 }
10719 resultobj = SWIG_From_int(static_cast< int >(result));
10720 return resultobj;
10721 fail:
10722 return NULL;
10723 }
10724
10725
10726 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10727 PyObject *resultobj = 0;
10728 wxCursor *arg1 = (wxCursor *) 0 ;
10729 int arg2 ;
10730 void *argp1 = 0 ;
10731 int res1 = 0 ;
10732 int val2 ;
10733 int ecode2 = 0 ;
10734 PyObject * obj0 = 0 ;
10735 PyObject * obj1 = 0 ;
10736 char * kwnames[] = {
10737 (char *) "self",(char *) "w", NULL
10738 };
10739
10740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10742 if (!SWIG_IsOK(res1)) {
10743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10744 }
10745 arg1 = reinterpret_cast< wxCursor * >(argp1);
10746 ecode2 = SWIG_AsVal_int(obj1, &val2);
10747 if (!SWIG_IsOK(ecode2)) {
10748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10749 }
10750 arg2 = static_cast< int >(val2);
10751 {
10752 PyThreadState* __tstate = wxPyBeginAllowThreads();
10753 (arg1)->SetWidth(arg2);
10754 wxPyEndAllowThreads(__tstate);
10755 if (PyErr_Occurred()) SWIG_fail;
10756 }
10757 resultobj = SWIG_Py_Void();
10758 return resultobj;
10759 fail:
10760 return NULL;
10761 }
10762
10763
10764 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10765 PyObject *resultobj = 0;
10766 wxCursor *arg1 = (wxCursor *) 0 ;
10767 int arg2 ;
10768 void *argp1 = 0 ;
10769 int res1 = 0 ;
10770 int val2 ;
10771 int ecode2 = 0 ;
10772 PyObject * obj0 = 0 ;
10773 PyObject * obj1 = 0 ;
10774 char * kwnames[] = {
10775 (char *) "self",(char *) "h", NULL
10776 };
10777
10778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10780 if (!SWIG_IsOK(res1)) {
10781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10782 }
10783 arg1 = reinterpret_cast< wxCursor * >(argp1);
10784 ecode2 = SWIG_AsVal_int(obj1, &val2);
10785 if (!SWIG_IsOK(ecode2)) {
10786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10787 }
10788 arg2 = static_cast< int >(val2);
10789 {
10790 PyThreadState* __tstate = wxPyBeginAllowThreads();
10791 (arg1)->SetHeight(arg2);
10792 wxPyEndAllowThreads(__tstate);
10793 if (PyErr_Occurred()) SWIG_fail;
10794 }
10795 resultobj = SWIG_Py_Void();
10796 return resultobj;
10797 fail:
10798 return NULL;
10799 }
10800
10801
10802 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10803 PyObject *resultobj = 0;
10804 wxCursor *arg1 = (wxCursor *) 0 ;
10805 int arg2 ;
10806 void *argp1 = 0 ;
10807 int res1 = 0 ;
10808 int val2 ;
10809 int ecode2 = 0 ;
10810 PyObject * obj0 = 0 ;
10811 PyObject * obj1 = 0 ;
10812 char * kwnames[] = {
10813 (char *) "self",(char *) "d", NULL
10814 };
10815
10816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10818 if (!SWIG_IsOK(res1)) {
10819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10820 }
10821 arg1 = reinterpret_cast< wxCursor * >(argp1);
10822 ecode2 = SWIG_AsVal_int(obj1, &val2);
10823 if (!SWIG_IsOK(ecode2)) {
10824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10825 }
10826 arg2 = static_cast< int >(val2);
10827 {
10828 PyThreadState* __tstate = wxPyBeginAllowThreads();
10829 (arg1)->SetDepth(arg2);
10830 wxPyEndAllowThreads(__tstate);
10831 if (PyErr_Occurred()) SWIG_fail;
10832 }
10833 resultobj = SWIG_Py_Void();
10834 return resultobj;
10835 fail:
10836 return NULL;
10837 }
10838
10839
10840 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10841 PyObject *resultobj = 0;
10842 wxCursor *arg1 = (wxCursor *) 0 ;
10843 wxSize *arg2 = 0 ;
10844 void *argp1 = 0 ;
10845 int res1 = 0 ;
10846 wxSize temp2 ;
10847 PyObject * obj0 = 0 ;
10848 PyObject * obj1 = 0 ;
10849 char * kwnames[] = {
10850 (char *) "self",(char *) "size", NULL
10851 };
10852
10853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10855 if (!SWIG_IsOK(res1)) {
10856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10857 }
10858 arg1 = reinterpret_cast< wxCursor * >(argp1);
10859 {
10860 arg2 = &temp2;
10861 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10862 }
10863 {
10864 PyThreadState* __tstate = wxPyBeginAllowThreads();
10865 (arg1)->SetSize((wxSize const &)*arg2);
10866 wxPyEndAllowThreads(__tstate);
10867 if (PyErr_Occurred()) SWIG_fail;
10868 }
10869 resultobj = SWIG_Py_Void();
10870 return resultobj;
10871 fail:
10872 return NULL;
10873 }
10874
10875
10876 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10877 PyObject *obj;
10878 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10879 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10880 return SWIG_Py_Void();
10881 }
10882
10883 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10884 return SWIG_Python_InitShadowInstance(args);
10885 }
10886
10887 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10888 PyObject *resultobj = 0;
10889 int arg1 = (int) 0 ;
10890 int arg2 = (int) 0 ;
10891 int arg3 = (int) 0 ;
10892 int arg4 = (int) 0 ;
10893 wxRegion *result = 0 ;
10894 int val1 ;
10895 int ecode1 = 0 ;
10896 int val2 ;
10897 int ecode2 = 0 ;
10898 int val3 ;
10899 int ecode3 = 0 ;
10900 int val4 ;
10901 int ecode4 = 0 ;
10902 PyObject * obj0 = 0 ;
10903 PyObject * obj1 = 0 ;
10904 PyObject * obj2 = 0 ;
10905 PyObject * obj3 = 0 ;
10906 char * kwnames[] = {
10907 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10908 };
10909
10910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10911 if (obj0) {
10912 ecode1 = SWIG_AsVal_int(obj0, &val1);
10913 if (!SWIG_IsOK(ecode1)) {
10914 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10915 }
10916 arg1 = static_cast< int >(val1);
10917 }
10918 if (obj1) {
10919 ecode2 = SWIG_AsVal_int(obj1, &val2);
10920 if (!SWIG_IsOK(ecode2)) {
10921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10922 }
10923 arg2 = static_cast< int >(val2);
10924 }
10925 if (obj2) {
10926 ecode3 = SWIG_AsVal_int(obj2, &val3);
10927 if (!SWIG_IsOK(ecode3)) {
10928 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10929 }
10930 arg3 = static_cast< int >(val3);
10931 }
10932 if (obj3) {
10933 ecode4 = SWIG_AsVal_int(obj3, &val4);
10934 if (!SWIG_IsOK(ecode4)) {
10935 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10936 }
10937 arg4 = static_cast< int >(val4);
10938 }
10939 {
10940 if (!wxPyCheckForApp()) SWIG_fail;
10941 PyThreadState* __tstate = wxPyBeginAllowThreads();
10942 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10943 wxPyEndAllowThreads(__tstate);
10944 if (PyErr_Occurred()) SWIG_fail;
10945 }
10946 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10947 return resultobj;
10948 fail:
10949 return NULL;
10950 }
10951
10952
10953 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10954 PyObject *resultobj = 0;
10955 wxBitmap *arg1 = 0 ;
10956 wxRegion *result = 0 ;
10957 void *argp1 = 0 ;
10958 int res1 = 0 ;
10959 PyObject * obj0 = 0 ;
10960 char * kwnames[] = {
10961 (char *) "bmp", NULL
10962 };
10963
10964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10965 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10966 if (!SWIG_IsOK(res1)) {
10967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10968 }
10969 if (!argp1) {
10970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10971 }
10972 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10973 {
10974 if (!wxPyCheckForApp()) SWIG_fail;
10975 PyThreadState* __tstate = wxPyBeginAllowThreads();
10976 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10977 wxPyEndAllowThreads(__tstate);
10978 if (PyErr_Occurred()) SWIG_fail;
10979 }
10980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10981 return resultobj;
10982 fail:
10983 return NULL;
10984 }
10985
10986
10987 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10988 PyObject *resultobj = 0;
10989 wxBitmap *arg1 = 0 ;
10990 wxColour *arg2 = 0 ;
10991 int arg3 = (int) 0 ;
10992 wxRegion *result = 0 ;
10993 void *argp1 = 0 ;
10994 int res1 = 0 ;
10995 wxColour temp2 ;
10996 int val3 ;
10997 int ecode3 = 0 ;
10998 PyObject * obj0 = 0 ;
10999 PyObject * obj1 = 0 ;
11000 PyObject * obj2 = 0 ;
11001 char * kwnames[] = {
11002 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11003 };
11004
11005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11006 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11007 if (!SWIG_IsOK(res1)) {
11008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11009 }
11010 if (!argp1) {
11011 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11012 }
11013 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11014 {
11015 arg2 = &temp2;
11016 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11017 }
11018 if (obj2) {
11019 ecode3 = SWIG_AsVal_int(obj2, &val3);
11020 if (!SWIG_IsOK(ecode3)) {
11021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
11022 }
11023 arg3 = static_cast< int >(val3);
11024 }
11025 {
11026 if (!wxPyCheckForApp()) SWIG_fail;
11027 PyThreadState* __tstate = wxPyBeginAllowThreads();
11028 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
11029 wxPyEndAllowThreads(__tstate);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 }
11032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11033 return resultobj;
11034 fail:
11035 return NULL;
11036 }
11037
11038
11039 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11040 PyObject *resultobj = 0;
11041 int arg1 ;
11042 wxPoint *arg2 = (wxPoint *) 0 ;
11043 int arg3 = (int) wxWINDING_RULE ;
11044 wxRegion *result = 0 ;
11045 int val3 ;
11046 int ecode3 = 0 ;
11047 PyObject * obj0 = 0 ;
11048 PyObject * obj1 = 0 ;
11049 char * kwnames[] = {
11050 (char *) "points",(char *) "fillStyle", NULL
11051 };
11052
11053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
11054 {
11055 arg2 = wxPoint_LIST_helper(obj0, &arg1);
11056 if (arg2 == NULL) SWIG_fail;
11057 }
11058 if (obj1) {
11059 ecode3 = SWIG_AsVal_int(obj1, &val3);
11060 if (!SWIG_IsOK(ecode3)) {
11061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
11062 }
11063 arg3 = static_cast< int >(val3);
11064 }
11065 {
11066 if (!wxPyCheckForApp()) SWIG_fail;
11067 PyThreadState* __tstate = wxPyBeginAllowThreads();
11068 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
11069 wxPyEndAllowThreads(__tstate);
11070 if (PyErr_Occurred()) SWIG_fail;
11071 }
11072 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11073 {
11074 if (arg2) delete [] arg2;
11075 }
11076 return resultobj;
11077 fail:
11078 {
11079 if (arg2) delete [] arg2;
11080 }
11081 return NULL;
11082 }
11083
11084
11085 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11086 PyObject *resultobj = 0;
11087 wxRegion *arg1 = (wxRegion *) 0 ;
11088 void *argp1 = 0 ;
11089 int res1 = 0 ;
11090 PyObject *swig_obj[1] ;
11091
11092 if (!args) SWIG_fail;
11093 swig_obj[0] = args;
11094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
11095 if (!SWIG_IsOK(res1)) {
11096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
11097 }
11098 arg1 = reinterpret_cast< wxRegion * >(argp1);
11099 {
11100 PyThreadState* __tstate = wxPyBeginAllowThreads();
11101 delete arg1;
11102
11103 wxPyEndAllowThreads(__tstate);
11104 if (PyErr_Occurred()) SWIG_fail;
11105 }
11106 resultobj = SWIG_Py_Void();
11107 return resultobj;
11108 fail:
11109 return NULL;
11110 }
11111
11112
11113 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11114 PyObject *resultobj = 0;
11115 wxRegion *arg1 = (wxRegion *) 0 ;
11116 void *argp1 = 0 ;
11117 int res1 = 0 ;
11118 PyObject *swig_obj[1] ;
11119
11120 if (!args) SWIG_fail;
11121 swig_obj[0] = args;
11122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11123 if (!SWIG_IsOK(res1)) {
11124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
11125 }
11126 arg1 = reinterpret_cast< wxRegion * >(argp1);
11127 {
11128 PyThreadState* __tstate = wxPyBeginAllowThreads();
11129 (arg1)->Clear();
11130 wxPyEndAllowThreads(__tstate);
11131 if (PyErr_Occurred()) SWIG_fail;
11132 }
11133 resultobj = SWIG_Py_Void();
11134 return resultobj;
11135 fail:
11136 return NULL;
11137 }
11138
11139
11140 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11141 PyObject *resultobj = 0;
11142 wxRegion *arg1 = (wxRegion *) 0 ;
11143 int arg2 ;
11144 int arg3 ;
11145 bool result;
11146 void *argp1 = 0 ;
11147 int res1 = 0 ;
11148 int val2 ;
11149 int ecode2 = 0 ;
11150 int val3 ;
11151 int ecode3 = 0 ;
11152 PyObject * obj0 = 0 ;
11153 PyObject * obj1 = 0 ;
11154 PyObject * obj2 = 0 ;
11155 char * kwnames[] = {
11156 (char *) "self",(char *) "x",(char *) "y", NULL
11157 };
11158
11159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11161 if (!SWIG_IsOK(res1)) {
11162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
11163 }
11164 arg1 = reinterpret_cast< wxRegion * >(argp1);
11165 ecode2 = SWIG_AsVal_int(obj1, &val2);
11166 if (!SWIG_IsOK(ecode2)) {
11167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
11168 }
11169 arg2 = static_cast< int >(val2);
11170 ecode3 = SWIG_AsVal_int(obj2, &val3);
11171 if (!SWIG_IsOK(ecode3)) {
11172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
11173 }
11174 arg3 = static_cast< int >(val3);
11175 {
11176 PyThreadState* __tstate = wxPyBeginAllowThreads();
11177 result = (bool)(arg1)->Offset(arg2,arg3);
11178 wxPyEndAllowThreads(__tstate);
11179 if (PyErr_Occurred()) SWIG_fail;
11180 }
11181 {
11182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11183 }
11184 return resultobj;
11185 fail:
11186 return NULL;
11187 }
11188
11189
11190 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11191 PyObject *resultobj = 0;
11192 wxRegion *arg1 = (wxRegion *) 0 ;
11193 int arg2 ;
11194 int arg3 ;
11195 wxRegionContain result;
11196 void *argp1 = 0 ;
11197 int res1 = 0 ;
11198 int val2 ;
11199 int ecode2 = 0 ;
11200 int val3 ;
11201 int ecode3 = 0 ;
11202 PyObject * obj0 = 0 ;
11203 PyObject * obj1 = 0 ;
11204 PyObject * obj2 = 0 ;
11205 char * kwnames[] = {
11206 (char *) "self",(char *) "x",(char *) "y", NULL
11207 };
11208
11209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11211 if (!SWIG_IsOK(res1)) {
11212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
11213 }
11214 arg1 = reinterpret_cast< wxRegion * >(argp1);
11215 ecode2 = SWIG_AsVal_int(obj1, &val2);
11216 if (!SWIG_IsOK(ecode2)) {
11217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
11218 }
11219 arg2 = static_cast< int >(val2);
11220 ecode3 = SWIG_AsVal_int(obj2, &val3);
11221 if (!SWIG_IsOK(ecode3)) {
11222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
11223 }
11224 arg3 = static_cast< int >(val3);
11225 {
11226 PyThreadState* __tstate = wxPyBeginAllowThreads();
11227 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
11228 wxPyEndAllowThreads(__tstate);
11229 if (PyErr_Occurred()) SWIG_fail;
11230 }
11231 resultobj = SWIG_From_int(static_cast< int >(result));
11232 return resultobj;
11233 fail:
11234 return NULL;
11235 }
11236
11237
11238 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11239 PyObject *resultobj = 0;
11240 wxRegion *arg1 = (wxRegion *) 0 ;
11241 wxPoint *arg2 = 0 ;
11242 wxRegionContain result;
11243 void *argp1 = 0 ;
11244 int res1 = 0 ;
11245 wxPoint temp2 ;
11246 PyObject * obj0 = 0 ;
11247 PyObject * obj1 = 0 ;
11248 char * kwnames[] = {
11249 (char *) "self",(char *) "pt", NULL
11250 };
11251
11252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
11253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11254 if (!SWIG_IsOK(res1)) {
11255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
11256 }
11257 arg1 = reinterpret_cast< wxRegion * >(argp1);
11258 {
11259 arg2 = &temp2;
11260 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11261 }
11262 {
11263 PyThreadState* __tstate = wxPyBeginAllowThreads();
11264 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
11265 wxPyEndAllowThreads(__tstate);
11266 if (PyErr_Occurred()) SWIG_fail;
11267 }
11268 resultobj = SWIG_From_int(static_cast< int >(result));
11269 return resultobj;
11270 fail:
11271 return NULL;
11272 }
11273
11274
11275 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11276 PyObject *resultobj = 0;
11277 wxRegion *arg1 = (wxRegion *) 0 ;
11278 wxRect *arg2 = 0 ;
11279 wxRegionContain result;
11280 void *argp1 = 0 ;
11281 int res1 = 0 ;
11282 wxRect temp2 ;
11283 PyObject * obj0 = 0 ;
11284 PyObject * obj1 = 0 ;
11285 char * kwnames[] = {
11286 (char *) "self",(char *) "rect", NULL
11287 };
11288
11289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
11290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11291 if (!SWIG_IsOK(res1)) {
11292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11293 }
11294 arg1 = reinterpret_cast< wxRegion * >(argp1);
11295 {
11296 arg2 = &temp2;
11297 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11298 }
11299 {
11300 PyThreadState* __tstate = wxPyBeginAllowThreads();
11301 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
11302 wxPyEndAllowThreads(__tstate);
11303 if (PyErr_Occurred()) SWIG_fail;
11304 }
11305 resultobj = SWIG_From_int(static_cast< int >(result));
11306 return resultobj;
11307 fail:
11308 return NULL;
11309 }
11310
11311
11312 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11313 PyObject *resultobj = 0;
11314 wxRegion *arg1 = (wxRegion *) 0 ;
11315 int arg2 ;
11316 int arg3 ;
11317 int arg4 ;
11318 int arg5 ;
11319 wxRegionContain result;
11320 void *argp1 = 0 ;
11321 int res1 = 0 ;
11322 int val2 ;
11323 int ecode2 = 0 ;
11324 int val3 ;
11325 int ecode3 = 0 ;
11326 int val4 ;
11327 int ecode4 = 0 ;
11328 int val5 ;
11329 int ecode5 = 0 ;
11330 PyObject * obj0 = 0 ;
11331 PyObject * obj1 = 0 ;
11332 PyObject * obj2 = 0 ;
11333 PyObject * obj3 = 0 ;
11334 PyObject * obj4 = 0 ;
11335 char * kwnames[] = {
11336 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11337 };
11338
11339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11341 if (!SWIG_IsOK(res1)) {
11342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11343 }
11344 arg1 = reinterpret_cast< wxRegion * >(argp1);
11345 ecode2 = SWIG_AsVal_int(obj1, &val2);
11346 if (!SWIG_IsOK(ecode2)) {
11347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11348 }
11349 arg2 = static_cast< int >(val2);
11350 ecode3 = SWIG_AsVal_int(obj2, &val3);
11351 if (!SWIG_IsOK(ecode3)) {
11352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11353 }
11354 arg3 = static_cast< int >(val3);
11355 ecode4 = SWIG_AsVal_int(obj3, &val4);
11356 if (!SWIG_IsOK(ecode4)) {
11357 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11358 }
11359 arg4 = static_cast< int >(val4);
11360 ecode5 = SWIG_AsVal_int(obj4, &val5);
11361 if (!SWIG_IsOK(ecode5)) {
11362 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11363 }
11364 arg5 = static_cast< int >(val5);
11365 {
11366 PyThreadState* __tstate = wxPyBeginAllowThreads();
11367 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11368 wxPyEndAllowThreads(__tstate);
11369 if (PyErr_Occurred()) SWIG_fail;
11370 }
11371 resultobj = SWIG_From_int(static_cast< int >(result));
11372 return resultobj;
11373 fail:
11374 return NULL;
11375 }
11376
11377
11378 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11379 PyObject *resultobj = 0;
11380 wxRegion *arg1 = (wxRegion *) 0 ;
11381 wxRect result;
11382 void *argp1 = 0 ;
11383 int res1 = 0 ;
11384 PyObject *swig_obj[1] ;
11385
11386 if (!args) SWIG_fail;
11387 swig_obj[0] = args;
11388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11389 if (!SWIG_IsOK(res1)) {
11390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11391 }
11392 arg1 = reinterpret_cast< wxRegion * >(argp1);
11393 {
11394 PyThreadState* __tstate = wxPyBeginAllowThreads();
11395 result = (arg1)->GetBox();
11396 wxPyEndAllowThreads(__tstate);
11397 if (PyErr_Occurred()) SWIG_fail;
11398 }
11399 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11400 return resultobj;
11401 fail:
11402 return NULL;
11403 }
11404
11405
11406 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11407 PyObject *resultobj = 0;
11408 wxRegion *arg1 = (wxRegion *) 0 ;
11409 int arg2 ;
11410 int arg3 ;
11411 int arg4 ;
11412 int arg5 ;
11413 bool result;
11414 void *argp1 = 0 ;
11415 int res1 = 0 ;
11416 int val2 ;
11417 int ecode2 = 0 ;
11418 int val3 ;
11419 int ecode3 = 0 ;
11420 int val4 ;
11421 int ecode4 = 0 ;
11422 int val5 ;
11423 int ecode5 = 0 ;
11424 PyObject * obj0 = 0 ;
11425 PyObject * obj1 = 0 ;
11426 PyObject * obj2 = 0 ;
11427 PyObject * obj3 = 0 ;
11428 PyObject * obj4 = 0 ;
11429 char * kwnames[] = {
11430 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11431 };
11432
11433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11435 if (!SWIG_IsOK(res1)) {
11436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11437 }
11438 arg1 = reinterpret_cast< wxRegion * >(argp1);
11439 ecode2 = SWIG_AsVal_int(obj1, &val2);
11440 if (!SWIG_IsOK(ecode2)) {
11441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11442 }
11443 arg2 = static_cast< int >(val2);
11444 ecode3 = SWIG_AsVal_int(obj2, &val3);
11445 if (!SWIG_IsOK(ecode3)) {
11446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11447 }
11448 arg3 = static_cast< int >(val3);
11449 ecode4 = SWIG_AsVal_int(obj3, &val4);
11450 if (!SWIG_IsOK(ecode4)) {
11451 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11452 }
11453 arg4 = static_cast< int >(val4);
11454 ecode5 = SWIG_AsVal_int(obj4, &val5);
11455 if (!SWIG_IsOK(ecode5)) {
11456 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11457 }
11458 arg5 = static_cast< int >(val5);
11459 {
11460 PyThreadState* __tstate = wxPyBeginAllowThreads();
11461 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11462 wxPyEndAllowThreads(__tstate);
11463 if (PyErr_Occurred()) SWIG_fail;
11464 }
11465 {
11466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11467 }
11468 return resultobj;
11469 fail:
11470 return NULL;
11471 }
11472
11473
11474 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11475 PyObject *resultobj = 0;
11476 wxRegion *arg1 = (wxRegion *) 0 ;
11477 wxRect *arg2 = 0 ;
11478 bool result;
11479 void *argp1 = 0 ;
11480 int res1 = 0 ;
11481 wxRect temp2 ;
11482 PyObject * obj0 = 0 ;
11483 PyObject * obj1 = 0 ;
11484 char * kwnames[] = {
11485 (char *) "self",(char *) "rect", NULL
11486 };
11487
11488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11490 if (!SWIG_IsOK(res1)) {
11491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11492 }
11493 arg1 = reinterpret_cast< wxRegion * >(argp1);
11494 {
11495 arg2 = &temp2;
11496 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11497 }
11498 {
11499 PyThreadState* __tstate = wxPyBeginAllowThreads();
11500 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11501 wxPyEndAllowThreads(__tstate);
11502 if (PyErr_Occurred()) SWIG_fail;
11503 }
11504 {
11505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11506 }
11507 return resultobj;
11508 fail:
11509 return NULL;
11510 }
11511
11512
11513 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11514 PyObject *resultobj = 0;
11515 wxRegion *arg1 = (wxRegion *) 0 ;
11516 wxRegion *arg2 = 0 ;
11517 bool result;
11518 void *argp1 = 0 ;
11519 int res1 = 0 ;
11520 void *argp2 = 0 ;
11521 int res2 = 0 ;
11522 PyObject * obj0 = 0 ;
11523 PyObject * obj1 = 0 ;
11524 char * kwnames[] = {
11525 (char *) "self",(char *) "region", NULL
11526 };
11527
11528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11530 if (!SWIG_IsOK(res1)) {
11531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11532 }
11533 arg1 = reinterpret_cast< wxRegion * >(argp1);
11534 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11535 if (!SWIG_IsOK(res2)) {
11536 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11537 }
11538 if (!argp2) {
11539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11540 }
11541 arg2 = reinterpret_cast< wxRegion * >(argp2);
11542 {
11543 PyThreadState* __tstate = wxPyBeginAllowThreads();
11544 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11545 wxPyEndAllowThreads(__tstate);
11546 if (PyErr_Occurred()) SWIG_fail;
11547 }
11548 {
11549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11550 }
11551 return resultobj;
11552 fail:
11553 return NULL;
11554 }
11555
11556
11557 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11558 PyObject *resultobj = 0;
11559 wxRegion *arg1 = (wxRegion *) 0 ;
11560 bool result;
11561 void *argp1 = 0 ;
11562 int res1 = 0 ;
11563 PyObject *swig_obj[1] ;
11564
11565 if (!args) SWIG_fail;
11566 swig_obj[0] = args;
11567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11568 if (!SWIG_IsOK(res1)) {
11569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11570 }
11571 arg1 = reinterpret_cast< wxRegion * >(argp1);
11572 {
11573 PyThreadState* __tstate = wxPyBeginAllowThreads();
11574 result = (bool)(arg1)->IsEmpty();
11575 wxPyEndAllowThreads(__tstate);
11576 if (PyErr_Occurred()) SWIG_fail;
11577 }
11578 {
11579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11580 }
11581 return resultobj;
11582 fail:
11583 return NULL;
11584 }
11585
11586
11587 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11588 PyObject *resultobj = 0;
11589 wxRegion *arg1 = (wxRegion *) 0 ;
11590 wxRegion *arg2 = 0 ;
11591 bool result;
11592 void *argp1 = 0 ;
11593 int res1 = 0 ;
11594 void *argp2 = 0 ;
11595 int res2 = 0 ;
11596 PyObject * obj0 = 0 ;
11597 PyObject * obj1 = 0 ;
11598 char * kwnames[] = {
11599 (char *) "self",(char *) "region", NULL
11600 };
11601
11602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11604 if (!SWIG_IsOK(res1)) {
11605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11606 }
11607 arg1 = reinterpret_cast< wxRegion * >(argp1);
11608 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11609 if (!SWIG_IsOK(res2)) {
11610 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11611 }
11612 if (!argp2) {
11613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11614 }
11615 arg2 = reinterpret_cast< wxRegion * >(argp2);
11616 {
11617 PyThreadState* __tstate = wxPyBeginAllowThreads();
11618 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11619 wxPyEndAllowThreads(__tstate);
11620 if (PyErr_Occurred()) SWIG_fail;
11621 }
11622 {
11623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11624 }
11625 return resultobj;
11626 fail:
11627 return NULL;
11628 }
11629
11630
11631 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11632 PyObject *resultobj = 0;
11633 wxRegion *arg1 = (wxRegion *) 0 ;
11634 int arg2 ;
11635 int arg3 ;
11636 int arg4 ;
11637 int arg5 ;
11638 bool result;
11639 void *argp1 = 0 ;
11640 int res1 = 0 ;
11641 int val2 ;
11642 int ecode2 = 0 ;
11643 int val3 ;
11644 int ecode3 = 0 ;
11645 int val4 ;
11646 int ecode4 = 0 ;
11647 int val5 ;
11648 int ecode5 = 0 ;
11649 PyObject * obj0 = 0 ;
11650 PyObject * obj1 = 0 ;
11651 PyObject * obj2 = 0 ;
11652 PyObject * obj3 = 0 ;
11653 PyObject * obj4 = 0 ;
11654 char * kwnames[] = {
11655 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11656 };
11657
11658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11660 if (!SWIG_IsOK(res1)) {
11661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11662 }
11663 arg1 = reinterpret_cast< wxRegion * >(argp1);
11664 ecode2 = SWIG_AsVal_int(obj1, &val2);
11665 if (!SWIG_IsOK(ecode2)) {
11666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11667 }
11668 arg2 = static_cast< int >(val2);
11669 ecode3 = SWIG_AsVal_int(obj2, &val3);
11670 if (!SWIG_IsOK(ecode3)) {
11671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11672 }
11673 arg3 = static_cast< int >(val3);
11674 ecode4 = SWIG_AsVal_int(obj3, &val4);
11675 if (!SWIG_IsOK(ecode4)) {
11676 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11677 }
11678 arg4 = static_cast< int >(val4);
11679 ecode5 = SWIG_AsVal_int(obj4, &val5);
11680 if (!SWIG_IsOK(ecode5)) {
11681 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11682 }
11683 arg5 = static_cast< int >(val5);
11684 {
11685 PyThreadState* __tstate = wxPyBeginAllowThreads();
11686 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11687 wxPyEndAllowThreads(__tstate);
11688 if (PyErr_Occurred()) SWIG_fail;
11689 }
11690 {
11691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11692 }
11693 return resultobj;
11694 fail:
11695 return NULL;
11696 }
11697
11698
11699 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11700 PyObject *resultobj = 0;
11701 wxRegion *arg1 = (wxRegion *) 0 ;
11702 wxRect *arg2 = 0 ;
11703 bool result;
11704 void *argp1 = 0 ;
11705 int res1 = 0 ;
11706 wxRect temp2 ;
11707 PyObject * obj0 = 0 ;
11708 PyObject * obj1 = 0 ;
11709 char * kwnames[] = {
11710 (char *) "self",(char *) "rect", NULL
11711 };
11712
11713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11715 if (!SWIG_IsOK(res1)) {
11716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11717 }
11718 arg1 = reinterpret_cast< wxRegion * >(argp1);
11719 {
11720 arg2 = &temp2;
11721 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11722 }
11723 {
11724 PyThreadState* __tstate = wxPyBeginAllowThreads();
11725 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11726 wxPyEndAllowThreads(__tstate);
11727 if (PyErr_Occurred()) SWIG_fail;
11728 }
11729 {
11730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11731 }
11732 return resultobj;
11733 fail:
11734 return NULL;
11735 }
11736
11737
11738 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11739 PyObject *resultobj = 0;
11740 wxRegion *arg1 = (wxRegion *) 0 ;
11741 wxRegion *arg2 = 0 ;
11742 bool result;
11743 void *argp1 = 0 ;
11744 int res1 = 0 ;
11745 void *argp2 = 0 ;
11746 int res2 = 0 ;
11747 PyObject * obj0 = 0 ;
11748 PyObject * obj1 = 0 ;
11749 char * kwnames[] = {
11750 (char *) "self",(char *) "region", NULL
11751 };
11752
11753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11755 if (!SWIG_IsOK(res1)) {
11756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11757 }
11758 arg1 = reinterpret_cast< wxRegion * >(argp1);
11759 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11760 if (!SWIG_IsOK(res2)) {
11761 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11762 }
11763 if (!argp2) {
11764 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11765 }
11766 arg2 = reinterpret_cast< wxRegion * >(argp2);
11767 {
11768 PyThreadState* __tstate = wxPyBeginAllowThreads();
11769 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11770 wxPyEndAllowThreads(__tstate);
11771 if (PyErr_Occurred()) SWIG_fail;
11772 }
11773 {
11774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11775 }
11776 return resultobj;
11777 fail:
11778 return NULL;
11779 }
11780
11781
11782 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11783 PyObject *resultobj = 0;
11784 wxRegion *arg1 = (wxRegion *) 0 ;
11785 int arg2 ;
11786 int arg3 ;
11787 int arg4 ;
11788 int arg5 ;
11789 bool result;
11790 void *argp1 = 0 ;
11791 int res1 = 0 ;
11792 int val2 ;
11793 int ecode2 = 0 ;
11794 int val3 ;
11795 int ecode3 = 0 ;
11796 int val4 ;
11797 int ecode4 = 0 ;
11798 int val5 ;
11799 int ecode5 = 0 ;
11800 PyObject * obj0 = 0 ;
11801 PyObject * obj1 = 0 ;
11802 PyObject * obj2 = 0 ;
11803 PyObject * obj3 = 0 ;
11804 PyObject * obj4 = 0 ;
11805 char * kwnames[] = {
11806 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11807 };
11808
11809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11811 if (!SWIG_IsOK(res1)) {
11812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11813 }
11814 arg1 = reinterpret_cast< wxRegion * >(argp1);
11815 ecode2 = SWIG_AsVal_int(obj1, &val2);
11816 if (!SWIG_IsOK(ecode2)) {
11817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11818 }
11819 arg2 = static_cast< int >(val2);
11820 ecode3 = SWIG_AsVal_int(obj2, &val3);
11821 if (!SWIG_IsOK(ecode3)) {
11822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11823 }
11824 arg3 = static_cast< int >(val3);
11825 ecode4 = SWIG_AsVal_int(obj3, &val4);
11826 if (!SWIG_IsOK(ecode4)) {
11827 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11828 }
11829 arg4 = static_cast< int >(val4);
11830 ecode5 = SWIG_AsVal_int(obj4, &val5);
11831 if (!SWIG_IsOK(ecode5)) {
11832 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11833 }
11834 arg5 = static_cast< int >(val5);
11835 {
11836 PyThreadState* __tstate = wxPyBeginAllowThreads();
11837 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11838 wxPyEndAllowThreads(__tstate);
11839 if (PyErr_Occurred()) SWIG_fail;
11840 }
11841 {
11842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11843 }
11844 return resultobj;
11845 fail:
11846 return NULL;
11847 }
11848
11849
11850 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11851 PyObject *resultobj = 0;
11852 wxRegion *arg1 = (wxRegion *) 0 ;
11853 wxRect *arg2 = 0 ;
11854 bool result;
11855 void *argp1 = 0 ;
11856 int res1 = 0 ;
11857 wxRect temp2 ;
11858 PyObject * obj0 = 0 ;
11859 PyObject * obj1 = 0 ;
11860 char * kwnames[] = {
11861 (char *) "self",(char *) "rect", NULL
11862 };
11863
11864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11866 if (!SWIG_IsOK(res1)) {
11867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11868 }
11869 arg1 = reinterpret_cast< wxRegion * >(argp1);
11870 {
11871 arg2 = &temp2;
11872 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11873 }
11874 {
11875 PyThreadState* __tstate = wxPyBeginAllowThreads();
11876 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11877 wxPyEndAllowThreads(__tstate);
11878 if (PyErr_Occurred()) SWIG_fail;
11879 }
11880 {
11881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11882 }
11883 return resultobj;
11884 fail:
11885 return NULL;
11886 }
11887
11888
11889 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11890 PyObject *resultobj = 0;
11891 wxRegion *arg1 = (wxRegion *) 0 ;
11892 wxRegion *arg2 = 0 ;
11893 bool result;
11894 void *argp1 = 0 ;
11895 int res1 = 0 ;
11896 void *argp2 = 0 ;
11897 int res2 = 0 ;
11898 PyObject * obj0 = 0 ;
11899 PyObject * obj1 = 0 ;
11900 char * kwnames[] = {
11901 (char *) "self",(char *) "region", NULL
11902 };
11903
11904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11906 if (!SWIG_IsOK(res1)) {
11907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11908 }
11909 arg1 = reinterpret_cast< wxRegion * >(argp1);
11910 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11911 if (!SWIG_IsOK(res2)) {
11912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11913 }
11914 if (!argp2) {
11915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11916 }
11917 arg2 = reinterpret_cast< wxRegion * >(argp2);
11918 {
11919 PyThreadState* __tstate = wxPyBeginAllowThreads();
11920 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
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_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11934 PyObject *resultobj = 0;
11935 wxRegion *arg1 = (wxRegion *) 0 ;
11936 int arg2 ;
11937 int arg3 ;
11938 int arg4 ;
11939 int arg5 ;
11940 bool result;
11941 void *argp1 = 0 ;
11942 int res1 = 0 ;
11943 int val2 ;
11944 int ecode2 = 0 ;
11945 int val3 ;
11946 int ecode3 = 0 ;
11947 int val4 ;
11948 int ecode4 = 0 ;
11949 int val5 ;
11950 int ecode5 = 0 ;
11951 PyObject * obj0 = 0 ;
11952 PyObject * obj1 = 0 ;
11953 PyObject * obj2 = 0 ;
11954 PyObject * obj3 = 0 ;
11955 PyObject * obj4 = 0 ;
11956 char * kwnames[] = {
11957 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11958 };
11959
11960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11962 if (!SWIG_IsOK(res1)) {
11963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11964 }
11965 arg1 = reinterpret_cast< wxRegion * >(argp1);
11966 ecode2 = SWIG_AsVal_int(obj1, &val2);
11967 if (!SWIG_IsOK(ecode2)) {
11968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11969 }
11970 arg2 = static_cast< int >(val2);
11971 ecode3 = SWIG_AsVal_int(obj2, &val3);
11972 if (!SWIG_IsOK(ecode3)) {
11973 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11974 }
11975 arg3 = static_cast< int >(val3);
11976 ecode4 = SWIG_AsVal_int(obj3, &val4);
11977 if (!SWIG_IsOK(ecode4)) {
11978 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11979 }
11980 arg4 = static_cast< int >(val4);
11981 ecode5 = SWIG_AsVal_int(obj4, &val5);
11982 if (!SWIG_IsOK(ecode5)) {
11983 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11984 }
11985 arg5 = static_cast< int >(val5);
11986 {
11987 PyThreadState* __tstate = wxPyBeginAllowThreads();
11988 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11989 wxPyEndAllowThreads(__tstate);
11990 if (PyErr_Occurred()) SWIG_fail;
11991 }
11992 {
11993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11994 }
11995 return resultobj;
11996 fail:
11997 return NULL;
11998 }
11999
12000
12001 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12002 PyObject *resultobj = 0;
12003 wxRegion *arg1 = (wxRegion *) 0 ;
12004 wxRect *arg2 = 0 ;
12005 bool result;
12006 void *argp1 = 0 ;
12007 int res1 = 0 ;
12008 wxRect temp2 ;
12009 PyObject * obj0 = 0 ;
12010 PyObject * obj1 = 0 ;
12011 char * kwnames[] = {
12012 (char *) "self",(char *) "rect", NULL
12013 };
12014
12015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
12016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12017 if (!SWIG_IsOK(res1)) {
12018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
12019 }
12020 arg1 = reinterpret_cast< wxRegion * >(argp1);
12021 {
12022 arg2 = &temp2;
12023 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12024 }
12025 {
12026 PyThreadState* __tstate = wxPyBeginAllowThreads();
12027 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
12028 wxPyEndAllowThreads(__tstate);
12029 if (PyErr_Occurred()) SWIG_fail;
12030 }
12031 {
12032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12033 }
12034 return resultobj;
12035 fail:
12036 return NULL;
12037 }
12038
12039
12040 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12041 PyObject *resultobj = 0;
12042 wxRegion *arg1 = (wxRegion *) 0 ;
12043 wxRegion *arg2 = 0 ;
12044 bool result;
12045 void *argp1 = 0 ;
12046 int res1 = 0 ;
12047 void *argp2 = 0 ;
12048 int res2 = 0 ;
12049 PyObject * obj0 = 0 ;
12050 PyObject * obj1 = 0 ;
12051 char * kwnames[] = {
12052 (char *) "self",(char *) "region", NULL
12053 };
12054
12055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
12056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12057 if (!SWIG_IsOK(res1)) {
12058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
12059 }
12060 arg1 = reinterpret_cast< wxRegion * >(argp1);
12061 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
12062 if (!SWIG_IsOK(res2)) {
12063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12064 }
12065 if (!argp2) {
12066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12067 }
12068 arg2 = reinterpret_cast< wxRegion * >(argp2);
12069 {
12070 PyThreadState* __tstate = wxPyBeginAllowThreads();
12071 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
12072 wxPyEndAllowThreads(__tstate);
12073 if (PyErr_Occurred()) SWIG_fail;
12074 }
12075 {
12076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12077 }
12078 return resultobj;
12079 fail:
12080 return NULL;
12081 }
12082
12083
12084 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12085 PyObject *resultobj = 0;
12086 wxRegion *arg1 = (wxRegion *) 0 ;
12087 SwigValueWrapper<wxBitmap > result;
12088 void *argp1 = 0 ;
12089 int res1 = 0 ;
12090 PyObject *swig_obj[1] ;
12091
12092 if (!args) SWIG_fail;
12093 swig_obj[0] = args;
12094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12095 if (!SWIG_IsOK(res1)) {
12096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12097 }
12098 arg1 = reinterpret_cast< wxRegion * >(argp1);
12099 {
12100 PyThreadState* __tstate = wxPyBeginAllowThreads();
12101 result = (arg1)->ConvertToBitmap();
12102 wxPyEndAllowThreads(__tstate);
12103 if (PyErr_Occurred()) SWIG_fail;
12104 }
12105 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
12106 return resultobj;
12107 fail:
12108 return NULL;
12109 }
12110
12111
12112 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12113 PyObject *resultobj = 0;
12114 wxRegion *arg1 = (wxRegion *) 0 ;
12115 wxBitmap *arg2 = 0 ;
12116 bool result;
12117 void *argp1 = 0 ;
12118 int res1 = 0 ;
12119 void *argp2 = 0 ;
12120 int res2 = 0 ;
12121 PyObject * obj0 = 0 ;
12122 PyObject * obj1 = 0 ;
12123 char * kwnames[] = {
12124 (char *) "self",(char *) "bmp", NULL
12125 };
12126
12127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
12128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12129 if (!SWIG_IsOK(res1)) {
12130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12131 }
12132 arg1 = reinterpret_cast< wxRegion * >(argp1);
12133 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12134 if (!SWIG_IsOK(res2)) {
12135 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12136 }
12137 if (!argp2) {
12138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12139 }
12140 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12141 {
12142 PyThreadState* __tstate = wxPyBeginAllowThreads();
12143 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
12144 wxPyEndAllowThreads(__tstate);
12145 if (PyErr_Occurred()) SWIG_fail;
12146 }
12147 {
12148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12149 }
12150 return resultobj;
12151 fail:
12152 return NULL;
12153 }
12154
12155
12156 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12157 PyObject *resultobj = 0;
12158 wxRegion *arg1 = (wxRegion *) 0 ;
12159 wxBitmap *arg2 = 0 ;
12160 wxColour *arg3 = 0 ;
12161 int arg4 = (int) 0 ;
12162 bool result;
12163 void *argp1 = 0 ;
12164 int res1 = 0 ;
12165 void *argp2 = 0 ;
12166 int res2 = 0 ;
12167 wxColour temp3 ;
12168 int val4 ;
12169 int ecode4 = 0 ;
12170 PyObject * obj0 = 0 ;
12171 PyObject * obj1 = 0 ;
12172 PyObject * obj2 = 0 ;
12173 PyObject * obj3 = 0 ;
12174 char * kwnames[] = {
12175 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
12176 };
12177
12178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12180 if (!SWIG_IsOK(res1)) {
12181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
12182 }
12183 arg1 = reinterpret_cast< wxRegion * >(argp1);
12184 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12185 if (!SWIG_IsOK(res2)) {
12186 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12187 }
12188 if (!argp2) {
12189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12190 }
12191 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12192 {
12193 arg3 = &temp3;
12194 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
12195 }
12196 if (obj3) {
12197 ecode4 = SWIG_AsVal_int(obj3, &val4);
12198 if (!SWIG_IsOK(ecode4)) {
12199 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
12200 }
12201 arg4 = static_cast< int >(val4);
12202 }
12203 {
12204 PyThreadState* __tstate = wxPyBeginAllowThreads();
12205 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
12206 wxPyEndAllowThreads(__tstate);
12207 if (PyErr_Occurred()) SWIG_fail;
12208 }
12209 {
12210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12211 }
12212 return resultobj;
12213 fail:
12214 return NULL;
12215 }
12216
12217
12218 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12219 PyObject *obj;
12220 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12221 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
12222 return SWIG_Py_Void();
12223 }
12224
12225 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12226 return SWIG_Python_InitShadowInstance(args);
12227 }
12228
12229 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12230 PyObject *resultobj = 0;
12231 wxRegion *arg1 = 0 ;
12232 wxRegionIterator *result = 0 ;
12233 void *argp1 = 0 ;
12234 int res1 = 0 ;
12235 PyObject * obj0 = 0 ;
12236 char * kwnames[] = {
12237 (char *) "region", NULL
12238 };
12239
12240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
12241 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
12242 if (!SWIG_IsOK(res1)) {
12243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12244 }
12245 if (!argp1) {
12246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12247 }
12248 arg1 = reinterpret_cast< wxRegion * >(argp1);
12249 {
12250 if (!wxPyCheckForApp()) SWIG_fail;
12251 PyThreadState* __tstate = wxPyBeginAllowThreads();
12252 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
12253 wxPyEndAllowThreads(__tstate);
12254 if (PyErr_Occurred()) SWIG_fail;
12255 }
12256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
12257 return resultobj;
12258 fail:
12259 return NULL;
12260 }
12261
12262
12263 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12264 PyObject *resultobj = 0;
12265 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12266 void *argp1 = 0 ;
12267 int res1 = 0 ;
12268 PyObject *swig_obj[1] ;
12269
12270 if (!args) SWIG_fail;
12271 swig_obj[0] = args;
12272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
12273 if (!SWIG_IsOK(res1)) {
12274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12275 }
12276 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12277 {
12278 PyThreadState* __tstate = wxPyBeginAllowThreads();
12279 delete arg1;
12280
12281 wxPyEndAllowThreads(__tstate);
12282 if (PyErr_Occurred()) SWIG_fail;
12283 }
12284 resultobj = SWIG_Py_Void();
12285 return resultobj;
12286 fail:
12287 return NULL;
12288 }
12289
12290
12291 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12292 PyObject *resultobj = 0;
12293 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12294 int result;
12295 void *argp1 = 0 ;
12296 int res1 = 0 ;
12297 PyObject *swig_obj[1] ;
12298
12299 if (!args) SWIG_fail;
12300 swig_obj[0] = args;
12301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12302 if (!SWIG_IsOK(res1)) {
12303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12304 }
12305 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12306 {
12307 PyThreadState* __tstate = wxPyBeginAllowThreads();
12308 result = (int)(arg1)->GetX();
12309 wxPyEndAllowThreads(__tstate);
12310 if (PyErr_Occurred()) SWIG_fail;
12311 }
12312 resultobj = SWIG_From_int(static_cast< int >(result));
12313 return resultobj;
12314 fail:
12315 return NULL;
12316 }
12317
12318
12319 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12320 PyObject *resultobj = 0;
12321 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12322 int result;
12323 void *argp1 = 0 ;
12324 int res1 = 0 ;
12325 PyObject *swig_obj[1] ;
12326
12327 if (!args) SWIG_fail;
12328 swig_obj[0] = args;
12329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12330 if (!SWIG_IsOK(res1)) {
12331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12332 }
12333 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12334 {
12335 PyThreadState* __tstate = wxPyBeginAllowThreads();
12336 result = (int)(arg1)->GetY();
12337 wxPyEndAllowThreads(__tstate);
12338 if (PyErr_Occurred()) SWIG_fail;
12339 }
12340 resultobj = SWIG_From_int(static_cast< int >(result));
12341 return resultobj;
12342 fail:
12343 return NULL;
12344 }
12345
12346
12347 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12348 PyObject *resultobj = 0;
12349 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12350 int result;
12351 void *argp1 = 0 ;
12352 int res1 = 0 ;
12353 PyObject *swig_obj[1] ;
12354
12355 if (!args) SWIG_fail;
12356 swig_obj[0] = args;
12357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12358 if (!SWIG_IsOK(res1)) {
12359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12360 }
12361 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12362 {
12363 PyThreadState* __tstate = wxPyBeginAllowThreads();
12364 result = (int)(arg1)->GetW();
12365 wxPyEndAllowThreads(__tstate);
12366 if (PyErr_Occurred()) SWIG_fail;
12367 }
12368 resultobj = SWIG_From_int(static_cast< int >(result));
12369 return resultobj;
12370 fail:
12371 return NULL;
12372 }
12373
12374
12375 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12376 PyObject *resultobj = 0;
12377 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12378 int result;
12379 void *argp1 = 0 ;
12380 int res1 = 0 ;
12381 PyObject *swig_obj[1] ;
12382
12383 if (!args) SWIG_fail;
12384 swig_obj[0] = args;
12385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12386 if (!SWIG_IsOK(res1)) {
12387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12388 }
12389 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12390 {
12391 PyThreadState* __tstate = wxPyBeginAllowThreads();
12392 result = (int)(arg1)->GetWidth();
12393 wxPyEndAllowThreads(__tstate);
12394 if (PyErr_Occurred()) SWIG_fail;
12395 }
12396 resultobj = SWIG_From_int(static_cast< int >(result));
12397 return resultobj;
12398 fail:
12399 return NULL;
12400 }
12401
12402
12403 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12404 PyObject *resultobj = 0;
12405 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12406 int result;
12407 void *argp1 = 0 ;
12408 int res1 = 0 ;
12409 PyObject *swig_obj[1] ;
12410
12411 if (!args) SWIG_fail;
12412 swig_obj[0] = args;
12413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12414 if (!SWIG_IsOK(res1)) {
12415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12416 }
12417 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12418 {
12419 PyThreadState* __tstate = wxPyBeginAllowThreads();
12420 result = (int)(arg1)->GetH();
12421 wxPyEndAllowThreads(__tstate);
12422 if (PyErr_Occurred()) SWIG_fail;
12423 }
12424 resultobj = SWIG_From_int(static_cast< int >(result));
12425 return resultobj;
12426 fail:
12427 return NULL;
12428 }
12429
12430
12431 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12432 PyObject *resultobj = 0;
12433 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12434 int result;
12435 void *argp1 = 0 ;
12436 int res1 = 0 ;
12437 PyObject *swig_obj[1] ;
12438
12439 if (!args) SWIG_fail;
12440 swig_obj[0] = args;
12441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12442 if (!SWIG_IsOK(res1)) {
12443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12444 }
12445 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12446 {
12447 PyThreadState* __tstate = wxPyBeginAllowThreads();
12448 result = (int)(arg1)->GetHeight();
12449 wxPyEndAllowThreads(__tstate);
12450 if (PyErr_Occurred()) SWIG_fail;
12451 }
12452 resultobj = SWIG_From_int(static_cast< int >(result));
12453 return resultobj;
12454 fail:
12455 return NULL;
12456 }
12457
12458
12459 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12460 PyObject *resultobj = 0;
12461 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12462 wxRect result;
12463 void *argp1 = 0 ;
12464 int res1 = 0 ;
12465 PyObject *swig_obj[1] ;
12466
12467 if (!args) SWIG_fail;
12468 swig_obj[0] = args;
12469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12470 if (!SWIG_IsOK(res1)) {
12471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12472 }
12473 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12474 {
12475 PyThreadState* __tstate = wxPyBeginAllowThreads();
12476 result = (arg1)->GetRect();
12477 wxPyEndAllowThreads(__tstate);
12478 if (PyErr_Occurred()) SWIG_fail;
12479 }
12480 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12481 return resultobj;
12482 fail:
12483 return NULL;
12484 }
12485
12486
12487 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12488 PyObject *resultobj = 0;
12489 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12490 bool result;
12491 void *argp1 = 0 ;
12492 int res1 = 0 ;
12493 PyObject *swig_obj[1] ;
12494
12495 if (!args) SWIG_fail;
12496 swig_obj[0] = args;
12497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12498 if (!SWIG_IsOK(res1)) {
12499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12500 }
12501 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12502 {
12503 PyThreadState* __tstate = wxPyBeginAllowThreads();
12504 result = (bool)(arg1)->HaveRects();
12505 wxPyEndAllowThreads(__tstate);
12506 if (PyErr_Occurred()) SWIG_fail;
12507 }
12508 {
12509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12510 }
12511 return resultobj;
12512 fail:
12513 return NULL;
12514 }
12515
12516
12517 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12518 PyObject *resultobj = 0;
12519 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12520 void *argp1 = 0 ;
12521 int res1 = 0 ;
12522 PyObject *swig_obj[1] ;
12523
12524 if (!args) SWIG_fail;
12525 swig_obj[0] = args;
12526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12527 if (!SWIG_IsOK(res1)) {
12528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12529 }
12530 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12531 {
12532 PyThreadState* __tstate = wxPyBeginAllowThreads();
12533 (arg1)->Reset();
12534 wxPyEndAllowThreads(__tstate);
12535 if (PyErr_Occurred()) SWIG_fail;
12536 }
12537 resultobj = SWIG_Py_Void();
12538 return resultobj;
12539 fail:
12540 return NULL;
12541 }
12542
12543
12544 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12545 PyObject *resultobj = 0;
12546 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12547 void *argp1 = 0 ;
12548 int res1 = 0 ;
12549 PyObject *swig_obj[1] ;
12550
12551 if (!args) SWIG_fail;
12552 swig_obj[0] = args;
12553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12554 if (!SWIG_IsOK(res1)) {
12555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12556 }
12557 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12558 {
12559 PyThreadState* __tstate = wxPyBeginAllowThreads();
12560 wxRegionIterator_Next(arg1);
12561 wxPyEndAllowThreads(__tstate);
12562 if (PyErr_Occurred()) SWIG_fail;
12563 }
12564 resultobj = SWIG_Py_Void();
12565 return resultobj;
12566 fail:
12567 return NULL;
12568 }
12569
12570
12571 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12572 PyObject *resultobj = 0;
12573 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12574 bool result;
12575 void *argp1 = 0 ;
12576 int res1 = 0 ;
12577 PyObject *swig_obj[1] ;
12578
12579 if (!args) SWIG_fail;
12580 swig_obj[0] = args;
12581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12582 if (!SWIG_IsOK(res1)) {
12583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12584 }
12585 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12586 {
12587 PyThreadState* __tstate = wxPyBeginAllowThreads();
12588 result = (bool)wxRegionIterator___nonzero__(arg1);
12589 wxPyEndAllowThreads(__tstate);
12590 if (PyErr_Occurred()) SWIG_fail;
12591 }
12592 {
12593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12594 }
12595 return resultobj;
12596 fail:
12597 return NULL;
12598 }
12599
12600
12601 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12602 PyObject *obj;
12603 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12604 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12605 return SWIG_Py_Void();
12606 }
12607
12608 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12609 return SWIG_Python_InitShadowInstance(args);
12610 }
12611
12612 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12613 PyObject *resultobj = 0;
12614 wxNativeFontInfo *result = 0 ;
12615
12616 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12617 {
12618 PyThreadState* __tstate = wxPyBeginAllowThreads();
12619 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12620 wxPyEndAllowThreads(__tstate);
12621 if (PyErr_Occurred()) SWIG_fail;
12622 }
12623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12624 return resultobj;
12625 fail:
12626 return NULL;
12627 }
12628
12629
12630 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12631 PyObject *resultobj = 0;
12632 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12633 void *argp1 = 0 ;
12634 int res1 = 0 ;
12635 PyObject *swig_obj[1] ;
12636
12637 if (!args) SWIG_fail;
12638 swig_obj[0] = args;
12639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12640 if (!SWIG_IsOK(res1)) {
12641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12642 }
12643 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12644 {
12645 PyThreadState* __tstate = wxPyBeginAllowThreads();
12646 delete arg1;
12647
12648 wxPyEndAllowThreads(__tstate);
12649 if (PyErr_Occurred()) SWIG_fail;
12650 }
12651 resultobj = SWIG_Py_Void();
12652 return resultobj;
12653 fail:
12654 return NULL;
12655 }
12656
12657
12658 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12659 PyObject *resultobj = 0;
12660 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12661 void *argp1 = 0 ;
12662 int res1 = 0 ;
12663 PyObject *swig_obj[1] ;
12664
12665 if (!args) SWIG_fail;
12666 swig_obj[0] = args;
12667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12668 if (!SWIG_IsOK(res1)) {
12669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12670 }
12671 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12672 {
12673 PyThreadState* __tstate = wxPyBeginAllowThreads();
12674 (arg1)->Init();
12675 wxPyEndAllowThreads(__tstate);
12676 if (PyErr_Occurred()) SWIG_fail;
12677 }
12678 resultobj = SWIG_Py_Void();
12679 return resultobj;
12680 fail:
12681 return NULL;
12682 }
12683
12684
12685 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12686 PyObject *resultobj = 0;
12687 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12688 wxFont *arg2 = 0 ;
12689 void *argp1 = 0 ;
12690 int res1 = 0 ;
12691 void *argp2 = 0 ;
12692 int res2 = 0 ;
12693 PyObject * obj0 = 0 ;
12694 PyObject * obj1 = 0 ;
12695 char * kwnames[] = {
12696 (char *) "self",(char *) "font", NULL
12697 };
12698
12699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12701 if (!SWIG_IsOK(res1)) {
12702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12703 }
12704 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12705 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12706 if (!SWIG_IsOK(res2)) {
12707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12708 }
12709 if (!argp2) {
12710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12711 }
12712 arg2 = reinterpret_cast< wxFont * >(argp2);
12713 {
12714 PyThreadState* __tstate = wxPyBeginAllowThreads();
12715 (arg1)->InitFromFont((wxFont const &)*arg2);
12716 wxPyEndAllowThreads(__tstate);
12717 if (PyErr_Occurred()) SWIG_fail;
12718 }
12719 resultobj = SWIG_Py_Void();
12720 return resultobj;
12721 fail:
12722 return NULL;
12723 }
12724
12725
12726 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12727 PyObject *resultobj = 0;
12728 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12729 int result;
12730 void *argp1 = 0 ;
12731 int res1 = 0 ;
12732 PyObject *swig_obj[1] ;
12733
12734 if (!args) SWIG_fail;
12735 swig_obj[0] = args;
12736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12737 if (!SWIG_IsOK(res1)) {
12738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12739 }
12740 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12741 {
12742 PyThreadState* __tstate = wxPyBeginAllowThreads();
12743 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12744 wxPyEndAllowThreads(__tstate);
12745 if (PyErr_Occurred()) SWIG_fail;
12746 }
12747 resultobj = SWIG_From_int(static_cast< int >(result));
12748 return resultobj;
12749 fail:
12750 return NULL;
12751 }
12752
12753
12754 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12755 PyObject *resultobj = 0;
12756 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12757 wxSize result;
12758 void *argp1 = 0 ;
12759 int res1 = 0 ;
12760 PyObject *swig_obj[1] ;
12761
12762 if (!args) SWIG_fail;
12763 swig_obj[0] = args;
12764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12765 if (!SWIG_IsOK(res1)) {
12766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12767 }
12768 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12769 {
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12772 wxPyEndAllowThreads(__tstate);
12773 if (PyErr_Occurred()) SWIG_fail;
12774 }
12775 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12776 return resultobj;
12777 fail:
12778 return NULL;
12779 }
12780
12781
12782 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12783 PyObject *resultobj = 0;
12784 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12785 wxFontStyle result;
12786 void *argp1 = 0 ;
12787 int res1 = 0 ;
12788 PyObject *swig_obj[1] ;
12789
12790 if (!args) SWIG_fail;
12791 swig_obj[0] = args;
12792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12793 if (!SWIG_IsOK(res1)) {
12794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12795 }
12796 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12797 {
12798 PyThreadState* __tstate = wxPyBeginAllowThreads();
12799 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12800 wxPyEndAllowThreads(__tstate);
12801 if (PyErr_Occurred()) SWIG_fail;
12802 }
12803 resultobj = SWIG_From_int(static_cast< int >(result));
12804 return resultobj;
12805 fail:
12806 return NULL;
12807 }
12808
12809
12810 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12811 PyObject *resultobj = 0;
12812 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12813 wxFontWeight result;
12814 void *argp1 = 0 ;
12815 int res1 = 0 ;
12816 PyObject *swig_obj[1] ;
12817
12818 if (!args) SWIG_fail;
12819 swig_obj[0] = args;
12820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12821 if (!SWIG_IsOK(res1)) {
12822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12823 }
12824 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12825 {
12826 PyThreadState* __tstate = wxPyBeginAllowThreads();
12827 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12828 wxPyEndAllowThreads(__tstate);
12829 if (PyErr_Occurred()) SWIG_fail;
12830 }
12831 resultobj = SWIG_From_int(static_cast< int >(result));
12832 return resultobj;
12833 fail:
12834 return NULL;
12835 }
12836
12837
12838 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12839 PyObject *resultobj = 0;
12840 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12841 bool result;
12842 void *argp1 = 0 ;
12843 int res1 = 0 ;
12844 PyObject *swig_obj[1] ;
12845
12846 if (!args) SWIG_fail;
12847 swig_obj[0] = args;
12848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12849 if (!SWIG_IsOK(res1)) {
12850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12851 }
12852 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12853 {
12854 PyThreadState* __tstate = wxPyBeginAllowThreads();
12855 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12856 wxPyEndAllowThreads(__tstate);
12857 if (PyErr_Occurred()) SWIG_fail;
12858 }
12859 {
12860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12861 }
12862 return resultobj;
12863 fail:
12864 return NULL;
12865 }
12866
12867
12868 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12869 PyObject *resultobj = 0;
12870 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12871 wxString result;
12872 void *argp1 = 0 ;
12873 int res1 = 0 ;
12874 PyObject *swig_obj[1] ;
12875
12876 if (!args) SWIG_fail;
12877 swig_obj[0] = args;
12878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12879 if (!SWIG_IsOK(res1)) {
12880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12881 }
12882 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12883 {
12884 PyThreadState* __tstate = wxPyBeginAllowThreads();
12885 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12886 wxPyEndAllowThreads(__tstate);
12887 if (PyErr_Occurred()) SWIG_fail;
12888 }
12889 {
12890 #if wxUSE_UNICODE
12891 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12892 #else
12893 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12894 #endif
12895 }
12896 return resultobj;
12897 fail:
12898 return NULL;
12899 }
12900
12901
12902 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12903 PyObject *resultobj = 0;
12904 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12905 wxFontFamily result;
12906 void *argp1 = 0 ;
12907 int res1 = 0 ;
12908 PyObject *swig_obj[1] ;
12909
12910 if (!args) SWIG_fail;
12911 swig_obj[0] = args;
12912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12913 if (!SWIG_IsOK(res1)) {
12914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12915 }
12916 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12917 {
12918 PyThreadState* __tstate = wxPyBeginAllowThreads();
12919 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12920 wxPyEndAllowThreads(__tstate);
12921 if (PyErr_Occurred()) SWIG_fail;
12922 }
12923 resultobj = SWIG_From_int(static_cast< int >(result));
12924 return resultobj;
12925 fail:
12926 return NULL;
12927 }
12928
12929
12930 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12931 PyObject *resultobj = 0;
12932 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12933 wxFontEncoding result;
12934 void *argp1 = 0 ;
12935 int res1 = 0 ;
12936 PyObject *swig_obj[1] ;
12937
12938 if (!args) SWIG_fail;
12939 swig_obj[0] = args;
12940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12941 if (!SWIG_IsOK(res1)) {
12942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12943 }
12944 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12945 {
12946 PyThreadState* __tstate = wxPyBeginAllowThreads();
12947 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12948 wxPyEndAllowThreads(__tstate);
12949 if (PyErr_Occurred()) SWIG_fail;
12950 }
12951 resultobj = SWIG_From_int(static_cast< int >(result));
12952 return resultobj;
12953 fail:
12954 return NULL;
12955 }
12956
12957
12958 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12959 PyObject *resultobj = 0;
12960 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12961 int arg2 ;
12962 void *argp1 = 0 ;
12963 int res1 = 0 ;
12964 int val2 ;
12965 int ecode2 = 0 ;
12966 PyObject * obj0 = 0 ;
12967 PyObject * obj1 = 0 ;
12968 char * kwnames[] = {
12969 (char *) "self",(char *) "pointsize", NULL
12970 };
12971
12972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12974 if (!SWIG_IsOK(res1)) {
12975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12976 }
12977 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12978 ecode2 = SWIG_AsVal_int(obj1, &val2);
12979 if (!SWIG_IsOK(ecode2)) {
12980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12981 }
12982 arg2 = static_cast< int >(val2);
12983 {
12984 PyThreadState* __tstate = wxPyBeginAllowThreads();
12985 (arg1)->SetPointSize(arg2);
12986 wxPyEndAllowThreads(__tstate);
12987 if (PyErr_Occurred()) SWIG_fail;
12988 }
12989 resultobj = SWIG_Py_Void();
12990 return resultobj;
12991 fail:
12992 return NULL;
12993 }
12994
12995
12996 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12997 PyObject *resultobj = 0;
12998 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12999 wxSize *arg2 = 0 ;
13000 void *argp1 = 0 ;
13001 int res1 = 0 ;
13002 wxSize temp2 ;
13003 PyObject * obj0 = 0 ;
13004 PyObject * obj1 = 0 ;
13005 char * kwnames[] = {
13006 (char *) "self",(char *) "pixelSize", NULL
13007 };
13008
13009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
13010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13011 if (!SWIG_IsOK(res1)) {
13012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13013 }
13014 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13015 {
13016 arg2 = &temp2;
13017 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13018 }
13019 {
13020 PyThreadState* __tstate = wxPyBeginAllowThreads();
13021 (arg1)->SetPixelSize((wxSize const &)*arg2);
13022 wxPyEndAllowThreads(__tstate);
13023 if (PyErr_Occurred()) SWIG_fail;
13024 }
13025 resultobj = SWIG_Py_Void();
13026 return resultobj;
13027 fail:
13028 return NULL;
13029 }
13030
13031
13032 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13033 PyObject *resultobj = 0;
13034 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13035 wxFontStyle arg2 ;
13036 void *argp1 = 0 ;
13037 int res1 = 0 ;
13038 int val2 ;
13039 int ecode2 = 0 ;
13040 PyObject * obj0 = 0 ;
13041 PyObject * obj1 = 0 ;
13042 char * kwnames[] = {
13043 (char *) "self",(char *) "style", NULL
13044 };
13045
13046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13048 if (!SWIG_IsOK(res1)) {
13049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13050 }
13051 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13052 ecode2 = SWIG_AsVal_int(obj1, &val2);
13053 if (!SWIG_IsOK(ecode2)) {
13054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
13055 }
13056 arg2 = static_cast< wxFontStyle >(val2);
13057 {
13058 PyThreadState* __tstate = wxPyBeginAllowThreads();
13059 (arg1)->SetStyle(arg2);
13060 wxPyEndAllowThreads(__tstate);
13061 if (PyErr_Occurred()) SWIG_fail;
13062 }
13063 resultobj = SWIG_Py_Void();
13064 return resultobj;
13065 fail:
13066 return NULL;
13067 }
13068
13069
13070 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13071 PyObject *resultobj = 0;
13072 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13073 wxFontWeight arg2 ;
13074 void *argp1 = 0 ;
13075 int res1 = 0 ;
13076 int val2 ;
13077 int ecode2 = 0 ;
13078 PyObject * obj0 = 0 ;
13079 PyObject * obj1 = 0 ;
13080 char * kwnames[] = {
13081 (char *) "self",(char *) "weight", NULL
13082 };
13083
13084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
13085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13086 if (!SWIG_IsOK(res1)) {
13087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13088 }
13089 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13090 ecode2 = SWIG_AsVal_int(obj1, &val2);
13091 if (!SWIG_IsOK(ecode2)) {
13092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
13093 }
13094 arg2 = static_cast< wxFontWeight >(val2);
13095 {
13096 PyThreadState* __tstate = wxPyBeginAllowThreads();
13097 (arg1)->SetWeight(arg2);
13098 wxPyEndAllowThreads(__tstate);
13099 if (PyErr_Occurred()) SWIG_fail;
13100 }
13101 resultobj = SWIG_Py_Void();
13102 return resultobj;
13103 fail:
13104 return NULL;
13105 }
13106
13107
13108 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13109 PyObject *resultobj = 0;
13110 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13111 bool arg2 ;
13112 void *argp1 = 0 ;
13113 int res1 = 0 ;
13114 bool val2 ;
13115 int ecode2 = 0 ;
13116 PyObject * obj0 = 0 ;
13117 PyObject * obj1 = 0 ;
13118 char * kwnames[] = {
13119 (char *) "self",(char *) "underlined", NULL
13120 };
13121
13122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
13123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13124 if (!SWIG_IsOK(res1)) {
13125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13126 }
13127 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13128 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13129 if (!SWIG_IsOK(ecode2)) {
13130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
13131 }
13132 arg2 = static_cast< bool >(val2);
13133 {
13134 PyThreadState* __tstate = wxPyBeginAllowThreads();
13135 (arg1)->SetUnderlined(arg2);
13136 wxPyEndAllowThreads(__tstate);
13137 if (PyErr_Occurred()) SWIG_fail;
13138 }
13139 resultobj = SWIG_Py_Void();
13140 return resultobj;
13141 fail:
13142 return NULL;
13143 }
13144
13145
13146 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13147 PyObject *resultobj = 0;
13148 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13149 wxString arg2 ;
13150 bool result;
13151 void *argp1 = 0 ;
13152 int res1 = 0 ;
13153 PyObject * obj0 = 0 ;
13154 PyObject * obj1 = 0 ;
13155 char * kwnames[] = {
13156 (char *) "self",(char *) "facename", NULL
13157 };
13158
13159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
13160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13161 if (!SWIG_IsOK(res1)) {
13162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13163 }
13164 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13165 {
13166 wxString* sptr = wxString_in_helper(obj1);
13167 if (sptr == NULL) SWIG_fail;
13168 arg2 = *sptr;
13169 delete sptr;
13170 }
13171 {
13172 PyThreadState* __tstate = wxPyBeginAllowThreads();
13173 result = (bool)(arg1)->SetFaceName(arg2);
13174 wxPyEndAllowThreads(__tstate);
13175 if (PyErr_Occurred()) SWIG_fail;
13176 }
13177 {
13178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13179 }
13180 return resultobj;
13181 fail:
13182 return NULL;
13183 }
13184
13185
13186 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13187 PyObject *resultobj = 0;
13188 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13189 wxFontFamily arg2 ;
13190 void *argp1 = 0 ;
13191 int res1 = 0 ;
13192 int val2 ;
13193 int ecode2 = 0 ;
13194 PyObject * obj0 = 0 ;
13195 PyObject * obj1 = 0 ;
13196 char * kwnames[] = {
13197 (char *) "self",(char *) "family", NULL
13198 };
13199
13200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
13201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13202 if (!SWIG_IsOK(res1)) {
13203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13204 }
13205 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13206 ecode2 = SWIG_AsVal_int(obj1, &val2);
13207 if (!SWIG_IsOK(ecode2)) {
13208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
13209 }
13210 arg2 = static_cast< wxFontFamily >(val2);
13211 {
13212 PyThreadState* __tstate = wxPyBeginAllowThreads();
13213 (arg1)->SetFamily(arg2);
13214 wxPyEndAllowThreads(__tstate);
13215 if (PyErr_Occurred()) SWIG_fail;
13216 }
13217 resultobj = SWIG_Py_Void();
13218 return resultobj;
13219 fail:
13220 return NULL;
13221 }
13222
13223
13224 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13225 PyObject *resultobj = 0;
13226 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13227 wxFontEncoding arg2 ;
13228 void *argp1 = 0 ;
13229 int res1 = 0 ;
13230 int val2 ;
13231 int ecode2 = 0 ;
13232 PyObject * obj0 = 0 ;
13233 PyObject * obj1 = 0 ;
13234 char * kwnames[] = {
13235 (char *) "self",(char *) "encoding", NULL
13236 };
13237
13238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
13239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13240 if (!SWIG_IsOK(res1)) {
13241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13242 }
13243 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13244 ecode2 = SWIG_AsVal_int(obj1, &val2);
13245 if (!SWIG_IsOK(ecode2)) {
13246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13247 }
13248 arg2 = static_cast< wxFontEncoding >(val2);
13249 {
13250 PyThreadState* __tstate = wxPyBeginAllowThreads();
13251 (arg1)->SetEncoding(arg2);
13252 wxPyEndAllowThreads(__tstate);
13253 if (PyErr_Occurred()) SWIG_fail;
13254 }
13255 resultobj = SWIG_Py_Void();
13256 return resultobj;
13257 fail:
13258 return NULL;
13259 }
13260
13261
13262 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13263 PyObject *resultobj = 0;
13264 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13265 wxString *arg2 = 0 ;
13266 bool result;
13267 void *argp1 = 0 ;
13268 int res1 = 0 ;
13269 bool temp2 = false ;
13270 PyObject * obj0 = 0 ;
13271 PyObject * obj1 = 0 ;
13272 char * kwnames[] = {
13273 (char *) "self",(char *) "s", NULL
13274 };
13275
13276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13278 if (!SWIG_IsOK(res1)) {
13279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13280 }
13281 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13282 {
13283 arg2 = wxString_in_helper(obj1);
13284 if (arg2 == NULL) SWIG_fail;
13285 temp2 = true;
13286 }
13287 {
13288 PyThreadState* __tstate = wxPyBeginAllowThreads();
13289 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13290 wxPyEndAllowThreads(__tstate);
13291 if (PyErr_Occurred()) SWIG_fail;
13292 }
13293 {
13294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13295 }
13296 {
13297 if (temp2)
13298 delete arg2;
13299 }
13300 return resultobj;
13301 fail:
13302 {
13303 if (temp2)
13304 delete arg2;
13305 }
13306 return NULL;
13307 }
13308
13309
13310 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13311 PyObject *resultobj = 0;
13312 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13313 wxString result;
13314 void *argp1 = 0 ;
13315 int res1 = 0 ;
13316 PyObject *swig_obj[1] ;
13317
13318 if (!args) SWIG_fail;
13319 swig_obj[0] = args;
13320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13321 if (!SWIG_IsOK(res1)) {
13322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13323 }
13324 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13325 {
13326 PyThreadState* __tstate = wxPyBeginAllowThreads();
13327 result = ((wxNativeFontInfo const *)arg1)->ToString();
13328 wxPyEndAllowThreads(__tstate);
13329 if (PyErr_Occurred()) SWIG_fail;
13330 }
13331 {
13332 #if wxUSE_UNICODE
13333 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13334 #else
13335 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13336 #endif
13337 }
13338 return resultobj;
13339 fail:
13340 return NULL;
13341 }
13342
13343
13344 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13345 PyObject *resultobj = 0;
13346 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13347 wxString result;
13348 void *argp1 = 0 ;
13349 int res1 = 0 ;
13350 PyObject *swig_obj[1] ;
13351
13352 if (!args) SWIG_fail;
13353 swig_obj[0] = args;
13354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13355 if (!SWIG_IsOK(res1)) {
13356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13357 }
13358 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13359 {
13360 PyThreadState* __tstate = wxPyBeginAllowThreads();
13361 result = wxNativeFontInfo___str__(arg1);
13362 wxPyEndAllowThreads(__tstate);
13363 if (PyErr_Occurred()) SWIG_fail;
13364 }
13365 {
13366 #if wxUSE_UNICODE
13367 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13368 #else
13369 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13370 #endif
13371 }
13372 return resultobj;
13373 fail:
13374 return NULL;
13375 }
13376
13377
13378 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13379 PyObject *resultobj = 0;
13380 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13381 wxString *arg2 = 0 ;
13382 bool result;
13383 void *argp1 = 0 ;
13384 int res1 = 0 ;
13385 bool temp2 = false ;
13386 PyObject * obj0 = 0 ;
13387 PyObject * obj1 = 0 ;
13388 char * kwnames[] = {
13389 (char *) "self",(char *) "s", NULL
13390 };
13391
13392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13394 if (!SWIG_IsOK(res1)) {
13395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13396 }
13397 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13398 {
13399 arg2 = wxString_in_helper(obj1);
13400 if (arg2 == NULL) SWIG_fail;
13401 temp2 = true;
13402 }
13403 {
13404 PyThreadState* __tstate = wxPyBeginAllowThreads();
13405 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13406 wxPyEndAllowThreads(__tstate);
13407 if (PyErr_Occurred()) SWIG_fail;
13408 }
13409 {
13410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13411 }
13412 {
13413 if (temp2)
13414 delete arg2;
13415 }
13416 return resultobj;
13417 fail:
13418 {
13419 if (temp2)
13420 delete arg2;
13421 }
13422 return NULL;
13423 }
13424
13425
13426 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13427 PyObject *resultobj = 0;
13428 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13429 wxString result;
13430 void *argp1 = 0 ;
13431 int res1 = 0 ;
13432 PyObject *swig_obj[1] ;
13433
13434 if (!args) SWIG_fail;
13435 swig_obj[0] = args;
13436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13437 if (!SWIG_IsOK(res1)) {
13438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13439 }
13440 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13441 {
13442 PyThreadState* __tstate = wxPyBeginAllowThreads();
13443 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13444 wxPyEndAllowThreads(__tstate);
13445 if (PyErr_Occurred()) SWIG_fail;
13446 }
13447 {
13448 #if wxUSE_UNICODE
13449 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13450 #else
13451 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13452 #endif
13453 }
13454 return resultobj;
13455 fail:
13456 return NULL;
13457 }
13458
13459
13460 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13461 PyObject *obj;
13462 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13463 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13464 return SWIG_Py_Void();
13465 }
13466
13467 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13468 return SWIG_Python_InitShadowInstance(args);
13469 }
13470
13471 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13472 PyObject *resultobj = 0;
13473 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13474 wxString *arg2 = (wxString *) 0 ;
13475 void *argp1 = 0 ;
13476 int res1 = 0 ;
13477 bool temp2 = false ;
13478 PyObject *swig_obj[2] ;
13479
13480 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13482 if (!SWIG_IsOK(res1)) {
13483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13484 }
13485 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13486 {
13487 arg2 = wxString_in_helper(swig_obj[1]);
13488 if (arg2 == NULL) SWIG_fail;
13489 temp2 = true;
13490 }
13491 if (arg1) (arg1)->facename = *arg2;
13492
13493 resultobj = SWIG_Py_Void();
13494 {
13495 if (temp2)
13496 delete arg2;
13497 }
13498 return resultobj;
13499 fail:
13500 {
13501 if (temp2)
13502 delete arg2;
13503 }
13504 return NULL;
13505 }
13506
13507
13508 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13509 PyObject *resultobj = 0;
13510 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13511 wxString *result = 0 ;
13512 void *argp1 = 0 ;
13513 int res1 = 0 ;
13514 PyObject *swig_obj[1] ;
13515
13516 if (!args) SWIG_fail;
13517 swig_obj[0] = args;
13518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13519 if (!SWIG_IsOK(res1)) {
13520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13521 }
13522 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13523 result = (wxString *)& ((arg1)->facename);
13524 {
13525 #if wxUSE_UNICODE
13526 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13527 #else
13528 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13529 #endif
13530 }
13531 return resultobj;
13532 fail:
13533 return NULL;
13534 }
13535
13536
13537 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13538 PyObject *resultobj = 0;
13539 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13540 wxFontEncoding arg2 ;
13541 void *argp1 = 0 ;
13542 int res1 = 0 ;
13543 int val2 ;
13544 int ecode2 = 0 ;
13545 PyObject *swig_obj[2] ;
13546
13547 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13549 if (!SWIG_IsOK(res1)) {
13550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13551 }
13552 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13553 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13554 if (!SWIG_IsOK(ecode2)) {
13555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13556 }
13557 arg2 = static_cast< wxFontEncoding >(val2);
13558 if (arg1) (arg1)->encoding = arg2;
13559
13560 resultobj = SWIG_Py_Void();
13561 return resultobj;
13562 fail:
13563 return NULL;
13564 }
13565
13566
13567 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13568 PyObject *resultobj = 0;
13569 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13570 wxFontEncoding result;
13571 void *argp1 = 0 ;
13572 int res1 = 0 ;
13573 PyObject *swig_obj[1] ;
13574
13575 if (!args) SWIG_fail;
13576 swig_obj[0] = args;
13577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13578 if (!SWIG_IsOK(res1)) {
13579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13580 }
13581 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13582 result = (wxFontEncoding) ((arg1)->encoding);
13583 resultobj = SWIG_From_int(static_cast< int >(result));
13584 return resultobj;
13585 fail:
13586 return NULL;
13587 }
13588
13589
13590 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13591 PyObject *resultobj = 0;
13592 wxNativeEncodingInfo *result = 0 ;
13593
13594 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13595 {
13596 PyThreadState* __tstate = wxPyBeginAllowThreads();
13597 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13598 wxPyEndAllowThreads(__tstate);
13599 if (PyErr_Occurred()) SWIG_fail;
13600 }
13601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13602 return resultobj;
13603 fail:
13604 return NULL;
13605 }
13606
13607
13608 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13609 PyObject *resultobj = 0;
13610 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13611 void *argp1 = 0 ;
13612 int res1 = 0 ;
13613 PyObject *swig_obj[1] ;
13614
13615 if (!args) SWIG_fail;
13616 swig_obj[0] = args;
13617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13618 if (!SWIG_IsOK(res1)) {
13619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13620 }
13621 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13622 {
13623 PyThreadState* __tstate = wxPyBeginAllowThreads();
13624 delete arg1;
13625
13626 wxPyEndAllowThreads(__tstate);
13627 if (PyErr_Occurred()) SWIG_fail;
13628 }
13629 resultobj = SWIG_Py_Void();
13630 return resultobj;
13631 fail:
13632 return NULL;
13633 }
13634
13635
13636 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13637 PyObject *resultobj = 0;
13638 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13639 wxString *arg2 = 0 ;
13640 bool result;
13641 void *argp1 = 0 ;
13642 int res1 = 0 ;
13643 bool temp2 = false ;
13644 PyObject * obj0 = 0 ;
13645 PyObject * obj1 = 0 ;
13646 char * kwnames[] = {
13647 (char *) "self",(char *) "s", NULL
13648 };
13649
13650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13652 if (!SWIG_IsOK(res1)) {
13653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13654 }
13655 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13656 {
13657 arg2 = wxString_in_helper(obj1);
13658 if (arg2 == NULL) SWIG_fail;
13659 temp2 = true;
13660 }
13661 {
13662 PyThreadState* __tstate = wxPyBeginAllowThreads();
13663 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13664 wxPyEndAllowThreads(__tstate);
13665 if (PyErr_Occurred()) SWIG_fail;
13666 }
13667 {
13668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13669 }
13670 {
13671 if (temp2)
13672 delete arg2;
13673 }
13674 return resultobj;
13675 fail:
13676 {
13677 if (temp2)
13678 delete arg2;
13679 }
13680 return NULL;
13681 }
13682
13683
13684 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13685 PyObject *resultobj = 0;
13686 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13687 wxString result;
13688 void *argp1 = 0 ;
13689 int res1 = 0 ;
13690 PyObject *swig_obj[1] ;
13691
13692 if (!args) SWIG_fail;
13693 swig_obj[0] = args;
13694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13695 if (!SWIG_IsOK(res1)) {
13696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13697 }
13698 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13699 {
13700 PyThreadState* __tstate = wxPyBeginAllowThreads();
13701 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13702 wxPyEndAllowThreads(__tstate);
13703 if (PyErr_Occurred()) SWIG_fail;
13704 }
13705 {
13706 #if wxUSE_UNICODE
13707 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13708 #else
13709 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13710 #endif
13711 }
13712 return resultobj;
13713 fail:
13714 return NULL;
13715 }
13716
13717
13718 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13719 PyObject *obj;
13720 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13721 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13722 return SWIG_Py_Void();
13723 }
13724
13725 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13726 return SWIG_Python_InitShadowInstance(args);
13727 }
13728
13729 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13730 PyObject *resultobj = 0;
13731 wxFontEncoding arg1 ;
13732 wxNativeEncodingInfo *result = 0 ;
13733 int val1 ;
13734 int ecode1 = 0 ;
13735 PyObject * obj0 = 0 ;
13736 char * kwnames[] = {
13737 (char *) "encoding", NULL
13738 };
13739
13740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13741 ecode1 = SWIG_AsVal_int(obj0, &val1);
13742 if (!SWIG_IsOK(ecode1)) {
13743 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13744 }
13745 arg1 = static_cast< wxFontEncoding >(val1);
13746 {
13747 PyThreadState* __tstate = wxPyBeginAllowThreads();
13748 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13749 wxPyEndAllowThreads(__tstate);
13750 if (PyErr_Occurred()) SWIG_fail;
13751 }
13752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13753 return resultobj;
13754 fail:
13755 return NULL;
13756 }
13757
13758
13759 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13760 PyObject *resultobj = 0;
13761 wxNativeEncodingInfo *arg1 = 0 ;
13762 bool result;
13763 void *argp1 = 0 ;
13764 int res1 = 0 ;
13765 PyObject * obj0 = 0 ;
13766 char * kwnames[] = {
13767 (char *) "info", NULL
13768 };
13769
13770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13771 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13772 if (!SWIG_IsOK(res1)) {
13773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13774 }
13775 if (!argp1) {
13776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13777 }
13778 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13779 {
13780 PyThreadState* __tstate = wxPyBeginAllowThreads();
13781 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13782 wxPyEndAllowThreads(__tstate);
13783 if (PyErr_Occurred()) SWIG_fail;
13784 }
13785 {
13786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13787 }
13788 return resultobj;
13789 fail:
13790 return NULL;
13791 }
13792
13793
13794 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13795 PyObject *resultobj = 0;
13796 wxFontMapper *result = 0 ;
13797
13798 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13799 {
13800 PyThreadState* __tstate = wxPyBeginAllowThreads();
13801 result = (wxFontMapper *)new wxFontMapper();
13802 wxPyEndAllowThreads(__tstate);
13803 if (PyErr_Occurred()) SWIG_fail;
13804 }
13805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13806 return resultobj;
13807 fail:
13808 return NULL;
13809 }
13810
13811
13812 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13813 PyObject *resultobj = 0;
13814 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13815 void *argp1 = 0 ;
13816 int res1 = 0 ;
13817 PyObject *swig_obj[1] ;
13818
13819 if (!args) SWIG_fail;
13820 swig_obj[0] = args;
13821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13822 if (!SWIG_IsOK(res1)) {
13823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13824 }
13825 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13826 {
13827 PyThreadState* __tstate = wxPyBeginAllowThreads();
13828 delete arg1;
13829
13830 wxPyEndAllowThreads(__tstate);
13831 if (PyErr_Occurred()) SWIG_fail;
13832 }
13833 resultobj = SWIG_Py_Void();
13834 return resultobj;
13835 fail:
13836 return NULL;
13837 }
13838
13839
13840 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13841 PyObject *resultobj = 0;
13842 wxFontMapper *result = 0 ;
13843
13844 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13845 {
13846 PyThreadState* __tstate = wxPyBeginAllowThreads();
13847 result = (wxFontMapper *)wxFontMapper::Get();
13848 wxPyEndAllowThreads(__tstate);
13849 if (PyErr_Occurred()) SWIG_fail;
13850 }
13851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13852 return resultobj;
13853 fail:
13854 return NULL;
13855 }
13856
13857
13858 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13859 PyObject *resultobj = 0;
13860 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13861 wxFontMapper *result = 0 ;
13862 void *argp1 = 0 ;
13863 int res1 = 0 ;
13864 PyObject * obj0 = 0 ;
13865 char * kwnames[] = {
13866 (char *) "mapper", NULL
13867 };
13868
13869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13871 if (!SWIG_IsOK(res1)) {
13872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13873 }
13874 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13875 {
13876 PyThreadState* __tstate = wxPyBeginAllowThreads();
13877 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13878 wxPyEndAllowThreads(__tstate);
13879 if (PyErr_Occurred()) SWIG_fail;
13880 }
13881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13882 return resultobj;
13883 fail:
13884 return NULL;
13885 }
13886
13887
13888 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13889 PyObject *resultobj = 0;
13890 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13891 wxString *arg2 = 0 ;
13892 bool arg3 = (bool) true ;
13893 wxFontEncoding result;
13894 void *argp1 = 0 ;
13895 int res1 = 0 ;
13896 bool temp2 = false ;
13897 bool val3 ;
13898 int ecode3 = 0 ;
13899 PyObject * obj0 = 0 ;
13900 PyObject * obj1 = 0 ;
13901 PyObject * obj2 = 0 ;
13902 char * kwnames[] = {
13903 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13904 };
13905
13906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13908 if (!SWIG_IsOK(res1)) {
13909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13910 }
13911 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13912 {
13913 arg2 = wxString_in_helper(obj1);
13914 if (arg2 == NULL) SWIG_fail;
13915 temp2 = true;
13916 }
13917 if (obj2) {
13918 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13919 if (!SWIG_IsOK(ecode3)) {
13920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13921 }
13922 arg3 = static_cast< bool >(val3);
13923 }
13924 {
13925 PyThreadState* __tstate = wxPyBeginAllowThreads();
13926 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13927 wxPyEndAllowThreads(__tstate);
13928 if (PyErr_Occurred()) SWIG_fail;
13929 }
13930 resultobj = SWIG_From_int(static_cast< int >(result));
13931 {
13932 if (temp2)
13933 delete arg2;
13934 }
13935 return resultobj;
13936 fail:
13937 {
13938 if (temp2)
13939 delete arg2;
13940 }
13941 return NULL;
13942 }
13943
13944
13945 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13946 PyObject *resultobj = 0;
13947 size_t result;
13948
13949 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13950 {
13951 PyThreadState* __tstate = wxPyBeginAllowThreads();
13952 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13953 wxPyEndAllowThreads(__tstate);
13954 if (PyErr_Occurred()) SWIG_fail;
13955 }
13956 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13957 return resultobj;
13958 fail:
13959 return NULL;
13960 }
13961
13962
13963 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13964 PyObject *resultobj = 0;
13965 size_t arg1 ;
13966 wxFontEncoding result;
13967 size_t val1 ;
13968 int ecode1 = 0 ;
13969 PyObject * obj0 = 0 ;
13970 char * kwnames[] = {
13971 (char *) "n", NULL
13972 };
13973
13974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13975 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13976 if (!SWIG_IsOK(ecode1)) {
13977 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13978 }
13979 arg1 = static_cast< size_t >(val1);
13980 {
13981 PyThreadState* __tstate = wxPyBeginAllowThreads();
13982 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13983 wxPyEndAllowThreads(__tstate);
13984 if (PyErr_Occurred()) SWIG_fail;
13985 }
13986 resultobj = SWIG_From_int(static_cast< int >(result));
13987 return resultobj;
13988 fail:
13989 return NULL;
13990 }
13991
13992
13993 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13994 PyObject *resultobj = 0;
13995 wxFontEncoding arg1 ;
13996 wxString result;
13997 int val1 ;
13998 int ecode1 = 0 ;
13999 PyObject * obj0 = 0 ;
14000 char * kwnames[] = {
14001 (char *) "encoding", NULL
14002 };
14003
14004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
14005 ecode1 = SWIG_AsVal_int(obj0, &val1);
14006 if (!SWIG_IsOK(ecode1)) {
14007 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14008 }
14009 arg1 = static_cast< wxFontEncoding >(val1);
14010 {
14011 PyThreadState* __tstate = wxPyBeginAllowThreads();
14012 result = wxFontMapper::GetEncodingName(arg1);
14013 wxPyEndAllowThreads(__tstate);
14014 if (PyErr_Occurred()) SWIG_fail;
14015 }
14016 {
14017 #if wxUSE_UNICODE
14018 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14019 #else
14020 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14021 #endif
14022 }
14023 return resultobj;
14024 fail:
14025 return NULL;
14026 }
14027
14028
14029 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14030 PyObject *resultobj = 0;
14031 wxFontEncoding arg1 ;
14032 wxString result;
14033 int val1 ;
14034 int ecode1 = 0 ;
14035 PyObject * obj0 = 0 ;
14036 char * kwnames[] = {
14037 (char *) "encoding", NULL
14038 };
14039
14040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
14041 ecode1 = SWIG_AsVal_int(obj0, &val1);
14042 if (!SWIG_IsOK(ecode1)) {
14043 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14044 }
14045 arg1 = static_cast< wxFontEncoding >(val1);
14046 {
14047 PyThreadState* __tstate = wxPyBeginAllowThreads();
14048 result = wxFontMapper::GetEncodingDescription(arg1);
14049 wxPyEndAllowThreads(__tstate);
14050 if (PyErr_Occurred()) SWIG_fail;
14051 }
14052 {
14053 #if wxUSE_UNICODE
14054 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14055 #else
14056 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14057 #endif
14058 }
14059 return resultobj;
14060 fail:
14061 return NULL;
14062 }
14063
14064
14065 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14066 PyObject *resultobj = 0;
14067 wxString *arg1 = 0 ;
14068 wxFontEncoding result;
14069 bool temp1 = false ;
14070 PyObject * obj0 = 0 ;
14071 char * kwnames[] = {
14072 (char *) "name", NULL
14073 };
14074
14075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
14076 {
14077 arg1 = wxString_in_helper(obj0);
14078 if (arg1 == NULL) SWIG_fail;
14079 temp1 = true;
14080 }
14081 {
14082 PyThreadState* __tstate = wxPyBeginAllowThreads();
14083 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
14084 wxPyEndAllowThreads(__tstate);
14085 if (PyErr_Occurred()) SWIG_fail;
14086 }
14087 resultobj = SWIG_From_int(static_cast< int >(result));
14088 {
14089 if (temp1)
14090 delete arg1;
14091 }
14092 return resultobj;
14093 fail:
14094 {
14095 if (temp1)
14096 delete arg1;
14097 }
14098 return NULL;
14099 }
14100
14101
14102 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14103 PyObject *resultobj = 0;
14104 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14105 wxString *arg2 = 0 ;
14106 void *argp1 = 0 ;
14107 int res1 = 0 ;
14108 bool temp2 = false ;
14109 PyObject * obj0 = 0 ;
14110 PyObject * obj1 = 0 ;
14111 char * kwnames[] = {
14112 (char *) "self",(char *) "prefix", NULL
14113 };
14114
14115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
14116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14117 if (!SWIG_IsOK(res1)) {
14118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14119 }
14120 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14121 {
14122 arg2 = wxString_in_helper(obj1);
14123 if (arg2 == NULL) SWIG_fail;
14124 temp2 = true;
14125 }
14126 {
14127 PyThreadState* __tstate = wxPyBeginAllowThreads();
14128 (arg1)->SetConfigPath((wxString const &)*arg2);
14129 wxPyEndAllowThreads(__tstate);
14130 if (PyErr_Occurred()) SWIG_fail;
14131 }
14132 resultobj = SWIG_Py_Void();
14133 {
14134 if (temp2)
14135 delete arg2;
14136 }
14137 return resultobj;
14138 fail:
14139 {
14140 if (temp2)
14141 delete arg2;
14142 }
14143 return NULL;
14144 }
14145
14146
14147 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14148 PyObject *resultobj = 0;
14149 wxString result;
14150
14151 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
14152 {
14153 PyThreadState* __tstate = wxPyBeginAllowThreads();
14154 result = wxFontMapper::GetDefaultConfigPath();
14155 wxPyEndAllowThreads(__tstate);
14156 if (PyErr_Occurred()) SWIG_fail;
14157 }
14158 {
14159 #if wxUSE_UNICODE
14160 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14161 #else
14162 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14163 #endif
14164 }
14165 return resultobj;
14166 fail:
14167 return NULL;
14168 }
14169
14170
14171 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14172 PyObject *resultobj = 0;
14173 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14174 wxFontEncoding arg2 ;
14175 wxString const &arg3_defvalue = wxPyEmptyString ;
14176 wxString *arg3 = (wxString *) &arg3_defvalue ;
14177 bool arg4 = (bool) true ;
14178 PyObject *result = 0 ;
14179 void *argp1 = 0 ;
14180 int res1 = 0 ;
14181 int val2 ;
14182 int ecode2 = 0 ;
14183 bool temp3 = false ;
14184 bool val4 ;
14185 int ecode4 = 0 ;
14186 PyObject * obj0 = 0 ;
14187 PyObject * obj1 = 0 ;
14188 PyObject * obj2 = 0 ;
14189 PyObject * obj3 = 0 ;
14190 char * kwnames[] = {
14191 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
14192 };
14193
14194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14196 if (!SWIG_IsOK(res1)) {
14197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14198 }
14199 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14200 ecode2 = SWIG_AsVal_int(obj1, &val2);
14201 if (!SWIG_IsOK(ecode2)) {
14202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14203 }
14204 arg2 = static_cast< wxFontEncoding >(val2);
14205 if (obj2) {
14206 {
14207 arg3 = wxString_in_helper(obj2);
14208 if (arg3 == NULL) SWIG_fail;
14209 temp3 = true;
14210 }
14211 }
14212 if (obj3) {
14213 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14214 if (!SWIG_IsOK(ecode4)) {
14215 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
14216 }
14217 arg4 = static_cast< bool >(val4);
14218 }
14219 {
14220 PyThreadState* __tstate = wxPyBeginAllowThreads();
14221 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
14222 wxPyEndAllowThreads(__tstate);
14223 if (PyErr_Occurred()) SWIG_fail;
14224 }
14225 resultobj = result;
14226 {
14227 if (temp3)
14228 delete arg3;
14229 }
14230 return resultobj;
14231 fail:
14232 {
14233 if (temp3)
14234 delete arg3;
14235 }
14236 return NULL;
14237 }
14238
14239
14240 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14241 PyObject *resultobj = 0;
14242 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14243 wxFontEncoding arg2 ;
14244 wxString const &arg3_defvalue = wxPyEmptyString ;
14245 wxString *arg3 = (wxString *) &arg3_defvalue ;
14246 bool result;
14247 void *argp1 = 0 ;
14248 int res1 = 0 ;
14249 int val2 ;
14250 int ecode2 = 0 ;
14251 bool temp3 = false ;
14252 PyObject * obj0 = 0 ;
14253 PyObject * obj1 = 0 ;
14254 PyObject * obj2 = 0 ;
14255 char * kwnames[] = {
14256 (char *) "self",(char *) "encoding",(char *) "facename", NULL
14257 };
14258
14259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14261 if (!SWIG_IsOK(res1)) {
14262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14263 }
14264 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14265 ecode2 = SWIG_AsVal_int(obj1, &val2);
14266 if (!SWIG_IsOK(ecode2)) {
14267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14268 }
14269 arg2 = static_cast< wxFontEncoding >(val2);
14270 if (obj2) {
14271 {
14272 arg3 = wxString_in_helper(obj2);
14273 if (arg3 == NULL) SWIG_fail;
14274 temp3 = true;
14275 }
14276 }
14277 {
14278 PyThreadState* __tstate = wxPyBeginAllowThreads();
14279 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
14280 wxPyEndAllowThreads(__tstate);
14281 if (PyErr_Occurred()) SWIG_fail;
14282 }
14283 {
14284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14285 }
14286 {
14287 if (temp3)
14288 delete arg3;
14289 }
14290 return resultobj;
14291 fail:
14292 {
14293 if (temp3)
14294 delete arg3;
14295 }
14296 return NULL;
14297 }
14298
14299
14300 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14301 PyObject *resultobj = 0;
14302 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14303 wxWindow *arg2 = (wxWindow *) 0 ;
14304 void *argp1 = 0 ;
14305 int res1 = 0 ;
14306 void *argp2 = 0 ;
14307 int res2 = 0 ;
14308 PyObject * obj0 = 0 ;
14309 PyObject * obj1 = 0 ;
14310 char * kwnames[] = {
14311 (char *) "self",(char *) "parent", NULL
14312 };
14313
14314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14316 if (!SWIG_IsOK(res1)) {
14317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14318 }
14319 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14320 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14321 if (!SWIG_IsOK(res2)) {
14322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14323 }
14324 arg2 = reinterpret_cast< wxWindow * >(argp2);
14325 {
14326 PyThreadState* __tstate = wxPyBeginAllowThreads();
14327 (arg1)->SetDialogParent(arg2);
14328 wxPyEndAllowThreads(__tstate);
14329 if (PyErr_Occurred()) SWIG_fail;
14330 }
14331 resultobj = SWIG_Py_Void();
14332 return resultobj;
14333 fail:
14334 return NULL;
14335 }
14336
14337
14338 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14339 PyObject *resultobj = 0;
14340 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14341 wxString *arg2 = 0 ;
14342 void *argp1 = 0 ;
14343 int res1 = 0 ;
14344 bool temp2 = false ;
14345 PyObject * obj0 = 0 ;
14346 PyObject * obj1 = 0 ;
14347 char * kwnames[] = {
14348 (char *) "self",(char *) "title", NULL
14349 };
14350
14351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14353 if (!SWIG_IsOK(res1)) {
14354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14355 }
14356 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14357 {
14358 arg2 = wxString_in_helper(obj1);
14359 if (arg2 == NULL) SWIG_fail;
14360 temp2 = true;
14361 }
14362 {
14363 PyThreadState* __tstate = wxPyBeginAllowThreads();
14364 (arg1)->SetDialogTitle((wxString const &)*arg2);
14365 wxPyEndAllowThreads(__tstate);
14366 if (PyErr_Occurred()) SWIG_fail;
14367 }
14368 resultobj = SWIG_Py_Void();
14369 {
14370 if (temp2)
14371 delete arg2;
14372 }
14373 return resultobj;
14374 fail:
14375 {
14376 if (temp2)
14377 delete arg2;
14378 }
14379 return NULL;
14380 }
14381
14382
14383 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14384 PyObject *obj;
14385 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14386 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14387 return SWIG_Py_Void();
14388 }
14389
14390 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14391 return SWIG_Python_InitShadowInstance(args);
14392 }
14393
14394 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14395 PyObject *resultobj = 0;
14396 int arg1 ;
14397 int arg2 ;
14398 int arg3 ;
14399 int arg4 ;
14400 bool arg5 = (bool) false ;
14401 wxString const &arg6_defvalue = wxPyEmptyString ;
14402 wxString *arg6 = (wxString *) &arg6_defvalue ;
14403 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14404 wxFont *result = 0 ;
14405 int val1 ;
14406 int ecode1 = 0 ;
14407 int val2 ;
14408 int ecode2 = 0 ;
14409 int val3 ;
14410 int ecode3 = 0 ;
14411 int val4 ;
14412 int ecode4 = 0 ;
14413 bool val5 ;
14414 int ecode5 = 0 ;
14415 bool temp6 = false ;
14416 int val7 ;
14417 int ecode7 = 0 ;
14418 PyObject * obj0 = 0 ;
14419 PyObject * obj1 = 0 ;
14420 PyObject * obj2 = 0 ;
14421 PyObject * obj3 = 0 ;
14422 PyObject * obj4 = 0 ;
14423 PyObject * obj5 = 0 ;
14424 PyObject * obj6 = 0 ;
14425 char * kwnames[] = {
14426 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14427 };
14428
14429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14430 ecode1 = SWIG_AsVal_int(obj0, &val1);
14431 if (!SWIG_IsOK(ecode1)) {
14432 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14433 }
14434 arg1 = static_cast< int >(val1);
14435 ecode2 = SWIG_AsVal_int(obj1, &val2);
14436 if (!SWIG_IsOK(ecode2)) {
14437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14438 }
14439 arg2 = static_cast< int >(val2);
14440 ecode3 = SWIG_AsVal_int(obj2, &val3);
14441 if (!SWIG_IsOK(ecode3)) {
14442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14443 }
14444 arg3 = static_cast< int >(val3);
14445 ecode4 = SWIG_AsVal_int(obj3, &val4);
14446 if (!SWIG_IsOK(ecode4)) {
14447 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14448 }
14449 arg4 = static_cast< int >(val4);
14450 if (obj4) {
14451 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14452 if (!SWIG_IsOK(ecode5)) {
14453 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14454 }
14455 arg5 = static_cast< bool >(val5);
14456 }
14457 if (obj5) {
14458 {
14459 arg6 = wxString_in_helper(obj5);
14460 if (arg6 == NULL) SWIG_fail;
14461 temp6 = true;
14462 }
14463 }
14464 if (obj6) {
14465 ecode7 = SWIG_AsVal_int(obj6, &val7);
14466 if (!SWIG_IsOK(ecode7)) {
14467 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14468 }
14469 arg7 = static_cast< wxFontEncoding >(val7);
14470 }
14471 {
14472 if (!wxPyCheckForApp()) SWIG_fail;
14473 PyThreadState* __tstate = wxPyBeginAllowThreads();
14474 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14475 wxPyEndAllowThreads(__tstate);
14476 if (PyErr_Occurred()) SWIG_fail;
14477 }
14478 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14479 {
14480 if (temp6)
14481 delete arg6;
14482 }
14483 return resultobj;
14484 fail:
14485 {
14486 if (temp6)
14487 delete arg6;
14488 }
14489 return NULL;
14490 }
14491
14492
14493 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14494 PyObject *resultobj = 0;
14495 wxFont *arg1 = (wxFont *) 0 ;
14496 void *argp1 = 0 ;
14497 int res1 = 0 ;
14498 PyObject *swig_obj[1] ;
14499
14500 if (!args) SWIG_fail;
14501 swig_obj[0] = args;
14502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14503 if (!SWIG_IsOK(res1)) {
14504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14505 }
14506 arg1 = reinterpret_cast< wxFont * >(argp1);
14507 {
14508 PyThreadState* __tstate = wxPyBeginAllowThreads();
14509 delete arg1;
14510
14511 wxPyEndAllowThreads(__tstate);
14512 if (PyErr_Occurred()) SWIG_fail;
14513 }
14514 resultobj = SWIG_Py_Void();
14515 return resultobj;
14516 fail:
14517 return NULL;
14518 }
14519
14520
14521 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14522 PyObject *resultobj = 0;
14523 wxNativeFontInfo *arg1 = 0 ;
14524 wxFont *result = 0 ;
14525 void *argp1 = 0 ;
14526 int res1 = 0 ;
14527 PyObject * obj0 = 0 ;
14528 char * kwnames[] = {
14529 (char *) "info", NULL
14530 };
14531
14532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14533 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14534 if (!SWIG_IsOK(res1)) {
14535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14536 }
14537 if (!argp1) {
14538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14539 }
14540 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14541 {
14542 if (!wxPyCheckForApp()) SWIG_fail;
14543 PyThreadState* __tstate = wxPyBeginAllowThreads();
14544 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14545 wxPyEndAllowThreads(__tstate);
14546 if (PyErr_Occurred()) SWIG_fail;
14547 }
14548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14549 return resultobj;
14550 fail:
14551 return NULL;
14552 }
14553
14554
14555 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14556 PyObject *resultobj = 0;
14557 wxString *arg1 = 0 ;
14558 wxFont *result = 0 ;
14559 bool temp1 = false ;
14560 PyObject * obj0 = 0 ;
14561 char * kwnames[] = {
14562 (char *) "info", NULL
14563 };
14564
14565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14566 {
14567 arg1 = wxString_in_helper(obj0);
14568 if (arg1 == NULL) SWIG_fail;
14569 temp1 = true;
14570 }
14571 {
14572 if (!wxPyCheckForApp()) SWIG_fail;
14573 PyThreadState* __tstate = wxPyBeginAllowThreads();
14574 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14575 wxPyEndAllowThreads(__tstate);
14576 if (PyErr_Occurred()) SWIG_fail;
14577 }
14578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14579 {
14580 if (temp1)
14581 delete arg1;
14582 }
14583 return resultobj;
14584 fail:
14585 {
14586 if (temp1)
14587 delete arg1;
14588 }
14589 return NULL;
14590 }
14591
14592
14593 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14594 PyObject *resultobj = 0;
14595 int arg1 ;
14596 wxFontFamily arg2 ;
14597 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14598 wxString const &arg4_defvalue = wxPyEmptyString ;
14599 wxString *arg4 = (wxString *) &arg4_defvalue ;
14600 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14601 wxFont *result = 0 ;
14602 int val1 ;
14603 int ecode1 = 0 ;
14604 int val2 ;
14605 int ecode2 = 0 ;
14606 int val3 ;
14607 int ecode3 = 0 ;
14608 bool temp4 = false ;
14609 int val5 ;
14610 int ecode5 = 0 ;
14611 PyObject * obj0 = 0 ;
14612 PyObject * obj1 = 0 ;
14613 PyObject * obj2 = 0 ;
14614 PyObject * obj3 = 0 ;
14615 PyObject * obj4 = 0 ;
14616 char * kwnames[] = {
14617 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14618 };
14619
14620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14621 ecode1 = SWIG_AsVal_int(obj0, &val1);
14622 if (!SWIG_IsOK(ecode1)) {
14623 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14624 }
14625 arg1 = static_cast< int >(val1);
14626 ecode2 = SWIG_AsVal_int(obj1, &val2);
14627 if (!SWIG_IsOK(ecode2)) {
14628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14629 }
14630 arg2 = static_cast< wxFontFamily >(val2);
14631 if (obj2) {
14632 ecode3 = SWIG_AsVal_int(obj2, &val3);
14633 if (!SWIG_IsOK(ecode3)) {
14634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14635 }
14636 arg3 = static_cast< int >(val3);
14637 }
14638 if (obj3) {
14639 {
14640 arg4 = wxString_in_helper(obj3);
14641 if (arg4 == NULL) SWIG_fail;
14642 temp4 = true;
14643 }
14644 }
14645 if (obj4) {
14646 ecode5 = SWIG_AsVal_int(obj4, &val5);
14647 if (!SWIG_IsOK(ecode5)) {
14648 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14649 }
14650 arg5 = static_cast< wxFontEncoding >(val5);
14651 }
14652 {
14653 if (!wxPyCheckForApp()) SWIG_fail;
14654 PyThreadState* __tstate = wxPyBeginAllowThreads();
14655 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14656 wxPyEndAllowThreads(__tstate);
14657 if (PyErr_Occurred()) SWIG_fail;
14658 }
14659 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14660 {
14661 if (temp4)
14662 delete arg4;
14663 }
14664 return resultobj;
14665 fail:
14666 {
14667 if (temp4)
14668 delete arg4;
14669 }
14670 return NULL;
14671 }
14672
14673
14674 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14675 PyObject *resultobj = 0;
14676 wxSize *arg1 = 0 ;
14677 int arg2 ;
14678 int arg3 ;
14679 int arg4 ;
14680 bool arg5 = (bool) false ;
14681 wxString const &arg6_defvalue = wxEmptyString ;
14682 wxString *arg6 = (wxString *) &arg6_defvalue ;
14683 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14684 wxFont *result = 0 ;
14685 wxSize temp1 ;
14686 int val2 ;
14687 int ecode2 = 0 ;
14688 int val3 ;
14689 int ecode3 = 0 ;
14690 int val4 ;
14691 int ecode4 = 0 ;
14692 bool val5 ;
14693 int ecode5 = 0 ;
14694 bool temp6 = false ;
14695 int val7 ;
14696 int ecode7 = 0 ;
14697 PyObject * obj0 = 0 ;
14698 PyObject * obj1 = 0 ;
14699 PyObject * obj2 = 0 ;
14700 PyObject * obj3 = 0 ;
14701 PyObject * obj4 = 0 ;
14702 PyObject * obj5 = 0 ;
14703 PyObject * obj6 = 0 ;
14704 char * kwnames[] = {
14705 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14706 };
14707
14708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14709 {
14710 arg1 = &temp1;
14711 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14712 }
14713 ecode2 = SWIG_AsVal_int(obj1, &val2);
14714 if (!SWIG_IsOK(ecode2)) {
14715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14716 }
14717 arg2 = static_cast< int >(val2);
14718 ecode3 = SWIG_AsVal_int(obj2, &val3);
14719 if (!SWIG_IsOK(ecode3)) {
14720 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14721 }
14722 arg3 = static_cast< int >(val3);
14723 ecode4 = SWIG_AsVal_int(obj3, &val4);
14724 if (!SWIG_IsOK(ecode4)) {
14725 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14726 }
14727 arg4 = static_cast< int >(val4);
14728 if (obj4) {
14729 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14730 if (!SWIG_IsOK(ecode5)) {
14731 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14732 }
14733 arg5 = static_cast< bool >(val5);
14734 }
14735 if (obj5) {
14736 {
14737 arg6 = wxString_in_helper(obj5);
14738 if (arg6 == NULL) SWIG_fail;
14739 temp6 = true;
14740 }
14741 }
14742 if (obj6) {
14743 ecode7 = SWIG_AsVal_int(obj6, &val7);
14744 if (!SWIG_IsOK(ecode7)) {
14745 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14746 }
14747 arg7 = static_cast< wxFontEncoding >(val7);
14748 }
14749 {
14750 if (!wxPyCheckForApp()) SWIG_fail;
14751 PyThreadState* __tstate = wxPyBeginAllowThreads();
14752 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14753 wxPyEndAllowThreads(__tstate);
14754 if (PyErr_Occurred()) SWIG_fail;
14755 }
14756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14757 {
14758 if (temp6)
14759 delete arg6;
14760 }
14761 return resultobj;
14762 fail:
14763 {
14764 if (temp6)
14765 delete arg6;
14766 }
14767 return NULL;
14768 }
14769
14770
14771 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14772 PyObject *resultobj = 0;
14773 wxSize *arg1 = 0 ;
14774 wxFontFamily arg2 ;
14775 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14776 wxString const &arg4_defvalue = wxEmptyString ;
14777 wxString *arg4 = (wxString *) &arg4_defvalue ;
14778 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14779 wxFont *result = 0 ;
14780 wxSize temp1 ;
14781 int val2 ;
14782 int ecode2 = 0 ;
14783 int val3 ;
14784 int ecode3 = 0 ;
14785 bool temp4 = false ;
14786 int val5 ;
14787 int ecode5 = 0 ;
14788 PyObject * obj0 = 0 ;
14789 PyObject * obj1 = 0 ;
14790 PyObject * obj2 = 0 ;
14791 PyObject * obj3 = 0 ;
14792 PyObject * obj4 = 0 ;
14793 char * kwnames[] = {
14794 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14795 };
14796
14797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14798 {
14799 arg1 = &temp1;
14800 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14801 }
14802 ecode2 = SWIG_AsVal_int(obj1, &val2);
14803 if (!SWIG_IsOK(ecode2)) {
14804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14805 }
14806 arg2 = static_cast< wxFontFamily >(val2);
14807 if (obj2) {
14808 ecode3 = SWIG_AsVal_int(obj2, &val3);
14809 if (!SWIG_IsOK(ecode3)) {
14810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14811 }
14812 arg3 = static_cast< int >(val3);
14813 }
14814 if (obj3) {
14815 {
14816 arg4 = wxString_in_helper(obj3);
14817 if (arg4 == NULL) SWIG_fail;
14818 temp4 = true;
14819 }
14820 }
14821 if (obj4) {
14822 ecode5 = SWIG_AsVal_int(obj4, &val5);
14823 if (!SWIG_IsOK(ecode5)) {
14824 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14825 }
14826 arg5 = static_cast< wxFontEncoding >(val5);
14827 }
14828 {
14829 if (!wxPyCheckForApp()) SWIG_fail;
14830 PyThreadState* __tstate = wxPyBeginAllowThreads();
14831 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14832 wxPyEndAllowThreads(__tstate);
14833 if (PyErr_Occurred()) SWIG_fail;
14834 }
14835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14836 {
14837 if (temp4)
14838 delete arg4;
14839 }
14840 return resultobj;
14841 fail:
14842 {
14843 if (temp4)
14844 delete arg4;
14845 }
14846 return NULL;
14847 }
14848
14849
14850 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14851 PyObject *resultobj = 0;
14852 wxFont *arg1 = (wxFont *) 0 ;
14853 bool result;
14854 void *argp1 = 0 ;
14855 int res1 = 0 ;
14856 PyObject *swig_obj[1] ;
14857
14858 if (!args) SWIG_fail;
14859 swig_obj[0] = args;
14860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14861 if (!SWIG_IsOK(res1)) {
14862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14863 }
14864 arg1 = reinterpret_cast< wxFont * >(argp1);
14865 {
14866 PyThreadState* __tstate = wxPyBeginAllowThreads();
14867 result = (bool)((wxFont const *)arg1)->IsOk();
14868 wxPyEndAllowThreads(__tstate);
14869 if (PyErr_Occurred()) SWIG_fail;
14870 }
14871 {
14872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14873 }
14874 return resultobj;
14875 fail:
14876 return NULL;
14877 }
14878
14879
14880 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14881 PyObject *resultobj = 0;
14882 wxFont *arg1 = (wxFont *) 0 ;
14883 wxFont *arg2 = (wxFont *) 0 ;
14884 bool result;
14885 void *argp1 = 0 ;
14886 int res1 = 0 ;
14887 void *argp2 = 0 ;
14888 int res2 = 0 ;
14889 PyObject * obj0 = 0 ;
14890 PyObject * obj1 = 0 ;
14891 char * kwnames[] = {
14892 (char *) "self",(char *) "other", NULL
14893 };
14894
14895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14897 if (!SWIG_IsOK(res1)) {
14898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14899 }
14900 arg1 = reinterpret_cast< wxFont * >(argp1);
14901 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14902 if (!SWIG_IsOK(res2)) {
14903 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14904 }
14905 arg2 = reinterpret_cast< wxFont * >(argp2);
14906 {
14907 PyThreadState* __tstate = wxPyBeginAllowThreads();
14908 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14909 wxPyEndAllowThreads(__tstate);
14910 if (PyErr_Occurred()) SWIG_fail;
14911 }
14912 {
14913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14914 }
14915 return resultobj;
14916 fail:
14917 return NULL;
14918 }
14919
14920
14921 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14922 PyObject *resultobj = 0;
14923 wxFont *arg1 = (wxFont *) 0 ;
14924 wxFont *arg2 = (wxFont *) 0 ;
14925 bool result;
14926 void *argp1 = 0 ;
14927 int res1 = 0 ;
14928 void *argp2 = 0 ;
14929 int res2 = 0 ;
14930 PyObject * obj0 = 0 ;
14931 PyObject * obj1 = 0 ;
14932 char * kwnames[] = {
14933 (char *) "self",(char *) "other", NULL
14934 };
14935
14936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14938 if (!SWIG_IsOK(res1)) {
14939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14940 }
14941 arg1 = reinterpret_cast< wxFont * >(argp1);
14942 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14943 if (!SWIG_IsOK(res2)) {
14944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14945 }
14946 arg2 = reinterpret_cast< wxFont * >(argp2);
14947 {
14948 PyThreadState* __tstate = wxPyBeginAllowThreads();
14949 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14950 wxPyEndAllowThreads(__tstate);
14951 if (PyErr_Occurred()) SWIG_fail;
14952 }
14953 {
14954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14955 }
14956 return resultobj;
14957 fail:
14958 return NULL;
14959 }
14960
14961
14962 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14963 PyObject *resultobj = 0;
14964 wxFont *arg1 = (wxFont *) 0 ;
14965 int result;
14966 void *argp1 = 0 ;
14967 int res1 = 0 ;
14968 PyObject *swig_obj[1] ;
14969
14970 if (!args) SWIG_fail;
14971 swig_obj[0] = args;
14972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14973 if (!SWIG_IsOK(res1)) {
14974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14975 }
14976 arg1 = reinterpret_cast< wxFont * >(argp1);
14977 {
14978 PyThreadState* __tstate = wxPyBeginAllowThreads();
14979 result = (int)((wxFont const *)arg1)->GetPointSize();
14980 wxPyEndAllowThreads(__tstate);
14981 if (PyErr_Occurred()) SWIG_fail;
14982 }
14983 resultobj = SWIG_From_int(static_cast< int >(result));
14984 return resultobj;
14985 fail:
14986 return NULL;
14987 }
14988
14989
14990 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14991 PyObject *resultobj = 0;
14992 wxFont *arg1 = (wxFont *) 0 ;
14993 wxSize result;
14994 void *argp1 = 0 ;
14995 int res1 = 0 ;
14996 PyObject *swig_obj[1] ;
14997
14998 if (!args) SWIG_fail;
14999 swig_obj[0] = args;
15000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15001 if (!SWIG_IsOK(res1)) {
15002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15003 }
15004 arg1 = reinterpret_cast< wxFont * >(argp1);
15005 {
15006 PyThreadState* __tstate = wxPyBeginAllowThreads();
15007 result = ((wxFont const *)arg1)->GetPixelSize();
15008 wxPyEndAllowThreads(__tstate);
15009 if (PyErr_Occurred()) SWIG_fail;
15010 }
15011 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
15012 return resultobj;
15013 fail:
15014 return NULL;
15015 }
15016
15017
15018 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15019 PyObject *resultobj = 0;
15020 wxFont *arg1 = (wxFont *) 0 ;
15021 bool result;
15022 void *argp1 = 0 ;
15023 int res1 = 0 ;
15024 PyObject *swig_obj[1] ;
15025
15026 if (!args) SWIG_fail;
15027 swig_obj[0] = args;
15028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15029 if (!SWIG_IsOK(res1)) {
15030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
15031 }
15032 arg1 = reinterpret_cast< wxFont * >(argp1);
15033 {
15034 PyThreadState* __tstate = wxPyBeginAllowThreads();
15035 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
15036 wxPyEndAllowThreads(__tstate);
15037 if (PyErr_Occurred()) SWIG_fail;
15038 }
15039 {
15040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15041 }
15042 return resultobj;
15043 fail:
15044 return NULL;
15045 }
15046
15047
15048 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15049 PyObject *resultobj = 0;
15050 wxFont *arg1 = (wxFont *) 0 ;
15051 int result;
15052 void *argp1 = 0 ;
15053 int res1 = 0 ;
15054 PyObject *swig_obj[1] ;
15055
15056 if (!args) SWIG_fail;
15057 swig_obj[0] = args;
15058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15059 if (!SWIG_IsOK(res1)) {
15060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
15061 }
15062 arg1 = reinterpret_cast< wxFont * >(argp1);
15063 {
15064 PyThreadState* __tstate = wxPyBeginAllowThreads();
15065 result = (int)((wxFont const *)arg1)->GetFamily();
15066 wxPyEndAllowThreads(__tstate);
15067 if (PyErr_Occurred()) SWIG_fail;
15068 }
15069 resultobj = SWIG_From_int(static_cast< int >(result));
15070 return resultobj;
15071 fail:
15072 return NULL;
15073 }
15074
15075
15076 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15077 PyObject *resultobj = 0;
15078 wxFont *arg1 = (wxFont *) 0 ;
15079 int result;
15080 void *argp1 = 0 ;
15081 int res1 = 0 ;
15082 PyObject *swig_obj[1] ;
15083
15084 if (!args) SWIG_fail;
15085 swig_obj[0] = args;
15086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15087 if (!SWIG_IsOK(res1)) {
15088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
15089 }
15090 arg1 = reinterpret_cast< wxFont * >(argp1);
15091 {
15092 PyThreadState* __tstate = wxPyBeginAllowThreads();
15093 result = (int)((wxFont const *)arg1)->GetStyle();
15094 wxPyEndAllowThreads(__tstate);
15095 if (PyErr_Occurred()) SWIG_fail;
15096 }
15097 resultobj = SWIG_From_int(static_cast< int >(result));
15098 return resultobj;
15099 fail:
15100 return NULL;
15101 }
15102
15103
15104 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15105 PyObject *resultobj = 0;
15106 wxFont *arg1 = (wxFont *) 0 ;
15107 int result;
15108 void *argp1 = 0 ;
15109 int res1 = 0 ;
15110 PyObject *swig_obj[1] ;
15111
15112 if (!args) SWIG_fail;
15113 swig_obj[0] = args;
15114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15115 if (!SWIG_IsOK(res1)) {
15116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
15117 }
15118 arg1 = reinterpret_cast< wxFont * >(argp1);
15119 {
15120 PyThreadState* __tstate = wxPyBeginAllowThreads();
15121 result = (int)((wxFont const *)arg1)->GetWeight();
15122 wxPyEndAllowThreads(__tstate);
15123 if (PyErr_Occurred()) SWIG_fail;
15124 }
15125 resultobj = SWIG_From_int(static_cast< int >(result));
15126 return resultobj;
15127 fail:
15128 return NULL;
15129 }
15130
15131
15132 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15133 PyObject *resultobj = 0;
15134 wxFont *arg1 = (wxFont *) 0 ;
15135 bool result;
15136 void *argp1 = 0 ;
15137 int res1 = 0 ;
15138 PyObject *swig_obj[1] ;
15139
15140 if (!args) SWIG_fail;
15141 swig_obj[0] = args;
15142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15143 if (!SWIG_IsOK(res1)) {
15144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
15145 }
15146 arg1 = reinterpret_cast< wxFont * >(argp1);
15147 {
15148 PyThreadState* __tstate = wxPyBeginAllowThreads();
15149 result = (bool)((wxFont const *)arg1)->GetUnderlined();
15150 wxPyEndAllowThreads(__tstate);
15151 if (PyErr_Occurred()) SWIG_fail;
15152 }
15153 {
15154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15155 }
15156 return resultobj;
15157 fail:
15158 return NULL;
15159 }
15160
15161
15162 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15163 PyObject *resultobj = 0;
15164 wxFont *arg1 = (wxFont *) 0 ;
15165 wxString result;
15166 void *argp1 = 0 ;
15167 int res1 = 0 ;
15168 PyObject *swig_obj[1] ;
15169
15170 if (!args) SWIG_fail;
15171 swig_obj[0] = args;
15172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15173 if (!SWIG_IsOK(res1)) {
15174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
15175 }
15176 arg1 = reinterpret_cast< wxFont * >(argp1);
15177 {
15178 PyThreadState* __tstate = wxPyBeginAllowThreads();
15179 result = ((wxFont const *)arg1)->GetFaceName();
15180 wxPyEndAllowThreads(__tstate);
15181 if (PyErr_Occurred()) SWIG_fail;
15182 }
15183 {
15184 #if wxUSE_UNICODE
15185 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15186 #else
15187 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15188 #endif
15189 }
15190 return resultobj;
15191 fail:
15192 return NULL;
15193 }
15194
15195
15196 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15197 PyObject *resultobj = 0;
15198 wxFont *arg1 = (wxFont *) 0 ;
15199 wxFontEncoding result;
15200 void *argp1 = 0 ;
15201 int res1 = 0 ;
15202 PyObject *swig_obj[1] ;
15203
15204 if (!args) SWIG_fail;
15205 swig_obj[0] = args;
15206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15207 if (!SWIG_IsOK(res1)) {
15208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
15209 }
15210 arg1 = reinterpret_cast< wxFont * >(argp1);
15211 {
15212 PyThreadState* __tstate = wxPyBeginAllowThreads();
15213 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
15214 wxPyEndAllowThreads(__tstate);
15215 if (PyErr_Occurred()) SWIG_fail;
15216 }
15217 resultobj = SWIG_From_int(static_cast< int >(result));
15218 return resultobj;
15219 fail:
15220 return NULL;
15221 }
15222
15223
15224 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15225 PyObject *resultobj = 0;
15226 wxFont *arg1 = (wxFont *) 0 ;
15227 wxNativeFontInfo *result = 0 ;
15228 void *argp1 = 0 ;
15229 int res1 = 0 ;
15230 PyObject *swig_obj[1] ;
15231
15232 if (!args) SWIG_fail;
15233 swig_obj[0] = args;
15234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15235 if (!SWIG_IsOK(res1)) {
15236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
15237 }
15238 arg1 = reinterpret_cast< wxFont * >(argp1);
15239 {
15240 PyThreadState* __tstate = wxPyBeginAllowThreads();
15241 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
15242 wxPyEndAllowThreads(__tstate);
15243 if (PyErr_Occurred()) SWIG_fail;
15244 }
15245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
15246 return resultobj;
15247 fail:
15248 return NULL;
15249 }
15250
15251
15252 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15253 PyObject *resultobj = 0;
15254 wxFont *arg1 = (wxFont *) 0 ;
15255 bool result;
15256 void *argp1 = 0 ;
15257 int res1 = 0 ;
15258 PyObject *swig_obj[1] ;
15259
15260 if (!args) SWIG_fail;
15261 swig_obj[0] = args;
15262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15263 if (!SWIG_IsOK(res1)) {
15264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
15265 }
15266 arg1 = reinterpret_cast< wxFont * >(argp1);
15267 {
15268 PyThreadState* __tstate = wxPyBeginAllowThreads();
15269 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
15270 wxPyEndAllowThreads(__tstate);
15271 if (PyErr_Occurred()) SWIG_fail;
15272 }
15273 {
15274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15275 }
15276 return resultobj;
15277 fail:
15278 return NULL;
15279 }
15280
15281
15282 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15283 PyObject *resultobj = 0;
15284 wxFont *arg1 = (wxFont *) 0 ;
15285 wxString result;
15286 void *argp1 = 0 ;
15287 int res1 = 0 ;
15288 PyObject *swig_obj[1] ;
15289
15290 if (!args) SWIG_fail;
15291 swig_obj[0] = args;
15292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15293 if (!SWIG_IsOK(res1)) {
15294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15295 }
15296 arg1 = reinterpret_cast< wxFont * >(argp1);
15297 {
15298 PyThreadState* __tstate = wxPyBeginAllowThreads();
15299 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
15300 wxPyEndAllowThreads(__tstate);
15301 if (PyErr_Occurred()) SWIG_fail;
15302 }
15303 {
15304 #if wxUSE_UNICODE
15305 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15306 #else
15307 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15308 #endif
15309 }
15310 return resultobj;
15311 fail:
15312 return NULL;
15313 }
15314
15315
15316 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15317 PyObject *resultobj = 0;
15318 wxFont *arg1 = (wxFont *) 0 ;
15319 wxString result;
15320 void *argp1 = 0 ;
15321 int res1 = 0 ;
15322 PyObject *swig_obj[1] ;
15323
15324 if (!args) SWIG_fail;
15325 swig_obj[0] = args;
15326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15327 if (!SWIG_IsOK(res1)) {
15328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15329 }
15330 arg1 = reinterpret_cast< wxFont * >(argp1);
15331 {
15332 PyThreadState* __tstate = wxPyBeginAllowThreads();
15333 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15334 wxPyEndAllowThreads(__tstate);
15335 if (PyErr_Occurred()) SWIG_fail;
15336 }
15337 {
15338 #if wxUSE_UNICODE
15339 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15340 #else
15341 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15342 #endif
15343 }
15344 return resultobj;
15345 fail:
15346 return NULL;
15347 }
15348
15349
15350 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15351 PyObject *resultobj = 0;
15352 wxFont *arg1 = (wxFont *) 0 ;
15353 int arg2 ;
15354 void *argp1 = 0 ;
15355 int res1 = 0 ;
15356 int val2 ;
15357 int ecode2 = 0 ;
15358 PyObject * obj0 = 0 ;
15359 PyObject * obj1 = 0 ;
15360 char * kwnames[] = {
15361 (char *) "self",(char *) "pointSize", NULL
15362 };
15363
15364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15366 if (!SWIG_IsOK(res1)) {
15367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15368 }
15369 arg1 = reinterpret_cast< wxFont * >(argp1);
15370 ecode2 = SWIG_AsVal_int(obj1, &val2);
15371 if (!SWIG_IsOK(ecode2)) {
15372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15373 }
15374 arg2 = static_cast< int >(val2);
15375 {
15376 PyThreadState* __tstate = wxPyBeginAllowThreads();
15377 (arg1)->SetPointSize(arg2);
15378 wxPyEndAllowThreads(__tstate);
15379 if (PyErr_Occurred()) SWIG_fail;
15380 }
15381 resultobj = SWIG_Py_Void();
15382 return resultobj;
15383 fail:
15384 return NULL;
15385 }
15386
15387
15388 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15389 PyObject *resultobj = 0;
15390 wxFont *arg1 = (wxFont *) 0 ;
15391 wxSize *arg2 = 0 ;
15392 void *argp1 = 0 ;
15393 int res1 = 0 ;
15394 wxSize temp2 ;
15395 PyObject * obj0 = 0 ;
15396 PyObject * obj1 = 0 ;
15397 char * kwnames[] = {
15398 (char *) "self",(char *) "pixelSize", NULL
15399 };
15400
15401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15403 if (!SWIG_IsOK(res1)) {
15404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15405 }
15406 arg1 = reinterpret_cast< wxFont * >(argp1);
15407 {
15408 arg2 = &temp2;
15409 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15410 }
15411 {
15412 PyThreadState* __tstate = wxPyBeginAllowThreads();
15413 (arg1)->SetPixelSize((wxSize const &)*arg2);
15414 wxPyEndAllowThreads(__tstate);
15415 if (PyErr_Occurred()) SWIG_fail;
15416 }
15417 resultobj = SWIG_Py_Void();
15418 return resultobj;
15419 fail:
15420 return NULL;
15421 }
15422
15423
15424 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15425 PyObject *resultobj = 0;
15426 wxFont *arg1 = (wxFont *) 0 ;
15427 int arg2 ;
15428 void *argp1 = 0 ;
15429 int res1 = 0 ;
15430 int val2 ;
15431 int ecode2 = 0 ;
15432 PyObject * obj0 = 0 ;
15433 PyObject * obj1 = 0 ;
15434 char * kwnames[] = {
15435 (char *) "self",(char *) "family", NULL
15436 };
15437
15438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15440 if (!SWIG_IsOK(res1)) {
15441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15442 }
15443 arg1 = reinterpret_cast< wxFont * >(argp1);
15444 ecode2 = SWIG_AsVal_int(obj1, &val2);
15445 if (!SWIG_IsOK(ecode2)) {
15446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15447 }
15448 arg2 = static_cast< int >(val2);
15449 {
15450 PyThreadState* __tstate = wxPyBeginAllowThreads();
15451 (arg1)->SetFamily(arg2);
15452 wxPyEndAllowThreads(__tstate);
15453 if (PyErr_Occurred()) SWIG_fail;
15454 }
15455 resultobj = SWIG_Py_Void();
15456 return resultobj;
15457 fail:
15458 return NULL;
15459 }
15460
15461
15462 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15463 PyObject *resultobj = 0;
15464 wxFont *arg1 = (wxFont *) 0 ;
15465 int arg2 ;
15466 void *argp1 = 0 ;
15467 int res1 = 0 ;
15468 int val2 ;
15469 int ecode2 = 0 ;
15470 PyObject * obj0 = 0 ;
15471 PyObject * obj1 = 0 ;
15472 char * kwnames[] = {
15473 (char *) "self",(char *) "style", NULL
15474 };
15475
15476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15478 if (!SWIG_IsOK(res1)) {
15479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15480 }
15481 arg1 = reinterpret_cast< wxFont * >(argp1);
15482 ecode2 = SWIG_AsVal_int(obj1, &val2);
15483 if (!SWIG_IsOK(ecode2)) {
15484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15485 }
15486 arg2 = static_cast< int >(val2);
15487 {
15488 PyThreadState* __tstate = wxPyBeginAllowThreads();
15489 (arg1)->SetStyle(arg2);
15490 wxPyEndAllowThreads(__tstate);
15491 if (PyErr_Occurred()) SWIG_fail;
15492 }
15493 resultobj = SWIG_Py_Void();
15494 return resultobj;
15495 fail:
15496 return NULL;
15497 }
15498
15499
15500 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15501 PyObject *resultobj = 0;
15502 wxFont *arg1 = (wxFont *) 0 ;
15503 int arg2 ;
15504 void *argp1 = 0 ;
15505 int res1 = 0 ;
15506 int val2 ;
15507 int ecode2 = 0 ;
15508 PyObject * obj0 = 0 ;
15509 PyObject * obj1 = 0 ;
15510 char * kwnames[] = {
15511 (char *) "self",(char *) "weight", NULL
15512 };
15513
15514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15516 if (!SWIG_IsOK(res1)) {
15517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15518 }
15519 arg1 = reinterpret_cast< wxFont * >(argp1);
15520 ecode2 = SWIG_AsVal_int(obj1, &val2);
15521 if (!SWIG_IsOK(ecode2)) {
15522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15523 }
15524 arg2 = static_cast< int >(val2);
15525 {
15526 PyThreadState* __tstate = wxPyBeginAllowThreads();
15527 (arg1)->SetWeight(arg2);
15528 wxPyEndAllowThreads(__tstate);
15529 if (PyErr_Occurred()) SWIG_fail;
15530 }
15531 resultobj = SWIG_Py_Void();
15532 return resultobj;
15533 fail:
15534 return NULL;
15535 }
15536
15537
15538 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15539 PyObject *resultobj = 0;
15540 wxFont *arg1 = (wxFont *) 0 ;
15541 wxString *arg2 = 0 ;
15542 bool result;
15543 void *argp1 = 0 ;
15544 int res1 = 0 ;
15545 bool temp2 = false ;
15546 PyObject * obj0 = 0 ;
15547 PyObject * obj1 = 0 ;
15548 char * kwnames[] = {
15549 (char *) "self",(char *) "faceName", NULL
15550 };
15551
15552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15554 if (!SWIG_IsOK(res1)) {
15555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15556 }
15557 arg1 = reinterpret_cast< wxFont * >(argp1);
15558 {
15559 arg2 = wxString_in_helper(obj1);
15560 if (arg2 == NULL) SWIG_fail;
15561 temp2 = true;
15562 }
15563 {
15564 PyThreadState* __tstate = wxPyBeginAllowThreads();
15565 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15566 wxPyEndAllowThreads(__tstate);
15567 if (PyErr_Occurred()) SWIG_fail;
15568 }
15569 {
15570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15571 }
15572 {
15573 if (temp2)
15574 delete arg2;
15575 }
15576 return resultobj;
15577 fail:
15578 {
15579 if (temp2)
15580 delete arg2;
15581 }
15582 return NULL;
15583 }
15584
15585
15586 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15587 PyObject *resultobj = 0;
15588 wxFont *arg1 = (wxFont *) 0 ;
15589 bool arg2 ;
15590 void *argp1 = 0 ;
15591 int res1 = 0 ;
15592 bool val2 ;
15593 int ecode2 = 0 ;
15594 PyObject * obj0 = 0 ;
15595 PyObject * obj1 = 0 ;
15596 char * kwnames[] = {
15597 (char *) "self",(char *) "underlined", NULL
15598 };
15599
15600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15602 if (!SWIG_IsOK(res1)) {
15603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15604 }
15605 arg1 = reinterpret_cast< wxFont * >(argp1);
15606 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15607 if (!SWIG_IsOK(ecode2)) {
15608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15609 }
15610 arg2 = static_cast< bool >(val2);
15611 {
15612 PyThreadState* __tstate = wxPyBeginAllowThreads();
15613 (arg1)->SetUnderlined(arg2);
15614 wxPyEndAllowThreads(__tstate);
15615 if (PyErr_Occurred()) SWIG_fail;
15616 }
15617 resultobj = SWIG_Py_Void();
15618 return resultobj;
15619 fail:
15620 return NULL;
15621 }
15622
15623
15624 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15625 PyObject *resultobj = 0;
15626 wxFont *arg1 = (wxFont *) 0 ;
15627 wxFontEncoding arg2 ;
15628 void *argp1 = 0 ;
15629 int res1 = 0 ;
15630 int val2 ;
15631 int ecode2 = 0 ;
15632 PyObject * obj0 = 0 ;
15633 PyObject * obj1 = 0 ;
15634 char * kwnames[] = {
15635 (char *) "self",(char *) "encoding", NULL
15636 };
15637
15638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15640 if (!SWIG_IsOK(res1)) {
15641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15642 }
15643 arg1 = reinterpret_cast< wxFont * >(argp1);
15644 ecode2 = SWIG_AsVal_int(obj1, &val2);
15645 if (!SWIG_IsOK(ecode2)) {
15646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15647 }
15648 arg2 = static_cast< wxFontEncoding >(val2);
15649 {
15650 PyThreadState* __tstate = wxPyBeginAllowThreads();
15651 (arg1)->SetEncoding(arg2);
15652 wxPyEndAllowThreads(__tstate);
15653 if (PyErr_Occurred()) SWIG_fail;
15654 }
15655 resultobj = SWIG_Py_Void();
15656 return resultobj;
15657 fail:
15658 return NULL;
15659 }
15660
15661
15662 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15663 PyObject *resultobj = 0;
15664 wxFont *arg1 = (wxFont *) 0 ;
15665 wxNativeFontInfo *arg2 = 0 ;
15666 void *argp1 = 0 ;
15667 int res1 = 0 ;
15668 void *argp2 = 0 ;
15669 int res2 = 0 ;
15670 PyObject * obj0 = 0 ;
15671 PyObject * obj1 = 0 ;
15672 char * kwnames[] = {
15673 (char *) "self",(char *) "info", NULL
15674 };
15675
15676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15678 if (!SWIG_IsOK(res1)) {
15679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15680 }
15681 arg1 = reinterpret_cast< wxFont * >(argp1);
15682 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15683 if (!SWIG_IsOK(res2)) {
15684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15685 }
15686 if (!argp2) {
15687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15688 }
15689 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15690 {
15691 PyThreadState* __tstate = wxPyBeginAllowThreads();
15692 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15693 wxPyEndAllowThreads(__tstate);
15694 if (PyErr_Occurred()) SWIG_fail;
15695 }
15696 resultobj = SWIG_Py_Void();
15697 return resultobj;
15698 fail:
15699 return NULL;
15700 }
15701
15702
15703 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15704 PyObject *resultobj = 0;
15705 wxFont *arg1 = (wxFont *) 0 ;
15706 wxString *arg2 = 0 ;
15707 bool result;
15708 void *argp1 = 0 ;
15709 int res1 = 0 ;
15710 bool temp2 = false ;
15711 PyObject * obj0 = 0 ;
15712 PyObject * obj1 = 0 ;
15713 char * kwnames[] = {
15714 (char *) "self",(char *) "info", NULL
15715 };
15716
15717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15719 if (!SWIG_IsOK(res1)) {
15720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15721 }
15722 arg1 = reinterpret_cast< wxFont * >(argp1);
15723 {
15724 arg2 = wxString_in_helper(obj1);
15725 if (arg2 == NULL) SWIG_fail;
15726 temp2 = true;
15727 }
15728 {
15729 PyThreadState* __tstate = wxPyBeginAllowThreads();
15730 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15731 wxPyEndAllowThreads(__tstate);
15732 if (PyErr_Occurred()) SWIG_fail;
15733 }
15734 {
15735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15736 }
15737 {
15738 if (temp2)
15739 delete arg2;
15740 }
15741 return resultobj;
15742 fail:
15743 {
15744 if (temp2)
15745 delete arg2;
15746 }
15747 return NULL;
15748 }
15749
15750
15751 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15752 PyObject *resultobj = 0;
15753 wxFont *arg1 = (wxFont *) 0 ;
15754 wxString *arg2 = 0 ;
15755 bool result;
15756 void *argp1 = 0 ;
15757 int res1 = 0 ;
15758 bool temp2 = false ;
15759 PyObject * obj0 = 0 ;
15760 PyObject * obj1 = 0 ;
15761 char * kwnames[] = {
15762 (char *) "self",(char *) "info", NULL
15763 };
15764
15765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15767 if (!SWIG_IsOK(res1)) {
15768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15769 }
15770 arg1 = reinterpret_cast< wxFont * >(argp1);
15771 {
15772 arg2 = wxString_in_helper(obj1);
15773 if (arg2 == NULL) SWIG_fail;
15774 temp2 = true;
15775 }
15776 {
15777 PyThreadState* __tstate = wxPyBeginAllowThreads();
15778 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15779 wxPyEndAllowThreads(__tstate);
15780 if (PyErr_Occurred()) SWIG_fail;
15781 }
15782 {
15783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15784 }
15785 {
15786 if (temp2)
15787 delete arg2;
15788 }
15789 return resultobj;
15790 fail:
15791 {
15792 if (temp2)
15793 delete arg2;
15794 }
15795 return NULL;
15796 }
15797
15798
15799 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15800 PyObject *resultobj = 0;
15801 wxFont *arg1 = (wxFont *) 0 ;
15802 wxString result;
15803 void *argp1 = 0 ;
15804 int res1 = 0 ;
15805 PyObject *swig_obj[1] ;
15806
15807 if (!args) SWIG_fail;
15808 swig_obj[0] = args;
15809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15810 if (!SWIG_IsOK(res1)) {
15811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15812 }
15813 arg1 = reinterpret_cast< wxFont * >(argp1);
15814 {
15815 PyThreadState* __tstate = wxPyBeginAllowThreads();
15816 result = ((wxFont const *)arg1)->GetFamilyString();
15817 wxPyEndAllowThreads(__tstate);
15818 if (PyErr_Occurred()) SWIG_fail;
15819 }
15820 {
15821 #if wxUSE_UNICODE
15822 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15823 #else
15824 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15825 #endif
15826 }
15827 return resultobj;
15828 fail:
15829 return NULL;
15830 }
15831
15832
15833 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15834 PyObject *resultobj = 0;
15835 wxFont *arg1 = (wxFont *) 0 ;
15836 wxString result;
15837 void *argp1 = 0 ;
15838 int res1 = 0 ;
15839 PyObject *swig_obj[1] ;
15840
15841 if (!args) SWIG_fail;
15842 swig_obj[0] = args;
15843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15844 if (!SWIG_IsOK(res1)) {
15845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15846 }
15847 arg1 = reinterpret_cast< wxFont * >(argp1);
15848 {
15849 PyThreadState* __tstate = wxPyBeginAllowThreads();
15850 result = ((wxFont const *)arg1)->GetStyleString();
15851 wxPyEndAllowThreads(__tstate);
15852 if (PyErr_Occurred()) SWIG_fail;
15853 }
15854 {
15855 #if wxUSE_UNICODE
15856 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15857 #else
15858 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15859 #endif
15860 }
15861 return resultobj;
15862 fail:
15863 return NULL;
15864 }
15865
15866
15867 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15868 PyObject *resultobj = 0;
15869 wxFont *arg1 = (wxFont *) 0 ;
15870 wxString result;
15871 void *argp1 = 0 ;
15872 int res1 = 0 ;
15873 PyObject *swig_obj[1] ;
15874
15875 if (!args) SWIG_fail;
15876 swig_obj[0] = args;
15877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15878 if (!SWIG_IsOK(res1)) {
15879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15880 }
15881 arg1 = reinterpret_cast< wxFont * >(argp1);
15882 {
15883 PyThreadState* __tstate = wxPyBeginAllowThreads();
15884 result = ((wxFont const *)arg1)->GetWeightString();
15885 wxPyEndAllowThreads(__tstate);
15886 if (PyErr_Occurred()) SWIG_fail;
15887 }
15888 {
15889 #if wxUSE_UNICODE
15890 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15891 #else
15892 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15893 #endif
15894 }
15895 return resultobj;
15896 fail:
15897 return NULL;
15898 }
15899
15900
15901 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15902 PyObject *resultobj = 0;
15903 wxFont *arg1 = (wxFont *) 0 ;
15904 bool arg2 = (bool) true ;
15905 void *argp1 = 0 ;
15906 int res1 = 0 ;
15907 bool val2 ;
15908 int ecode2 = 0 ;
15909 PyObject * obj0 = 0 ;
15910 PyObject * obj1 = 0 ;
15911 char * kwnames[] = {
15912 (char *) "self",(char *) "no", NULL
15913 };
15914
15915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15917 if (!SWIG_IsOK(res1)) {
15918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15919 }
15920 arg1 = reinterpret_cast< wxFont * >(argp1);
15921 if (obj1) {
15922 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15923 if (!SWIG_IsOK(ecode2)) {
15924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15925 }
15926 arg2 = static_cast< bool >(val2);
15927 }
15928 {
15929 PyThreadState* __tstate = wxPyBeginAllowThreads();
15930 (arg1)->SetNoAntiAliasing(arg2);
15931 wxPyEndAllowThreads(__tstate);
15932 if (PyErr_Occurred()) SWIG_fail;
15933 }
15934 resultobj = SWIG_Py_Void();
15935 return resultobj;
15936 fail:
15937 return NULL;
15938 }
15939
15940
15941 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15942 PyObject *resultobj = 0;
15943 wxFont *arg1 = (wxFont *) 0 ;
15944 bool result;
15945 void *argp1 = 0 ;
15946 int res1 = 0 ;
15947 PyObject *swig_obj[1] ;
15948
15949 if (!args) SWIG_fail;
15950 swig_obj[0] = args;
15951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15952 if (!SWIG_IsOK(res1)) {
15953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15954 }
15955 arg1 = reinterpret_cast< wxFont * >(argp1);
15956 {
15957 PyThreadState* __tstate = wxPyBeginAllowThreads();
15958 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15959 wxPyEndAllowThreads(__tstate);
15960 if (PyErr_Occurred()) SWIG_fail;
15961 }
15962 {
15963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15964 }
15965 return resultobj;
15966 fail:
15967 return NULL;
15968 }
15969
15970
15971 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15972 PyObject *resultobj = 0;
15973 wxFontEncoding result;
15974
15975 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15976 {
15977 if (!wxPyCheckForApp()) SWIG_fail;
15978 PyThreadState* __tstate = wxPyBeginAllowThreads();
15979 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15980 wxPyEndAllowThreads(__tstate);
15981 if (PyErr_Occurred()) SWIG_fail;
15982 }
15983 resultobj = SWIG_From_int(static_cast< int >(result));
15984 return resultobj;
15985 fail:
15986 return NULL;
15987 }
15988
15989
15990 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15991 PyObject *resultobj = 0;
15992 wxFontEncoding arg1 ;
15993 int val1 ;
15994 int ecode1 = 0 ;
15995 PyObject * obj0 = 0 ;
15996 char * kwnames[] = {
15997 (char *) "encoding", NULL
15998 };
15999
16000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
16001 ecode1 = SWIG_AsVal_int(obj0, &val1);
16002 if (!SWIG_IsOK(ecode1)) {
16003 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16004 }
16005 arg1 = static_cast< wxFontEncoding >(val1);
16006 {
16007 if (!wxPyCheckForApp()) SWIG_fail;
16008 PyThreadState* __tstate = wxPyBeginAllowThreads();
16009 wxFont::SetDefaultEncoding(arg1);
16010 wxPyEndAllowThreads(__tstate);
16011 if (PyErr_Occurred()) SWIG_fail;
16012 }
16013 resultobj = SWIG_Py_Void();
16014 return resultobj;
16015 fail:
16016 return NULL;
16017 }
16018
16019
16020 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16021 PyObject *obj;
16022 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16023 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
16024 return SWIG_Py_Void();
16025 }
16026
16027 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16028 return SWIG_Python_InitShadowInstance(args);
16029 }
16030
16031 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16032 PyObject *resultobj = 0;
16033 wxPyFontEnumerator *result = 0 ;
16034
16035 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
16036 {
16037 if (!wxPyCheckForApp()) SWIG_fail;
16038 PyThreadState* __tstate = wxPyBeginAllowThreads();
16039 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
16040 wxPyEndAllowThreads(__tstate);
16041 if (PyErr_Occurred()) SWIG_fail;
16042 }
16043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
16044 return resultobj;
16045 fail:
16046 return NULL;
16047 }
16048
16049
16050 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16051 PyObject *resultobj = 0;
16052 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16053 void *argp1 = 0 ;
16054 int res1 = 0 ;
16055 PyObject *swig_obj[1] ;
16056
16057 if (!args) SWIG_fail;
16058 swig_obj[0] = args;
16059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
16060 if (!SWIG_IsOK(res1)) {
16061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16062 }
16063 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16064 {
16065 PyThreadState* __tstate = wxPyBeginAllowThreads();
16066 delete arg1;
16067
16068 wxPyEndAllowThreads(__tstate);
16069 if (PyErr_Occurred()) SWIG_fail;
16070 }
16071 resultobj = SWIG_Py_Void();
16072 return resultobj;
16073 fail:
16074 return NULL;
16075 }
16076
16077
16078 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16079 PyObject *resultobj = 0;
16080 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16081 PyObject *arg2 = (PyObject *) 0 ;
16082 PyObject *arg3 = (PyObject *) 0 ;
16083 bool arg4 ;
16084 void *argp1 = 0 ;
16085 int res1 = 0 ;
16086 bool val4 ;
16087 int ecode4 = 0 ;
16088 PyObject * obj0 = 0 ;
16089 PyObject * obj1 = 0 ;
16090 PyObject * obj2 = 0 ;
16091 PyObject * obj3 = 0 ;
16092 char * kwnames[] = {
16093 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
16094 };
16095
16096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16098 if (!SWIG_IsOK(res1)) {
16099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16100 }
16101 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16102 arg2 = obj1;
16103 arg3 = obj2;
16104 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16105 if (!SWIG_IsOK(ecode4)) {
16106 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
16107 }
16108 arg4 = static_cast< bool >(val4);
16109 {
16110 PyThreadState* __tstate = wxPyBeginAllowThreads();
16111 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
16112 wxPyEndAllowThreads(__tstate);
16113 if (PyErr_Occurred()) SWIG_fail;
16114 }
16115 resultobj = SWIG_Py_Void();
16116 return resultobj;
16117 fail:
16118 return NULL;
16119 }
16120
16121
16122 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16123 PyObject *resultobj = 0;
16124 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16125 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
16126 bool arg3 = (bool) false ;
16127 bool result;
16128 void *argp1 = 0 ;
16129 int res1 = 0 ;
16130 int val2 ;
16131 int ecode2 = 0 ;
16132 bool val3 ;
16133 int ecode3 = 0 ;
16134 PyObject * obj0 = 0 ;
16135 PyObject * obj1 = 0 ;
16136 PyObject * obj2 = 0 ;
16137 char * kwnames[] = {
16138 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
16139 };
16140
16141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16143 if (!SWIG_IsOK(res1)) {
16144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16145 }
16146 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16147 if (obj1) {
16148 ecode2 = SWIG_AsVal_int(obj1, &val2);
16149 if (!SWIG_IsOK(ecode2)) {
16150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16151 }
16152 arg2 = static_cast< wxFontEncoding >(val2);
16153 }
16154 if (obj2) {
16155 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16156 if (!SWIG_IsOK(ecode3)) {
16157 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
16158 }
16159 arg3 = static_cast< bool >(val3);
16160 }
16161 {
16162 PyThreadState* __tstate = wxPyBeginAllowThreads();
16163 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
16164 wxPyEndAllowThreads(__tstate);
16165 if (PyErr_Occurred()) SWIG_fail;
16166 }
16167 {
16168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16169 }
16170 return resultobj;
16171 fail:
16172 return NULL;
16173 }
16174
16175
16176 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16177 PyObject *resultobj = 0;
16178 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16179 wxString const &arg2_defvalue = wxPyEmptyString ;
16180 wxString *arg2 = (wxString *) &arg2_defvalue ;
16181 bool result;
16182 void *argp1 = 0 ;
16183 int res1 = 0 ;
16184 bool temp2 = false ;
16185 PyObject * obj0 = 0 ;
16186 PyObject * obj1 = 0 ;
16187 char * kwnames[] = {
16188 (char *) "self",(char *) "facename", NULL
16189 };
16190
16191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
16192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16193 if (!SWIG_IsOK(res1)) {
16194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16195 }
16196 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16197 if (obj1) {
16198 {
16199 arg2 = wxString_in_helper(obj1);
16200 if (arg2 == NULL) SWIG_fail;
16201 temp2 = true;
16202 }
16203 }
16204 {
16205 PyThreadState* __tstate = wxPyBeginAllowThreads();
16206 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
16207 wxPyEndAllowThreads(__tstate);
16208 if (PyErr_Occurred()) SWIG_fail;
16209 }
16210 {
16211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16212 }
16213 {
16214 if (temp2)
16215 delete arg2;
16216 }
16217 return resultobj;
16218 fail:
16219 {
16220 if (temp2)
16221 delete arg2;
16222 }
16223 return NULL;
16224 }
16225
16226
16227 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16228 PyObject *resultobj = 0;
16229 PyObject *result = 0 ;
16230
16231 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
16232 {
16233 PyThreadState* __tstate = wxPyBeginAllowThreads();
16234 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
16235 wxPyEndAllowThreads(__tstate);
16236 if (PyErr_Occurred()) SWIG_fail;
16237 }
16238 resultobj = result;
16239 return resultobj;
16240 fail:
16241 return NULL;
16242 }
16243
16244
16245 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16246 PyObject *resultobj = 0;
16247 PyObject *result = 0 ;
16248
16249 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
16250 {
16251 PyThreadState* __tstate = wxPyBeginAllowThreads();
16252 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
16253 wxPyEndAllowThreads(__tstate);
16254 if (PyErr_Occurred()) SWIG_fail;
16255 }
16256 resultobj = result;
16257 return resultobj;
16258 fail:
16259 return NULL;
16260 }
16261
16262
16263 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16264 PyObject *resultobj = 0;
16265 wxString *arg1 = 0 ;
16266 bool result;
16267 bool temp1 = false ;
16268 PyObject * obj0 = 0 ;
16269 char * kwnames[] = {
16270 (char *) "str", NULL
16271 };
16272
16273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
16274 {
16275 arg1 = wxString_in_helper(obj0);
16276 if (arg1 == NULL) SWIG_fail;
16277 temp1 = true;
16278 }
16279 {
16280 PyThreadState* __tstate = wxPyBeginAllowThreads();
16281 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
16282 wxPyEndAllowThreads(__tstate);
16283 if (PyErr_Occurred()) SWIG_fail;
16284 }
16285 {
16286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16287 }
16288 {
16289 if (temp1)
16290 delete arg1;
16291 }
16292 return resultobj;
16293 fail:
16294 {
16295 if (temp1)
16296 delete arg1;
16297 }
16298 return NULL;
16299 }
16300
16301
16302 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16303 PyObject *obj;
16304 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16305 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
16306 return SWIG_Py_Void();
16307 }
16308
16309 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16310 return SWIG_Python_InitShadowInstance(args);
16311 }
16312
16313 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16314 PyObject *resultobj = 0;
16315 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16316 int arg2 ;
16317 void *argp1 = 0 ;
16318 int res1 = 0 ;
16319 int val2 ;
16320 int ecode2 = 0 ;
16321 PyObject *swig_obj[2] ;
16322
16323 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16325 if (!SWIG_IsOK(res1)) {
16326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16327 }
16328 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16329 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16330 if (!SWIG_IsOK(ecode2)) {
16331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16332 }
16333 arg2 = static_cast< int >(val2);
16334 if (arg1) (arg1)->Language = arg2;
16335
16336 resultobj = SWIG_Py_Void();
16337 return resultobj;
16338 fail:
16339 return NULL;
16340 }
16341
16342
16343 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16344 PyObject *resultobj = 0;
16345 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16346 int result;
16347 void *argp1 = 0 ;
16348 int res1 = 0 ;
16349 PyObject *swig_obj[1] ;
16350
16351 if (!args) SWIG_fail;
16352 swig_obj[0] = args;
16353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16354 if (!SWIG_IsOK(res1)) {
16355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16356 }
16357 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16358 result = (int) ((arg1)->Language);
16359 resultobj = SWIG_From_int(static_cast< int >(result));
16360 return resultobj;
16361 fail:
16362 return NULL;
16363 }
16364
16365
16366 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16367 PyObject *resultobj = 0;
16368 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16369 wxString *arg2 = (wxString *) 0 ;
16370 void *argp1 = 0 ;
16371 int res1 = 0 ;
16372 bool temp2 = false ;
16373 PyObject *swig_obj[2] ;
16374
16375 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16377 if (!SWIG_IsOK(res1)) {
16378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16379 }
16380 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16381 {
16382 arg2 = wxString_in_helper(swig_obj[1]);
16383 if (arg2 == NULL) SWIG_fail;
16384 temp2 = true;
16385 }
16386 if (arg1) (arg1)->CanonicalName = *arg2;
16387
16388 resultobj = SWIG_Py_Void();
16389 {
16390 if (temp2)
16391 delete arg2;
16392 }
16393 return resultobj;
16394 fail:
16395 {
16396 if (temp2)
16397 delete arg2;
16398 }
16399 return NULL;
16400 }
16401
16402
16403 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16404 PyObject *resultobj = 0;
16405 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16406 wxString *result = 0 ;
16407 void *argp1 = 0 ;
16408 int res1 = 0 ;
16409 PyObject *swig_obj[1] ;
16410
16411 if (!args) SWIG_fail;
16412 swig_obj[0] = args;
16413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16414 if (!SWIG_IsOK(res1)) {
16415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16416 }
16417 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16418 result = (wxString *)& ((arg1)->CanonicalName);
16419 {
16420 #if wxUSE_UNICODE
16421 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16422 #else
16423 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16424 #endif
16425 }
16426 return resultobj;
16427 fail:
16428 return NULL;
16429 }
16430
16431
16432 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16433 PyObject *resultobj = 0;
16434 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16435 wxString *arg2 = (wxString *) 0 ;
16436 void *argp1 = 0 ;
16437 int res1 = 0 ;
16438 bool temp2 = false ;
16439 PyObject *swig_obj[2] ;
16440
16441 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16443 if (!SWIG_IsOK(res1)) {
16444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16445 }
16446 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16447 {
16448 arg2 = wxString_in_helper(swig_obj[1]);
16449 if (arg2 == NULL) SWIG_fail;
16450 temp2 = true;
16451 }
16452 if (arg1) (arg1)->Description = *arg2;
16453
16454 resultobj = SWIG_Py_Void();
16455 {
16456 if (temp2)
16457 delete arg2;
16458 }
16459 return resultobj;
16460 fail:
16461 {
16462 if (temp2)
16463 delete arg2;
16464 }
16465 return NULL;
16466 }
16467
16468
16469 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16470 PyObject *resultobj = 0;
16471 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16472 wxString *result = 0 ;
16473 void *argp1 = 0 ;
16474 int res1 = 0 ;
16475 PyObject *swig_obj[1] ;
16476
16477 if (!args) SWIG_fail;
16478 swig_obj[0] = args;
16479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16480 if (!SWIG_IsOK(res1)) {
16481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16482 }
16483 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16484 result = (wxString *)& ((arg1)->Description);
16485 {
16486 #if wxUSE_UNICODE
16487 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16488 #else
16489 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16490 #endif
16491 }
16492 return resultobj;
16493 fail:
16494 return NULL;
16495 }
16496
16497
16498 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16499 PyObject *obj;
16500 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16501 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16502 return SWIG_Py_Void();
16503 }
16504
16505 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16506 PyObject *resultobj = 0;
16507 int arg1 = (int) -1 ;
16508 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16509 wxLocale *result = 0 ;
16510 int val1 ;
16511 int ecode1 = 0 ;
16512 int val2 ;
16513 int ecode2 = 0 ;
16514 PyObject * obj0 = 0 ;
16515 PyObject * obj1 = 0 ;
16516 char * kwnames[] = {
16517 (char *) "language",(char *) "flags", NULL
16518 };
16519
16520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16521 if (obj0) {
16522 ecode1 = SWIG_AsVal_int(obj0, &val1);
16523 if (!SWIG_IsOK(ecode1)) {
16524 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16525 }
16526 arg1 = static_cast< int >(val1);
16527 }
16528 if (obj1) {
16529 ecode2 = SWIG_AsVal_int(obj1, &val2);
16530 if (!SWIG_IsOK(ecode2)) {
16531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16532 }
16533 arg2 = static_cast< int >(val2);
16534 }
16535 {
16536 PyThreadState* __tstate = wxPyBeginAllowThreads();
16537 result = (wxLocale *)new_wxLocale(arg1,arg2);
16538 wxPyEndAllowThreads(__tstate);
16539 if (PyErr_Occurred()) SWIG_fail;
16540 }
16541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16542 return resultobj;
16543 fail:
16544 return NULL;
16545 }
16546
16547
16548 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16549 PyObject *resultobj = 0;
16550 wxLocale *arg1 = (wxLocale *) 0 ;
16551 void *argp1 = 0 ;
16552 int res1 = 0 ;
16553 PyObject *swig_obj[1] ;
16554
16555 if (!args) SWIG_fail;
16556 swig_obj[0] = args;
16557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16558 if (!SWIG_IsOK(res1)) {
16559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16560 }
16561 arg1 = reinterpret_cast< wxLocale * >(argp1);
16562 {
16563 PyThreadState* __tstate = wxPyBeginAllowThreads();
16564 delete arg1;
16565
16566 wxPyEndAllowThreads(__tstate);
16567 if (PyErr_Occurred()) SWIG_fail;
16568 }
16569 resultobj = SWIG_Py_Void();
16570 return resultobj;
16571 fail:
16572 return NULL;
16573 }
16574
16575
16576 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16577 PyObject *resultobj = 0;
16578 wxLocale *arg1 = (wxLocale *) 0 ;
16579 wxString *arg2 = 0 ;
16580 wxString const &arg3_defvalue = wxPyEmptyString ;
16581 wxString *arg3 = (wxString *) &arg3_defvalue ;
16582 wxString const &arg4_defvalue = wxPyEmptyString ;
16583 wxString *arg4 = (wxString *) &arg4_defvalue ;
16584 bool arg5 = (bool) true ;
16585 bool arg6 = (bool) false ;
16586 bool result;
16587 void *argp1 = 0 ;
16588 int res1 = 0 ;
16589 bool temp2 = false ;
16590 bool temp3 = false ;
16591 bool temp4 = false ;
16592 bool val5 ;
16593 int ecode5 = 0 ;
16594 bool val6 ;
16595 int ecode6 = 0 ;
16596 PyObject * obj0 = 0 ;
16597 PyObject * obj1 = 0 ;
16598 PyObject * obj2 = 0 ;
16599 PyObject * obj3 = 0 ;
16600 PyObject * obj4 = 0 ;
16601 PyObject * obj5 = 0 ;
16602 char * kwnames[] = {
16603 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16604 };
16605
16606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16608 if (!SWIG_IsOK(res1)) {
16609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16610 }
16611 arg1 = reinterpret_cast< wxLocale * >(argp1);
16612 {
16613 arg2 = wxString_in_helper(obj1);
16614 if (arg2 == NULL) SWIG_fail;
16615 temp2 = true;
16616 }
16617 if (obj2) {
16618 {
16619 arg3 = wxString_in_helper(obj2);
16620 if (arg3 == NULL) SWIG_fail;
16621 temp3 = true;
16622 }
16623 }
16624 if (obj3) {
16625 {
16626 arg4 = wxString_in_helper(obj3);
16627 if (arg4 == NULL) SWIG_fail;
16628 temp4 = true;
16629 }
16630 }
16631 if (obj4) {
16632 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16633 if (!SWIG_IsOK(ecode5)) {
16634 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16635 }
16636 arg5 = static_cast< bool >(val5);
16637 }
16638 if (obj5) {
16639 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16640 if (!SWIG_IsOK(ecode6)) {
16641 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16642 }
16643 arg6 = static_cast< bool >(val6);
16644 }
16645 {
16646 PyThreadState* __tstate = wxPyBeginAllowThreads();
16647 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16648 wxPyEndAllowThreads(__tstate);
16649 if (PyErr_Occurred()) SWIG_fail;
16650 }
16651 {
16652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16653 }
16654 {
16655 if (temp2)
16656 delete arg2;
16657 }
16658 {
16659 if (temp3)
16660 delete arg3;
16661 }
16662 {
16663 if (temp4)
16664 delete arg4;
16665 }
16666 return resultobj;
16667 fail:
16668 {
16669 if (temp2)
16670 delete arg2;
16671 }
16672 {
16673 if (temp3)
16674 delete arg3;
16675 }
16676 {
16677 if (temp4)
16678 delete arg4;
16679 }
16680 return NULL;
16681 }
16682
16683
16684 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16685 PyObject *resultobj = 0;
16686 wxLocale *arg1 = (wxLocale *) 0 ;
16687 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16688 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16689 bool result;
16690 void *argp1 = 0 ;
16691 int res1 = 0 ;
16692 int val2 ;
16693 int ecode2 = 0 ;
16694 int val3 ;
16695 int ecode3 = 0 ;
16696 PyObject * obj0 = 0 ;
16697 PyObject * obj1 = 0 ;
16698 PyObject * obj2 = 0 ;
16699 char * kwnames[] = {
16700 (char *) "self",(char *) "language",(char *) "flags", NULL
16701 };
16702
16703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16705 if (!SWIG_IsOK(res1)) {
16706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16707 }
16708 arg1 = reinterpret_cast< wxLocale * >(argp1);
16709 if (obj1) {
16710 ecode2 = SWIG_AsVal_int(obj1, &val2);
16711 if (!SWIG_IsOK(ecode2)) {
16712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16713 }
16714 arg2 = static_cast< int >(val2);
16715 }
16716 if (obj2) {
16717 ecode3 = SWIG_AsVal_int(obj2, &val3);
16718 if (!SWIG_IsOK(ecode3)) {
16719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16720 }
16721 arg3 = static_cast< int >(val3);
16722 }
16723 {
16724 PyThreadState* __tstate = wxPyBeginAllowThreads();
16725 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16726 wxPyEndAllowThreads(__tstate);
16727 if (PyErr_Occurred()) SWIG_fail;
16728 }
16729 {
16730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16731 }
16732 return resultobj;
16733 fail:
16734 return NULL;
16735 }
16736
16737
16738 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16739 PyObject *resultobj = 0;
16740 int result;
16741
16742 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16743 {
16744 PyThreadState* __tstate = wxPyBeginAllowThreads();
16745 result = (int)wxLocale::GetSystemLanguage();
16746 wxPyEndAllowThreads(__tstate);
16747 if (PyErr_Occurred()) SWIG_fail;
16748 }
16749 resultobj = SWIG_From_int(static_cast< int >(result));
16750 return resultobj;
16751 fail:
16752 return NULL;
16753 }
16754
16755
16756 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16757 PyObject *resultobj = 0;
16758 wxFontEncoding result;
16759
16760 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16761 {
16762 PyThreadState* __tstate = wxPyBeginAllowThreads();
16763 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16764 wxPyEndAllowThreads(__tstate);
16765 if (PyErr_Occurred()) SWIG_fail;
16766 }
16767 resultobj = SWIG_From_int(static_cast< int >(result));
16768 return resultobj;
16769 fail:
16770 return NULL;
16771 }
16772
16773
16774 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16775 PyObject *resultobj = 0;
16776 wxString result;
16777
16778 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16779 {
16780 PyThreadState* __tstate = wxPyBeginAllowThreads();
16781 result = wxLocale::GetSystemEncodingName();
16782 wxPyEndAllowThreads(__tstate);
16783 if (PyErr_Occurred()) SWIG_fail;
16784 }
16785 {
16786 #if wxUSE_UNICODE
16787 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16788 #else
16789 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16790 #endif
16791 }
16792 return resultobj;
16793 fail:
16794 return NULL;
16795 }
16796
16797
16798 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16799 PyObject *resultobj = 0;
16800 wxLocale *arg1 = (wxLocale *) 0 ;
16801 bool result;
16802 void *argp1 = 0 ;
16803 int res1 = 0 ;
16804 PyObject *swig_obj[1] ;
16805
16806 if (!args) SWIG_fail;
16807 swig_obj[0] = args;
16808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16809 if (!SWIG_IsOK(res1)) {
16810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16811 }
16812 arg1 = reinterpret_cast< wxLocale * >(argp1);
16813 {
16814 PyThreadState* __tstate = wxPyBeginAllowThreads();
16815 result = (bool)((wxLocale const *)arg1)->IsOk();
16816 wxPyEndAllowThreads(__tstate);
16817 if (PyErr_Occurred()) SWIG_fail;
16818 }
16819 {
16820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16821 }
16822 return resultobj;
16823 fail:
16824 return NULL;
16825 }
16826
16827
16828 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16829 PyObject *resultobj = 0;
16830 wxLocale *arg1 = (wxLocale *) 0 ;
16831 wxString result;
16832 void *argp1 = 0 ;
16833 int res1 = 0 ;
16834 PyObject *swig_obj[1] ;
16835
16836 if (!args) SWIG_fail;
16837 swig_obj[0] = args;
16838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16839 if (!SWIG_IsOK(res1)) {
16840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16841 }
16842 arg1 = reinterpret_cast< wxLocale * >(argp1);
16843 {
16844 PyThreadState* __tstate = wxPyBeginAllowThreads();
16845 result = ((wxLocale const *)arg1)->GetLocale();
16846 wxPyEndAllowThreads(__tstate);
16847 if (PyErr_Occurred()) SWIG_fail;
16848 }
16849 {
16850 #if wxUSE_UNICODE
16851 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16852 #else
16853 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16854 #endif
16855 }
16856 return resultobj;
16857 fail:
16858 return NULL;
16859 }
16860
16861
16862 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16863 PyObject *resultobj = 0;
16864 wxLocale *arg1 = (wxLocale *) 0 ;
16865 int result;
16866 void *argp1 = 0 ;
16867 int res1 = 0 ;
16868 PyObject *swig_obj[1] ;
16869
16870 if (!args) SWIG_fail;
16871 swig_obj[0] = args;
16872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16873 if (!SWIG_IsOK(res1)) {
16874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16875 }
16876 arg1 = reinterpret_cast< wxLocale * >(argp1);
16877 {
16878 PyThreadState* __tstate = wxPyBeginAllowThreads();
16879 result = (int)((wxLocale const *)arg1)->GetLanguage();
16880 wxPyEndAllowThreads(__tstate);
16881 if (PyErr_Occurred()) SWIG_fail;
16882 }
16883 resultobj = SWIG_From_int(static_cast< int >(result));
16884 return resultobj;
16885 fail:
16886 return NULL;
16887 }
16888
16889
16890 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16891 PyObject *resultobj = 0;
16892 wxLocale *arg1 = (wxLocale *) 0 ;
16893 wxString result;
16894 void *argp1 = 0 ;
16895 int res1 = 0 ;
16896 PyObject *swig_obj[1] ;
16897
16898 if (!args) SWIG_fail;
16899 swig_obj[0] = args;
16900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16901 if (!SWIG_IsOK(res1)) {
16902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16903 }
16904 arg1 = reinterpret_cast< wxLocale * >(argp1);
16905 {
16906 PyThreadState* __tstate = wxPyBeginAllowThreads();
16907 result = ((wxLocale const *)arg1)->GetSysName();
16908 wxPyEndAllowThreads(__tstate);
16909 if (PyErr_Occurred()) SWIG_fail;
16910 }
16911 {
16912 #if wxUSE_UNICODE
16913 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16914 #else
16915 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16916 #endif
16917 }
16918 return resultobj;
16919 fail:
16920 return NULL;
16921 }
16922
16923
16924 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16925 PyObject *resultobj = 0;
16926 wxLocale *arg1 = (wxLocale *) 0 ;
16927 wxString result;
16928 void *argp1 = 0 ;
16929 int res1 = 0 ;
16930 PyObject *swig_obj[1] ;
16931
16932 if (!args) SWIG_fail;
16933 swig_obj[0] = args;
16934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16935 if (!SWIG_IsOK(res1)) {
16936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16937 }
16938 arg1 = reinterpret_cast< wxLocale * >(argp1);
16939 {
16940 PyThreadState* __tstate = wxPyBeginAllowThreads();
16941 result = ((wxLocale const *)arg1)->GetCanonicalName();
16942 wxPyEndAllowThreads(__tstate);
16943 if (PyErr_Occurred()) SWIG_fail;
16944 }
16945 {
16946 #if wxUSE_UNICODE
16947 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16948 #else
16949 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16950 #endif
16951 }
16952 return resultobj;
16953 fail:
16954 return NULL;
16955 }
16956
16957
16958 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16959 PyObject *resultobj = 0;
16960 wxString *arg1 = 0 ;
16961 bool temp1 = false ;
16962 PyObject * obj0 = 0 ;
16963 char * kwnames[] = {
16964 (char *) "prefix", NULL
16965 };
16966
16967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16968 {
16969 arg1 = wxString_in_helper(obj0);
16970 if (arg1 == NULL) SWIG_fail;
16971 temp1 = true;
16972 }
16973 {
16974 PyThreadState* __tstate = wxPyBeginAllowThreads();
16975 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16976 wxPyEndAllowThreads(__tstate);
16977 if (PyErr_Occurred()) SWIG_fail;
16978 }
16979 resultobj = SWIG_Py_Void();
16980 {
16981 if (temp1)
16982 delete arg1;
16983 }
16984 return resultobj;
16985 fail:
16986 {
16987 if (temp1)
16988 delete arg1;
16989 }
16990 return NULL;
16991 }
16992
16993
16994 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16995 PyObject *resultobj = 0;
16996 wxLocale *arg1 = (wxLocale *) 0 ;
16997 wxString *arg2 = 0 ;
16998 bool result;
16999 void *argp1 = 0 ;
17000 int res1 = 0 ;
17001 bool temp2 = false ;
17002 PyObject * obj0 = 0 ;
17003 PyObject * obj1 = 0 ;
17004 char * kwnames[] = {
17005 (char *) "self",(char *) "szDomain", NULL
17006 };
17007
17008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
17009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17010 if (!SWIG_IsOK(res1)) {
17011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
17012 }
17013 arg1 = reinterpret_cast< wxLocale * >(argp1);
17014 {
17015 arg2 = wxString_in_helper(obj1);
17016 if (arg2 == NULL) SWIG_fail;
17017 temp2 = true;
17018 }
17019 {
17020 PyThreadState* __tstate = wxPyBeginAllowThreads();
17021 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
17022 wxPyEndAllowThreads(__tstate);
17023 if (PyErr_Occurred()) SWIG_fail;
17024 }
17025 {
17026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17027 }
17028 {
17029 if (temp2)
17030 delete arg2;
17031 }
17032 return resultobj;
17033 fail:
17034 {
17035 if (temp2)
17036 delete arg2;
17037 }
17038 return NULL;
17039 }
17040
17041
17042 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17043 PyObject *resultobj = 0;
17044 int arg1 ;
17045 bool result;
17046 int val1 ;
17047 int ecode1 = 0 ;
17048 PyObject * obj0 = 0 ;
17049 char * kwnames[] = {
17050 (char *) "lang", NULL
17051 };
17052
17053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
17054 ecode1 = SWIG_AsVal_int(obj0, &val1);
17055 if (!SWIG_IsOK(ecode1)) {
17056 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
17057 }
17058 arg1 = static_cast< int >(val1);
17059 {
17060 PyThreadState* __tstate = wxPyBeginAllowThreads();
17061 result = (bool)wxLocale::IsAvailable(arg1);
17062 wxPyEndAllowThreads(__tstate);
17063 if (PyErr_Occurred()) SWIG_fail;
17064 }
17065 {
17066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17067 }
17068 return resultobj;
17069 fail:
17070 return NULL;
17071 }
17072
17073
17074 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17075 PyObject *resultobj = 0;
17076 wxLocale *arg1 = (wxLocale *) 0 ;
17077 wxString *arg2 = 0 ;
17078 bool result;
17079 void *argp1 = 0 ;
17080 int res1 = 0 ;
17081 bool temp2 = false ;
17082 PyObject * obj0 = 0 ;
17083 PyObject * obj1 = 0 ;
17084 char * kwnames[] = {
17085 (char *) "self",(char *) "szDomain", NULL
17086 };
17087
17088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
17089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17090 if (!SWIG_IsOK(res1)) {
17091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
17092 }
17093 arg1 = reinterpret_cast< wxLocale * >(argp1);
17094 {
17095 arg2 = wxString_in_helper(obj1);
17096 if (arg2 == NULL) SWIG_fail;
17097 temp2 = true;
17098 }
17099 {
17100 PyThreadState* __tstate = wxPyBeginAllowThreads();
17101 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
17102 wxPyEndAllowThreads(__tstate);
17103 if (PyErr_Occurred()) SWIG_fail;
17104 }
17105 {
17106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17107 }
17108 {
17109 if (temp2)
17110 delete arg2;
17111 }
17112 return resultobj;
17113 fail:
17114 {
17115 if (temp2)
17116 delete arg2;
17117 }
17118 return NULL;
17119 }
17120
17121
17122 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17123 PyObject *resultobj = 0;
17124 int arg1 ;
17125 wxLanguageInfo *result = 0 ;
17126 int val1 ;
17127 int ecode1 = 0 ;
17128 PyObject * obj0 = 0 ;
17129 char * kwnames[] = {
17130 (char *) "lang", NULL
17131 };
17132
17133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
17134 ecode1 = SWIG_AsVal_int(obj0, &val1);
17135 if (!SWIG_IsOK(ecode1)) {
17136 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
17137 }
17138 arg1 = static_cast< int >(val1);
17139 {
17140 PyThreadState* __tstate = wxPyBeginAllowThreads();
17141 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
17142 wxPyEndAllowThreads(__tstate);
17143 if (PyErr_Occurred()) SWIG_fail;
17144 }
17145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17146 return resultobj;
17147 fail:
17148 return NULL;
17149 }
17150
17151
17152 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17153 PyObject *resultobj = 0;
17154 int arg1 ;
17155 wxString result;
17156 int val1 ;
17157 int ecode1 = 0 ;
17158 PyObject * obj0 = 0 ;
17159 char * kwnames[] = {
17160 (char *) "lang", NULL
17161 };
17162
17163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
17164 ecode1 = SWIG_AsVal_int(obj0, &val1);
17165 if (!SWIG_IsOK(ecode1)) {
17166 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
17167 }
17168 arg1 = static_cast< int >(val1);
17169 {
17170 PyThreadState* __tstate = wxPyBeginAllowThreads();
17171 result = wxLocale::GetLanguageName(arg1);
17172 wxPyEndAllowThreads(__tstate);
17173 if (PyErr_Occurred()) SWIG_fail;
17174 }
17175 {
17176 #if wxUSE_UNICODE
17177 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17178 #else
17179 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17180 #endif
17181 }
17182 return resultobj;
17183 fail:
17184 return NULL;
17185 }
17186
17187
17188 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17189 PyObject *resultobj = 0;
17190 wxString *arg1 = 0 ;
17191 wxLanguageInfo *result = 0 ;
17192 bool temp1 = false ;
17193 PyObject * obj0 = 0 ;
17194 char * kwnames[] = {
17195 (char *) "locale", NULL
17196 };
17197
17198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
17199 {
17200 arg1 = wxString_in_helper(obj0);
17201 if (arg1 == NULL) SWIG_fail;
17202 temp1 = true;
17203 }
17204 {
17205 PyThreadState* __tstate = wxPyBeginAllowThreads();
17206 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
17207 wxPyEndAllowThreads(__tstate);
17208 if (PyErr_Occurred()) SWIG_fail;
17209 }
17210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17211 {
17212 if (temp1)
17213 delete arg1;
17214 }
17215 return resultobj;
17216 fail:
17217 {
17218 if (temp1)
17219 delete arg1;
17220 }
17221 return NULL;
17222 }
17223
17224
17225 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17226 PyObject *resultobj = 0;
17227 wxLanguageInfo *arg1 = 0 ;
17228 void *argp1 = 0 ;
17229 int res1 = 0 ;
17230 PyObject * obj0 = 0 ;
17231 char * kwnames[] = {
17232 (char *) "info", NULL
17233 };
17234
17235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
17236 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
17237 if (!SWIG_IsOK(res1)) {
17238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17239 }
17240 if (!argp1) {
17241 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17242 }
17243 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
17244 {
17245 PyThreadState* __tstate = wxPyBeginAllowThreads();
17246 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
17247 wxPyEndAllowThreads(__tstate);
17248 if (PyErr_Occurred()) SWIG_fail;
17249 }
17250 resultobj = SWIG_Py_Void();
17251 return resultobj;
17252 fail:
17253 return NULL;
17254 }
17255
17256
17257 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17258 PyObject *resultobj = 0;
17259 wxLocale *arg1 = (wxLocale *) 0 ;
17260 wxString *arg2 = 0 ;
17261 wxString const &arg3_defvalue = wxPyEmptyString ;
17262 wxString *arg3 = (wxString *) &arg3_defvalue ;
17263 wxString result;
17264 void *argp1 = 0 ;
17265 int res1 = 0 ;
17266 bool temp2 = false ;
17267 bool temp3 = false ;
17268 PyObject * obj0 = 0 ;
17269 PyObject * obj1 = 0 ;
17270 PyObject * obj2 = 0 ;
17271 char * kwnames[] = {
17272 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17273 };
17274
17275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17277 if (!SWIG_IsOK(res1)) {
17278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
17279 }
17280 arg1 = reinterpret_cast< wxLocale * >(argp1);
17281 {
17282 arg2 = wxString_in_helper(obj1);
17283 if (arg2 == NULL) SWIG_fail;
17284 temp2 = true;
17285 }
17286 if (obj2) {
17287 {
17288 arg3 = wxString_in_helper(obj2);
17289 if (arg3 == NULL) SWIG_fail;
17290 temp3 = true;
17291 }
17292 }
17293 {
17294 PyThreadState* __tstate = wxPyBeginAllowThreads();
17295 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
17296 wxPyEndAllowThreads(__tstate);
17297 if (PyErr_Occurred()) SWIG_fail;
17298 }
17299 {
17300 #if wxUSE_UNICODE
17301 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17302 #else
17303 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17304 #endif
17305 }
17306 {
17307 if (temp2)
17308 delete arg2;
17309 }
17310 {
17311 if (temp3)
17312 delete arg3;
17313 }
17314 return resultobj;
17315 fail:
17316 {
17317 if (temp2)
17318 delete arg2;
17319 }
17320 {
17321 if (temp3)
17322 delete arg3;
17323 }
17324 return NULL;
17325 }
17326
17327
17328 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17329 PyObject *resultobj = 0;
17330 wxLocale *arg1 = (wxLocale *) 0 ;
17331 wxString *result = 0 ;
17332 void *argp1 = 0 ;
17333 int res1 = 0 ;
17334 PyObject *swig_obj[1] ;
17335
17336 if (!args) SWIG_fail;
17337 swig_obj[0] = args;
17338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17339 if (!SWIG_IsOK(res1)) {
17340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17341 }
17342 arg1 = reinterpret_cast< wxLocale * >(argp1);
17343 {
17344 PyThreadState* __tstate = wxPyBeginAllowThreads();
17345 {
17346 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17347 result = (wxString *) &_result_ref;
17348 }
17349 wxPyEndAllowThreads(__tstate);
17350 if (PyErr_Occurred()) SWIG_fail;
17351 }
17352 {
17353 #if wxUSE_UNICODE
17354 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17355 #else
17356 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17357 #endif
17358 }
17359 return resultobj;
17360 fail:
17361 return NULL;
17362 }
17363
17364
17365 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17366 PyObject *obj;
17367 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17368 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17369 return SWIG_Py_Void();
17370 }
17371
17372 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17373 return SWIG_Python_InitShadowInstance(args);
17374 }
17375
17376 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17377 PyObject *resultobj = 0;
17378 int arg1 = (int) -1 ;
17379 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17380 wxPyLocale *result = 0 ;
17381 int val1 ;
17382 int ecode1 = 0 ;
17383 int val2 ;
17384 int ecode2 = 0 ;
17385 PyObject * obj0 = 0 ;
17386 PyObject * obj1 = 0 ;
17387 char * kwnames[] = {
17388 (char *) "language",(char *) "flags", NULL
17389 };
17390
17391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17392 if (obj0) {
17393 ecode1 = SWIG_AsVal_int(obj0, &val1);
17394 if (!SWIG_IsOK(ecode1)) {
17395 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17396 }
17397 arg1 = static_cast< int >(val1);
17398 }
17399 if (obj1) {
17400 ecode2 = SWIG_AsVal_int(obj1, &val2);
17401 if (!SWIG_IsOK(ecode2)) {
17402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17403 }
17404 arg2 = static_cast< int >(val2);
17405 }
17406 {
17407 PyThreadState* __tstate = wxPyBeginAllowThreads();
17408 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17409 wxPyEndAllowThreads(__tstate);
17410 if (PyErr_Occurred()) SWIG_fail;
17411 }
17412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17413 return resultobj;
17414 fail:
17415 return NULL;
17416 }
17417
17418
17419 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17420 PyObject *resultobj = 0;
17421 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17422 void *argp1 = 0 ;
17423 int res1 = 0 ;
17424 PyObject *swig_obj[1] ;
17425
17426 if (!args) SWIG_fail;
17427 swig_obj[0] = args;
17428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17429 if (!SWIG_IsOK(res1)) {
17430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17431 }
17432 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17433 {
17434 PyThreadState* __tstate = wxPyBeginAllowThreads();
17435 delete arg1;
17436
17437 wxPyEndAllowThreads(__tstate);
17438 if (PyErr_Occurred()) SWIG_fail;
17439 }
17440 resultobj = SWIG_Py_Void();
17441 return resultobj;
17442 fail:
17443 return NULL;
17444 }
17445
17446
17447 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17448 PyObject *resultobj = 0;
17449 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17450 PyObject *arg2 = (PyObject *) 0 ;
17451 PyObject *arg3 = (PyObject *) 0 ;
17452 void *argp1 = 0 ;
17453 int res1 = 0 ;
17454 PyObject * obj0 = 0 ;
17455 PyObject * obj1 = 0 ;
17456 PyObject * obj2 = 0 ;
17457 char * kwnames[] = {
17458 (char *) "self",(char *) "self",(char *) "_class", NULL
17459 };
17460
17461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17463 if (!SWIG_IsOK(res1)) {
17464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17465 }
17466 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17467 arg2 = obj1;
17468 arg3 = obj2;
17469 {
17470 PyThreadState* __tstate = wxPyBeginAllowThreads();
17471 (arg1)->_setCallbackInfo(arg2,arg3);
17472 wxPyEndAllowThreads(__tstate);
17473 if (PyErr_Occurred()) SWIG_fail;
17474 }
17475 resultobj = SWIG_Py_Void();
17476 return resultobj;
17477 fail:
17478 return NULL;
17479 }
17480
17481
17482 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17483 PyObject *resultobj = 0;
17484 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17485 wxChar *arg2 = (wxChar *) 0 ;
17486 wxChar *arg3 = (wxChar *) NULL ;
17487 wxChar *result = 0 ;
17488 void *argp1 = 0 ;
17489 int res1 = 0 ;
17490 void *argp2 = 0 ;
17491 int res2 = 0 ;
17492 void *argp3 = 0 ;
17493 int res3 = 0 ;
17494 PyObject * obj0 = 0 ;
17495 PyObject * obj1 = 0 ;
17496 PyObject * obj2 = 0 ;
17497 char * kwnames[] = {
17498 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17499 };
17500
17501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17503 if (!SWIG_IsOK(res1)) {
17504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17505 }
17506 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17507 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17508 if (!SWIG_IsOK(res2)) {
17509 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
17510 }
17511 arg2 = reinterpret_cast< wxChar * >(argp2);
17512 if (obj2) {
17513 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17514 if (!SWIG_IsOK(res3)) {
17515 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
17516 }
17517 arg3 = reinterpret_cast< wxChar * >(argp3);
17518 }
17519 {
17520 PyThreadState* __tstate = wxPyBeginAllowThreads();
17521 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
17522 wxPyEndAllowThreads(__tstate);
17523 if (PyErr_Occurred()) SWIG_fail;
17524 }
17525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17526 return resultobj;
17527 fail:
17528 return NULL;
17529 }
17530
17531
17532 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17533 PyObject *resultobj = 0;
17534 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17535 wxChar *arg2 = (wxChar *) 0 ;
17536 wxChar *arg3 = (wxChar *) 0 ;
17537 size_t arg4 ;
17538 wxChar *arg5 = (wxChar *) NULL ;
17539 wxChar *result = 0 ;
17540 void *argp1 = 0 ;
17541 int res1 = 0 ;
17542 void *argp2 = 0 ;
17543 int res2 = 0 ;
17544 void *argp3 = 0 ;
17545 int res3 = 0 ;
17546 size_t val4 ;
17547 int ecode4 = 0 ;
17548 void *argp5 = 0 ;
17549 int res5 = 0 ;
17550 PyObject * obj0 = 0 ;
17551 PyObject * obj1 = 0 ;
17552 PyObject * obj2 = 0 ;
17553 PyObject * obj3 = 0 ;
17554 PyObject * obj4 = 0 ;
17555 char * kwnames[] = {
17556 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17557 };
17558
17559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17561 if (!SWIG_IsOK(res1)) {
17562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17563 }
17564 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17565 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17566 if (!SWIG_IsOK(res2)) {
17567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17568 }
17569 arg2 = reinterpret_cast< wxChar * >(argp2);
17570 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17571 if (!SWIG_IsOK(res3)) {
17572 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17573 }
17574 arg3 = reinterpret_cast< wxChar * >(argp3);
17575 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17576 if (!SWIG_IsOK(ecode4)) {
17577 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17578 }
17579 arg4 = static_cast< size_t >(val4);
17580 if (obj4) {
17581 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17582 if (!SWIG_IsOK(res5)) {
17583 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17584 }
17585 arg5 = reinterpret_cast< wxChar * >(argp5);
17586 }
17587 {
17588 PyThreadState* __tstate = wxPyBeginAllowThreads();
17589 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
17590 wxPyEndAllowThreads(__tstate);
17591 if (PyErr_Occurred()) SWIG_fail;
17592 }
17593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17594 return resultobj;
17595 fail:
17596 return NULL;
17597 }
17598
17599
17600 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17601 PyObject *obj;
17602 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17603 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17604 return SWIG_Py_Void();
17605 }
17606
17607 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17608 return SWIG_Python_InitShadowInstance(args);
17609 }
17610
17611 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17612 PyObject *resultobj = 0;
17613 wxLocale *result = 0 ;
17614
17615 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17616 {
17617 PyThreadState* __tstate = wxPyBeginAllowThreads();
17618 result = (wxLocale *)wxGetLocale();
17619 wxPyEndAllowThreads(__tstate);
17620 if (PyErr_Occurred()) SWIG_fail;
17621 }
17622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17623 return resultobj;
17624 fail:
17625 return NULL;
17626 }
17627
17628
17629 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17630 PyObject *resultobj = 0;
17631 wxString *arg1 = 0 ;
17632 wxString result;
17633 bool temp1 = false ;
17634
17635 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17636 {
17637 arg1 = wxString_in_helper(swig_obj[0]);
17638 if (arg1 == NULL) SWIG_fail;
17639 temp1 = true;
17640 }
17641 {
17642 PyThreadState* __tstate = wxPyBeginAllowThreads();
17643 result = wxGetTranslation((wxString const &)*arg1);
17644 wxPyEndAllowThreads(__tstate);
17645 if (PyErr_Occurred()) SWIG_fail;
17646 }
17647 {
17648 #if wxUSE_UNICODE
17649 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17650 #else
17651 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17652 #endif
17653 }
17654 {
17655 if (temp1)
17656 delete arg1;
17657 }
17658 return resultobj;
17659 fail:
17660 {
17661 if (temp1)
17662 delete arg1;
17663 }
17664 return NULL;
17665 }
17666
17667
17668 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17669 PyObject *resultobj = 0;
17670 wxString *arg1 = 0 ;
17671 wxString *arg2 = 0 ;
17672 wxString result;
17673 bool temp1 = false ;
17674 bool temp2 = false ;
17675
17676 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17677 {
17678 arg1 = wxString_in_helper(swig_obj[0]);
17679 if (arg1 == NULL) SWIG_fail;
17680 temp1 = true;
17681 }
17682 {
17683 arg2 = wxString_in_helper(swig_obj[1]);
17684 if (arg2 == NULL) SWIG_fail;
17685 temp2 = true;
17686 }
17687 {
17688 PyThreadState* __tstate = wxPyBeginAllowThreads();
17689 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17690 wxPyEndAllowThreads(__tstate);
17691 if (PyErr_Occurred()) SWIG_fail;
17692 }
17693 {
17694 #if wxUSE_UNICODE
17695 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17696 #else
17697 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17698 #endif
17699 }
17700 {
17701 if (temp1)
17702 delete arg1;
17703 }
17704 {
17705 if (temp2)
17706 delete arg2;
17707 }
17708 return resultobj;
17709 fail:
17710 {
17711 if (temp1)
17712 delete arg1;
17713 }
17714 {
17715 if (temp2)
17716 delete arg2;
17717 }
17718 return NULL;
17719 }
17720
17721
17722 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17723 PyObject *resultobj = 0;
17724 wxString *arg1 = 0 ;
17725 wxString *arg2 = 0 ;
17726 size_t arg3 ;
17727 wxString result;
17728 bool temp1 = false ;
17729 bool temp2 = false ;
17730 size_t val3 ;
17731 int ecode3 = 0 ;
17732
17733 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17734 {
17735 arg1 = wxString_in_helper(swig_obj[0]);
17736 if (arg1 == NULL) SWIG_fail;
17737 temp1 = true;
17738 }
17739 {
17740 arg2 = wxString_in_helper(swig_obj[1]);
17741 if (arg2 == NULL) SWIG_fail;
17742 temp2 = true;
17743 }
17744 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17745 if (!SWIG_IsOK(ecode3)) {
17746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17747 }
17748 arg3 = static_cast< size_t >(val3);
17749 {
17750 PyThreadState* __tstate = wxPyBeginAllowThreads();
17751 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17752 wxPyEndAllowThreads(__tstate);
17753 if (PyErr_Occurred()) SWIG_fail;
17754 }
17755 {
17756 #if wxUSE_UNICODE
17757 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17758 #else
17759 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17760 #endif
17761 }
17762 {
17763 if (temp1)
17764 delete arg1;
17765 }
17766 {
17767 if (temp2)
17768 delete arg2;
17769 }
17770 return resultobj;
17771 fail:
17772 {
17773 if (temp1)
17774 delete arg1;
17775 }
17776 {
17777 if (temp2)
17778 delete arg2;
17779 }
17780 return NULL;
17781 }
17782
17783
17784 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17785 PyObject *resultobj = 0;
17786 wxString *arg1 = 0 ;
17787 wxString *arg2 = 0 ;
17788 size_t arg3 ;
17789 wxString *arg4 = 0 ;
17790 wxString result;
17791 bool temp1 = false ;
17792 bool temp2 = false ;
17793 size_t val3 ;
17794 int ecode3 = 0 ;
17795 bool temp4 = false ;
17796
17797 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17798 {
17799 arg1 = wxString_in_helper(swig_obj[0]);
17800 if (arg1 == NULL) SWIG_fail;
17801 temp1 = true;
17802 }
17803 {
17804 arg2 = wxString_in_helper(swig_obj[1]);
17805 if (arg2 == NULL) SWIG_fail;
17806 temp2 = true;
17807 }
17808 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17809 if (!SWIG_IsOK(ecode3)) {
17810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17811 }
17812 arg3 = static_cast< size_t >(val3);
17813 {
17814 arg4 = wxString_in_helper(swig_obj[3]);
17815 if (arg4 == NULL) SWIG_fail;
17816 temp4 = true;
17817 }
17818 {
17819 PyThreadState* __tstate = wxPyBeginAllowThreads();
17820 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17821 wxPyEndAllowThreads(__tstate);
17822 if (PyErr_Occurred()) SWIG_fail;
17823 }
17824 {
17825 #if wxUSE_UNICODE
17826 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17827 #else
17828 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17829 #endif
17830 }
17831 {
17832 if (temp1)
17833 delete arg1;
17834 }
17835 {
17836 if (temp2)
17837 delete arg2;
17838 }
17839 {
17840 if (temp4)
17841 delete arg4;
17842 }
17843 return resultobj;
17844 fail:
17845 {
17846 if (temp1)
17847 delete arg1;
17848 }
17849 {
17850 if (temp2)
17851 delete arg2;
17852 }
17853 {
17854 if (temp4)
17855 delete arg4;
17856 }
17857 return NULL;
17858 }
17859
17860
17861 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17862 int argc;
17863 PyObject *argv[5];
17864
17865 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17866 --argc;
17867 if (argc == 1) {
17868 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17869 }
17870 if (argc == 2) {
17871 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17872 }
17873 if (argc == 3) {
17874 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17875 }
17876 if (argc == 4) {
17877 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17878 }
17879
17880 fail:
17881 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17882 return NULL;
17883 }
17884
17885
17886 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17887 PyObject *resultobj = 0;
17888 wxEncodingConverter *result = 0 ;
17889
17890 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17891 {
17892 PyThreadState* __tstate = wxPyBeginAllowThreads();
17893 result = (wxEncodingConverter *)new wxEncodingConverter();
17894 wxPyEndAllowThreads(__tstate);
17895 if (PyErr_Occurred()) SWIG_fail;
17896 }
17897 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17898 return resultobj;
17899 fail:
17900 return NULL;
17901 }
17902
17903
17904 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17905 PyObject *resultobj = 0;
17906 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17907 void *argp1 = 0 ;
17908 int res1 = 0 ;
17909 PyObject *swig_obj[1] ;
17910
17911 if (!args) SWIG_fail;
17912 swig_obj[0] = args;
17913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17914 if (!SWIG_IsOK(res1)) {
17915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17916 }
17917 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17918 {
17919 PyThreadState* __tstate = wxPyBeginAllowThreads();
17920 delete arg1;
17921
17922 wxPyEndAllowThreads(__tstate);
17923 if (PyErr_Occurred()) SWIG_fail;
17924 }
17925 resultobj = SWIG_Py_Void();
17926 return resultobj;
17927 fail:
17928 return NULL;
17929 }
17930
17931
17932 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17933 PyObject *resultobj = 0;
17934 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17935 wxFontEncoding arg2 ;
17936 wxFontEncoding arg3 ;
17937 int arg4 = (int) wxCONVERT_STRICT ;
17938 bool result;
17939 void *argp1 = 0 ;
17940 int res1 = 0 ;
17941 int val2 ;
17942 int ecode2 = 0 ;
17943 int val3 ;
17944 int ecode3 = 0 ;
17945 int val4 ;
17946 int ecode4 = 0 ;
17947 PyObject * obj0 = 0 ;
17948 PyObject * obj1 = 0 ;
17949 PyObject * obj2 = 0 ;
17950 PyObject * obj3 = 0 ;
17951 char * kwnames[] = {
17952 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17953 };
17954
17955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17957 if (!SWIG_IsOK(res1)) {
17958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17959 }
17960 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17961 ecode2 = SWIG_AsVal_int(obj1, &val2);
17962 if (!SWIG_IsOK(ecode2)) {
17963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17964 }
17965 arg2 = static_cast< wxFontEncoding >(val2);
17966 ecode3 = SWIG_AsVal_int(obj2, &val3);
17967 if (!SWIG_IsOK(ecode3)) {
17968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17969 }
17970 arg3 = static_cast< wxFontEncoding >(val3);
17971 if (obj3) {
17972 ecode4 = SWIG_AsVal_int(obj3, &val4);
17973 if (!SWIG_IsOK(ecode4)) {
17974 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17975 }
17976 arg4 = static_cast< int >(val4);
17977 }
17978 {
17979 PyThreadState* __tstate = wxPyBeginAllowThreads();
17980 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17981 wxPyEndAllowThreads(__tstate);
17982 if (PyErr_Occurred()) SWIG_fail;
17983 }
17984 {
17985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17986 }
17987 return resultobj;
17988 fail:
17989 return NULL;
17990 }
17991
17992
17993 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17994 PyObject *resultobj = 0;
17995 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17996 wxString *arg2 = 0 ;
17997 wxString result;
17998 void *argp1 = 0 ;
17999 int res1 = 0 ;
18000 bool temp2 = false ;
18001 PyObject * obj0 = 0 ;
18002 PyObject * obj1 = 0 ;
18003 char * kwnames[] = {
18004 (char *) "self",(char *) "input", NULL
18005 };
18006
18007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
18008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18009 if (!SWIG_IsOK(res1)) {
18010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18011 }
18012 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18013 {
18014 arg2 = wxString_in_helper(obj1);
18015 if (arg2 == NULL) SWIG_fail;
18016 temp2 = true;
18017 }
18018 {
18019 PyThreadState* __tstate = wxPyBeginAllowThreads();
18020 result = (arg1)->Convert((wxString const &)*arg2);
18021 wxPyEndAllowThreads(__tstate);
18022 if (PyErr_Occurred()) SWIG_fail;
18023 }
18024 {
18025 #if wxUSE_UNICODE
18026 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18027 #else
18028 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18029 #endif
18030 }
18031 {
18032 if (temp2)
18033 delete arg2;
18034 }
18035 return resultobj;
18036 fail:
18037 {
18038 if (temp2)
18039 delete arg2;
18040 }
18041 return NULL;
18042 }
18043
18044
18045 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18046 PyObject *resultobj = 0;
18047 wxFontEncoding arg1 ;
18048 int arg2 = (int) wxPLATFORM_CURRENT ;
18049 wxFontEncodingArray result;
18050 int val1 ;
18051 int ecode1 = 0 ;
18052 int val2 ;
18053 int ecode2 = 0 ;
18054 PyObject * obj0 = 0 ;
18055 PyObject * obj1 = 0 ;
18056 char * kwnames[] = {
18057 (char *) "enc",(char *) "platform", NULL
18058 };
18059
18060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
18061 ecode1 = SWIG_AsVal_int(obj0, &val1);
18062 if (!SWIG_IsOK(ecode1)) {
18063 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18064 }
18065 arg1 = static_cast< wxFontEncoding >(val1);
18066 if (obj1) {
18067 ecode2 = SWIG_AsVal_int(obj1, &val2);
18068 if (!SWIG_IsOK(ecode2)) {
18069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
18070 }
18071 arg2 = static_cast< int >(val2);
18072 }
18073 {
18074 PyThreadState* __tstate = wxPyBeginAllowThreads();
18075 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
18076 wxPyEndAllowThreads(__tstate);
18077 if (PyErr_Occurred()) SWIG_fail;
18078 }
18079 {
18080 resultobj = PyList_New(0);
18081 for (size_t i=0; i < (&result)->GetCount(); i++) {
18082 PyObject* number = PyInt_FromLong((&result)->Item(i));
18083 PyList_Append(resultobj, number);
18084 Py_DECREF(number);
18085 }
18086 }
18087 return resultobj;
18088 fail:
18089 return NULL;
18090 }
18091
18092
18093 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18094 PyObject *resultobj = 0;
18095 wxFontEncoding arg1 ;
18096 wxFontEncodingArray result;
18097 int val1 ;
18098 int ecode1 = 0 ;
18099 PyObject * obj0 = 0 ;
18100 char * kwnames[] = {
18101 (char *) "enc", NULL
18102 };
18103
18104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
18105 ecode1 = SWIG_AsVal_int(obj0, &val1);
18106 if (!SWIG_IsOK(ecode1)) {
18107 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18108 }
18109 arg1 = static_cast< wxFontEncoding >(val1);
18110 {
18111 PyThreadState* __tstate = wxPyBeginAllowThreads();
18112 result = wxEncodingConverter::GetAllEquivalents(arg1);
18113 wxPyEndAllowThreads(__tstate);
18114 if (PyErr_Occurred()) SWIG_fail;
18115 }
18116 {
18117 resultobj = PyList_New(0);
18118 for (size_t i=0; i < (&result)->GetCount(); i++) {
18119 PyObject* number = PyInt_FromLong((&result)->Item(i));
18120 PyList_Append(resultobj, number);
18121 Py_DECREF(number);
18122 }
18123 }
18124 return resultobj;
18125 fail:
18126 return NULL;
18127 }
18128
18129
18130 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18131 PyObject *resultobj = 0;
18132 wxFontEncoding arg1 ;
18133 wxFontEncoding arg2 ;
18134 bool result;
18135 int val1 ;
18136 int ecode1 = 0 ;
18137 int val2 ;
18138 int ecode2 = 0 ;
18139 PyObject * obj0 = 0 ;
18140 PyObject * obj1 = 0 ;
18141 char * kwnames[] = {
18142 (char *) "encIn",(char *) "encOut", NULL
18143 };
18144
18145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
18146 ecode1 = SWIG_AsVal_int(obj0, &val1);
18147 if (!SWIG_IsOK(ecode1)) {
18148 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18149 }
18150 arg1 = static_cast< wxFontEncoding >(val1);
18151 ecode2 = SWIG_AsVal_int(obj1, &val2);
18152 if (!SWIG_IsOK(ecode2)) {
18153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18154 }
18155 arg2 = static_cast< wxFontEncoding >(val2);
18156 {
18157 PyThreadState* __tstate = wxPyBeginAllowThreads();
18158 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
18159 wxPyEndAllowThreads(__tstate);
18160 if (PyErr_Occurred()) SWIG_fail;
18161 }
18162 {
18163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18164 }
18165 return resultobj;
18166 fail:
18167 return NULL;
18168 }
18169
18170
18171 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18172 PyObject *obj;
18173 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18174 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
18175 return SWIG_Py_Void();
18176 }
18177
18178 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18179 return SWIG_Python_InitShadowInstance(args);
18180 }
18181
18182 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18183 PyObject *resultobj = 0;
18184 wxDC *arg1 = (wxDC *) 0 ;
18185 void *argp1 = 0 ;
18186 int res1 = 0 ;
18187 PyObject *swig_obj[1] ;
18188
18189 if (!args) SWIG_fail;
18190 swig_obj[0] = args;
18191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
18192 if (!SWIG_IsOK(res1)) {
18193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
18194 }
18195 arg1 = reinterpret_cast< wxDC * >(argp1);
18196 {
18197 PyThreadState* __tstate = wxPyBeginAllowThreads();
18198 delete arg1;
18199
18200 wxPyEndAllowThreads(__tstate);
18201 if (PyErr_Occurred()) SWIG_fail;
18202 }
18203 resultobj = SWIG_Py_Void();
18204 return resultobj;
18205 fail:
18206 return NULL;
18207 }
18208
18209
18210 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18211 PyObject *resultobj = 0;
18212 wxDC *arg1 = (wxDC *) 0 ;
18213 int arg2 ;
18214 int arg3 ;
18215 wxColour *arg4 = 0 ;
18216 int arg5 = (int) wxFLOOD_SURFACE ;
18217 bool result;
18218 void *argp1 = 0 ;
18219 int res1 = 0 ;
18220 int val2 ;
18221 int ecode2 = 0 ;
18222 int val3 ;
18223 int ecode3 = 0 ;
18224 wxColour temp4 ;
18225 int val5 ;
18226 int ecode5 = 0 ;
18227 PyObject * obj0 = 0 ;
18228 PyObject * obj1 = 0 ;
18229 PyObject * obj2 = 0 ;
18230 PyObject * obj3 = 0 ;
18231 PyObject * obj4 = 0 ;
18232 char * kwnames[] = {
18233 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
18234 };
18235
18236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18238 if (!SWIG_IsOK(res1)) {
18239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
18240 }
18241 arg1 = reinterpret_cast< wxDC * >(argp1);
18242 ecode2 = SWIG_AsVal_int(obj1, &val2);
18243 if (!SWIG_IsOK(ecode2)) {
18244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
18245 }
18246 arg2 = static_cast< int >(val2);
18247 ecode3 = SWIG_AsVal_int(obj2, &val3);
18248 if (!SWIG_IsOK(ecode3)) {
18249 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
18250 }
18251 arg3 = static_cast< int >(val3);
18252 {
18253 arg4 = &temp4;
18254 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18255 }
18256 if (obj4) {
18257 ecode5 = SWIG_AsVal_int(obj4, &val5);
18258 if (!SWIG_IsOK(ecode5)) {
18259 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
18260 }
18261 arg5 = static_cast< int >(val5);
18262 }
18263 {
18264 PyThreadState* __tstate = wxPyBeginAllowThreads();
18265 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
18266 wxPyEndAllowThreads(__tstate);
18267 if (PyErr_Occurred()) SWIG_fail;
18268 }
18269 {
18270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18271 }
18272 return resultobj;
18273 fail:
18274 return NULL;
18275 }
18276
18277
18278 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18279 PyObject *resultobj = 0;
18280 wxDC *arg1 = (wxDC *) 0 ;
18281 wxPoint *arg2 = 0 ;
18282 wxColour *arg3 = 0 ;
18283 int arg4 = (int) wxFLOOD_SURFACE ;
18284 bool result;
18285 void *argp1 = 0 ;
18286 int res1 = 0 ;
18287 wxPoint temp2 ;
18288 wxColour temp3 ;
18289 int val4 ;
18290 int ecode4 = 0 ;
18291 PyObject * obj0 = 0 ;
18292 PyObject * obj1 = 0 ;
18293 PyObject * obj2 = 0 ;
18294 PyObject * obj3 = 0 ;
18295 char * kwnames[] = {
18296 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
18297 };
18298
18299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18301 if (!SWIG_IsOK(res1)) {
18302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18303 }
18304 arg1 = reinterpret_cast< wxDC * >(argp1);
18305 {
18306 arg2 = &temp2;
18307 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18308 }
18309 {
18310 arg3 = &temp3;
18311 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18312 }
18313 if (obj3) {
18314 ecode4 = SWIG_AsVal_int(obj3, &val4);
18315 if (!SWIG_IsOK(ecode4)) {
18316 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18317 }
18318 arg4 = static_cast< int >(val4);
18319 }
18320 {
18321 PyThreadState* __tstate = wxPyBeginAllowThreads();
18322 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18323 wxPyEndAllowThreads(__tstate);
18324 if (PyErr_Occurred()) SWIG_fail;
18325 }
18326 {
18327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18328 }
18329 return resultobj;
18330 fail:
18331 return NULL;
18332 }
18333
18334
18335 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18336 PyObject *resultobj = 0;
18337 wxDC *arg1 = (wxDC *) 0 ;
18338 wxRect *arg2 = 0 ;
18339 wxColour *arg3 = 0 ;
18340 wxColour *arg4 = 0 ;
18341 wxPoint *arg5 = 0 ;
18342 void *argp1 = 0 ;
18343 int res1 = 0 ;
18344 wxRect temp2 ;
18345 wxColour temp3 ;
18346 wxColour temp4 ;
18347 wxPoint temp5 ;
18348 PyObject * obj0 = 0 ;
18349 PyObject * obj1 = 0 ;
18350 PyObject * obj2 = 0 ;
18351 PyObject * obj3 = 0 ;
18352 PyObject * obj4 = 0 ;
18353 char * kwnames[] = {
18354 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18355 };
18356
18357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18359 if (!SWIG_IsOK(res1)) {
18360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18361 }
18362 arg1 = reinterpret_cast< wxDC * >(argp1);
18363 {
18364 arg2 = &temp2;
18365 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18366 }
18367 {
18368 arg3 = &temp3;
18369 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18370 }
18371 {
18372 arg4 = &temp4;
18373 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18374 }
18375 {
18376 arg5 = &temp5;
18377 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18378 }
18379 {
18380 PyThreadState* __tstate = wxPyBeginAllowThreads();
18381 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18382 wxPyEndAllowThreads(__tstate);
18383 if (PyErr_Occurred()) SWIG_fail;
18384 }
18385 resultobj = SWIG_Py_Void();
18386 return resultobj;
18387 fail:
18388 return NULL;
18389 }
18390
18391
18392 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18393 PyObject *resultobj = 0;
18394 wxDC *arg1 = (wxDC *) 0 ;
18395 wxRect *arg2 = 0 ;
18396 wxColour *arg3 = 0 ;
18397 wxColour *arg4 = 0 ;
18398 wxDirection arg5 = (wxDirection) wxEAST ;
18399 void *argp1 = 0 ;
18400 int res1 = 0 ;
18401 wxRect temp2 ;
18402 wxColour temp3 ;
18403 wxColour temp4 ;
18404 int val5 ;
18405 int ecode5 = 0 ;
18406 PyObject * obj0 = 0 ;
18407 PyObject * obj1 = 0 ;
18408 PyObject * obj2 = 0 ;
18409 PyObject * obj3 = 0 ;
18410 PyObject * obj4 = 0 ;
18411 char * kwnames[] = {
18412 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18413 };
18414
18415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18417 if (!SWIG_IsOK(res1)) {
18418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18419 }
18420 arg1 = reinterpret_cast< wxDC * >(argp1);
18421 {
18422 arg2 = &temp2;
18423 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18424 }
18425 {
18426 arg3 = &temp3;
18427 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18428 }
18429 {
18430 arg4 = &temp4;
18431 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18432 }
18433 if (obj4) {
18434 ecode5 = SWIG_AsVal_int(obj4, &val5);
18435 if (!SWIG_IsOK(ecode5)) {
18436 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18437 }
18438 arg5 = static_cast< wxDirection >(val5);
18439 }
18440 {
18441 PyThreadState* __tstate = wxPyBeginAllowThreads();
18442 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18443 wxPyEndAllowThreads(__tstate);
18444 if (PyErr_Occurred()) SWIG_fail;
18445 }
18446 resultobj = SWIG_Py_Void();
18447 return resultobj;
18448 fail:
18449 return NULL;
18450 }
18451
18452
18453 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18454 PyObject *resultobj = 0;
18455 wxDC *arg1 = (wxDC *) 0 ;
18456 int arg2 ;
18457 int arg3 ;
18458 wxColour result;
18459 void *argp1 = 0 ;
18460 int res1 = 0 ;
18461 int val2 ;
18462 int ecode2 = 0 ;
18463 int val3 ;
18464 int ecode3 = 0 ;
18465 PyObject * obj0 = 0 ;
18466 PyObject * obj1 = 0 ;
18467 PyObject * obj2 = 0 ;
18468 char * kwnames[] = {
18469 (char *) "self",(char *) "x",(char *) "y", NULL
18470 };
18471
18472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18474 if (!SWIG_IsOK(res1)) {
18475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18476 }
18477 arg1 = reinterpret_cast< wxDC * >(argp1);
18478 ecode2 = SWIG_AsVal_int(obj1, &val2);
18479 if (!SWIG_IsOK(ecode2)) {
18480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18481 }
18482 arg2 = static_cast< int >(val2);
18483 ecode3 = SWIG_AsVal_int(obj2, &val3);
18484 if (!SWIG_IsOK(ecode3)) {
18485 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18486 }
18487 arg3 = static_cast< int >(val3);
18488 {
18489 PyThreadState* __tstate = wxPyBeginAllowThreads();
18490 result = wxDC_GetPixel(arg1,arg2,arg3);
18491 wxPyEndAllowThreads(__tstate);
18492 if (PyErr_Occurred()) SWIG_fail;
18493 }
18494 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18495 return resultobj;
18496 fail:
18497 return NULL;
18498 }
18499
18500
18501 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18502 PyObject *resultobj = 0;
18503 wxDC *arg1 = (wxDC *) 0 ;
18504 wxPoint *arg2 = 0 ;
18505 wxColour result;
18506 void *argp1 = 0 ;
18507 int res1 = 0 ;
18508 wxPoint temp2 ;
18509 PyObject * obj0 = 0 ;
18510 PyObject * obj1 = 0 ;
18511 char * kwnames[] = {
18512 (char *) "self",(char *) "pt", NULL
18513 };
18514
18515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18517 if (!SWIG_IsOK(res1)) {
18518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18519 }
18520 arg1 = reinterpret_cast< wxDC * >(argp1);
18521 {
18522 arg2 = &temp2;
18523 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18524 }
18525 {
18526 PyThreadState* __tstate = wxPyBeginAllowThreads();
18527 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18528 wxPyEndAllowThreads(__tstate);
18529 if (PyErr_Occurred()) SWIG_fail;
18530 }
18531 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18532 return resultobj;
18533 fail:
18534 return NULL;
18535 }
18536
18537
18538 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18539 PyObject *resultobj = 0;
18540 wxDC *arg1 = (wxDC *) 0 ;
18541 int arg2 ;
18542 int arg3 ;
18543 int arg4 ;
18544 int arg5 ;
18545 void *argp1 = 0 ;
18546 int res1 = 0 ;
18547 int val2 ;
18548 int ecode2 = 0 ;
18549 int val3 ;
18550 int ecode3 = 0 ;
18551 int val4 ;
18552 int ecode4 = 0 ;
18553 int val5 ;
18554 int ecode5 = 0 ;
18555 PyObject * obj0 = 0 ;
18556 PyObject * obj1 = 0 ;
18557 PyObject * obj2 = 0 ;
18558 PyObject * obj3 = 0 ;
18559 PyObject * obj4 = 0 ;
18560 char * kwnames[] = {
18561 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18562 };
18563
18564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18566 if (!SWIG_IsOK(res1)) {
18567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18568 }
18569 arg1 = reinterpret_cast< wxDC * >(argp1);
18570 ecode2 = SWIG_AsVal_int(obj1, &val2);
18571 if (!SWIG_IsOK(ecode2)) {
18572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18573 }
18574 arg2 = static_cast< int >(val2);
18575 ecode3 = SWIG_AsVal_int(obj2, &val3);
18576 if (!SWIG_IsOK(ecode3)) {
18577 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18578 }
18579 arg3 = static_cast< int >(val3);
18580 ecode4 = SWIG_AsVal_int(obj3, &val4);
18581 if (!SWIG_IsOK(ecode4)) {
18582 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18583 }
18584 arg4 = static_cast< int >(val4);
18585 ecode5 = SWIG_AsVal_int(obj4, &val5);
18586 if (!SWIG_IsOK(ecode5)) {
18587 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18588 }
18589 arg5 = static_cast< int >(val5);
18590 {
18591 PyThreadState* __tstate = wxPyBeginAllowThreads();
18592 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18593 wxPyEndAllowThreads(__tstate);
18594 if (PyErr_Occurred()) SWIG_fail;
18595 }
18596 resultobj = SWIG_Py_Void();
18597 return resultobj;
18598 fail:
18599 return NULL;
18600 }
18601
18602
18603 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18604 PyObject *resultobj = 0;
18605 wxDC *arg1 = (wxDC *) 0 ;
18606 wxPoint *arg2 = 0 ;
18607 wxPoint *arg3 = 0 ;
18608 void *argp1 = 0 ;
18609 int res1 = 0 ;
18610 wxPoint temp2 ;
18611 wxPoint temp3 ;
18612 PyObject * obj0 = 0 ;
18613 PyObject * obj1 = 0 ;
18614 PyObject * obj2 = 0 ;
18615 char * kwnames[] = {
18616 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18617 };
18618
18619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18621 if (!SWIG_IsOK(res1)) {
18622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18623 }
18624 arg1 = reinterpret_cast< wxDC * >(argp1);
18625 {
18626 arg2 = &temp2;
18627 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18628 }
18629 {
18630 arg3 = &temp3;
18631 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18632 }
18633 {
18634 PyThreadState* __tstate = wxPyBeginAllowThreads();
18635 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18636 wxPyEndAllowThreads(__tstate);
18637 if (PyErr_Occurred()) SWIG_fail;
18638 }
18639 resultobj = SWIG_Py_Void();
18640 return resultobj;
18641 fail:
18642 return NULL;
18643 }
18644
18645
18646 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18647 PyObject *resultobj = 0;
18648 wxDC *arg1 = (wxDC *) 0 ;
18649 int arg2 ;
18650 int arg3 ;
18651 void *argp1 = 0 ;
18652 int res1 = 0 ;
18653 int val2 ;
18654 int ecode2 = 0 ;
18655 int val3 ;
18656 int ecode3 = 0 ;
18657 PyObject * obj0 = 0 ;
18658 PyObject * obj1 = 0 ;
18659 PyObject * obj2 = 0 ;
18660 char * kwnames[] = {
18661 (char *) "self",(char *) "x",(char *) "y", NULL
18662 };
18663
18664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18666 if (!SWIG_IsOK(res1)) {
18667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18668 }
18669 arg1 = reinterpret_cast< wxDC * >(argp1);
18670 ecode2 = SWIG_AsVal_int(obj1, &val2);
18671 if (!SWIG_IsOK(ecode2)) {
18672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18673 }
18674 arg2 = static_cast< int >(val2);
18675 ecode3 = SWIG_AsVal_int(obj2, &val3);
18676 if (!SWIG_IsOK(ecode3)) {
18677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18678 }
18679 arg3 = static_cast< int >(val3);
18680 {
18681 PyThreadState* __tstate = wxPyBeginAllowThreads();
18682 (arg1)->CrossHair(arg2,arg3);
18683 wxPyEndAllowThreads(__tstate);
18684 if (PyErr_Occurred()) SWIG_fail;
18685 }
18686 resultobj = SWIG_Py_Void();
18687 return resultobj;
18688 fail:
18689 return NULL;
18690 }
18691
18692
18693 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18694 PyObject *resultobj = 0;
18695 wxDC *arg1 = (wxDC *) 0 ;
18696 wxPoint *arg2 = 0 ;
18697 void *argp1 = 0 ;
18698 int res1 = 0 ;
18699 wxPoint temp2 ;
18700 PyObject * obj0 = 0 ;
18701 PyObject * obj1 = 0 ;
18702 char * kwnames[] = {
18703 (char *) "self",(char *) "pt", NULL
18704 };
18705
18706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18708 if (!SWIG_IsOK(res1)) {
18709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18710 }
18711 arg1 = reinterpret_cast< wxDC * >(argp1);
18712 {
18713 arg2 = &temp2;
18714 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18715 }
18716 {
18717 PyThreadState* __tstate = wxPyBeginAllowThreads();
18718 (arg1)->CrossHair((wxPoint const &)*arg2);
18719 wxPyEndAllowThreads(__tstate);
18720 if (PyErr_Occurred()) SWIG_fail;
18721 }
18722 resultobj = SWIG_Py_Void();
18723 return resultobj;
18724 fail:
18725 return NULL;
18726 }
18727
18728
18729 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18730 PyObject *resultobj = 0;
18731 wxDC *arg1 = (wxDC *) 0 ;
18732 int arg2 ;
18733 int arg3 ;
18734 int arg4 ;
18735 int arg5 ;
18736 int arg6 ;
18737 int arg7 ;
18738 void *argp1 = 0 ;
18739 int res1 = 0 ;
18740 int val2 ;
18741 int ecode2 = 0 ;
18742 int val3 ;
18743 int ecode3 = 0 ;
18744 int val4 ;
18745 int ecode4 = 0 ;
18746 int val5 ;
18747 int ecode5 = 0 ;
18748 int val6 ;
18749 int ecode6 = 0 ;
18750 int val7 ;
18751 int ecode7 = 0 ;
18752 PyObject * obj0 = 0 ;
18753 PyObject * obj1 = 0 ;
18754 PyObject * obj2 = 0 ;
18755 PyObject * obj3 = 0 ;
18756 PyObject * obj4 = 0 ;
18757 PyObject * obj5 = 0 ;
18758 PyObject * obj6 = 0 ;
18759 char * kwnames[] = {
18760 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18761 };
18762
18763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18765 if (!SWIG_IsOK(res1)) {
18766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18767 }
18768 arg1 = reinterpret_cast< wxDC * >(argp1);
18769 ecode2 = SWIG_AsVal_int(obj1, &val2);
18770 if (!SWIG_IsOK(ecode2)) {
18771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18772 }
18773 arg2 = static_cast< int >(val2);
18774 ecode3 = SWIG_AsVal_int(obj2, &val3);
18775 if (!SWIG_IsOK(ecode3)) {
18776 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18777 }
18778 arg3 = static_cast< int >(val3);
18779 ecode4 = SWIG_AsVal_int(obj3, &val4);
18780 if (!SWIG_IsOK(ecode4)) {
18781 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18782 }
18783 arg4 = static_cast< int >(val4);
18784 ecode5 = SWIG_AsVal_int(obj4, &val5);
18785 if (!SWIG_IsOK(ecode5)) {
18786 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18787 }
18788 arg5 = static_cast< int >(val5);
18789 ecode6 = SWIG_AsVal_int(obj5, &val6);
18790 if (!SWIG_IsOK(ecode6)) {
18791 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18792 }
18793 arg6 = static_cast< int >(val6);
18794 ecode7 = SWIG_AsVal_int(obj6, &val7);
18795 if (!SWIG_IsOK(ecode7)) {
18796 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18797 }
18798 arg7 = static_cast< int >(val7);
18799 {
18800 PyThreadState* __tstate = wxPyBeginAllowThreads();
18801 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18802 wxPyEndAllowThreads(__tstate);
18803 if (PyErr_Occurred()) SWIG_fail;
18804 }
18805 resultobj = SWIG_Py_Void();
18806 return resultobj;
18807 fail:
18808 return NULL;
18809 }
18810
18811
18812 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18813 PyObject *resultobj = 0;
18814 wxDC *arg1 = (wxDC *) 0 ;
18815 wxPoint *arg2 = 0 ;
18816 wxPoint *arg3 = 0 ;
18817 wxPoint *arg4 = 0 ;
18818 void *argp1 = 0 ;
18819 int res1 = 0 ;
18820 wxPoint temp2 ;
18821 wxPoint temp3 ;
18822 wxPoint temp4 ;
18823 PyObject * obj0 = 0 ;
18824 PyObject * obj1 = 0 ;
18825 PyObject * obj2 = 0 ;
18826 PyObject * obj3 = 0 ;
18827 char * kwnames[] = {
18828 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18829 };
18830
18831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18833 if (!SWIG_IsOK(res1)) {
18834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18835 }
18836 arg1 = reinterpret_cast< wxDC * >(argp1);
18837 {
18838 arg2 = &temp2;
18839 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18840 }
18841 {
18842 arg3 = &temp3;
18843 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18844 }
18845 {
18846 arg4 = &temp4;
18847 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18848 }
18849 {
18850 PyThreadState* __tstate = wxPyBeginAllowThreads();
18851 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18852 wxPyEndAllowThreads(__tstate);
18853 if (PyErr_Occurred()) SWIG_fail;
18854 }
18855 resultobj = SWIG_Py_Void();
18856 return resultobj;
18857 fail:
18858 return NULL;
18859 }
18860
18861
18862 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18863 PyObject *resultobj = 0;
18864 wxDC *arg1 = (wxDC *) 0 ;
18865 int arg2 ;
18866 int arg3 ;
18867 int arg4 ;
18868 int arg5 ;
18869 void *argp1 = 0 ;
18870 int res1 = 0 ;
18871 int val2 ;
18872 int ecode2 = 0 ;
18873 int val3 ;
18874 int ecode3 = 0 ;
18875 int val4 ;
18876 int ecode4 = 0 ;
18877 int val5 ;
18878 int ecode5 = 0 ;
18879 PyObject * obj0 = 0 ;
18880 PyObject * obj1 = 0 ;
18881 PyObject * obj2 = 0 ;
18882 PyObject * obj3 = 0 ;
18883 PyObject * obj4 = 0 ;
18884 char * kwnames[] = {
18885 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18886 };
18887
18888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18890 if (!SWIG_IsOK(res1)) {
18891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18892 }
18893 arg1 = reinterpret_cast< wxDC * >(argp1);
18894 ecode2 = SWIG_AsVal_int(obj1, &val2);
18895 if (!SWIG_IsOK(ecode2)) {
18896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18897 }
18898 arg2 = static_cast< int >(val2);
18899 ecode3 = SWIG_AsVal_int(obj2, &val3);
18900 if (!SWIG_IsOK(ecode3)) {
18901 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18902 }
18903 arg3 = static_cast< int >(val3);
18904 ecode4 = SWIG_AsVal_int(obj3, &val4);
18905 if (!SWIG_IsOK(ecode4)) {
18906 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18907 }
18908 arg4 = static_cast< int >(val4);
18909 ecode5 = SWIG_AsVal_int(obj4, &val5);
18910 if (!SWIG_IsOK(ecode5)) {
18911 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18912 }
18913 arg5 = static_cast< int >(val5);
18914 {
18915 PyThreadState* __tstate = wxPyBeginAllowThreads();
18916 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18917 wxPyEndAllowThreads(__tstate);
18918 if (PyErr_Occurred()) SWIG_fail;
18919 }
18920 resultobj = SWIG_Py_Void();
18921 return resultobj;
18922 fail:
18923 return NULL;
18924 }
18925
18926
18927 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18928 PyObject *resultobj = 0;
18929 wxDC *arg1 = (wxDC *) 0 ;
18930 wxRect *arg2 = 0 ;
18931 void *argp1 = 0 ;
18932 int res1 = 0 ;
18933 wxRect temp2 ;
18934 PyObject * obj0 = 0 ;
18935 PyObject * obj1 = 0 ;
18936 char * kwnames[] = {
18937 (char *) "self",(char *) "rect", NULL
18938 };
18939
18940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18942 if (!SWIG_IsOK(res1)) {
18943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18944 }
18945 arg1 = reinterpret_cast< wxDC * >(argp1);
18946 {
18947 arg2 = &temp2;
18948 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18949 }
18950 {
18951 PyThreadState* __tstate = wxPyBeginAllowThreads();
18952 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18953 wxPyEndAllowThreads(__tstate);
18954 if (PyErr_Occurred()) SWIG_fail;
18955 }
18956 resultobj = SWIG_Py_Void();
18957 return resultobj;
18958 fail:
18959 return NULL;
18960 }
18961
18962
18963 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18964 PyObject *resultobj = 0;
18965 wxDC *arg1 = (wxDC *) 0 ;
18966 int arg2 ;
18967 int arg3 ;
18968 int arg4 ;
18969 int arg5 ;
18970 double arg6 ;
18971 double arg7 ;
18972 void *argp1 = 0 ;
18973 int res1 = 0 ;
18974 int val2 ;
18975 int ecode2 = 0 ;
18976 int val3 ;
18977 int ecode3 = 0 ;
18978 int val4 ;
18979 int ecode4 = 0 ;
18980 int val5 ;
18981 int ecode5 = 0 ;
18982 double val6 ;
18983 int ecode6 = 0 ;
18984 double val7 ;
18985 int ecode7 = 0 ;
18986 PyObject * obj0 = 0 ;
18987 PyObject * obj1 = 0 ;
18988 PyObject * obj2 = 0 ;
18989 PyObject * obj3 = 0 ;
18990 PyObject * obj4 = 0 ;
18991 PyObject * obj5 = 0 ;
18992 PyObject * obj6 = 0 ;
18993 char * kwnames[] = {
18994 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18995 };
18996
18997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18999 if (!SWIG_IsOK(res1)) {
19000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
19001 }
19002 arg1 = reinterpret_cast< wxDC * >(argp1);
19003 ecode2 = SWIG_AsVal_int(obj1, &val2);
19004 if (!SWIG_IsOK(ecode2)) {
19005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
19006 }
19007 arg2 = static_cast< int >(val2);
19008 ecode3 = SWIG_AsVal_int(obj2, &val3);
19009 if (!SWIG_IsOK(ecode3)) {
19010 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
19011 }
19012 arg3 = static_cast< int >(val3);
19013 ecode4 = SWIG_AsVal_int(obj3, &val4);
19014 if (!SWIG_IsOK(ecode4)) {
19015 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
19016 }
19017 arg4 = static_cast< int >(val4);
19018 ecode5 = SWIG_AsVal_int(obj4, &val5);
19019 if (!SWIG_IsOK(ecode5)) {
19020 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
19021 }
19022 arg5 = static_cast< int >(val5);
19023 ecode6 = SWIG_AsVal_double(obj5, &val6);
19024 if (!SWIG_IsOK(ecode6)) {
19025 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
19026 }
19027 arg6 = static_cast< double >(val6);
19028 ecode7 = SWIG_AsVal_double(obj6, &val7);
19029 if (!SWIG_IsOK(ecode7)) {
19030 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
19031 }
19032 arg7 = static_cast< double >(val7);
19033 {
19034 PyThreadState* __tstate = wxPyBeginAllowThreads();
19035 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
19036 wxPyEndAllowThreads(__tstate);
19037 if (PyErr_Occurred()) SWIG_fail;
19038 }
19039 resultobj = SWIG_Py_Void();
19040 return resultobj;
19041 fail:
19042 return NULL;
19043 }
19044
19045
19046 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19047 PyObject *resultobj = 0;
19048 wxDC *arg1 = (wxDC *) 0 ;
19049 wxPoint *arg2 = 0 ;
19050 wxSize *arg3 = 0 ;
19051 double arg4 ;
19052 double arg5 ;
19053 void *argp1 = 0 ;
19054 int res1 = 0 ;
19055 wxPoint temp2 ;
19056 wxSize temp3 ;
19057 double val4 ;
19058 int ecode4 = 0 ;
19059 double val5 ;
19060 int ecode5 = 0 ;
19061 PyObject * obj0 = 0 ;
19062 PyObject * obj1 = 0 ;
19063 PyObject * obj2 = 0 ;
19064 PyObject * obj3 = 0 ;
19065 PyObject * obj4 = 0 ;
19066 char * kwnames[] = {
19067 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
19068 };
19069
19070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19072 if (!SWIG_IsOK(res1)) {
19073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19074 }
19075 arg1 = reinterpret_cast< wxDC * >(argp1);
19076 {
19077 arg2 = &temp2;
19078 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19079 }
19080 {
19081 arg3 = &temp3;
19082 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19083 }
19084 ecode4 = SWIG_AsVal_double(obj3, &val4);
19085 if (!SWIG_IsOK(ecode4)) {
19086 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
19087 }
19088 arg4 = static_cast< double >(val4);
19089 ecode5 = SWIG_AsVal_double(obj4, &val5);
19090 if (!SWIG_IsOK(ecode5)) {
19091 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
19092 }
19093 arg5 = static_cast< double >(val5);
19094 {
19095 PyThreadState* __tstate = wxPyBeginAllowThreads();
19096 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
19097 wxPyEndAllowThreads(__tstate);
19098 if (PyErr_Occurred()) SWIG_fail;
19099 }
19100 resultobj = SWIG_Py_Void();
19101 return resultobj;
19102 fail:
19103 return NULL;
19104 }
19105
19106
19107 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19108 PyObject *resultobj = 0;
19109 wxDC *arg1 = (wxDC *) 0 ;
19110 int arg2 ;
19111 int arg3 ;
19112 void *argp1 = 0 ;
19113 int res1 = 0 ;
19114 int val2 ;
19115 int ecode2 = 0 ;
19116 int val3 ;
19117 int ecode3 = 0 ;
19118 PyObject * obj0 = 0 ;
19119 PyObject * obj1 = 0 ;
19120 PyObject * obj2 = 0 ;
19121 char * kwnames[] = {
19122 (char *) "self",(char *) "x",(char *) "y", NULL
19123 };
19124
19125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19127 if (!SWIG_IsOK(res1)) {
19128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19129 }
19130 arg1 = reinterpret_cast< wxDC * >(argp1);
19131 ecode2 = SWIG_AsVal_int(obj1, &val2);
19132 if (!SWIG_IsOK(ecode2)) {
19133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
19134 }
19135 arg2 = static_cast< int >(val2);
19136 ecode3 = SWIG_AsVal_int(obj2, &val3);
19137 if (!SWIG_IsOK(ecode3)) {
19138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
19139 }
19140 arg3 = static_cast< int >(val3);
19141 {
19142 PyThreadState* __tstate = wxPyBeginAllowThreads();
19143 (arg1)->DrawPoint(arg2,arg3);
19144 wxPyEndAllowThreads(__tstate);
19145 if (PyErr_Occurred()) SWIG_fail;
19146 }
19147 resultobj = SWIG_Py_Void();
19148 return resultobj;
19149 fail:
19150 return NULL;
19151 }
19152
19153
19154 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19155 PyObject *resultobj = 0;
19156 wxDC *arg1 = (wxDC *) 0 ;
19157 wxPoint *arg2 = 0 ;
19158 void *argp1 = 0 ;
19159 int res1 = 0 ;
19160 wxPoint temp2 ;
19161 PyObject * obj0 = 0 ;
19162 PyObject * obj1 = 0 ;
19163 char * kwnames[] = {
19164 (char *) "self",(char *) "pt", NULL
19165 };
19166
19167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19169 if (!SWIG_IsOK(res1)) {
19170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19171 }
19172 arg1 = reinterpret_cast< wxDC * >(argp1);
19173 {
19174 arg2 = &temp2;
19175 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19176 }
19177 {
19178 PyThreadState* __tstate = wxPyBeginAllowThreads();
19179 (arg1)->DrawPoint((wxPoint const &)*arg2);
19180 wxPyEndAllowThreads(__tstate);
19181 if (PyErr_Occurred()) SWIG_fail;
19182 }
19183 resultobj = SWIG_Py_Void();
19184 return resultobj;
19185 fail:
19186 return NULL;
19187 }
19188
19189
19190 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19191 PyObject *resultobj = 0;
19192 wxDC *arg1 = (wxDC *) 0 ;
19193 int arg2 ;
19194 int arg3 ;
19195 int arg4 ;
19196 int arg5 ;
19197 void *argp1 = 0 ;
19198 int res1 = 0 ;
19199 int val2 ;
19200 int ecode2 = 0 ;
19201 int val3 ;
19202 int ecode3 = 0 ;
19203 int val4 ;
19204 int ecode4 = 0 ;
19205 int val5 ;
19206 int ecode5 = 0 ;
19207 PyObject * obj0 = 0 ;
19208 PyObject * obj1 = 0 ;
19209 PyObject * obj2 = 0 ;
19210 PyObject * obj3 = 0 ;
19211 PyObject * obj4 = 0 ;
19212 char * kwnames[] = {
19213 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19214 };
19215
19216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19218 if (!SWIG_IsOK(res1)) {
19219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19220 }
19221 arg1 = reinterpret_cast< wxDC * >(argp1);
19222 ecode2 = SWIG_AsVal_int(obj1, &val2);
19223 if (!SWIG_IsOK(ecode2)) {
19224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
19225 }
19226 arg2 = static_cast< int >(val2);
19227 ecode3 = SWIG_AsVal_int(obj2, &val3);
19228 if (!SWIG_IsOK(ecode3)) {
19229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
19230 }
19231 arg3 = static_cast< int >(val3);
19232 ecode4 = SWIG_AsVal_int(obj3, &val4);
19233 if (!SWIG_IsOK(ecode4)) {
19234 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
19235 }
19236 arg4 = static_cast< int >(val4);
19237 ecode5 = SWIG_AsVal_int(obj4, &val5);
19238 if (!SWIG_IsOK(ecode5)) {
19239 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
19240 }
19241 arg5 = static_cast< int >(val5);
19242 {
19243 PyThreadState* __tstate = wxPyBeginAllowThreads();
19244 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
19245 wxPyEndAllowThreads(__tstate);
19246 if (PyErr_Occurred()) SWIG_fail;
19247 }
19248 resultobj = SWIG_Py_Void();
19249 return resultobj;
19250 fail:
19251 return NULL;
19252 }
19253
19254
19255 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19256 PyObject *resultobj = 0;
19257 wxDC *arg1 = (wxDC *) 0 ;
19258 wxRect *arg2 = 0 ;
19259 void *argp1 = 0 ;
19260 int res1 = 0 ;
19261 wxRect temp2 ;
19262 PyObject * obj0 = 0 ;
19263 PyObject * obj1 = 0 ;
19264 char * kwnames[] = {
19265 (char *) "self",(char *) "rect", NULL
19266 };
19267
19268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
19269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19270 if (!SWIG_IsOK(res1)) {
19271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19272 }
19273 arg1 = reinterpret_cast< wxDC * >(argp1);
19274 {
19275 arg2 = &temp2;
19276 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19277 }
19278 {
19279 PyThreadState* __tstate = wxPyBeginAllowThreads();
19280 (arg1)->DrawRectangle((wxRect const &)*arg2);
19281 wxPyEndAllowThreads(__tstate);
19282 if (PyErr_Occurred()) SWIG_fail;
19283 }
19284 resultobj = SWIG_Py_Void();
19285 return resultobj;
19286 fail:
19287 return NULL;
19288 }
19289
19290
19291 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19292 PyObject *resultobj = 0;
19293 wxDC *arg1 = (wxDC *) 0 ;
19294 wxPoint *arg2 = 0 ;
19295 wxSize *arg3 = 0 ;
19296 void *argp1 = 0 ;
19297 int res1 = 0 ;
19298 wxPoint temp2 ;
19299 wxSize temp3 ;
19300 PyObject * obj0 = 0 ;
19301 PyObject * obj1 = 0 ;
19302 PyObject * obj2 = 0 ;
19303 char * kwnames[] = {
19304 (char *) "self",(char *) "pt",(char *) "sz", NULL
19305 };
19306
19307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19309 if (!SWIG_IsOK(res1)) {
19310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19311 }
19312 arg1 = reinterpret_cast< wxDC * >(argp1);
19313 {
19314 arg2 = &temp2;
19315 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19316 }
19317 {
19318 arg3 = &temp3;
19319 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19320 }
19321 {
19322 PyThreadState* __tstate = wxPyBeginAllowThreads();
19323 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19324 wxPyEndAllowThreads(__tstate);
19325 if (PyErr_Occurred()) SWIG_fail;
19326 }
19327 resultobj = SWIG_Py_Void();
19328 return resultobj;
19329 fail:
19330 return NULL;
19331 }
19332
19333
19334 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19335 PyObject *resultobj = 0;
19336 wxDC *arg1 = (wxDC *) 0 ;
19337 int arg2 ;
19338 int arg3 ;
19339 int arg4 ;
19340 int arg5 ;
19341 double arg6 ;
19342 void *argp1 = 0 ;
19343 int res1 = 0 ;
19344 int val2 ;
19345 int ecode2 = 0 ;
19346 int val3 ;
19347 int ecode3 = 0 ;
19348 int val4 ;
19349 int ecode4 = 0 ;
19350 int val5 ;
19351 int ecode5 = 0 ;
19352 double val6 ;
19353 int ecode6 = 0 ;
19354 PyObject * obj0 = 0 ;
19355 PyObject * obj1 = 0 ;
19356 PyObject * obj2 = 0 ;
19357 PyObject * obj3 = 0 ;
19358 PyObject * obj4 = 0 ;
19359 PyObject * obj5 = 0 ;
19360 char * kwnames[] = {
19361 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19362 };
19363
19364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19366 if (!SWIG_IsOK(res1)) {
19367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19368 }
19369 arg1 = reinterpret_cast< wxDC * >(argp1);
19370 ecode2 = SWIG_AsVal_int(obj1, &val2);
19371 if (!SWIG_IsOK(ecode2)) {
19372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19373 }
19374 arg2 = static_cast< int >(val2);
19375 ecode3 = SWIG_AsVal_int(obj2, &val3);
19376 if (!SWIG_IsOK(ecode3)) {
19377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19378 }
19379 arg3 = static_cast< int >(val3);
19380 ecode4 = SWIG_AsVal_int(obj3, &val4);
19381 if (!SWIG_IsOK(ecode4)) {
19382 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19383 }
19384 arg4 = static_cast< int >(val4);
19385 ecode5 = SWIG_AsVal_int(obj4, &val5);
19386 if (!SWIG_IsOK(ecode5)) {
19387 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19388 }
19389 arg5 = static_cast< int >(val5);
19390 ecode6 = SWIG_AsVal_double(obj5, &val6);
19391 if (!SWIG_IsOK(ecode6)) {
19392 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19393 }
19394 arg6 = static_cast< double >(val6);
19395 {
19396 PyThreadState* __tstate = wxPyBeginAllowThreads();
19397 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19398 wxPyEndAllowThreads(__tstate);
19399 if (PyErr_Occurred()) SWIG_fail;
19400 }
19401 resultobj = SWIG_Py_Void();
19402 return resultobj;
19403 fail:
19404 return NULL;
19405 }
19406
19407
19408 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19409 PyObject *resultobj = 0;
19410 wxDC *arg1 = (wxDC *) 0 ;
19411 wxRect *arg2 = 0 ;
19412 double arg3 ;
19413 void *argp1 = 0 ;
19414 int res1 = 0 ;
19415 wxRect temp2 ;
19416 double val3 ;
19417 int ecode3 = 0 ;
19418 PyObject * obj0 = 0 ;
19419 PyObject * obj1 = 0 ;
19420 PyObject * obj2 = 0 ;
19421 char * kwnames[] = {
19422 (char *) "self",(char *) "r",(char *) "radius", NULL
19423 };
19424
19425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19427 if (!SWIG_IsOK(res1)) {
19428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19429 }
19430 arg1 = reinterpret_cast< wxDC * >(argp1);
19431 {
19432 arg2 = &temp2;
19433 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19434 }
19435 ecode3 = SWIG_AsVal_double(obj2, &val3);
19436 if (!SWIG_IsOK(ecode3)) {
19437 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19438 }
19439 arg3 = static_cast< double >(val3);
19440 {
19441 PyThreadState* __tstate = wxPyBeginAllowThreads();
19442 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19443 wxPyEndAllowThreads(__tstate);
19444 if (PyErr_Occurred()) SWIG_fail;
19445 }
19446 resultobj = SWIG_Py_Void();
19447 return resultobj;
19448 fail:
19449 return NULL;
19450 }
19451
19452
19453 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19454 PyObject *resultobj = 0;
19455 wxDC *arg1 = (wxDC *) 0 ;
19456 wxPoint *arg2 = 0 ;
19457 wxSize *arg3 = 0 ;
19458 double arg4 ;
19459 void *argp1 = 0 ;
19460 int res1 = 0 ;
19461 wxPoint temp2 ;
19462 wxSize temp3 ;
19463 double val4 ;
19464 int ecode4 = 0 ;
19465 PyObject * obj0 = 0 ;
19466 PyObject * obj1 = 0 ;
19467 PyObject * obj2 = 0 ;
19468 PyObject * obj3 = 0 ;
19469 char * kwnames[] = {
19470 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19471 };
19472
19473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19475 if (!SWIG_IsOK(res1)) {
19476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19477 }
19478 arg1 = reinterpret_cast< wxDC * >(argp1);
19479 {
19480 arg2 = &temp2;
19481 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19482 }
19483 {
19484 arg3 = &temp3;
19485 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19486 }
19487 ecode4 = SWIG_AsVal_double(obj3, &val4);
19488 if (!SWIG_IsOK(ecode4)) {
19489 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19490 }
19491 arg4 = static_cast< double >(val4);
19492 {
19493 PyThreadState* __tstate = wxPyBeginAllowThreads();
19494 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19495 wxPyEndAllowThreads(__tstate);
19496 if (PyErr_Occurred()) SWIG_fail;
19497 }
19498 resultobj = SWIG_Py_Void();
19499 return resultobj;
19500 fail:
19501 return NULL;
19502 }
19503
19504
19505 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19506 PyObject *resultobj = 0;
19507 wxDC *arg1 = (wxDC *) 0 ;
19508 int arg2 ;
19509 int arg3 ;
19510 int arg4 ;
19511 void *argp1 = 0 ;
19512 int res1 = 0 ;
19513 int val2 ;
19514 int ecode2 = 0 ;
19515 int val3 ;
19516 int ecode3 = 0 ;
19517 int val4 ;
19518 int ecode4 = 0 ;
19519 PyObject * obj0 = 0 ;
19520 PyObject * obj1 = 0 ;
19521 PyObject * obj2 = 0 ;
19522 PyObject * obj3 = 0 ;
19523 char * kwnames[] = {
19524 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19525 };
19526
19527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19529 if (!SWIG_IsOK(res1)) {
19530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19531 }
19532 arg1 = reinterpret_cast< wxDC * >(argp1);
19533 ecode2 = SWIG_AsVal_int(obj1, &val2);
19534 if (!SWIG_IsOK(ecode2)) {
19535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19536 }
19537 arg2 = static_cast< int >(val2);
19538 ecode3 = SWIG_AsVal_int(obj2, &val3);
19539 if (!SWIG_IsOK(ecode3)) {
19540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19541 }
19542 arg3 = static_cast< int >(val3);
19543 ecode4 = SWIG_AsVal_int(obj3, &val4);
19544 if (!SWIG_IsOK(ecode4)) {
19545 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19546 }
19547 arg4 = static_cast< int >(val4);
19548 {
19549 PyThreadState* __tstate = wxPyBeginAllowThreads();
19550 (arg1)->DrawCircle(arg2,arg3,arg4);
19551 wxPyEndAllowThreads(__tstate);
19552 if (PyErr_Occurred()) SWIG_fail;
19553 }
19554 resultobj = SWIG_Py_Void();
19555 return resultobj;
19556 fail:
19557 return NULL;
19558 }
19559
19560
19561 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19562 PyObject *resultobj = 0;
19563 wxDC *arg1 = (wxDC *) 0 ;
19564 wxPoint *arg2 = 0 ;
19565 int arg3 ;
19566 void *argp1 = 0 ;
19567 int res1 = 0 ;
19568 wxPoint temp2 ;
19569 int val3 ;
19570 int ecode3 = 0 ;
19571 PyObject * obj0 = 0 ;
19572 PyObject * obj1 = 0 ;
19573 PyObject * obj2 = 0 ;
19574 char * kwnames[] = {
19575 (char *) "self",(char *) "pt",(char *) "radius", NULL
19576 };
19577
19578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19580 if (!SWIG_IsOK(res1)) {
19581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19582 }
19583 arg1 = reinterpret_cast< wxDC * >(argp1);
19584 {
19585 arg2 = &temp2;
19586 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19587 }
19588 ecode3 = SWIG_AsVal_int(obj2, &val3);
19589 if (!SWIG_IsOK(ecode3)) {
19590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19591 }
19592 arg3 = static_cast< int >(val3);
19593 {
19594 PyThreadState* __tstate = wxPyBeginAllowThreads();
19595 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19596 wxPyEndAllowThreads(__tstate);
19597 if (PyErr_Occurred()) SWIG_fail;
19598 }
19599 resultobj = SWIG_Py_Void();
19600 return resultobj;
19601 fail:
19602 return NULL;
19603 }
19604
19605
19606 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19607 PyObject *resultobj = 0;
19608 wxDC *arg1 = (wxDC *) 0 ;
19609 int arg2 ;
19610 int arg3 ;
19611 int arg4 ;
19612 int arg5 ;
19613 void *argp1 = 0 ;
19614 int res1 = 0 ;
19615 int val2 ;
19616 int ecode2 = 0 ;
19617 int val3 ;
19618 int ecode3 = 0 ;
19619 int val4 ;
19620 int ecode4 = 0 ;
19621 int val5 ;
19622 int ecode5 = 0 ;
19623 PyObject * obj0 = 0 ;
19624 PyObject * obj1 = 0 ;
19625 PyObject * obj2 = 0 ;
19626 PyObject * obj3 = 0 ;
19627 PyObject * obj4 = 0 ;
19628 char * kwnames[] = {
19629 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19630 };
19631
19632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19634 if (!SWIG_IsOK(res1)) {
19635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19636 }
19637 arg1 = reinterpret_cast< wxDC * >(argp1);
19638 ecode2 = SWIG_AsVal_int(obj1, &val2);
19639 if (!SWIG_IsOK(ecode2)) {
19640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19641 }
19642 arg2 = static_cast< int >(val2);
19643 ecode3 = SWIG_AsVal_int(obj2, &val3);
19644 if (!SWIG_IsOK(ecode3)) {
19645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19646 }
19647 arg3 = static_cast< int >(val3);
19648 ecode4 = SWIG_AsVal_int(obj3, &val4);
19649 if (!SWIG_IsOK(ecode4)) {
19650 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19651 }
19652 arg4 = static_cast< int >(val4);
19653 ecode5 = SWIG_AsVal_int(obj4, &val5);
19654 if (!SWIG_IsOK(ecode5)) {
19655 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19656 }
19657 arg5 = static_cast< int >(val5);
19658 {
19659 PyThreadState* __tstate = wxPyBeginAllowThreads();
19660 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19661 wxPyEndAllowThreads(__tstate);
19662 if (PyErr_Occurred()) SWIG_fail;
19663 }
19664 resultobj = SWIG_Py_Void();
19665 return resultobj;
19666 fail:
19667 return NULL;
19668 }
19669
19670
19671 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19672 PyObject *resultobj = 0;
19673 wxDC *arg1 = (wxDC *) 0 ;
19674 wxRect *arg2 = 0 ;
19675 void *argp1 = 0 ;
19676 int res1 = 0 ;
19677 wxRect temp2 ;
19678 PyObject * obj0 = 0 ;
19679 PyObject * obj1 = 0 ;
19680 char * kwnames[] = {
19681 (char *) "self",(char *) "rect", NULL
19682 };
19683
19684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19686 if (!SWIG_IsOK(res1)) {
19687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19688 }
19689 arg1 = reinterpret_cast< wxDC * >(argp1);
19690 {
19691 arg2 = &temp2;
19692 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19693 }
19694 {
19695 PyThreadState* __tstate = wxPyBeginAllowThreads();
19696 (arg1)->DrawEllipse((wxRect const &)*arg2);
19697 wxPyEndAllowThreads(__tstate);
19698 if (PyErr_Occurred()) SWIG_fail;
19699 }
19700 resultobj = SWIG_Py_Void();
19701 return resultobj;
19702 fail:
19703 return NULL;
19704 }
19705
19706
19707 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19708 PyObject *resultobj = 0;
19709 wxDC *arg1 = (wxDC *) 0 ;
19710 wxPoint *arg2 = 0 ;
19711 wxSize *arg3 = 0 ;
19712 void *argp1 = 0 ;
19713 int res1 = 0 ;
19714 wxPoint temp2 ;
19715 wxSize temp3 ;
19716 PyObject * obj0 = 0 ;
19717 PyObject * obj1 = 0 ;
19718 PyObject * obj2 = 0 ;
19719 char * kwnames[] = {
19720 (char *) "self",(char *) "pt",(char *) "sz", NULL
19721 };
19722
19723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19725 if (!SWIG_IsOK(res1)) {
19726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19727 }
19728 arg1 = reinterpret_cast< wxDC * >(argp1);
19729 {
19730 arg2 = &temp2;
19731 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19732 }
19733 {
19734 arg3 = &temp3;
19735 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19736 }
19737 {
19738 PyThreadState* __tstate = wxPyBeginAllowThreads();
19739 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19740 wxPyEndAllowThreads(__tstate);
19741 if (PyErr_Occurred()) SWIG_fail;
19742 }
19743 resultobj = SWIG_Py_Void();
19744 return resultobj;
19745 fail:
19746 return NULL;
19747 }
19748
19749
19750 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19751 PyObject *resultobj = 0;
19752 wxDC *arg1 = (wxDC *) 0 ;
19753 wxIcon *arg2 = 0 ;
19754 int arg3 ;
19755 int arg4 ;
19756 void *argp1 = 0 ;
19757 int res1 = 0 ;
19758 void *argp2 = 0 ;
19759 int res2 = 0 ;
19760 int val3 ;
19761 int ecode3 = 0 ;
19762 int val4 ;
19763 int ecode4 = 0 ;
19764 PyObject * obj0 = 0 ;
19765 PyObject * obj1 = 0 ;
19766 PyObject * obj2 = 0 ;
19767 PyObject * obj3 = 0 ;
19768 char * kwnames[] = {
19769 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19770 };
19771
19772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19774 if (!SWIG_IsOK(res1)) {
19775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19776 }
19777 arg1 = reinterpret_cast< wxDC * >(argp1);
19778 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19779 if (!SWIG_IsOK(res2)) {
19780 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19781 }
19782 if (!argp2) {
19783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19784 }
19785 arg2 = reinterpret_cast< wxIcon * >(argp2);
19786 ecode3 = SWIG_AsVal_int(obj2, &val3);
19787 if (!SWIG_IsOK(ecode3)) {
19788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19789 }
19790 arg3 = static_cast< int >(val3);
19791 ecode4 = SWIG_AsVal_int(obj3, &val4);
19792 if (!SWIG_IsOK(ecode4)) {
19793 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19794 }
19795 arg4 = static_cast< int >(val4);
19796 {
19797 PyThreadState* __tstate = wxPyBeginAllowThreads();
19798 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19799 wxPyEndAllowThreads(__tstate);
19800 if (PyErr_Occurred()) SWIG_fail;
19801 }
19802 resultobj = SWIG_Py_Void();
19803 return resultobj;
19804 fail:
19805 return NULL;
19806 }
19807
19808
19809 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19810 PyObject *resultobj = 0;
19811 wxDC *arg1 = (wxDC *) 0 ;
19812 wxIcon *arg2 = 0 ;
19813 wxPoint *arg3 = 0 ;
19814 void *argp1 = 0 ;
19815 int res1 = 0 ;
19816 void *argp2 = 0 ;
19817 int res2 = 0 ;
19818 wxPoint temp3 ;
19819 PyObject * obj0 = 0 ;
19820 PyObject * obj1 = 0 ;
19821 PyObject * obj2 = 0 ;
19822 char * kwnames[] = {
19823 (char *) "self",(char *) "icon",(char *) "pt", NULL
19824 };
19825
19826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19828 if (!SWIG_IsOK(res1)) {
19829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19830 }
19831 arg1 = reinterpret_cast< wxDC * >(argp1);
19832 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19833 if (!SWIG_IsOK(res2)) {
19834 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19835 }
19836 if (!argp2) {
19837 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19838 }
19839 arg2 = reinterpret_cast< wxIcon * >(argp2);
19840 {
19841 arg3 = &temp3;
19842 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19843 }
19844 {
19845 PyThreadState* __tstate = wxPyBeginAllowThreads();
19846 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19847 wxPyEndAllowThreads(__tstate);
19848 if (PyErr_Occurred()) SWIG_fail;
19849 }
19850 resultobj = SWIG_Py_Void();
19851 return resultobj;
19852 fail:
19853 return NULL;
19854 }
19855
19856
19857 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19858 PyObject *resultobj = 0;
19859 wxDC *arg1 = (wxDC *) 0 ;
19860 wxBitmap *arg2 = 0 ;
19861 int arg3 ;
19862 int arg4 ;
19863 bool arg5 = (bool) false ;
19864 void *argp1 = 0 ;
19865 int res1 = 0 ;
19866 void *argp2 = 0 ;
19867 int res2 = 0 ;
19868 int val3 ;
19869 int ecode3 = 0 ;
19870 int val4 ;
19871 int ecode4 = 0 ;
19872 bool val5 ;
19873 int ecode5 = 0 ;
19874 PyObject * obj0 = 0 ;
19875 PyObject * obj1 = 0 ;
19876 PyObject * obj2 = 0 ;
19877 PyObject * obj3 = 0 ;
19878 PyObject * obj4 = 0 ;
19879 char * kwnames[] = {
19880 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19881 };
19882
19883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19885 if (!SWIG_IsOK(res1)) {
19886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19887 }
19888 arg1 = reinterpret_cast< wxDC * >(argp1);
19889 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19890 if (!SWIG_IsOK(res2)) {
19891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19892 }
19893 if (!argp2) {
19894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19895 }
19896 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19897 ecode3 = SWIG_AsVal_int(obj2, &val3);
19898 if (!SWIG_IsOK(ecode3)) {
19899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', 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_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19905 }
19906 arg4 = static_cast< int >(val4);
19907 if (obj4) {
19908 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19909 if (!SWIG_IsOK(ecode5)) {
19910 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19911 }
19912 arg5 = static_cast< bool >(val5);
19913 }
19914 {
19915 PyThreadState* __tstate = wxPyBeginAllowThreads();
19916 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19917 wxPyEndAllowThreads(__tstate);
19918 if (PyErr_Occurred()) SWIG_fail;
19919 }
19920 resultobj = SWIG_Py_Void();
19921 return resultobj;
19922 fail:
19923 return NULL;
19924 }
19925
19926
19927 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19928 PyObject *resultobj = 0;
19929 wxDC *arg1 = (wxDC *) 0 ;
19930 wxBitmap *arg2 = 0 ;
19931 wxPoint *arg3 = 0 ;
19932 bool arg4 = (bool) false ;
19933 void *argp1 = 0 ;
19934 int res1 = 0 ;
19935 void *argp2 = 0 ;
19936 int res2 = 0 ;
19937 wxPoint temp3 ;
19938 bool val4 ;
19939 int ecode4 = 0 ;
19940 PyObject * obj0 = 0 ;
19941 PyObject * obj1 = 0 ;
19942 PyObject * obj2 = 0 ;
19943 PyObject * obj3 = 0 ;
19944 char * kwnames[] = {
19945 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19946 };
19947
19948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19950 if (!SWIG_IsOK(res1)) {
19951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19952 }
19953 arg1 = reinterpret_cast< wxDC * >(argp1);
19954 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19955 if (!SWIG_IsOK(res2)) {
19956 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19957 }
19958 if (!argp2) {
19959 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19960 }
19961 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19962 {
19963 arg3 = &temp3;
19964 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19965 }
19966 if (obj3) {
19967 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19968 if (!SWIG_IsOK(ecode4)) {
19969 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19970 }
19971 arg4 = static_cast< bool >(val4);
19972 }
19973 {
19974 PyThreadState* __tstate = wxPyBeginAllowThreads();
19975 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19976 wxPyEndAllowThreads(__tstate);
19977 if (PyErr_Occurred()) SWIG_fail;
19978 }
19979 resultobj = SWIG_Py_Void();
19980 return resultobj;
19981 fail:
19982 return NULL;
19983 }
19984
19985
19986 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19987 PyObject *resultobj = 0;
19988 wxDC *arg1 = (wxDC *) 0 ;
19989 wxString *arg2 = 0 ;
19990 int arg3 ;
19991 int arg4 ;
19992 void *argp1 = 0 ;
19993 int res1 = 0 ;
19994 bool temp2 = false ;
19995 int val3 ;
19996 int ecode3 = 0 ;
19997 int val4 ;
19998 int ecode4 = 0 ;
19999 PyObject * obj0 = 0 ;
20000 PyObject * obj1 = 0 ;
20001 PyObject * obj2 = 0 ;
20002 PyObject * obj3 = 0 ;
20003 char * kwnames[] = {
20004 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
20005 };
20006
20007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20009 if (!SWIG_IsOK(res1)) {
20010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
20011 }
20012 arg1 = reinterpret_cast< wxDC * >(argp1);
20013 {
20014 arg2 = wxString_in_helper(obj1);
20015 if (arg2 == NULL) SWIG_fail;
20016 temp2 = true;
20017 }
20018 ecode3 = SWIG_AsVal_int(obj2, &val3);
20019 if (!SWIG_IsOK(ecode3)) {
20020 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
20021 }
20022 arg3 = static_cast< int >(val3);
20023 ecode4 = SWIG_AsVal_int(obj3, &val4);
20024 if (!SWIG_IsOK(ecode4)) {
20025 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
20026 }
20027 arg4 = static_cast< int >(val4);
20028 {
20029 PyThreadState* __tstate = wxPyBeginAllowThreads();
20030 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
20031 wxPyEndAllowThreads(__tstate);
20032 if (PyErr_Occurred()) SWIG_fail;
20033 }
20034 resultobj = SWIG_Py_Void();
20035 {
20036 if (temp2)
20037 delete arg2;
20038 }
20039 return resultobj;
20040 fail:
20041 {
20042 if (temp2)
20043 delete arg2;
20044 }
20045 return NULL;
20046 }
20047
20048
20049 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20050 PyObject *resultobj = 0;
20051 wxDC *arg1 = (wxDC *) 0 ;
20052 wxString *arg2 = 0 ;
20053 wxPoint *arg3 = 0 ;
20054 void *argp1 = 0 ;
20055 int res1 = 0 ;
20056 bool temp2 = false ;
20057 wxPoint temp3 ;
20058 PyObject * obj0 = 0 ;
20059 PyObject * obj1 = 0 ;
20060 PyObject * obj2 = 0 ;
20061 char * kwnames[] = {
20062 (char *) "self",(char *) "text",(char *) "pt", NULL
20063 };
20064
20065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20067 if (!SWIG_IsOK(res1)) {
20068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20069 }
20070 arg1 = reinterpret_cast< wxDC * >(argp1);
20071 {
20072 arg2 = wxString_in_helper(obj1);
20073 if (arg2 == NULL) SWIG_fail;
20074 temp2 = true;
20075 }
20076 {
20077 arg3 = &temp3;
20078 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20079 }
20080 {
20081 PyThreadState* __tstate = wxPyBeginAllowThreads();
20082 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
20083 wxPyEndAllowThreads(__tstate);
20084 if (PyErr_Occurred()) SWIG_fail;
20085 }
20086 resultobj = SWIG_Py_Void();
20087 {
20088 if (temp2)
20089 delete arg2;
20090 }
20091 return resultobj;
20092 fail:
20093 {
20094 if (temp2)
20095 delete arg2;
20096 }
20097 return NULL;
20098 }
20099
20100
20101 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20102 PyObject *resultobj = 0;
20103 wxDC *arg1 = (wxDC *) 0 ;
20104 wxString *arg2 = 0 ;
20105 int arg3 ;
20106 int arg4 ;
20107 double arg5 ;
20108 void *argp1 = 0 ;
20109 int res1 = 0 ;
20110 bool temp2 = false ;
20111 int val3 ;
20112 int ecode3 = 0 ;
20113 int val4 ;
20114 int ecode4 = 0 ;
20115 double val5 ;
20116 int ecode5 = 0 ;
20117 PyObject * obj0 = 0 ;
20118 PyObject * obj1 = 0 ;
20119 PyObject * obj2 = 0 ;
20120 PyObject * obj3 = 0 ;
20121 PyObject * obj4 = 0 ;
20122 char * kwnames[] = {
20123 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
20124 };
20125
20126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20128 if (!SWIG_IsOK(res1)) {
20129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
20130 }
20131 arg1 = reinterpret_cast< wxDC * >(argp1);
20132 {
20133 arg2 = wxString_in_helper(obj1);
20134 if (arg2 == NULL) SWIG_fail;
20135 temp2 = true;
20136 }
20137 ecode3 = SWIG_AsVal_int(obj2, &val3);
20138 if (!SWIG_IsOK(ecode3)) {
20139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
20140 }
20141 arg3 = static_cast< int >(val3);
20142 ecode4 = SWIG_AsVal_int(obj3, &val4);
20143 if (!SWIG_IsOK(ecode4)) {
20144 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
20145 }
20146 arg4 = static_cast< int >(val4);
20147 ecode5 = SWIG_AsVal_double(obj4, &val5);
20148 if (!SWIG_IsOK(ecode5)) {
20149 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
20150 }
20151 arg5 = static_cast< double >(val5);
20152 {
20153 PyThreadState* __tstate = wxPyBeginAllowThreads();
20154 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
20155 wxPyEndAllowThreads(__tstate);
20156 if (PyErr_Occurred()) SWIG_fail;
20157 }
20158 resultobj = SWIG_Py_Void();
20159 {
20160 if (temp2)
20161 delete arg2;
20162 }
20163 return resultobj;
20164 fail:
20165 {
20166 if (temp2)
20167 delete arg2;
20168 }
20169 return NULL;
20170 }
20171
20172
20173 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20174 PyObject *resultobj = 0;
20175 wxDC *arg1 = (wxDC *) 0 ;
20176 wxString *arg2 = 0 ;
20177 wxPoint *arg3 = 0 ;
20178 double arg4 ;
20179 void *argp1 = 0 ;
20180 int res1 = 0 ;
20181 bool temp2 = false ;
20182 wxPoint temp3 ;
20183 double val4 ;
20184 int ecode4 = 0 ;
20185 PyObject * obj0 = 0 ;
20186 PyObject * obj1 = 0 ;
20187 PyObject * obj2 = 0 ;
20188 PyObject * obj3 = 0 ;
20189 char * kwnames[] = {
20190 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
20191 };
20192
20193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20195 if (!SWIG_IsOK(res1)) {
20196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20197 }
20198 arg1 = reinterpret_cast< wxDC * >(argp1);
20199 {
20200 arg2 = wxString_in_helper(obj1);
20201 if (arg2 == NULL) SWIG_fail;
20202 temp2 = true;
20203 }
20204 {
20205 arg3 = &temp3;
20206 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20207 }
20208 ecode4 = SWIG_AsVal_double(obj3, &val4);
20209 if (!SWIG_IsOK(ecode4)) {
20210 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
20211 }
20212 arg4 = static_cast< double >(val4);
20213 {
20214 PyThreadState* __tstate = wxPyBeginAllowThreads();
20215 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
20216 wxPyEndAllowThreads(__tstate);
20217 if (PyErr_Occurred()) SWIG_fail;
20218 }
20219 resultobj = SWIG_Py_Void();
20220 {
20221 if (temp2)
20222 delete arg2;
20223 }
20224 return resultobj;
20225 fail:
20226 {
20227 if (temp2)
20228 delete arg2;
20229 }
20230 return NULL;
20231 }
20232
20233
20234 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20235 PyObject *resultobj = 0;
20236 wxDC *arg1 = (wxDC *) 0 ;
20237 int arg2 ;
20238 int arg3 ;
20239 int arg4 ;
20240 int arg5 ;
20241 wxDC *arg6 = (wxDC *) 0 ;
20242 int arg7 ;
20243 int arg8 ;
20244 int arg9 = (int) wxCOPY ;
20245 bool arg10 = (bool) false ;
20246 int arg11 = (int) -1 ;
20247 int arg12 = (int) -1 ;
20248 bool result;
20249 void *argp1 = 0 ;
20250 int res1 = 0 ;
20251 int val2 ;
20252 int ecode2 = 0 ;
20253 int val3 ;
20254 int ecode3 = 0 ;
20255 int val4 ;
20256 int ecode4 = 0 ;
20257 int val5 ;
20258 int ecode5 = 0 ;
20259 void *argp6 = 0 ;
20260 int res6 = 0 ;
20261 int val7 ;
20262 int ecode7 = 0 ;
20263 int val8 ;
20264 int ecode8 = 0 ;
20265 int val9 ;
20266 int ecode9 = 0 ;
20267 bool val10 ;
20268 int ecode10 = 0 ;
20269 int val11 ;
20270 int ecode11 = 0 ;
20271 int val12 ;
20272 int ecode12 = 0 ;
20273 PyObject * obj0 = 0 ;
20274 PyObject * obj1 = 0 ;
20275 PyObject * obj2 = 0 ;
20276 PyObject * obj3 = 0 ;
20277 PyObject * obj4 = 0 ;
20278 PyObject * obj5 = 0 ;
20279 PyObject * obj6 = 0 ;
20280 PyObject * obj7 = 0 ;
20281 PyObject * obj8 = 0 ;
20282 PyObject * obj9 = 0 ;
20283 PyObject * obj10 = 0 ;
20284 PyObject * obj11 = 0 ;
20285 char * kwnames[] = {
20286 (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
20287 };
20288
20289 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;
20290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20291 if (!SWIG_IsOK(res1)) {
20292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
20293 }
20294 arg1 = reinterpret_cast< wxDC * >(argp1);
20295 ecode2 = SWIG_AsVal_int(obj1, &val2);
20296 if (!SWIG_IsOK(ecode2)) {
20297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
20298 }
20299 arg2 = static_cast< int >(val2);
20300 ecode3 = SWIG_AsVal_int(obj2, &val3);
20301 if (!SWIG_IsOK(ecode3)) {
20302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
20303 }
20304 arg3 = static_cast< int >(val3);
20305 ecode4 = SWIG_AsVal_int(obj3, &val4);
20306 if (!SWIG_IsOK(ecode4)) {
20307 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
20308 }
20309 arg4 = static_cast< int >(val4);
20310 ecode5 = SWIG_AsVal_int(obj4, &val5);
20311 if (!SWIG_IsOK(ecode5)) {
20312 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
20313 }
20314 arg5 = static_cast< int >(val5);
20315 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20316 if (!SWIG_IsOK(res6)) {
20317 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20318 }
20319 arg6 = reinterpret_cast< wxDC * >(argp6);
20320 ecode7 = SWIG_AsVal_int(obj6, &val7);
20321 if (!SWIG_IsOK(ecode7)) {
20322 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20323 }
20324 arg7 = static_cast< int >(val7);
20325 ecode8 = SWIG_AsVal_int(obj7, &val8);
20326 if (!SWIG_IsOK(ecode8)) {
20327 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20328 }
20329 arg8 = static_cast< int >(val8);
20330 if (obj8) {
20331 ecode9 = SWIG_AsVal_int(obj8, &val9);
20332 if (!SWIG_IsOK(ecode9)) {
20333 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20334 }
20335 arg9 = static_cast< int >(val9);
20336 }
20337 if (obj9) {
20338 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20339 if (!SWIG_IsOK(ecode10)) {
20340 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20341 }
20342 arg10 = static_cast< bool >(val10);
20343 }
20344 if (obj10) {
20345 ecode11 = SWIG_AsVal_int(obj10, &val11);
20346 if (!SWIG_IsOK(ecode11)) {
20347 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20348 }
20349 arg11 = static_cast< int >(val11);
20350 }
20351 if (obj11) {
20352 ecode12 = SWIG_AsVal_int(obj11, &val12);
20353 if (!SWIG_IsOK(ecode12)) {
20354 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20355 }
20356 arg12 = static_cast< int >(val12);
20357 }
20358 {
20359 PyThreadState* __tstate = wxPyBeginAllowThreads();
20360 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20361 wxPyEndAllowThreads(__tstate);
20362 if (PyErr_Occurred()) SWIG_fail;
20363 }
20364 {
20365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20366 }
20367 return resultobj;
20368 fail:
20369 return NULL;
20370 }
20371
20372
20373 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20374 PyObject *resultobj = 0;
20375 wxDC *arg1 = (wxDC *) 0 ;
20376 wxPoint *arg2 = 0 ;
20377 wxSize *arg3 = 0 ;
20378 wxDC *arg4 = (wxDC *) 0 ;
20379 wxPoint *arg5 = 0 ;
20380 int arg6 = (int) wxCOPY ;
20381 bool arg7 = (bool) false ;
20382 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20383 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20384 bool result;
20385 void *argp1 = 0 ;
20386 int res1 = 0 ;
20387 wxPoint temp2 ;
20388 wxSize temp3 ;
20389 void *argp4 = 0 ;
20390 int res4 = 0 ;
20391 wxPoint temp5 ;
20392 int val6 ;
20393 int ecode6 = 0 ;
20394 bool val7 ;
20395 int ecode7 = 0 ;
20396 wxPoint temp8 ;
20397 PyObject * obj0 = 0 ;
20398 PyObject * obj1 = 0 ;
20399 PyObject * obj2 = 0 ;
20400 PyObject * obj3 = 0 ;
20401 PyObject * obj4 = 0 ;
20402 PyObject * obj5 = 0 ;
20403 PyObject * obj6 = 0 ;
20404 PyObject * obj7 = 0 ;
20405 char * kwnames[] = {
20406 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20407 };
20408
20409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20411 if (!SWIG_IsOK(res1)) {
20412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20413 }
20414 arg1 = reinterpret_cast< wxDC * >(argp1);
20415 {
20416 arg2 = &temp2;
20417 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20418 }
20419 {
20420 arg3 = &temp3;
20421 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20422 }
20423 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20424 if (!SWIG_IsOK(res4)) {
20425 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20426 }
20427 arg4 = reinterpret_cast< wxDC * >(argp4);
20428 {
20429 arg5 = &temp5;
20430 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20431 }
20432 if (obj5) {
20433 ecode6 = SWIG_AsVal_int(obj5, &val6);
20434 if (!SWIG_IsOK(ecode6)) {
20435 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20436 }
20437 arg6 = static_cast< int >(val6);
20438 }
20439 if (obj6) {
20440 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20441 if (!SWIG_IsOK(ecode7)) {
20442 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20443 }
20444 arg7 = static_cast< bool >(val7);
20445 }
20446 if (obj7) {
20447 {
20448 arg8 = &temp8;
20449 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
20450 }
20451 }
20452 {
20453 PyThreadState* __tstate = wxPyBeginAllowThreads();
20454 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20455 wxPyEndAllowThreads(__tstate);
20456 if (PyErr_Occurred()) SWIG_fail;
20457 }
20458 {
20459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20460 }
20461 return resultobj;
20462 fail:
20463 return NULL;
20464 }
20465
20466
20467 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20468 PyObject *resultobj = 0;
20469 wxDC *arg1 = (wxDC *) 0 ;
20470 wxRect *arg2 = (wxRect *) NULL ;
20471 SwigValueWrapper<wxBitmap > result;
20472 void *argp1 = 0 ;
20473 int res1 = 0 ;
20474 void *argp2 = 0 ;
20475 int res2 = 0 ;
20476 PyObject * obj0 = 0 ;
20477 PyObject * obj1 = 0 ;
20478 char * kwnames[] = {
20479 (char *) "self",(char *) "subrect", NULL
20480 };
20481
20482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
20483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20484 if (!SWIG_IsOK(res1)) {
20485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
20486 }
20487 arg1 = reinterpret_cast< wxDC * >(argp1);
20488 if (obj1) {
20489 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20490 if (!SWIG_IsOK(res2)) {
20491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
20492 }
20493 arg2 = reinterpret_cast< wxRect * >(argp2);
20494 }
20495 {
20496 PyThreadState* __tstate = wxPyBeginAllowThreads();
20497 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
20498 wxPyEndAllowThreads(__tstate);
20499 if (PyErr_Occurred()) SWIG_fail;
20500 }
20501 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
20502 return resultobj;
20503 fail:
20504 return NULL;
20505 }
20506
20507
20508 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20509 PyObject *resultobj = 0;
20510 wxDC *arg1 = (wxDC *) 0 ;
20511 int arg2 ;
20512 int arg3 ;
20513 int arg4 ;
20514 int arg5 ;
20515 void *argp1 = 0 ;
20516 int res1 = 0 ;
20517 int val2 ;
20518 int ecode2 = 0 ;
20519 int val3 ;
20520 int ecode3 = 0 ;
20521 int val4 ;
20522 int ecode4 = 0 ;
20523 int val5 ;
20524 int ecode5 = 0 ;
20525 PyObject * obj0 = 0 ;
20526 PyObject * obj1 = 0 ;
20527 PyObject * obj2 = 0 ;
20528 PyObject * obj3 = 0 ;
20529 PyObject * obj4 = 0 ;
20530 char * kwnames[] = {
20531 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20532 };
20533
20534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20536 if (!SWIG_IsOK(res1)) {
20537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20538 }
20539 arg1 = reinterpret_cast< wxDC * >(argp1);
20540 ecode2 = SWIG_AsVal_int(obj1, &val2);
20541 if (!SWIG_IsOK(ecode2)) {
20542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20543 }
20544 arg2 = static_cast< int >(val2);
20545 ecode3 = SWIG_AsVal_int(obj2, &val3);
20546 if (!SWIG_IsOK(ecode3)) {
20547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20548 }
20549 arg3 = static_cast< int >(val3);
20550 ecode4 = SWIG_AsVal_int(obj3, &val4);
20551 if (!SWIG_IsOK(ecode4)) {
20552 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20553 }
20554 arg4 = static_cast< int >(val4);
20555 ecode5 = SWIG_AsVal_int(obj4, &val5);
20556 if (!SWIG_IsOK(ecode5)) {
20557 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20558 }
20559 arg5 = static_cast< int >(val5);
20560 {
20561 PyThreadState* __tstate = wxPyBeginAllowThreads();
20562 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20563 wxPyEndAllowThreads(__tstate);
20564 if (PyErr_Occurred()) SWIG_fail;
20565 }
20566 resultobj = SWIG_Py_Void();
20567 return resultobj;
20568 fail:
20569 return NULL;
20570 }
20571
20572
20573 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20574 PyObject *resultobj = 0;
20575 wxDC *arg1 = (wxDC *) 0 ;
20576 wxPoint *arg2 = 0 ;
20577 wxSize *arg3 = 0 ;
20578 void *argp1 = 0 ;
20579 int res1 = 0 ;
20580 wxPoint temp2 ;
20581 wxSize temp3 ;
20582 PyObject * obj0 = 0 ;
20583 PyObject * obj1 = 0 ;
20584 PyObject * obj2 = 0 ;
20585 char * kwnames[] = {
20586 (char *) "self",(char *) "pt",(char *) "sz", NULL
20587 };
20588
20589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20591 if (!SWIG_IsOK(res1)) {
20592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20593 }
20594 arg1 = reinterpret_cast< wxDC * >(argp1);
20595 {
20596 arg2 = &temp2;
20597 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20598 }
20599 {
20600 arg3 = &temp3;
20601 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20602 }
20603 {
20604 PyThreadState* __tstate = wxPyBeginAllowThreads();
20605 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20606 wxPyEndAllowThreads(__tstate);
20607 if (PyErr_Occurred()) SWIG_fail;
20608 }
20609 resultobj = SWIG_Py_Void();
20610 return resultobj;
20611 fail:
20612 return NULL;
20613 }
20614
20615
20616 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20617 PyObject *resultobj = 0;
20618 wxDC *arg1 = (wxDC *) 0 ;
20619 wxRegion *arg2 = 0 ;
20620 void *argp1 = 0 ;
20621 int res1 = 0 ;
20622 void *argp2 = 0 ;
20623 int res2 = 0 ;
20624 PyObject * obj0 = 0 ;
20625 PyObject * obj1 = 0 ;
20626 char * kwnames[] = {
20627 (char *) "self",(char *) "region", NULL
20628 };
20629
20630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20632 if (!SWIG_IsOK(res1)) {
20633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20634 }
20635 arg1 = reinterpret_cast< wxDC * >(argp1);
20636 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20637 if (!SWIG_IsOK(res2)) {
20638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20639 }
20640 if (!argp2) {
20641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20642 }
20643 arg2 = reinterpret_cast< wxRegion * >(argp2);
20644 {
20645 PyThreadState* __tstate = wxPyBeginAllowThreads();
20646 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20647 wxPyEndAllowThreads(__tstate);
20648 if (PyErr_Occurred()) SWIG_fail;
20649 }
20650 resultobj = SWIG_Py_Void();
20651 return resultobj;
20652 fail:
20653 return NULL;
20654 }
20655
20656
20657 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20658 PyObject *resultobj = 0;
20659 wxDC *arg1 = (wxDC *) 0 ;
20660 wxRect *arg2 = 0 ;
20661 void *argp1 = 0 ;
20662 int res1 = 0 ;
20663 wxRect temp2 ;
20664 PyObject * obj0 = 0 ;
20665 PyObject * obj1 = 0 ;
20666 char * kwnames[] = {
20667 (char *) "self",(char *) "rect", NULL
20668 };
20669
20670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20672 if (!SWIG_IsOK(res1)) {
20673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20674 }
20675 arg1 = reinterpret_cast< wxDC * >(argp1);
20676 {
20677 arg2 = &temp2;
20678 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20679 }
20680 {
20681 PyThreadState* __tstate = wxPyBeginAllowThreads();
20682 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20683 wxPyEndAllowThreads(__tstate);
20684 if (PyErr_Occurred()) SWIG_fail;
20685 }
20686 resultobj = SWIG_Py_Void();
20687 return resultobj;
20688 fail:
20689 return NULL;
20690 }
20691
20692
20693 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20694 PyObject *resultobj = 0;
20695 wxDC *arg1 = (wxDC *) 0 ;
20696 int arg2 ;
20697 wxPoint *arg3 = (wxPoint *) 0 ;
20698 int arg4 = (int) 0 ;
20699 int arg5 = (int) 0 ;
20700 void *argp1 = 0 ;
20701 int res1 = 0 ;
20702 int val4 ;
20703 int ecode4 = 0 ;
20704 int val5 ;
20705 int ecode5 = 0 ;
20706 PyObject * obj0 = 0 ;
20707 PyObject * obj1 = 0 ;
20708 PyObject * obj2 = 0 ;
20709 PyObject * obj3 = 0 ;
20710 char * kwnames[] = {
20711 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20712 };
20713
20714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20716 if (!SWIG_IsOK(res1)) {
20717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20718 }
20719 arg1 = reinterpret_cast< wxDC * >(argp1);
20720 {
20721 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20722 if (arg3 == NULL) SWIG_fail;
20723 }
20724 if (obj2) {
20725 ecode4 = SWIG_AsVal_int(obj2, &val4);
20726 if (!SWIG_IsOK(ecode4)) {
20727 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20728 }
20729 arg4 = static_cast< int >(val4);
20730 }
20731 if (obj3) {
20732 ecode5 = SWIG_AsVal_int(obj3, &val5);
20733 if (!SWIG_IsOK(ecode5)) {
20734 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20735 }
20736 arg5 = static_cast< int >(val5);
20737 }
20738 {
20739 PyThreadState* __tstate = wxPyBeginAllowThreads();
20740 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20741 wxPyEndAllowThreads(__tstate);
20742 if (PyErr_Occurred()) SWIG_fail;
20743 }
20744 resultobj = SWIG_Py_Void();
20745 {
20746 if (arg3) delete [] arg3;
20747 }
20748 return resultobj;
20749 fail:
20750 {
20751 if (arg3) delete [] arg3;
20752 }
20753 return NULL;
20754 }
20755
20756
20757 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20758 PyObject *resultobj = 0;
20759 wxDC *arg1 = (wxDC *) 0 ;
20760 int arg2 ;
20761 wxPoint *arg3 = (wxPoint *) 0 ;
20762 int arg4 = (int) 0 ;
20763 int arg5 = (int) 0 ;
20764 int arg6 = (int) wxODDEVEN_RULE ;
20765 void *argp1 = 0 ;
20766 int res1 = 0 ;
20767 int val4 ;
20768 int ecode4 = 0 ;
20769 int val5 ;
20770 int ecode5 = 0 ;
20771 int val6 ;
20772 int ecode6 = 0 ;
20773 PyObject * obj0 = 0 ;
20774 PyObject * obj1 = 0 ;
20775 PyObject * obj2 = 0 ;
20776 PyObject * obj3 = 0 ;
20777 PyObject * obj4 = 0 ;
20778 char * kwnames[] = {
20779 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20780 };
20781
20782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20784 if (!SWIG_IsOK(res1)) {
20785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20786 }
20787 arg1 = reinterpret_cast< wxDC * >(argp1);
20788 {
20789 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20790 if (arg3 == NULL) SWIG_fail;
20791 }
20792 if (obj2) {
20793 ecode4 = SWIG_AsVal_int(obj2, &val4);
20794 if (!SWIG_IsOK(ecode4)) {
20795 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20796 }
20797 arg4 = static_cast< int >(val4);
20798 }
20799 if (obj3) {
20800 ecode5 = SWIG_AsVal_int(obj3, &val5);
20801 if (!SWIG_IsOK(ecode5)) {
20802 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20803 }
20804 arg5 = static_cast< int >(val5);
20805 }
20806 if (obj4) {
20807 ecode6 = SWIG_AsVal_int(obj4, &val6);
20808 if (!SWIG_IsOK(ecode6)) {
20809 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20810 }
20811 arg6 = static_cast< int >(val6);
20812 }
20813 {
20814 PyThreadState* __tstate = wxPyBeginAllowThreads();
20815 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20816 wxPyEndAllowThreads(__tstate);
20817 if (PyErr_Occurred()) SWIG_fail;
20818 }
20819 resultobj = SWIG_Py_Void();
20820 {
20821 if (arg3) delete [] arg3;
20822 }
20823 return resultobj;
20824 fail:
20825 {
20826 if (arg3) delete [] arg3;
20827 }
20828 return NULL;
20829 }
20830
20831
20832 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20833 PyObject *resultobj = 0;
20834 wxDC *arg1 = (wxDC *) 0 ;
20835 wxString *arg2 = 0 ;
20836 wxRect *arg3 = 0 ;
20837 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20838 int arg5 = (int) -1 ;
20839 void *argp1 = 0 ;
20840 int res1 = 0 ;
20841 bool temp2 = false ;
20842 wxRect temp3 ;
20843 int val4 ;
20844 int ecode4 = 0 ;
20845 int val5 ;
20846 int ecode5 = 0 ;
20847 PyObject * obj0 = 0 ;
20848 PyObject * obj1 = 0 ;
20849 PyObject * obj2 = 0 ;
20850 PyObject * obj3 = 0 ;
20851 PyObject * obj4 = 0 ;
20852 char * kwnames[] = {
20853 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20854 };
20855
20856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20858 if (!SWIG_IsOK(res1)) {
20859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20860 }
20861 arg1 = reinterpret_cast< wxDC * >(argp1);
20862 {
20863 arg2 = wxString_in_helper(obj1);
20864 if (arg2 == NULL) SWIG_fail;
20865 temp2 = true;
20866 }
20867 {
20868 arg3 = &temp3;
20869 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20870 }
20871 if (obj3) {
20872 ecode4 = SWIG_AsVal_int(obj3, &val4);
20873 if (!SWIG_IsOK(ecode4)) {
20874 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20875 }
20876 arg4 = static_cast< int >(val4);
20877 }
20878 if (obj4) {
20879 ecode5 = SWIG_AsVal_int(obj4, &val5);
20880 if (!SWIG_IsOK(ecode5)) {
20881 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20882 }
20883 arg5 = static_cast< int >(val5);
20884 }
20885 {
20886 PyThreadState* __tstate = wxPyBeginAllowThreads();
20887 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20888 wxPyEndAllowThreads(__tstate);
20889 if (PyErr_Occurred()) SWIG_fail;
20890 }
20891 resultobj = SWIG_Py_Void();
20892 {
20893 if (temp2)
20894 delete arg2;
20895 }
20896 return resultobj;
20897 fail:
20898 {
20899 if (temp2)
20900 delete arg2;
20901 }
20902 return NULL;
20903 }
20904
20905
20906 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20907 PyObject *resultobj = 0;
20908 wxDC *arg1 = (wxDC *) 0 ;
20909 wxString *arg2 = 0 ;
20910 wxBitmap *arg3 = 0 ;
20911 wxRect *arg4 = 0 ;
20912 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20913 int arg6 = (int) -1 ;
20914 wxRect result;
20915 void *argp1 = 0 ;
20916 int res1 = 0 ;
20917 bool temp2 = false ;
20918 void *argp3 = 0 ;
20919 int res3 = 0 ;
20920 wxRect temp4 ;
20921 int val5 ;
20922 int ecode5 = 0 ;
20923 int val6 ;
20924 int ecode6 = 0 ;
20925 PyObject * obj0 = 0 ;
20926 PyObject * obj1 = 0 ;
20927 PyObject * obj2 = 0 ;
20928 PyObject * obj3 = 0 ;
20929 PyObject * obj4 = 0 ;
20930 PyObject * obj5 = 0 ;
20931 char * kwnames[] = {
20932 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20933 };
20934
20935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20937 if (!SWIG_IsOK(res1)) {
20938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20939 }
20940 arg1 = reinterpret_cast< wxDC * >(argp1);
20941 {
20942 arg2 = wxString_in_helper(obj1);
20943 if (arg2 == NULL) SWIG_fail;
20944 temp2 = true;
20945 }
20946 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20947 if (!SWIG_IsOK(res3)) {
20948 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20949 }
20950 if (!argp3) {
20951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20952 }
20953 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20954 {
20955 arg4 = &temp4;
20956 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20957 }
20958 if (obj4) {
20959 ecode5 = SWIG_AsVal_int(obj4, &val5);
20960 if (!SWIG_IsOK(ecode5)) {
20961 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20962 }
20963 arg5 = static_cast< int >(val5);
20964 }
20965 if (obj5) {
20966 ecode6 = SWIG_AsVal_int(obj5, &val6);
20967 if (!SWIG_IsOK(ecode6)) {
20968 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20969 }
20970 arg6 = static_cast< int >(val6);
20971 }
20972 {
20973 PyThreadState* __tstate = wxPyBeginAllowThreads();
20974 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20975 wxPyEndAllowThreads(__tstate);
20976 if (PyErr_Occurred()) SWIG_fail;
20977 }
20978 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20979 {
20980 if (temp2)
20981 delete arg2;
20982 }
20983 return resultobj;
20984 fail:
20985 {
20986 if (temp2)
20987 delete arg2;
20988 }
20989 return NULL;
20990 }
20991
20992
20993 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20994 PyObject *resultobj = 0;
20995 wxDC *arg1 = (wxDC *) 0 ;
20996 int arg2 ;
20997 wxPoint *arg3 = (wxPoint *) 0 ;
20998 void *argp1 = 0 ;
20999 int res1 = 0 ;
21000 PyObject * obj0 = 0 ;
21001 PyObject * obj1 = 0 ;
21002 char * kwnames[] = {
21003 (char *) "self",(char *) "points", NULL
21004 };
21005
21006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
21007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21008 if (!SWIG_IsOK(res1)) {
21009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
21010 }
21011 arg1 = reinterpret_cast< wxDC * >(argp1);
21012 {
21013 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21014 if (arg3 == NULL) SWIG_fail;
21015 }
21016 {
21017 PyThreadState* __tstate = wxPyBeginAllowThreads();
21018 (arg1)->DrawSpline(arg2,arg3);
21019 wxPyEndAllowThreads(__tstate);
21020 if (PyErr_Occurred()) SWIG_fail;
21021 }
21022 resultobj = SWIG_Py_Void();
21023 {
21024 if (arg3) delete [] arg3;
21025 }
21026 return resultobj;
21027 fail:
21028 {
21029 if (arg3) delete [] arg3;
21030 }
21031 return NULL;
21032 }
21033
21034
21035 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21036 PyObject *resultobj = 0;
21037 wxDC *arg1 = (wxDC *) 0 ;
21038 void *argp1 = 0 ;
21039 int res1 = 0 ;
21040 PyObject *swig_obj[1] ;
21041
21042 if (!args) SWIG_fail;
21043 swig_obj[0] = args;
21044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21045 if (!SWIG_IsOK(res1)) {
21046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
21047 }
21048 arg1 = reinterpret_cast< wxDC * >(argp1);
21049 {
21050 PyThreadState* __tstate = wxPyBeginAllowThreads();
21051 (arg1)->Clear();
21052 wxPyEndAllowThreads(__tstate);
21053 if (PyErr_Occurred()) SWIG_fail;
21054 }
21055 resultobj = SWIG_Py_Void();
21056 return resultobj;
21057 fail:
21058 return NULL;
21059 }
21060
21061
21062 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21063 PyObject *resultobj = 0;
21064 wxDC *arg1 = (wxDC *) 0 ;
21065 wxString *arg2 = 0 ;
21066 bool result;
21067 void *argp1 = 0 ;
21068 int res1 = 0 ;
21069 bool temp2 = false ;
21070 PyObject * obj0 = 0 ;
21071 PyObject * obj1 = 0 ;
21072 char * kwnames[] = {
21073 (char *) "self",(char *) "message", NULL
21074 };
21075
21076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
21077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21078 if (!SWIG_IsOK(res1)) {
21079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21080 }
21081 arg1 = reinterpret_cast< wxDC * >(argp1);
21082 {
21083 arg2 = wxString_in_helper(obj1);
21084 if (arg2 == NULL) SWIG_fail;
21085 temp2 = true;
21086 }
21087 {
21088 PyThreadState* __tstate = wxPyBeginAllowThreads();
21089 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
21090 wxPyEndAllowThreads(__tstate);
21091 if (PyErr_Occurred()) SWIG_fail;
21092 }
21093 {
21094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21095 }
21096 {
21097 if (temp2)
21098 delete arg2;
21099 }
21100 return resultobj;
21101 fail:
21102 {
21103 if (temp2)
21104 delete arg2;
21105 }
21106 return NULL;
21107 }
21108
21109
21110 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21111 PyObject *resultobj = 0;
21112 wxDC *arg1 = (wxDC *) 0 ;
21113 void *argp1 = 0 ;
21114 int res1 = 0 ;
21115 PyObject *swig_obj[1] ;
21116
21117 if (!args) SWIG_fail;
21118 swig_obj[0] = args;
21119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21120 if (!SWIG_IsOK(res1)) {
21121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21122 }
21123 arg1 = reinterpret_cast< wxDC * >(argp1);
21124 {
21125 PyThreadState* __tstate = wxPyBeginAllowThreads();
21126 (arg1)->EndDoc();
21127 wxPyEndAllowThreads(__tstate);
21128 if (PyErr_Occurred()) SWIG_fail;
21129 }
21130 resultobj = SWIG_Py_Void();
21131 return resultobj;
21132 fail:
21133 return NULL;
21134 }
21135
21136
21137 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21138 PyObject *resultobj = 0;
21139 wxDC *arg1 = (wxDC *) 0 ;
21140 void *argp1 = 0 ;
21141 int res1 = 0 ;
21142 PyObject *swig_obj[1] ;
21143
21144 if (!args) SWIG_fail;
21145 swig_obj[0] = args;
21146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21147 if (!SWIG_IsOK(res1)) {
21148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
21149 }
21150 arg1 = reinterpret_cast< wxDC * >(argp1);
21151 {
21152 PyThreadState* __tstate = wxPyBeginAllowThreads();
21153 (arg1)->StartPage();
21154 wxPyEndAllowThreads(__tstate);
21155 if (PyErr_Occurred()) SWIG_fail;
21156 }
21157 resultobj = SWIG_Py_Void();
21158 return resultobj;
21159 fail:
21160 return NULL;
21161 }
21162
21163
21164 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21165 PyObject *resultobj = 0;
21166 wxDC *arg1 = (wxDC *) 0 ;
21167 void *argp1 = 0 ;
21168 int res1 = 0 ;
21169 PyObject *swig_obj[1] ;
21170
21171 if (!args) SWIG_fail;
21172 swig_obj[0] = args;
21173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21174 if (!SWIG_IsOK(res1)) {
21175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
21176 }
21177 arg1 = reinterpret_cast< wxDC * >(argp1);
21178 {
21179 PyThreadState* __tstate = wxPyBeginAllowThreads();
21180 (arg1)->EndPage();
21181 wxPyEndAllowThreads(__tstate);
21182 if (PyErr_Occurred()) SWIG_fail;
21183 }
21184 resultobj = SWIG_Py_Void();
21185 return resultobj;
21186 fail:
21187 return NULL;
21188 }
21189
21190
21191 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21192 PyObject *resultobj = 0;
21193 wxDC *arg1 = (wxDC *) 0 ;
21194 wxFont *arg2 = 0 ;
21195 void *argp1 = 0 ;
21196 int res1 = 0 ;
21197 void *argp2 = 0 ;
21198 int res2 = 0 ;
21199 PyObject * obj0 = 0 ;
21200 PyObject * obj1 = 0 ;
21201 char * kwnames[] = {
21202 (char *) "self",(char *) "font", NULL
21203 };
21204
21205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
21206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21207 if (!SWIG_IsOK(res1)) {
21208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
21209 }
21210 arg1 = reinterpret_cast< wxDC * >(argp1);
21211 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
21212 if (!SWIG_IsOK(res2)) {
21213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21214 }
21215 if (!argp2) {
21216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21217 }
21218 arg2 = reinterpret_cast< wxFont * >(argp2);
21219 {
21220 PyThreadState* __tstate = wxPyBeginAllowThreads();
21221 (arg1)->SetFont((wxFont const &)*arg2);
21222 wxPyEndAllowThreads(__tstate);
21223 if (PyErr_Occurred()) SWIG_fail;
21224 }
21225 resultobj = SWIG_Py_Void();
21226 return resultobj;
21227 fail:
21228 return NULL;
21229 }
21230
21231
21232 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21233 PyObject *resultobj = 0;
21234 wxDC *arg1 = (wxDC *) 0 ;
21235 wxPen *arg2 = 0 ;
21236 void *argp1 = 0 ;
21237 int res1 = 0 ;
21238 void *argp2 = 0 ;
21239 int res2 = 0 ;
21240 PyObject * obj0 = 0 ;
21241 PyObject * obj1 = 0 ;
21242 char * kwnames[] = {
21243 (char *) "self",(char *) "pen", NULL
21244 };
21245
21246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
21247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21248 if (!SWIG_IsOK(res1)) {
21249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
21250 }
21251 arg1 = reinterpret_cast< wxDC * >(argp1);
21252 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
21253 if (!SWIG_IsOK(res2)) {
21254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21255 }
21256 if (!argp2) {
21257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21258 }
21259 arg2 = reinterpret_cast< wxPen * >(argp2);
21260 {
21261 PyThreadState* __tstate = wxPyBeginAllowThreads();
21262 (arg1)->SetPen((wxPen const &)*arg2);
21263 wxPyEndAllowThreads(__tstate);
21264 if (PyErr_Occurred()) SWIG_fail;
21265 }
21266 resultobj = SWIG_Py_Void();
21267 return resultobj;
21268 fail:
21269 return NULL;
21270 }
21271
21272
21273 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21274 PyObject *resultobj = 0;
21275 wxDC *arg1 = (wxDC *) 0 ;
21276 wxBrush *arg2 = 0 ;
21277 void *argp1 = 0 ;
21278 int res1 = 0 ;
21279 void *argp2 = 0 ;
21280 int res2 = 0 ;
21281 PyObject * obj0 = 0 ;
21282 PyObject * obj1 = 0 ;
21283 char * kwnames[] = {
21284 (char *) "self",(char *) "brush", NULL
21285 };
21286
21287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
21288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21289 if (!SWIG_IsOK(res1)) {
21290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
21291 }
21292 arg1 = reinterpret_cast< wxDC * >(argp1);
21293 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21294 if (!SWIG_IsOK(res2)) {
21295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21296 }
21297 if (!argp2) {
21298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21299 }
21300 arg2 = reinterpret_cast< wxBrush * >(argp2);
21301 {
21302 PyThreadState* __tstate = wxPyBeginAllowThreads();
21303 (arg1)->SetBrush((wxBrush const &)*arg2);
21304 wxPyEndAllowThreads(__tstate);
21305 if (PyErr_Occurred()) SWIG_fail;
21306 }
21307 resultobj = SWIG_Py_Void();
21308 return resultobj;
21309 fail:
21310 return NULL;
21311 }
21312
21313
21314 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21315 PyObject *resultobj = 0;
21316 wxDC *arg1 = (wxDC *) 0 ;
21317 wxBrush *arg2 = 0 ;
21318 void *argp1 = 0 ;
21319 int res1 = 0 ;
21320 void *argp2 = 0 ;
21321 int res2 = 0 ;
21322 PyObject * obj0 = 0 ;
21323 PyObject * obj1 = 0 ;
21324 char * kwnames[] = {
21325 (char *) "self",(char *) "brush", NULL
21326 };
21327
21328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21330 if (!SWIG_IsOK(res1)) {
21331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21332 }
21333 arg1 = reinterpret_cast< wxDC * >(argp1);
21334 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21335 if (!SWIG_IsOK(res2)) {
21336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21337 }
21338 if (!argp2) {
21339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21340 }
21341 arg2 = reinterpret_cast< wxBrush * >(argp2);
21342 {
21343 PyThreadState* __tstate = wxPyBeginAllowThreads();
21344 (arg1)->SetBackground((wxBrush const &)*arg2);
21345 wxPyEndAllowThreads(__tstate);
21346 if (PyErr_Occurred()) SWIG_fail;
21347 }
21348 resultobj = SWIG_Py_Void();
21349 return resultobj;
21350 fail:
21351 return NULL;
21352 }
21353
21354
21355 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21356 PyObject *resultobj = 0;
21357 wxDC *arg1 = (wxDC *) 0 ;
21358 int arg2 ;
21359 void *argp1 = 0 ;
21360 int res1 = 0 ;
21361 int val2 ;
21362 int ecode2 = 0 ;
21363 PyObject * obj0 = 0 ;
21364 PyObject * obj1 = 0 ;
21365 char * kwnames[] = {
21366 (char *) "self",(char *) "mode", NULL
21367 };
21368
21369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21371 if (!SWIG_IsOK(res1)) {
21372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21373 }
21374 arg1 = reinterpret_cast< wxDC * >(argp1);
21375 ecode2 = SWIG_AsVal_int(obj1, &val2);
21376 if (!SWIG_IsOK(ecode2)) {
21377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21378 }
21379 arg2 = static_cast< int >(val2);
21380 {
21381 PyThreadState* __tstate = wxPyBeginAllowThreads();
21382 (arg1)->SetBackgroundMode(arg2);
21383 wxPyEndAllowThreads(__tstate);
21384 if (PyErr_Occurred()) SWIG_fail;
21385 }
21386 resultobj = SWIG_Py_Void();
21387 return resultobj;
21388 fail:
21389 return NULL;
21390 }
21391
21392
21393 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21394 PyObject *resultobj = 0;
21395 wxDC *arg1 = (wxDC *) 0 ;
21396 wxPalette *arg2 = 0 ;
21397 void *argp1 = 0 ;
21398 int res1 = 0 ;
21399 void *argp2 = 0 ;
21400 int res2 = 0 ;
21401 PyObject * obj0 = 0 ;
21402 PyObject * obj1 = 0 ;
21403 char * kwnames[] = {
21404 (char *) "self",(char *) "palette", NULL
21405 };
21406
21407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21409 if (!SWIG_IsOK(res1)) {
21410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21411 }
21412 arg1 = reinterpret_cast< wxDC * >(argp1);
21413 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21414 if (!SWIG_IsOK(res2)) {
21415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21416 }
21417 if (!argp2) {
21418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21419 }
21420 arg2 = reinterpret_cast< wxPalette * >(argp2);
21421 {
21422 PyThreadState* __tstate = wxPyBeginAllowThreads();
21423 (arg1)->SetPalette((wxPalette const &)*arg2);
21424 wxPyEndAllowThreads(__tstate);
21425 if (PyErr_Occurred()) SWIG_fail;
21426 }
21427 resultobj = SWIG_Py_Void();
21428 return resultobj;
21429 fail:
21430 return NULL;
21431 }
21432
21433
21434 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21435 PyObject *resultobj = 0;
21436 wxDC *arg1 = (wxDC *) 0 ;
21437 void *argp1 = 0 ;
21438 int res1 = 0 ;
21439 PyObject *swig_obj[1] ;
21440
21441 if (!args) SWIG_fail;
21442 swig_obj[0] = args;
21443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21444 if (!SWIG_IsOK(res1)) {
21445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21446 }
21447 arg1 = reinterpret_cast< wxDC * >(argp1);
21448 {
21449 PyThreadState* __tstate = wxPyBeginAllowThreads();
21450 (arg1)->DestroyClippingRegion();
21451 wxPyEndAllowThreads(__tstate);
21452 if (PyErr_Occurred()) SWIG_fail;
21453 }
21454 resultobj = SWIG_Py_Void();
21455 return resultobj;
21456 fail:
21457 return NULL;
21458 }
21459
21460
21461 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21462 PyObject *resultobj = 0;
21463 wxDC *arg1 = (wxDC *) 0 ;
21464 int *arg2 = (int *) 0 ;
21465 int *arg3 = (int *) 0 ;
21466 int *arg4 = (int *) 0 ;
21467 int *arg5 = (int *) 0 ;
21468 void *argp1 = 0 ;
21469 int res1 = 0 ;
21470 int temp2 ;
21471 int res2 = SWIG_TMPOBJ ;
21472 int temp3 ;
21473 int res3 = SWIG_TMPOBJ ;
21474 int temp4 ;
21475 int res4 = SWIG_TMPOBJ ;
21476 int temp5 ;
21477 int res5 = SWIG_TMPOBJ ;
21478 PyObject *swig_obj[1] ;
21479
21480 arg2 = &temp2;
21481 arg3 = &temp3;
21482 arg4 = &temp4;
21483 arg5 = &temp5;
21484 if (!args) SWIG_fail;
21485 swig_obj[0] = args;
21486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21487 if (!SWIG_IsOK(res1)) {
21488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21489 }
21490 arg1 = reinterpret_cast< wxDC * >(argp1);
21491 {
21492 PyThreadState* __tstate = wxPyBeginAllowThreads();
21493 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21494 wxPyEndAllowThreads(__tstate);
21495 if (PyErr_Occurred()) SWIG_fail;
21496 }
21497 resultobj = SWIG_Py_Void();
21498 if (SWIG_IsTmpObj(res2)) {
21499 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21500 } else {
21501 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21502 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21503 }
21504 if (SWIG_IsTmpObj(res3)) {
21505 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21506 } else {
21507 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21508 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21509 }
21510 if (SWIG_IsTmpObj(res4)) {
21511 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21512 } else {
21513 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21514 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21515 }
21516 if (SWIG_IsTmpObj(res5)) {
21517 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21518 } else {
21519 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21520 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21521 }
21522 return resultobj;
21523 fail:
21524 return NULL;
21525 }
21526
21527
21528 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21529 PyObject *resultobj = 0;
21530 wxDC *arg1 = (wxDC *) 0 ;
21531 wxRect result;
21532 void *argp1 = 0 ;
21533 int res1 = 0 ;
21534 PyObject *swig_obj[1] ;
21535
21536 if (!args) SWIG_fail;
21537 swig_obj[0] = args;
21538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21539 if (!SWIG_IsOK(res1)) {
21540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21541 }
21542 arg1 = reinterpret_cast< wxDC * >(argp1);
21543 {
21544 PyThreadState* __tstate = wxPyBeginAllowThreads();
21545 result = wxDC_GetClippingRect(arg1);
21546 wxPyEndAllowThreads(__tstate);
21547 if (PyErr_Occurred()) SWIG_fail;
21548 }
21549 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21550 return resultobj;
21551 fail:
21552 return NULL;
21553 }
21554
21555
21556 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21557 PyObject *resultobj = 0;
21558 wxDC *arg1 = (wxDC *) 0 ;
21559 int result;
21560 void *argp1 = 0 ;
21561 int res1 = 0 ;
21562 PyObject *swig_obj[1] ;
21563
21564 if (!args) SWIG_fail;
21565 swig_obj[0] = args;
21566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21567 if (!SWIG_IsOK(res1)) {
21568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21569 }
21570 arg1 = reinterpret_cast< wxDC * >(argp1);
21571 {
21572 PyThreadState* __tstate = wxPyBeginAllowThreads();
21573 result = (int)((wxDC const *)arg1)->GetCharHeight();
21574 wxPyEndAllowThreads(__tstate);
21575 if (PyErr_Occurred()) SWIG_fail;
21576 }
21577 resultobj = SWIG_From_int(static_cast< int >(result));
21578 return resultobj;
21579 fail:
21580 return NULL;
21581 }
21582
21583
21584 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21585 PyObject *resultobj = 0;
21586 wxDC *arg1 = (wxDC *) 0 ;
21587 int result;
21588 void *argp1 = 0 ;
21589 int res1 = 0 ;
21590 PyObject *swig_obj[1] ;
21591
21592 if (!args) SWIG_fail;
21593 swig_obj[0] = args;
21594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21595 if (!SWIG_IsOK(res1)) {
21596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21597 }
21598 arg1 = reinterpret_cast< wxDC * >(argp1);
21599 {
21600 PyThreadState* __tstate = wxPyBeginAllowThreads();
21601 result = (int)((wxDC const *)arg1)->GetCharWidth();
21602 wxPyEndAllowThreads(__tstate);
21603 if (PyErr_Occurred()) SWIG_fail;
21604 }
21605 resultobj = SWIG_From_int(static_cast< int >(result));
21606 return resultobj;
21607 fail:
21608 return NULL;
21609 }
21610
21611
21612 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21613 PyObject *resultobj = 0;
21614 wxDC *arg1 = (wxDC *) 0 ;
21615 wxString *arg2 = 0 ;
21616 int *arg3 = (int *) 0 ;
21617 int *arg4 = (int *) 0 ;
21618 void *argp1 = 0 ;
21619 int res1 = 0 ;
21620 bool temp2 = false ;
21621 int temp3 ;
21622 int res3 = SWIG_TMPOBJ ;
21623 int temp4 ;
21624 int res4 = SWIG_TMPOBJ ;
21625 PyObject * obj0 = 0 ;
21626 PyObject * obj1 = 0 ;
21627 char * kwnames[] = {
21628 (char *) "self",(char *) "string", NULL
21629 };
21630
21631 arg3 = &temp3;
21632 arg4 = &temp4;
21633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21635 if (!SWIG_IsOK(res1)) {
21636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21637 }
21638 arg1 = reinterpret_cast< wxDC * >(argp1);
21639 {
21640 arg2 = wxString_in_helper(obj1);
21641 if (arg2 == NULL) SWIG_fail;
21642 temp2 = true;
21643 }
21644 {
21645 PyThreadState* __tstate = wxPyBeginAllowThreads();
21646 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21647 wxPyEndAllowThreads(__tstate);
21648 if (PyErr_Occurred()) SWIG_fail;
21649 }
21650 resultobj = SWIG_Py_Void();
21651 if (SWIG_IsTmpObj(res3)) {
21652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21653 } else {
21654 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21656 }
21657 if (SWIG_IsTmpObj(res4)) {
21658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21659 } else {
21660 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21662 }
21663 {
21664 if (temp2)
21665 delete arg2;
21666 }
21667 return resultobj;
21668 fail:
21669 {
21670 if (temp2)
21671 delete arg2;
21672 }
21673 return NULL;
21674 }
21675
21676
21677 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21678 PyObject *resultobj = 0;
21679 wxDC *arg1 = (wxDC *) 0 ;
21680 wxString *arg2 = 0 ;
21681 int *arg3 = (int *) 0 ;
21682 int *arg4 = (int *) 0 ;
21683 int *arg5 = (int *) 0 ;
21684 int *arg6 = (int *) 0 ;
21685 wxFont *arg7 = (wxFont *) NULL ;
21686 void *argp1 = 0 ;
21687 int res1 = 0 ;
21688 bool temp2 = false ;
21689 int temp3 ;
21690 int res3 = SWIG_TMPOBJ ;
21691 int temp4 ;
21692 int res4 = SWIG_TMPOBJ ;
21693 int temp5 ;
21694 int res5 = SWIG_TMPOBJ ;
21695 int temp6 ;
21696 int res6 = SWIG_TMPOBJ ;
21697 void *argp7 = 0 ;
21698 int res7 = 0 ;
21699 PyObject * obj0 = 0 ;
21700 PyObject * obj1 = 0 ;
21701 PyObject * obj2 = 0 ;
21702 char * kwnames[] = {
21703 (char *) "self",(char *) "string",(char *) "font", NULL
21704 };
21705
21706 arg3 = &temp3;
21707 arg4 = &temp4;
21708 arg5 = &temp5;
21709 arg6 = &temp6;
21710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21712 if (!SWIG_IsOK(res1)) {
21713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21714 }
21715 arg1 = reinterpret_cast< wxDC * >(argp1);
21716 {
21717 arg2 = wxString_in_helper(obj1);
21718 if (arg2 == NULL) SWIG_fail;
21719 temp2 = true;
21720 }
21721 if (obj2) {
21722 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21723 if (!SWIG_IsOK(res7)) {
21724 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21725 }
21726 arg7 = reinterpret_cast< wxFont * >(argp7);
21727 }
21728 {
21729 PyThreadState* __tstate = wxPyBeginAllowThreads();
21730 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21731 wxPyEndAllowThreads(__tstate);
21732 if (PyErr_Occurred()) SWIG_fail;
21733 }
21734 resultobj = SWIG_Py_Void();
21735 if (SWIG_IsTmpObj(res3)) {
21736 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21737 } else {
21738 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21739 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21740 }
21741 if (SWIG_IsTmpObj(res4)) {
21742 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21743 } else {
21744 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21745 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21746 }
21747 if (SWIG_IsTmpObj(res5)) {
21748 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21749 } else {
21750 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21751 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21752 }
21753 if (SWIG_IsTmpObj(res6)) {
21754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21755 } else {
21756 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21758 }
21759 {
21760 if (temp2)
21761 delete arg2;
21762 }
21763 return resultobj;
21764 fail:
21765 {
21766 if (temp2)
21767 delete arg2;
21768 }
21769 return NULL;
21770 }
21771
21772
21773 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21774 PyObject *resultobj = 0;
21775 wxDC *arg1 = (wxDC *) 0 ;
21776 wxString *arg2 = 0 ;
21777 int *arg3 = (int *) 0 ;
21778 int *arg4 = (int *) 0 ;
21779 int *arg5 = (int *) 0 ;
21780 wxFont *arg6 = (wxFont *) NULL ;
21781 void *argp1 = 0 ;
21782 int res1 = 0 ;
21783 bool temp2 = false ;
21784 int temp3 ;
21785 int res3 = SWIG_TMPOBJ ;
21786 int temp4 ;
21787 int res4 = SWIG_TMPOBJ ;
21788 int temp5 ;
21789 int res5 = SWIG_TMPOBJ ;
21790 void *argp6 = 0 ;
21791 int res6 = 0 ;
21792 PyObject * obj0 = 0 ;
21793 PyObject * obj1 = 0 ;
21794 PyObject * obj2 = 0 ;
21795 char * kwnames[] = {
21796 (char *) "self",(char *) "text",(char *) "font", NULL
21797 };
21798
21799 arg3 = &temp3;
21800 arg4 = &temp4;
21801 arg5 = &temp5;
21802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21804 if (!SWIG_IsOK(res1)) {
21805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21806 }
21807 arg1 = reinterpret_cast< wxDC * >(argp1);
21808 {
21809 arg2 = wxString_in_helper(obj1);
21810 if (arg2 == NULL) SWIG_fail;
21811 temp2 = true;
21812 }
21813 if (obj2) {
21814 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21815 if (!SWIG_IsOK(res6)) {
21816 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21817 }
21818 arg6 = reinterpret_cast< wxFont * >(argp6);
21819 }
21820 {
21821 PyThreadState* __tstate = wxPyBeginAllowThreads();
21822 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21823 wxPyEndAllowThreads(__tstate);
21824 if (PyErr_Occurred()) SWIG_fail;
21825 }
21826 resultobj = SWIG_Py_Void();
21827 if (SWIG_IsTmpObj(res3)) {
21828 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21829 } else {
21830 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21831 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21832 }
21833 if (SWIG_IsTmpObj(res4)) {
21834 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21835 } else {
21836 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21837 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21838 }
21839 if (SWIG_IsTmpObj(res5)) {
21840 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21841 } else {
21842 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21843 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21844 }
21845 {
21846 if (temp2)
21847 delete arg2;
21848 }
21849 return resultobj;
21850 fail:
21851 {
21852 if (temp2)
21853 delete arg2;
21854 }
21855 return NULL;
21856 }
21857
21858
21859 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21860 PyObject *resultobj = 0;
21861 wxDC *arg1 = (wxDC *) 0 ;
21862 wxString *arg2 = 0 ;
21863 wxArrayInt result;
21864 void *argp1 = 0 ;
21865 int res1 = 0 ;
21866 bool temp2 = false ;
21867 PyObject * obj0 = 0 ;
21868 PyObject * obj1 = 0 ;
21869 char * kwnames[] = {
21870 (char *) "self",(char *) "text", NULL
21871 };
21872
21873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21875 if (!SWIG_IsOK(res1)) {
21876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21877 }
21878 arg1 = reinterpret_cast< wxDC * >(argp1);
21879 {
21880 arg2 = wxString_in_helper(obj1);
21881 if (arg2 == NULL) SWIG_fail;
21882 temp2 = true;
21883 }
21884 {
21885 PyThreadState* __tstate = wxPyBeginAllowThreads();
21886 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21887 wxPyEndAllowThreads(__tstate);
21888 if (PyErr_Occurred()) SWIG_fail;
21889 }
21890 {
21891 resultobj = wxArrayInt2PyList_helper(result);
21892 }
21893 {
21894 if (temp2)
21895 delete arg2;
21896 }
21897 return resultobj;
21898 fail:
21899 {
21900 if (temp2)
21901 delete arg2;
21902 }
21903 return NULL;
21904 }
21905
21906
21907 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21908 PyObject *resultobj = 0;
21909 wxDC *arg1 = (wxDC *) 0 ;
21910 wxSize result;
21911 void *argp1 = 0 ;
21912 int res1 = 0 ;
21913 PyObject *swig_obj[1] ;
21914
21915 if (!args) SWIG_fail;
21916 swig_obj[0] = args;
21917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21918 if (!SWIG_IsOK(res1)) {
21919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21920 }
21921 arg1 = reinterpret_cast< wxDC * >(argp1);
21922 {
21923 PyThreadState* __tstate = wxPyBeginAllowThreads();
21924 result = (arg1)->GetSize();
21925 wxPyEndAllowThreads(__tstate);
21926 if (PyErr_Occurred()) SWIG_fail;
21927 }
21928 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21929 return resultobj;
21930 fail:
21931 return NULL;
21932 }
21933
21934
21935 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21936 PyObject *resultobj = 0;
21937 wxDC *arg1 = (wxDC *) 0 ;
21938 int *arg2 = (int *) 0 ;
21939 int *arg3 = (int *) 0 ;
21940 void *argp1 = 0 ;
21941 int res1 = 0 ;
21942 int temp2 ;
21943 int res2 = SWIG_TMPOBJ ;
21944 int temp3 ;
21945 int res3 = SWIG_TMPOBJ ;
21946 PyObject *swig_obj[1] ;
21947
21948 arg2 = &temp2;
21949 arg3 = &temp3;
21950 if (!args) SWIG_fail;
21951 swig_obj[0] = args;
21952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21953 if (!SWIG_IsOK(res1)) {
21954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21955 }
21956 arg1 = reinterpret_cast< wxDC * >(argp1);
21957 {
21958 PyThreadState* __tstate = wxPyBeginAllowThreads();
21959 (arg1)->GetSize(arg2,arg3);
21960 wxPyEndAllowThreads(__tstate);
21961 if (PyErr_Occurred()) SWIG_fail;
21962 }
21963 resultobj = SWIG_Py_Void();
21964 if (SWIG_IsTmpObj(res2)) {
21965 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21966 } else {
21967 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21968 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21969 }
21970 if (SWIG_IsTmpObj(res3)) {
21971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21972 } else {
21973 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21975 }
21976 return resultobj;
21977 fail:
21978 return NULL;
21979 }
21980
21981
21982 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21983 PyObject *resultobj = 0;
21984 wxDC *arg1 = (wxDC *) 0 ;
21985 wxSize result;
21986 void *argp1 = 0 ;
21987 int res1 = 0 ;
21988 PyObject *swig_obj[1] ;
21989
21990 if (!args) SWIG_fail;
21991 swig_obj[0] = args;
21992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21993 if (!SWIG_IsOK(res1)) {
21994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21995 }
21996 arg1 = reinterpret_cast< wxDC * >(argp1);
21997 {
21998 PyThreadState* __tstate = wxPyBeginAllowThreads();
21999 result = ((wxDC const *)arg1)->GetSizeMM();
22000 wxPyEndAllowThreads(__tstate);
22001 if (PyErr_Occurred()) SWIG_fail;
22002 }
22003 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22004 return resultobj;
22005 fail:
22006 return NULL;
22007 }
22008
22009
22010 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22011 PyObject *resultobj = 0;
22012 wxDC *arg1 = (wxDC *) 0 ;
22013 int *arg2 = (int *) 0 ;
22014 int *arg3 = (int *) 0 ;
22015 void *argp1 = 0 ;
22016 int res1 = 0 ;
22017 int temp2 ;
22018 int res2 = SWIG_TMPOBJ ;
22019 int temp3 ;
22020 int res3 = SWIG_TMPOBJ ;
22021 PyObject *swig_obj[1] ;
22022
22023 arg2 = &temp2;
22024 arg3 = &temp3;
22025 if (!args) SWIG_fail;
22026 swig_obj[0] = args;
22027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22028 if (!SWIG_IsOK(res1)) {
22029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22030 }
22031 arg1 = reinterpret_cast< wxDC * >(argp1);
22032 {
22033 PyThreadState* __tstate = wxPyBeginAllowThreads();
22034 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
22035 wxPyEndAllowThreads(__tstate);
22036 if (PyErr_Occurred()) SWIG_fail;
22037 }
22038 resultobj = SWIG_Py_Void();
22039 if (SWIG_IsTmpObj(res2)) {
22040 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22041 } else {
22042 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22043 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22044 }
22045 if (SWIG_IsTmpObj(res3)) {
22046 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22047 } else {
22048 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22049 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22050 }
22051 return resultobj;
22052 fail:
22053 return NULL;
22054 }
22055
22056
22057 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22058 PyObject *resultobj = 0;
22059 wxDC *arg1 = (wxDC *) 0 ;
22060 int arg2 ;
22061 int result;
22062 void *argp1 = 0 ;
22063 int res1 = 0 ;
22064 int val2 ;
22065 int ecode2 = 0 ;
22066 PyObject * obj0 = 0 ;
22067 PyObject * obj1 = 0 ;
22068 char * kwnames[] = {
22069 (char *) "self",(char *) "x", NULL
22070 };
22071
22072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
22073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22074 if (!SWIG_IsOK(res1)) {
22075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
22076 }
22077 arg1 = reinterpret_cast< wxDC * >(argp1);
22078 ecode2 = SWIG_AsVal_int(obj1, &val2);
22079 if (!SWIG_IsOK(ecode2)) {
22080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
22081 }
22082 arg2 = static_cast< int >(val2);
22083 {
22084 PyThreadState* __tstate = wxPyBeginAllowThreads();
22085 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
22086 wxPyEndAllowThreads(__tstate);
22087 if (PyErr_Occurred()) SWIG_fail;
22088 }
22089 resultobj = SWIG_From_int(static_cast< int >(result));
22090 return resultobj;
22091 fail:
22092 return NULL;
22093 }
22094
22095
22096 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22097 PyObject *resultobj = 0;
22098 wxDC *arg1 = (wxDC *) 0 ;
22099 int arg2 ;
22100 int result;
22101 void *argp1 = 0 ;
22102 int res1 = 0 ;
22103 int val2 ;
22104 int ecode2 = 0 ;
22105 PyObject * obj0 = 0 ;
22106 PyObject * obj1 = 0 ;
22107 char * kwnames[] = {
22108 (char *) "self",(char *) "y", NULL
22109 };
22110
22111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
22112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22113 if (!SWIG_IsOK(res1)) {
22114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
22115 }
22116 arg1 = reinterpret_cast< wxDC * >(argp1);
22117 ecode2 = SWIG_AsVal_int(obj1, &val2);
22118 if (!SWIG_IsOK(ecode2)) {
22119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
22120 }
22121 arg2 = static_cast< int >(val2);
22122 {
22123 PyThreadState* __tstate = wxPyBeginAllowThreads();
22124 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
22125 wxPyEndAllowThreads(__tstate);
22126 if (PyErr_Occurred()) SWIG_fail;
22127 }
22128 resultobj = SWIG_From_int(static_cast< int >(result));
22129 return resultobj;
22130 fail:
22131 return NULL;
22132 }
22133
22134
22135 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22136 PyObject *resultobj = 0;
22137 wxDC *arg1 = (wxDC *) 0 ;
22138 int arg2 ;
22139 int result;
22140 void *argp1 = 0 ;
22141 int res1 = 0 ;
22142 int val2 ;
22143 int ecode2 = 0 ;
22144 PyObject * obj0 = 0 ;
22145 PyObject * obj1 = 0 ;
22146 char * kwnames[] = {
22147 (char *) "self",(char *) "x", NULL
22148 };
22149
22150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22152 if (!SWIG_IsOK(res1)) {
22153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22154 }
22155 arg1 = reinterpret_cast< wxDC * >(argp1);
22156 ecode2 = SWIG_AsVal_int(obj1, &val2);
22157 if (!SWIG_IsOK(ecode2)) {
22158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
22159 }
22160 arg2 = static_cast< int >(val2);
22161 {
22162 PyThreadState* __tstate = wxPyBeginAllowThreads();
22163 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
22164 wxPyEndAllowThreads(__tstate);
22165 if (PyErr_Occurred()) SWIG_fail;
22166 }
22167 resultobj = SWIG_From_int(static_cast< int >(result));
22168 return resultobj;
22169 fail:
22170 return NULL;
22171 }
22172
22173
22174 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22175 PyObject *resultobj = 0;
22176 wxDC *arg1 = (wxDC *) 0 ;
22177 int arg2 ;
22178 int result;
22179 void *argp1 = 0 ;
22180 int res1 = 0 ;
22181 int val2 ;
22182 int ecode2 = 0 ;
22183 PyObject * obj0 = 0 ;
22184 PyObject * obj1 = 0 ;
22185 char * kwnames[] = {
22186 (char *) "self",(char *) "y", NULL
22187 };
22188
22189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22191 if (!SWIG_IsOK(res1)) {
22192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22193 }
22194 arg1 = reinterpret_cast< wxDC * >(argp1);
22195 ecode2 = SWIG_AsVal_int(obj1, &val2);
22196 if (!SWIG_IsOK(ecode2)) {
22197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
22198 }
22199 arg2 = static_cast< int >(val2);
22200 {
22201 PyThreadState* __tstate = wxPyBeginAllowThreads();
22202 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
22203 wxPyEndAllowThreads(__tstate);
22204 if (PyErr_Occurred()) SWIG_fail;
22205 }
22206 resultobj = SWIG_From_int(static_cast< int >(result));
22207 return resultobj;
22208 fail:
22209 return NULL;
22210 }
22211
22212
22213 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22214 PyObject *resultobj = 0;
22215 wxDC *arg1 = (wxDC *) 0 ;
22216 int arg2 ;
22217 int result;
22218 void *argp1 = 0 ;
22219 int res1 = 0 ;
22220 int val2 ;
22221 int ecode2 = 0 ;
22222 PyObject * obj0 = 0 ;
22223 PyObject * obj1 = 0 ;
22224 char * kwnames[] = {
22225 (char *) "self",(char *) "x", NULL
22226 };
22227
22228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
22229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22230 if (!SWIG_IsOK(res1)) {
22231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
22232 }
22233 arg1 = reinterpret_cast< wxDC * >(argp1);
22234 ecode2 = SWIG_AsVal_int(obj1, &val2);
22235 if (!SWIG_IsOK(ecode2)) {
22236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
22237 }
22238 arg2 = static_cast< int >(val2);
22239 {
22240 PyThreadState* __tstate = wxPyBeginAllowThreads();
22241 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
22242 wxPyEndAllowThreads(__tstate);
22243 if (PyErr_Occurred()) SWIG_fail;
22244 }
22245 resultobj = SWIG_From_int(static_cast< int >(result));
22246 return resultobj;
22247 fail:
22248 return NULL;
22249 }
22250
22251
22252 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22253 PyObject *resultobj = 0;
22254 wxDC *arg1 = (wxDC *) 0 ;
22255 int arg2 ;
22256 int result;
22257 void *argp1 = 0 ;
22258 int res1 = 0 ;
22259 int val2 ;
22260 int ecode2 = 0 ;
22261 PyObject * obj0 = 0 ;
22262 PyObject * obj1 = 0 ;
22263 char * kwnames[] = {
22264 (char *) "self",(char *) "y", NULL
22265 };
22266
22267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
22268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22269 if (!SWIG_IsOK(res1)) {
22270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
22271 }
22272 arg1 = reinterpret_cast< wxDC * >(argp1);
22273 ecode2 = SWIG_AsVal_int(obj1, &val2);
22274 if (!SWIG_IsOK(ecode2)) {
22275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
22276 }
22277 arg2 = static_cast< int >(val2);
22278 {
22279 PyThreadState* __tstate = wxPyBeginAllowThreads();
22280 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
22281 wxPyEndAllowThreads(__tstate);
22282 if (PyErr_Occurred()) SWIG_fail;
22283 }
22284 resultobj = SWIG_From_int(static_cast< int >(result));
22285 return resultobj;
22286 fail:
22287 return NULL;
22288 }
22289
22290
22291 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22292 PyObject *resultobj = 0;
22293 wxDC *arg1 = (wxDC *) 0 ;
22294 int arg2 ;
22295 int result;
22296 void *argp1 = 0 ;
22297 int res1 = 0 ;
22298 int val2 ;
22299 int ecode2 = 0 ;
22300 PyObject * obj0 = 0 ;
22301 PyObject * obj1 = 0 ;
22302 char * kwnames[] = {
22303 (char *) "self",(char *) "x", NULL
22304 };
22305
22306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22308 if (!SWIG_IsOK(res1)) {
22309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22310 }
22311 arg1 = reinterpret_cast< wxDC * >(argp1);
22312 ecode2 = SWIG_AsVal_int(obj1, &val2);
22313 if (!SWIG_IsOK(ecode2)) {
22314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22315 }
22316 arg2 = static_cast< int >(val2);
22317 {
22318 PyThreadState* __tstate = wxPyBeginAllowThreads();
22319 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22320 wxPyEndAllowThreads(__tstate);
22321 if (PyErr_Occurred()) SWIG_fail;
22322 }
22323 resultobj = SWIG_From_int(static_cast< int >(result));
22324 return resultobj;
22325 fail:
22326 return NULL;
22327 }
22328
22329
22330 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22331 PyObject *resultobj = 0;
22332 wxDC *arg1 = (wxDC *) 0 ;
22333 int arg2 ;
22334 int result;
22335 void *argp1 = 0 ;
22336 int res1 = 0 ;
22337 int val2 ;
22338 int ecode2 = 0 ;
22339 PyObject * obj0 = 0 ;
22340 PyObject * obj1 = 0 ;
22341 char * kwnames[] = {
22342 (char *) "self",(char *) "y", NULL
22343 };
22344
22345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22347 if (!SWIG_IsOK(res1)) {
22348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22349 }
22350 arg1 = reinterpret_cast< wxDC * >(argp1);
22351 ecode2 = SWIG_AsVal_int(obj1, &val2);
22352 if (!SWIG_IsOK(ecode2)) {
22353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22354 }
22355 arg2 = static_cast< int >(val2);
22356 {
22357 PyThreadState* __tstate = wxPyBeginAllowThreads();
22358 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22359 wxPyEndAllowThreads(__tstate);
22360 if (PyErr_Occurred()) SWIG_fail;
22361 }
22362 resultobj = SWIG_From_int(static_cast< int >(result));
22363 return resultobj;
22364 fail:
22365 return NULL;
22366 }
22367
22368
22369 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22370 PyObject *resultobj = 0;
22371 wxDC *arg1 = (wxDC *) 0 ;
22372 bool result;
22373 void *argp1 = 0 ;
22374 int res1 = 0 ;
22375 PyObject *swig_obj[1] ;
22376
22377 if (!args) SWIG_fail;
22378 swig_obj[0] = args;
22379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22380 if (!SWIG_IsOK(res1)) {
22381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22382 }
22383 arg1 = reinterpret_cast< wxDC * >(argp1);
22384 {
22385 PyThreadState* __tstate = wxPyBeginAllowThreads();
22386 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22387 wxPyEndAllowThreads(__tstate);
22388 if (PyErr_Occurred()) SWIG_fail;
22389 }
22390 {
22391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22392 }
22393 return resultobj;
22394 fail:
22395 return NULL;
22396 }
22397
22398
22399 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22400 PyObject *resultobj = 0;
22401 wxDC *arg1 = (wxDC *) 0 ;
22402 bool result;
22403 void *argp1 = 0 ;
22404 int res1 = 0 ;
22405 PyObject *swig_obj[1] ;
22406
22407 if (!args) SWIG_fail;
22408 swig_obj[0] = args;
22409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22410 if (!SWIG_IsOK(res1)) {
22411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22412 }
22413 arg1 = reinterpret_cast< wxDC * >(argp1);
22414 {
22415 PyThreadState* __tstate = wxPyBeginAllowThreads();
22416 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22417 wxPyEndAllowThreads(__tstate);
22418 if (PyErr_Occurred()) SWIG_fail;
22419 }
22420 {
22421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22422 }
22423 return resultobj;
22424 fail:
22425 return NULL;
22426 }
22427
22428
22429 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22430 PyObject *resultobj = 0;
22431 wxDC *arg1 = (wxDC *) 0 ;
22432 int result;
22433 void *argp1 = 0 ;
22434 int res1 = 0 ;
22435 PyObject *swig_obj[1] ;
22436
22437 if (!args) SWIG_fail;
22438 swig_obj[0] = args;
22439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22440 if (!SWIG_IsOK(res1)) {
22441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22442 }
22443 arg1 = reinterpret_cast< wxDC * >(argp1);
22444 {
22445 PyThreadState* __tstate = wxPyBeginAllowThreads();
22446 result = (int)((wxDC const *)arg1)->GetDepth();
22447 wxPyEndAllowThreads(__tstate);
22448 if (PyErr_Occurred()) SWIG_fail;
22449 }
22450 resultobj = SWIG_From_int(static_cast< int >(result));
22451 return resultobj;
22452 fail:
22453 return NULL;
22454 }
22455
22456
22457 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22458 PyObject *resultobj = 0;
22459 wxDC *arg1 = (wxDC *) 0 ;
22460 wxSize result;
22461 void *argp1 = 0 ;
22462 int res1 = 0 ;
22463 PyObject *swig_obj[1] ;
22464
22465 if (!args) SWIG_fail;
22466 swig_obj[0] = args;
22467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22468 if (!SWIG_IsOK(res1)) {
22469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22470 }
22471 arg1 = reinterpret_cast< wxDC * >(argp1);
22472 {
22473 PyThreadState* __tstate = wxPyBeginAllowThreads();
22474 result = ((wxDC const *)arg1)->GetPPI();
22475 wxPyEndAllowThreads(__tstate);
22476 if (PyErr_Occurred()) SWIG_fail;
22477 }
22478 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22479 return resultobj;
22480 fail:
22481 return NULL;
22482 }
22483
22484
22485 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22486 PyObject *resultobj = 0;
22487 wxDC *arg1 = (wxDC *) 0 ;
22488 bool result;
22489 void *argp1 = 0 ;
22490 int res1 = 0 ;
22491 PyObject *swig_obj[1] ;
22492
22493 if (!args) SWIG_fail;
22494 swig_obj[0] = args;
22495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22496 if (!SWIG_IsOK(res1)) {
22497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
22498 }
22499 arg1 = reinterpret_cast< wxDC * >(argp1);
22500 {
22501 PyThreadState* __tstate = wxPyBeginAllowThreads();
22502 result = (bool)((wxDC const *)arg1)->IsOk();
22503 wxPyEndAllowThreads(__tstate);
22504 if (PyErr_Occurred()) SWIG_fail;
22505 }
22506 {
22507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22508 }
22509 return resultobj;
22510 fail:
22511 return NULL;
22512 }
22513
22514
22515 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22516 PyObject *resultobj = 0;
22517 wxDC *arg1 = (wxDC *) 0 ;
22518 int result;
22519 void *argp1 = 0 ;
22520 int res1 = 0 ;
22521 PyObject *swig_obj[1] ;
22522
22523 if (!args) SWIG_fail;
22524 swig_obj[0] = args;
22525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22526 if (!SWIG_IsOK(res1)) {
22527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22528 }
22529 arg1 = reinterpret_cast< wxDC * >(argp1);
22530 {
22531 PyThreadState* __tstate = wxPyBeginAllowThreads();
22532 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22533 wxPyEndAllowThreads(__tstate);
22534 if (PyErr_Occurred()) SWIG_fail;
22535 }
22536 resultobj = SWIG_From_int(static_cast< int >(result));
22537 return resultobj;
22538 fail:
22539 return NULL;
22540 }
22541
22542
22543 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22544 PyObject *resultobj = 0;
22545 wxDC *arg1 = (wxDC *) 0 ;
22546 wxBrush *result = 0 ;
22547 void *argp1 = 0 ;
22548 int res1 = 0 ;
22549 PyObject *swig_obj[1] ;
22550
22551 if (!args) SWIG_fail;
22552 swig_obj[0] = args;
22553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22554 if (!SWIG_IsOK(res1)) {
22555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22556 }
22557 arg1 = reinterpret_cast< wxDC * >(argp1);
22558 {
22559 PyThreadState* __tstate = wxPyBeginAllowThreads();
22560 {
22561 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22562 result = (wxBrush *) &_result_ref;
22563 }
22564 wxPyEndAllowThreads(__tstate);
22565 if (PyErr_Occurred()) SWIG_fail;
22566 }
22567 {
22568 wxBrush* resultptr = new wxBrush(*result);
22569 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22570 }
22571 return resultobj;
22572 fail:
22573 return NULL;
22574 }
22575
22576
22577 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22578 PyObject *resultobj = 0;
22579 wxDC *arg1 = (wxDC *) 0 ;
22580 wxBrush *result = 0 ;
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_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22590 }
22591 arg1 = reinterpret_cast< wxDC * >(argp1);
22592 {
22593 PyThreadState* __tstate = wxPyBeginAllowThreads();
22594 {
22595 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22596 result = (wxBrush *) &_result_ref;
22597 }
22598 wxPyEndAllowThreads(__tstate);
22599 if (PyErr_Occurred()) SWIG_fail;
22600 }
22601 {
22602 wxBrush* resultptr = new wxBrush(*result);
22603 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22604 }
22605 return resultobj;
22606 fail:
22607 return NULL;
22608 }
22609
22610
22611 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22612 PyObject *resultobj = 0;
22613 wxDC *arg1 = (wxDC *) 0 ;
22614 wxFont *result = 0 ;
22615 void *argp1 = 0 ;
22616 int res1 = 0 ;
22617 PyObject *swig_obj[1] ;
22618
22619 if (!args) SWIG_fail;
22620 swig_obj[0] = args;
22621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22622 if (!SWIG_IsOK(res1)) {
22623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22624 }
22625 arg1 = reinterpret_cast< wxDC * >(argp1);
22626 {
22627 PyThreadState* __tstate = wxPyBeginAllowThreads();
22628 {
22629 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22630 result = (wxFont *) &_result_ref;
22631 }
22632 wxPyEndAllowThreads(__tstate);
22633 if (PyErr_Occurred()) SWIG_fail;
22634 }
22635 {
22636 wxFont* resultptr = new wxFont(*result);
22637 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22638 }
22639 return resultobj;
22640 fail:
22641 return NULL;
22642 }
22643
22644
22645 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22646 PyObject *resultobj = 0;
22647 wxDC *arg1 = (wxDC *) 0 ;
22648 wxPen *result = 0 ;
22649 void *argp1 = 0 ;
22650 int res1 = 0 ;
22651 PyObject *swig_obj[1] ;
22652
22653 if (!args) SWIG_fail;
22654 swig_obj[0] = args;
22655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22656 if (!SWIG_IsOK(res1)) {
22657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22658 }
22659 arg1 = reinterpret_cast< wxDC * >(argp1);
22660 {
22661 PyThreadState* __tstate = wxPyBeginAllowThreads();
22662 {
22663 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22664 result = (wxPen *) &_result_ref;
22665 }
22666 wxPyEndAllowThreads(__tstate);
22667 if (PyErr_Occurred()) SWIG_fail;
22668 }
22669 {
22670 wxPen* resultptr = new wxPen(*result);
22671 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22672 }
22673 return resultobj;
22674 fail:
22675 return NULL;
22676 }
22677
22678
22679 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22680 PyObject *resultobj = 0;
22681 wxDC *arg1 = (wxDC *) 0 ;
22682 wxColour *result = 0 ;
22683 void *argp1 = 0 ;
22684 int res1 = 0 ;
22685 PyObject *swig_obj[1] ;
22686
22687 if (!args) SWIG_fail;
22688 swig_obj[0] = args;
22689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22690 if (!SWIG_IsOK(res1)) {
22691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22692 }
22693 arg1 = reinterpret_cast< wxDC * >(argp1);
22694 {
22695 PyThreadState* __tstate = wxPyBeginAllowThreads();
22696 {
22697 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22698 result = (wxColour *) &_result_ref;
22699 }
22700 wxPyEndAllowThreads(__tstate);
22701 if (PyErr_Occurred()) SWIG_fail;
22702 }
22703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22704 return resultobj;
22705 fail:
22706 return NULL;
22707 }
22708
22709
22710 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22711 PyObject *resultobj = 0;
22712 wxDC *arg1 = (wxDC *) 0 ;
22713 wxColour *result = 0 ;
22714 void *argp1 = 0 ;
22715 int res1 = 0 ;
22716 PyObject *swig_obj[1] ;
22717
22718 if (!args) SWIG_fail;
22719 swig_obj[0] = args;
22720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22721 if (!SWIG_IsOK(res1)) {
22722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22723 }
22724 arg1 = reinterpret_cast< wxDC * >(argp1);
22725 {
22726 PyThreadState* __tstate = wxPyBeginAllowThreads();
22727 {
22728 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22729 result = (wxColour *) &_result_ref;
22730 }
22731 wxPyEndAllowThreads(__tstate);
22732 if (PyErr_Occurred()) SWIG_fail;
22733 }
22734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22735 return resultobj;
22736 fail:
22737 return NULL;
22738 }
22739
22740
22741 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22742 PyObject *resultobj = 0;
22743 wxDC *arg1 = (wxDC *) 0 ;
22744 wxColour *arg2 = 0 ;
22745 void *argp1 = 0 ;
22746 int res1 = 0 ;
22747 wxColour temp2 ;
22748 PyObject * obj0 = 0 ;
22749 PyObject * obj1 = 0 ;
22750 char * kwnames[] = {
22751 (char *) "self",(char *) "colour", NULL
22752 };
22753
22754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22756 if (!SWIG_IsOK(res1)) {
22757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22758 }
22759 arg1 = reinterpret_cast< wxDC * >(argp1);
22760 {
22761 arg2 = &temp2;
22762 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22763 }
22764 {
22765 PyThreadState* __tstate = wxPyBeginAllowThreads();
22766 (arg1)->SetTextForeground((wxColour const &)*arg2);
22767 wxPyEndAllowThreads(__tstate);
22768 if (PyErr_Occurred()) SWIG_fail;
22769 }
22770 resultobj = SWIG_Py_Void();
22771 return resultobj;
22772 fail:
22773 return NULL;
22774 }
22775
22776
22777 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22778 PyObject *resultobj = 0;
22779 wxDC *arg1 = (wxDC *) 0 ;
22780 wxColour *arg2 = 0 ;
22781 void *argp1 = 0 ;
22782 int res1 = 0 ;
22783 wxColour temp2 ;
22784 PyObject * obj0 = 0 ;
22785 PyObject * obj1 = 0 ;
22786 char * kwnames[] = {
22787 (char *) "self",(char *) "colour", NULL
22788 };
22789
22790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22792 if (!SWIG_IsOK(res1)) {
22793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22794 }
22795 arg1 = reinterpret_cast< wxDC * >(argp1);
22796 {
22797 arg2 = &temp2;
22798 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22799 }
22800 {
22801 PyThreadState* __tstate = wxPyBeginAllowThreads();
22802 (arg1)->SetTextBackground((wxColour const &)*arg2);
22803 wxPyEndAllowThreads(__tstate);
22804 if (PyErr_Occurred()) SWIG_fail;
22805 }
22806 resultobj = SWIG_Py_Void();
22807 return resultobj;
22808 fail:
22809 return NULL;
22810 }
22811
22812
22813 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22814 PyObject *resultobj = 0;
22815 wxDC *arg1 = (wxDC *) 0 ;
22816 int result;
22817 void *argp1 = 0 ;
22818 int res1 = 0 ;
22819 PyObject *swig_obj[1] ;
22820
22821 if (!args) SWIG_fail;
22822 swig_obj[0] = args;
22823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22824 if (!SWIG_IsOK(res1)) {
22825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22826 }
22827 arg1 = reinterpret_cast< wxDC * >(argp1);
22828 {
22829 PyThreadState* __tstate = wxPyBeginAllowThreads();
22830 result = (int)((wxDC const *)arg1)->GetMapMode();
22831 wxPyEndAllowThreads(__tstate);
22832 if (PyErr_Occurred()) SWIG_fail;
22833 }
22834 resultobj = SWIG_From_int(static_cast< int >(result));
22835 return resultobj;
22836 fail:
22837 return NULL;
22838 }
22839
22840
22841 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22842 PyObject *resultobj = 0;
22843 wxDC *arg1 = (wxDC *) 0 ;
22844 int arg2 ;
22845 void *argp1 = 0 ;
22846 int res1 = 0 ;
22847 int val2 ;
22848 int ecode2 = 0 ;
22849 PyObject * obj0 = 0 ;
22850 PyObject * obj1 = 0 ;
22851 char * kwnames[] = {
22852 (char *) "self",(char *) "mode", NULL
22853 };
22854
22855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22857 if (!SWIG_IsOK(res1)) {
22858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22859 }
22860 arg1 = reinterpret_cast< wxDC * >(argp1);
22861 ecode2 = SWIG_AsVal_int(obj1, &val2);
22862 if (!SWIG_IsOK(ecode2)) {
22863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22864 }
22865 arg2 = static_cast< int >(val2);
22866 {
22867 PyThreadState* __tstate = wxPyBeginAllowThreads();
22868 (arg1)->SetMapMode(arg2);
22869 wxPyEndAllowThreads(__tstate);
22870 if (PyErr_Occurred()) SWIG_fail;
22871 }
22872 resultobj = SWIG_Py_Void();
22873 return resultobj;
22874 fail:
22875 return NULL;
22876 }
22877
22878
22879 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22880 PyObject *resultobj = 0;
22881 wxDC *arg1 = (wxDC *) 0 ;
22882 double *arg2 = (double *) 0 ;
22883 double *arg3 = (double *) 0 ;
22884 void *argp1 = 0 ;
22885 int res1 = 0 ;
22886 double temp2 ;
22887 int res2 = SWIG_TMPOBJ ;
22888 double temp3 ;
22889 int res3 = SWIG_TMPOBJ ;
22890 PyObject *swig_obj[1] ;
22891
22892 arg2 = &temp2;
22893 arg3 = &temp3;
22894 if (!args) SWIG_fail;
22895 swig_obj[0] = args;
22896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22897 if (!SWIG_IsOK(res1)) {
22898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22899 }
22900 arg1 = reinterpret_cast< wxDC * >(argp1);
22901 {
22902 PyThreadState* __tstate = wxPyBeginAllowThreads();
22903 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22904 wxPyEndAllowThreads(__tstate);
22905 if (PyErr_Occurred()) SWIG_fail;
22906 }
22907 resultobj = SWIG_Py_Void();
22908 if (SWIG_IsTmpObj(res2)) {
22909 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22910 } else {
22911 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22912 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22913 }
22914 if (SWIG_IsTmpObj(res3)) {
22915 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22916 } else {
22917 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22918 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22919 }
22920 return resultobj;
22921 fail:
22922 return NULL;
22923 }
22924
22925
22926 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22927 PyObject *resultobj = 0;
22928 wxDC *arg1 = (wxDC *) 0 ;
22929 double arg2 ;
22930 double arg3 ;
22931 void *argp1 = 0 ;
22932 int res1 = 0 ;
22933 double val2 ;
22934 int ecode2 = 0 ;
22935 double val3 ;
22936 int ecode3 = 0 ;
22937 PyObject * obj0 = 0 ;
22938 PyObject * obj1 = 0 ;
22939 PyObject * obj2 = 0 ;
22940 char * kwnames[] = {
22941 (char *) "self",(char *) "x",(char *) "y", NULL
22942 };
22943
22944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22946 if (!SWIG_IsOK(res1)) {
22947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22948 }
22949 arg1 = reinterpret_cast< wxDC * >(argp1);
22950 ecode2 = SWIG_AsVal_double(obj1, &val2);
22951 if (!SWIG_IsOK(ecode2)) {
22952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22953 }
22954 arg2 = static_cast< double >(val2);
22955 ecode3 = SWIG_AsVal_double(obj2, &val3);
22956 if (!SWIG_IsOK(ecode3)) {
22957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22958 }
22959 arg3 = static_cast< double >(val3);
22960 {
22961 PyThreadState* __tstate = wxPyBeginAllowThreads();
22962 (arg1)->SetUserScale(arg2,arg3);
22963 wxPyEndAllowThreads(__tstate);
22964 if (PyErr_Occurred()) SWIG_fail;
22965 }
22966 resultobj = SWIG_Py_Void();
22967 return resultobj;
22968 fail:
22969 return NULL;
22970 }
22971
22972
22973 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22974 PyObject *resultobj = 0;
22975 wxDC *arg1 = (wxDC *) 0 ;
22976 double *arg2 = (double *) 0 ;
22977 double *arg3 = (double *) 0 ;
22978 void *argp1 = 0 ;
22979 int res1 = 0 ;
22980 double temp2 ;
22981 int res2 = SWIG_TMPOBJ ;
22982 double temp3 ;
22983 int res3 = SWIG_TMPOBJ ;
22984 PyObject *swig_obj[1] ;
22985
22986 arg2 = &temp2;
22987 arg3 = &temp3;
22988 if (!args) SWIG_fail;
22989 swig_obj[0] = args;
22990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22991 if (!SWIG_IsOK(res1)) {
22992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22993 }
22994 arg1 = reinterpret_cast< wxDC * >(argp1);
22995 {
22996 PyThreadState* __tstate = wxPyBeginAllowThreads();
22997 (arg1)->GetLogicalScale(arg2,arg3);
22998 wxPyEndAllowThreads(__tstate);
22999 if (PyErr_Occurred()) SWIG_fail;
23000 }
23001 resultobj = SWIG_Py_Void();
23002 if (SWIG_IsTmpObj(res2)) {
23003 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
23004 } else {
23005 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23006 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
23007 }
23008 if (SWIG_IsTmpObj(res3)) {
23009 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
23010 } else {
23011 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23012 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
23013 }
23014 return resultobj;
23015 fail:
23016 return NULL;
23017 }
23018
23019
23020 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23021 PyObject *resultobj = 0;
23022 wxDC *arg1 = (wxDC *) 0 ;
23023 double arg2 ;
23024 double arg3 ;
23025 void *argp1 = 0 ;
23026 int res1 = 0 ;
23027 double val2 ;
23028 int ecode2 = 0 ;
23029 double val3 ;
23030 int ecode3 = 0 ;
23031 PyObject * obj0 = 0 ;
23032 PyObject * obj1 = 0 ;
23033 PyObject * obj2 = 0 ;
23034 char * kwnames[] = {
23035 (char *) "self",(char *) "x",(char *) "y", NULL
23036 };
23037
23038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23040 if (!SWIG_IsOK(res1)) {
23041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23042 }
23043 arg1 = reinterpret_cast< wxDC * >(argp1);
23044 ecode2 = SWIG_AsVal_double(obj1, &val2);
23045 if (!SWIG_IsOK(ecode2)) {
23046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
23047 }
23048 arg2 = static_cast< double >(val2);
23049 ecode3 = SWIG_AsVal_double(obj2, &val3);
23050 if (!SWIG_IsOK(ecode3)) {
23051 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
23052 }
23053 arg3 = static_cast< double >(val3);
23054 {
23055 PyThreadState* __tstate = wxPyBeginAllowThreads();
23056 (arg1)->SetLogicalScale(arg2,arg3);
23057 wxPyEndAllowThreads(__tstate);
23058 if (PyErr_Occurred()) SWIG_fail;
23059 }
23060 resultobj = SWIG_Py_Void();
23061 return resultobj;
23062 fail:
23063 return NULL;
23064 }
23065
23066
23067 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23068 PyObject *resultobj = 0;
23069 wxDC *arg1 = (wxDC *) 0 ;
23070 wxPoint result;
23071 void *argp1 = 0 ;
23072 int res1 = 0 ;
23073 PyObject *swig_obj[1] ;
23074
23075 if (!args) SWIG_fail;
23076 swig_obj[0] = args;
23077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23078 if (!SWIG_IsOK(res1)) {
23079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23080 }
23081 arg1 = reinterpret_cast< wxDC * >(argp1);
23082 {
23083 PyThreadState* __tstate = wxPyBeginAllowThreads();
23084 result = ((wxDC const *)arg1)->GetLogicalOrigin();
23085 wxPyEndAllowThreads(__tstate);
23086 if (PyErr_Occurred()) SWIG_fail;
23087 }
23088 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23089 return resultobj;
23090 fail:
23091 return NULL;
23092 }
23093
23094
23095 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23096 PyObject *resultobj = 0;
23097 wxDC *arg1 = (wxDC *) 0 ;
23098 int *arg2 = (int *) 0 ;
23099 int *arg3 = (int *) 0 ;
23100 void *argp1 = 0 ;
23101 int res1 = 0 ;
23102 int temp2 ;
23103 int res2 = SWIG_TMPOBJ ;
23104 int temp3 ;
23105 int res3 = SWIG_TMPOBJ ;
23106 PyObject *swig_obj[1] ;
23107
23108 arg2 = &temp2;
23109 arg3 = &temp3;
23110 if (!args) SWIG_fail;
23111 swig_obj[0] = args;
23112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23113 if (!SWIG_IsOK(res1)) {
23114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23115 }
23116 arg1 = reinterpret_cast< wxDC * >(argp1);
23117 {
23118 PyThreadState* __tstate = wxPyBeginAllowThreads();
23119 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
23120 wxPyEndAllowThreads(__tstate);
23121 if (PyErr_Occurred()) SWIG_fail;
23122 }
23123 resultobj = SWIG_Py_Void();
23124 if (SWIG_IsTmpObj(res2)) {
23125 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23126 } else {
23127 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23128 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23129 }
23130 if (SWIG_IsTmpObj(res3)) {
23131 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23132 } else {
23133 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23134 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23135 }
23136 return resultobj;
23137 fail:
23138 return NULL;
23139 }
23140
23141
23142 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23143 PyObject *resultobj = 0;
23144 wxDC *arg1 = (wxDC *) 0 ;
23145 int arg2 ;
23146 int arg3 ;
23147 void *argp1 = 0 ;
23148 int res1 = 0 ;
23149 int val2 ;
23150 int ecode2 = 0 ;
23151 int val3 ;
23152 int ecode3 = 0 ;
23153 PyObject * obj0 = 0 ;
23154 PyObject * obj1 = 0 ;
23155 PyObject * obj2 = 0 ;
23156 char * kwnames[] = {
23157 (char *) "self",(char *) "x",(char *) "y", NULL
23158 };
23159
23160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23162 if (!SWIG_IsOK(res1)) {
23163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23164 }
23165 arg1 = reinterpret_cast< wxDC * >(argp1);
23166 ecode2 = SWIG_AsVal_int(obj1, &val2);
23167 if (!SWIG_IsOK(ecode2)) {
23168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
23169 }
23170 arg2 = static_cast< int >(val2);
23171 ecode3 = SWIG_AsVal_int(obj2, &val3);
23172 if (!SWIG_IsOK(ecode3)) {
23173 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
23174 }
23175 arg3 = static_cast< int >(val3);
23176 {
23177 PyThreadState* __tstate = wxPyBeginAllowThreads();
23178 (arg1)->SetLogicalOrigin(arg2,arg3);
23179 wxPyEndAllowThreads(__tstate);
23180 if (PyErr_Occurred()) SWIG_fail;
23181 }
23182 resultobj = SWIG_Py_Void();
23183 return resultobj;
23184 fail:
23185 return NULL;
23186 }
23187
23188
23189 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23190 PyObject *resultobj = 0;
23191 wxDC *arg1 = (wxDC *) 0 ;
23192 wxPoint *arg2 = 0 ;
23193 void *argp1 = 0 ;
23194 int res1 = 0 ;
23195 wxPoint temp2 ;
23196 PyObject * obj0 = 0 ;
23197 PyObject * obj1 = 0 ;
23198 char * kwnames[] = {
23199 (char *) "self",(char *) "point", NULL
23200 };
23201
23202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23204 if (!SWIG_IsOK(res1)) {
23205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23206 }
23207 arg1 = reinterpret_cast< wxDC * >(argp1);
23208 {
23209 arg2 = &temp2;
23210 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23211 }
23212 {
23213 PyThreadState* __tstate = wxPyBeginAllowThreads();
23214 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
23215 wxPyEndAllowThreads(__tstate);
23216 if (PyErr_Occurred()) SWIG_fail;
23217 }
23218 resultobj = SWIG_Py_Void();
23219 return resultobj;
23220 fail:
23221 return NULL;
23222 }
23223
23224
23225 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23226 PyObject *resultobj = 0;
23227 wxDC *arg1 = (wxDC *) 0 ;
23228 wxPoint result;
23229 void *argp1 = 0 ;
23230 int res1 = 0 ;
23231 PyObject *swig_obj[1] ;
23232
23233 if (!args) SWIG_fail;
23234 swig_obj[0] = args;
23235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23236 if (!SWIG_IsOK(res1)) {
23237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23238 }
23239 arg1 = reinterpret_cast< wxDC * >(argp1);
23240 {
23241 PyThreadState* __tstate = wxPyBeginAllowThreads();
23242 result = ((wxDC const *)arg1)->GetDeviceOrigin();
23243 wxPyEndAllowThreads(__tstate);
23244 if (PyErr_Occurred()) SWIG_fail;
23245 }
23246 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23247 return resultobj;
23248 fail:
23249 return NULL;
23250 }
23251
23252
23253 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23254 PyObject *resultobj = 0;
23255 wxDC *arg1 = (wxDC *) 0 ;
23256 int *arg2 = (int *) 0 ;
23257 int *arg3 = (int *) 0 ;
23258 void *argp1 = 0 ;
23259 int res1 = 0 ;
23260 int temp2 ;
23261 int res2 = SWIG_TMPOBJ ;
23262 int temp3 ;
23263 int res3 = SWIG_TMPOBJ ;
23264 PyObject *swig_obj[1] ;
23265
23266 arg2 = &temp2;
23267 arg3 = &temp3;
23268 if (!args) SWIG_fail;
23269 swig_obj[0] = args;
23270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23271 if (!SWIG_IsOK(res1)) {
23272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23273 }
23274 arg1 = reinterpret_cast< wxDC * >(argp1);
23275 {
23276 PyThreadState* __tstate = wxPyBeginAllowThreads();
23277 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
23278 wxPyEndAllowThreads(__tstate);
23279 if (PyErr_Occurred()) SWIG_fail;
23280 }
23281 resultobj = SWIG_Py_Void();
23282 if (SWIG_IsTmpObj(res2)) {
23283 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23284 } else {
23285 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23287 }
23288 if (SWIG_IsTmpObj(res3)) {
23289 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23290 } else {
23291 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23292 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23293 }
23294 return resultobj;
23295 fail:
23296 return NULL;
23297 }
23298
23299
23300 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23301 PyObject *resultobj = 0;
23302 wxDC *arg1 = (wxDC *) 0 ;
23303 int arg2 ;
23304 int arg3 ;
23305 void *argp1 = 0 ;
23306 int res1 = 0 ;
23307 int val2 ;
23308 int ecode2 = 0 ;
23309 int val3 ;
23310 int ecode3 = 0 ;
23311 PyObject * obj0 = 0 ;
23312 PyObject * obj1 = 0 ;
23313 PyObject * obj2 = 0 ;
23314 char * kwnames[] = {
23315 (char *) "self",(char *) "x",(char *) "y", NULL
23316 };
23317
23318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23320 if (!SWIG_IsOK(res1)) {
23321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23322 }
23323 arg1 = reinterpret_cast< wxDC * >(argp1);
23324 ecode2 = SWIG_AsVal_int(obj1, &val2);
23325 if (!SWIG_IsOK(ecode2)) {
23326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23327 }
23328 arg2 = static_cast< int >(val2);
23329 ecode3 = SWIG_AsVal_int(obj2, &val3);
23330 if (!SWIG_IsOK(ecode3)) {
23331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23332 }
23333 arg3 = static_cast< int >(val3);
23334 {
23335 PyThreadState* __tstate = wxPyBeginAllowThreads();
23336 (arg1)->SetDeviceOrigin(arg2,arg3);
23337 wxPyEndAllowThreads(__tstate);
23338 if (PyErr_Occurred()) SWIG_fail;
23339 }
23340 resultobj = SWIG_Py_Void();
23341 return resultobj;
23342 fail:
23343 return NULL;
23344 }
23345
23346
23347 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23348 PyObject *resultobj = 0;
23349 wxDC *arg1 = (wxDC *) 0 ;
23350 wxPoint *arg2 = 0 ;
23351 void *argp1 = 0 ;
23352 int res1 = 0 ;
23353 wxPoint temp2 ;
23354 PyObject * obj0 = 0 ;
23355 PyObject * obj1 = 0 ;
23356 char * kwnames[] = {
23357 (char *) "self",(char *) "point", NULL
23358 };
23359
23360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23362 if (!SWIG_IsOK(res1)) {
23363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23364 }
23365 arg1 = reinterpret_cast< wxDC * >(argp1);
23366 {
23367 arg2 = &temp2;
23368 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23369 }
23370 {
23371 PyThreadState* __tstate = wxPyBeginAllowThreads();
23372 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23373 wxPyEndAllowThreads(__tstate);
23374 if (PyErr_Occurred()) SWIG_fail;
23375 }
23376 resultobj = SWIG_Py_Void();
23377 return resultobj;
23378 fail:
23379 return NULL;
23380 }
23381
23382
23383 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23384 PyObject *resultobj = 0;
23385 wxDC *arg1 = (wxDC *) 0 ;
23386 bool arg2 ;
23387 bool arg3 ;
23388 void *argp1 = 0 ;
23389 int res1 = 0 ;
23390 bool val2 ;
23391 int ecode2 = 0 ;
23392 bool val3 ;
23393 int ecode3 = 0 ;
23394 PyObject * obj0 = 0 ;
23395 PyObject * obj1 = 0 ;
23396 PyObject * obj2 = 0 ;
23397 char * kwnames[] = {
23398 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23399 };
23400
23401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23403 if (!SWIG_IsOK(res1)) {
23404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23405 }
23406 arg1 = reinterpret_cast< wxDC * >(argp1);
23407 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23408 if (!SWIG_IsOK(ecode2)) {
23409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23410 }
23411 arg2 = static_cast< bool >(val2);
23412 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23413 if (!SWIG_IsOK(ecode3)) {
23414 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23415 }
23416 arg3 = static_cast< bool >(val3);
23417 {
23418 PyThreadState* __tstate = wxPyBeginAllowThreads();
23419 (arg1)->SetAxisOrientation(arg2,arg3);
23420 wxPyEndAllowThreads(__tstate);
23421 if (PyErr_Occurred()) SWIG_fail;
23422 }
23423 resultobj = SWIG_Py_Void();
23424 return resultobj;
23425 fail:
23426 return NULL;
23427 }
23428
23429
23430 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23431 PyObject *resultobj = 0;
23432 wxDC *arg1 = (wxDC *) 0 ;
23433 int result;
23434 void *argp1 = 0 ;
23435 int res1 = 0 ;
23436 PyObject *swig_obj[1] ;
23437
23438 if (!args) SWIG_fail;
23439 swig_obj[0] = args;
23440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23441 if (!SWIG_IsOK(res1)) {
23442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23443 }
23444 arg1 = reinterpret_cast< wxDC * >(argp1);
23445 {
23446 PyThreadState* __tstate = wxPyBeginAllowThreads();
23447 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23448 wxPyEndAllowThreads(__tstate);
23449 if (PyErr_Occurred()) SWIG_fail;
23450 }
23451 resultobj = SWIG_From_int(static_cast< int >(result));
23452 return resultobj;
23453 fail:
23454 return NULL;
23455 }
23456
23457
23458 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23459 PyObject *resultobj = 0;
23460 wxDC *arg1 = (wxDC *) 0 ;
23461 int arg2 ;
23462 void *argp1 = 0 ;
23463 int res1 = 0 ;
23464 int val2 ;
23465 int ecode2 = 0 ;
23466 PyObject * obj0 = 0 ;
23467 PyObject * obj1 = 0 ;
23468 char * kwnames[] = {
23469 (char *) "self",(char *) "function", NULL
23470 };
23471
23472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23474 if (!SWIG_IsOK(res1)) {
23475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23476 }
23477 arg1 = reinterpret_cast< wxDC * >(argp1);
23478 ecode2 = SWIG_AsVal_int(obj1, &val2);
23479 if (!SWIG_IsOK(ecode2)) {
23480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23481 }
23482 arg2 = static_cast< int >(val2);
23483 {
23484 PyThreadState* __tstate = wxPyBeginAllowThreads();
23485 (arg1)->SetLogicalFunction(arg2);
23486 wxPyEndAllowThreads(__tstate);
23487 if (PyErr_Occurred()) SWIG_fail;
23488 }
23489 resultobj = SWIG_Py_Void();
23490 return resultobj;
23491 fail:
23492 return NULL;
23493 }
23494
23495
23496 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23497 PyObject *resultobj = 0;
23498 wxDC *arg1 = (wxDC *) 0 ;
23499 void *argp1 = 0 ;
23500 int res1 = 0 ;
23501 PyObject *swig_obj[1] ;
23502
23503 if (!args) SWIG_fail;
23504 swig_obj[0] = args;
23505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23506 if (!SWIG_IsOK(res1)) {
23507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23508 }
23509 arg1 = reinterpret_cast< wxDC * >(argp1);
23510 {
23511 PyThreadState* __tstate = wxPyBeginAllowThreads();
23512 (arg1)->ComputeScaleAndOrigin();
23513 wxPyEndAllowThreads(__tstate);
23514 if (PyErr_Occurred()) SWIG_fail;
23515 }
23516 resultobj = SWIG_Py_Void();
23517 return resultobj;
23518 fail:
23519 return NULL;
23520 }
23521
23522
23523 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23524 PyObject *resultobj = 0;
23525 wxDC *arg1 = (wxDC *) 0 ;
23526 int arg2 ;
23527 int arg3 ;
23528 void *argp1 = 0 ;
23529 int res1 = 0 ;
23530 int val2 ;
23531 int ecode2 = 0 ;
23532 int val3 ;
23533 int ecode3 = 0 ;
23534 PyObject * obj0 = 0 ;
23535 PyObject * obj1 = 0 ;
23536 PyObject * obj2 = 0 ;
23537 char * kwnames[] = {
23538 (char *) "self",(char *) "x",(char *) "y", NULL
23539 };
23540
23541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23543 if (!SWIG_IsOK(res1)) {
23544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23545 }
23546 arg1 = reinterpret_cast< wxDC * >(argp1);
23547 ecode2 = SWIG_AsVal_int(obj1, &val2);
23548 if (!SWIG_IsOK(ecode2)) {
23549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23550 }
23551 arg2 = static_cast< int >(val2);
23552 ecode3 = SWIG_AsVal_int(obj2, &val3);
23553 if (!SWIG_IsOK(ecode3)) {
23554 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23555 }
23556 arg3 = static_cast< int >(val3);
23557 {
23558 PyThreadState* __tstate = wxPyBeginAllowThreads();
23559 (arg1)->CalcBoundingBox(arg2,arg3);
23560 wxPyEndAllowThreads(__tstate);
23561 if (PyErr_Occurred()) SWIG_fail;
23562 }
23563 resultobj = SWIG_Py_Void();
23564 return resultobj;
23565 fail:
23566 return NULL;
23567 }
23568
23569
23570 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23571 PyObject *resultobj = 0;
23572 wxDC *arg1 = (wxDC *) 0 ;
23573 wxPoint *arg2 = 0 ;
23574 void *argp1 = 0 ;
23575 int res1 = 0 ;
23576 wxPoint temp2 ;
23577 PyObject * obj0 = 0 ;
23578 PyObject * obj1 = 0 ;
23579 char * kwnames[] = {
23580 (char *) "self",(char *) "point", NULL
23581 };
23582
23583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23585 if (!SWIG_IsOK(res1)) {
23586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23587 }
23588 arg1 = reinterpret_cast< wxDC * >(argp1);
23589 {
23590 arg2 = &temp2;
23591 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23592 }
23593 {
23594 PyThreadState* __tstate = wxPyBeginAllowThreads();
23595 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23596 wxPyEndAllowThreads(__tstate);
23597 if (PyErr_Occurred()) SWIG_fail;
23598 }
23599 resultobj = SWIG_Py_Void();
23600 return resultobj;
23601 fail:
23602 return NULL;
23603 }
23604
23605
23606 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23607 PyObject *resultobj = 0;
23608 wxDC *arg1 = (wxDC *) 0 ;
23609 void *argp1 = 0 ;
23610 int res1 = 0 ;
23611 PyObject *swig_obj[1] ;
23612
23613 if (!args) SWIG_fail;
23614 swig_obj[0] = args;
23615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23616 if (!SWIG_IsOK(res1)) {
23617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23618 }
23619 arg1 = reinterpret_cast< wxDC * >(argp1);
23620 {
23621 PyThreadState* __tstate = wxPyBeginAllowThreads();
23622 (arg1)->ResetBoundingBox();
23623 wxPyEndAllowThreads(__tstate);
23624 if (PyErr_Occurred()) SWIG_fail;
23625 }
23626 resultobj = SWIG_Py_Void();
23627 return resultobj;
23628 fail:
23629 return NULL;
23630 }
23631
23632
23633 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23634 PyObject *resultobj = 0;
23635 wxDC *arg1 = (wxDC *) 0 ;
23636 int result;
23637 void *argp1 = 0 ;
23638 int res1 = 0 ;
23639 PyObject *swig_obj[1] ;
23640
23641 if (!args) SWIG_fail;
23642 swig_obj[0] = args;
23643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23644 if (!SWIG_IsOK(res1)) {
23645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23646 }
23647 arg1 = reinterpret_cast< wxDC * >(argp1);
23648 {
23649 PyThreadState* __tstate = wxPyBeginAllowThreads();
23650 result = (int)((wxDC const *)arg1)->MinX();
23651 wxPyEndAllowThreads(__tstate);
23652 if (PyErr_Occurred()) SWIG_fail;
23653 }
23654 resultobj = SWIG_From_int(static_cast< int >(result));
23655 return resultobj;
23656 fail:
23657 return NULL;
23658 }
23659
23660
23661 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23662 PyObject *resultobj = 0;
23663 wxDC *arg1 = (wxDC *) 0 ;
23664 int result;
23665 void *argp1 = 0 ;
23666 int res1 = 0 ;
23667 PyObject *swig_obj[1] ;
23668
23669 if (!args) SWIG_fail;
23670 swig_obj[0] = args;
23671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23672 if (!SWIG_IsOK(res1)) {
23673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23674 }
23675 arg1 = reinterpret_cast< wxDC * >(argp1);
23676 {
23677 PyThreadState* __tstate = wxPyBeginAllowThreads();
23678 result = (int)((wxDC const *)arg1)->MaxX();
23679 wxPyEndAllowThreads(__tstate);
23680 if (PyErr_Occurred()) SWIG_fail;
23681 }
23682 resultobj = SWIG_From_int(static_cast< int >(result));
23683 return resultobj;
23684 fail:
23685 return NULL;
23686 }
23687
23688
23689 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23690 PyObject *resultobj = 0;
23691 wxDC *arg1 = (wxDC *) 0 ;
23692 int result;
23693 void *argp1 = 0 ;
23694 int res1 = 0 ;
23695 PyObject *swig_obj[1] ;
23696
23697 if (!args) SWIG_fail;
23698 swig_obj[0] = args;
23699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23700 if (!SWIG_IsOK(res1)) {
23701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23702 }
23703 arg1 = reinterpret_cast< wxDC * >(argp1);
23704 {
23705 PyThreadState* __tstate = wxPyBeginAllowThreads();
23706 result = (int)((wxDC const *)arg1)->MinY();
23707 wxPyEndAllowThreads(__tstate);
23708 if (PyErr_Occurred()) SWIG_fail;
23709 }
23710 resultobj = SWIG_From_int(static_cast< int >(result));
23711 return resultobj;
23712 fail:
23713 return NULL;
23714 }
23715
23716
23717 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23718 PyObject *resultobj = 0;
23719 wxDC *arg1 = (wxDC *) 0 ;
23720 int result;
23721 void *argp1 = 0 ;
23722 int res1 = 0 ;
23723 PyObject *swig_obj[1] ;
23724
23725 if (!args) SWIG_fail;
23726 swig_obj[0] = args;
23727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23728 if (!SWIG_IsOK(res1)) {
23729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23730 }
23731 arg1 = reinterpret_cast< wxDC * >(argp1);
23732 {
23733 PyThreadState* __tstate = wxPyBeginAllowThreads();
23734 result = (int)((wxDC const *)arg1)->MaxY();
23735 wxPyEndAllowThreads(__tstate);
23736 if (PyErr_Occurred()) SWIG_fail;
23737 }
23738 resultobj = SWIG_From_int(static_cast< int >(result));
23739 return resultobj;
23740 fail:
23741 return NULL;
23742 }
23743
23744
23745 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23746 PyObject *resultobj = 0;
23747 wxDC *arg1 = (wxDC *) 0 ;
23748 int *arg2 = (int *) 0 ;
23749 int *arg3 = (int *) 0 ;
23750 int *arg4 = (int *) 0 ;
23751 int *arg5 = (int *) 0 ;
23752 void *argp1 = 0 ;
23753 int res1 = 0 ;
23754 int temp2 ;
23755 int res2 = SWIG_TMPOBJ ;
23756 int temp3 ;
23757 int res3 = SWIG_TMPOBJ ;
23758 int temp4 ;
23759 int res4 = SWIG_TMPOBJ ;
23760 int temp5 ;
23761 int res5 = SWIG_TMPOBJ ;
23762 PyObject *swig_obj[1] ;
23763
23764 arg2 = &temp2;
23765 arg3 = &temp3;
23766 arg4 = &temp4;
23767 arg5 = &temp5;
23768 if (!args) SWIG_fail;
23769 swig_obj[0] = args;
23770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23771 if (!SWIG_IsOK(res1)) {
23772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23773 }
23774 arg1 = reinterpret_cast< wxDC * >(argp1);
23775 {
23776 PyThreadState* __tstate = wxPyBeginAllowThreads();
23777 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23778 wxPyEndAllowThreads(__tstate);
23779 if (PyErr_Occurred()) SWIG_fail;
23780 }
23781 resultobj = SWIG_Py_Void();
23782 if (SWIG_IsTmpObj(res2)) {
23783 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23784 } else {
23785 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23786 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23787 }
23788 if (SWIG_IsTmpObj(res3)) {
23789 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23790 } else {
23791 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23792 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23793 }
23794 if (SWIG_IsTmpObj(res4)) {
23795 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23796 } else {
23797 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23798 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23799 }
23800 if (SWIG_IsTmpObj(res5)) {
23801 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23802 } else {
23803 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23804 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23805 }
23806 return resultobj;
23807 fail:
23808 return NULL;
23809 }
23810
23811
23812 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23813 PyObject *resultobj = 0;
23814 wxDC *arg1 = (wxDC *) 0 ;
23815 wxLayoutDirection result;
23816 void *argp1 = 0 ;
23817 int res1 = 0 ;
23818 PyObject *swig_obj[1] ;
23819
23820 if (!args) SWIG_fail;
23821 swig_obj[0] = args;
23822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23823 if (!SWIG_IsOK(res1)) {
23824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23825 }
23826 arg1 = reinterpret_cast< wxDC * >(argp1);
23827 {
23828 PyThreadState* __tstate = wxPyBeginAllowThreads();
23829 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23830 wxPyEndAllowThreads(__tstate);
23831 if (PyErr_Occurred()) SWIG_fail;
23832 }
23833 resultobj = SWIG_From_int(static_cast< int >(result));
23834 return resultobj;
23835 fail:
23836 return NULL;
23837 }
23838
23839
23840 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23841 PyObject *resultobj = 0;
23842 wxDC *arg1 = (wxDC *) 0 ;
23843 wxLayoutDirection arg2 ;
23844 void *argp1 = 0 ;
23845 int res1 = 0 ;
23846 int val2 ;
23847 int ecode2 = 0 ;
23848 PyObject * obj0 = 0 ;
23849 PyObject * obj1 = 0 ;
23850 char * kwnames[] = {
23851 (char *) "self",(char *) "dir", NULL
23852 };
23853
23854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23856 if (!SWIG_IsOK(res1)) {
23857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23858 }
23859 arg1 = reinterpret_cast< wxDC * >(argp1);
23860 ecode2 = SWIG_AsVal_int(obj1, &val2);
23861 if (!SWIG_IsOK(ecode2)) {
23862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23863 }
23864 arg2 = static_cast< wxLayoutDirection >(val2);
23865 {
23866 PyThreadState* __tstate = wxPyBeginAllowThreads();
23867 (arg1)->SetLayoutDirection(arg2);
23868 wxPyEndAllowThreads(__tstate);
23869 if (PyErr_Occurred()) SWIG_fail;
23870 }
23871 resultobj = SWIG_Py_Void();
23872 return resultobj;
23873 fail:
23874 return NULL;
23875 }
23876
23877
23878 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23879 PyObject *resultobj = 0;
23880 wxDC *arg1 = (wxDC *) 0 ;
23881 long result;
23882 void *argp1 = 0 ;
23883 int res1 = 0 ;
23884 PyObject *swig_obj[1] ;
23885
23886 if (!args) SWIG_fail;
23887 swig_obj[0] = args;
23888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23889 if (!SWIG_IsOK(res1)) {
23890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23891 }
23892 arg1 = reinterpret_cast< wxDC * >(argp1);
23893 {
23894 PyThreadState* __tstate = wxPyBeginAllowThreads();
23895 result = (long)(arg1)->GetHDC();
23896 wxPyEndAllowThreads(__tstate);
23897 if (PyErr_Occurred()) SWIG_fail;
23898 }
23899 resultobj = SWIG_From_long(static_cast< long >(result));
23900 return resultobj;
23901 fail:
23902 return NULL;
23903 }
23904
23905
23906 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23907 PyObject *resultobj = 0;
23908 wxDC *arg1 = (wxDC *) 0 ;
23909 PyObject *arg2 = (PyObject *) 0 ;
23910 PyObject *arg3 = (PyObject *) 0 ;
23911 PyObject *arg4 = (PyObject *) 0 ;
23912 PyObject *result = 0 ;
23913 void *argp1 = 0 ;
23914 int res1 = 0 ;
23915 PyObject * obj0 = 0 ;
23916 PyObject * obj1 = 0 ;
23917 PyObject * obj2 = 0 ;
23918 PyObject * obj3 = 0 ;
23919 char * kwnames[] = {
23920 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23921 };
23922
23923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23925 if (!SWIG_IsOK(res1)) {
23926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23927 }
23928 arg1 = reinterpret_cast< wxDC * >(argp1);
23929 arg2 = obj1;
23930 arg3 = obj2;
23931 arg4 = obj3;
23932 {
23933 PyThreadState* __tstate = wxPyBeginAllowThreads();
23934 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23935 wxPyEndAllowThreads(__tstate);
23936 if (PyErr_Occurred()) SWIG_fail;
23937 }
23938 resultobj = result;
23939 return resultobj;
23940 fail:
23941 return NULL;
23942 }
23943
23944
23945 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23946 PyObject *resultobj = 0;
23947 wxDC *arg1 = (wxDC *) 0 ;
23948 PyObject *arg2 = (PyObject *) 0 ;
23949 PyObject *arg3 = (PyObject *) 0 ;
23950 PyObject *arg4 = (PyObject *) 0 ;
23951 PyObject *result = 0 ;
23952 void *argp1 = 0 ;
23953 int res1 = 0 ;
23954 PyObject * obj0 = 0 ;
23955 PyObject * obj1 = 0 ;
23956 PyObject * obj2 = 0 ;
23957 PyObject * obj3 = 0 ;
23958 char * kwnames[] = {
23959 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23960 };
23961
23962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23964 if (!SWIG_IsOK(res1)) {
23965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23966 }
23967 arg1 = reinterpret_cast< wxDC * >(argp1);
23968 arg2 = obj1;
23969 arg3 = obj2;
23970 arg4 = obj3;
23971 {
23972 PyThreadState* __tstate = wxPyBeginAllowThreads();
23973 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23974 wxPyEndAllowThreads(__tstate);
23975 if (PyErr_Occurred()) SWIG_fail;
23976 }
23977 resultobj = result;
23978 return resultobj;
23979 fail:
23980 return NULL;
23981 }
23982
23983
23984 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23985 PyObject *resultobj = 0;
23986 wxDC *arg1 = (wxDC *) 0 ;
23987 PyObject *arg2 = (PyObject *) 0 ;
23988 PyObject *arg3 = (PyObject *) 0 ;
23989 PyObject *arg4 = (PyObject *) 0 ;
23990 PyObject *result = 0 ;
23991 void *argp1 = 0 ;
23992 int res1 = 0 ;
23993 PyObject * obj0 = 0 ;
23994 PyObject * obj1 = 0 ;
23995 PyObject * obj2 = 0 ;
23996 PyObject * obj3 = 0 ;
23997 char * kwnames[] = {
23998 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23999 };
24000
24001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24003 if (!SWIG_IsOK(res1)) {
24004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
24005 }
24006 arg1 = reinterpret_cast< wxDC * >(argp1);
24007 arg2 = obj1;
24008 arg3 = obj2;
24009 arg4 = obj3;
24010 {
24011 PyThreadState* __tstate = wxPyBeginAllowThreads();
24012 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
24013 wxPyEndAllowThreads(__tstate);
24014 if (PyErr_Occurred()) SWIG_fail;
24015 }
24016 resultobj = result;
24017 return resultobj;
24018 fail:
24019 return NULL;
24020 }
24021
24022
24023 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24024 PyObject *resultobj = 0;
24025 wxDC *arg1 = (wxDC *) 0 ;
24026 PyObject *arg2 = (PyObject *) 0 ;
24027 PyObject *arg3 = (PyObject *) 0 ;
24028 PyObject *arg4 = (PyObject *) 0 ;
24029 PyObject *result = 0 ;
24030 void *argp1 = 0 ;
24031 int res1 = 0 ;
24032 PyObject * obj0 = 0 ;
24033 PyObject * obj1 = 0 ;
24034 PyObject * obj2 = 0 ;
24035 PyObject * obj3 = 0 ;
24036 char * kwnames[] = {
24037 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24038 };
24039
24040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24042 if (!SWIG_IsOK(res1)) {
24043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
24044 }
24045 arg1 = reinterpret_cast< wxDC * >(argp1);
24046 arg2 = obj1;
24047 arg3 = obj2;
24048 arg4 = obj3;
24049 {
24050 PyThreadState* __tstate = wxPyBeginAllowThreads();
24051 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
24052 wxPyEndAllowThreads(__tstate);
24053 if (PyErr_Occurred()) SWIG_fail;
24054 }
24055 resultobj = result;
24056 return resultobj;
24057 fail:
24058 return NULL;
24059 }
24060
24061
24062 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24063 PyObject *resultobj = 0;
24064 wxDC *arg1 = (wxDC *) 0 ;
24065 PyObject *arg2 = (PyObject *) 0 ;
24066 PyObject *arg3 = (PyObject *) 0 ;
24067 PyObject *arg4 = (PyObject *) 0 ;
24068 PyObject *result = 0 ;
24069 void *argp1 = 0 ;
24070 int res1 = 0 ;
24071 PyObject * obj0 = 0 ;
24072 PyObject * obj1 = 0 ;
24073 PyObject * obj2 = 0 ;
24074 PyObject * obj3 = 0 ;
24075 char * kwnames[] = {
24076 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24077 };
24078
24079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24081 if (!SWIG_IsOK(res1)) {
24082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
24083 }
24084 arg1 = reinterpret_cast< wxDC * >(argp1);
24085 arg2 = obj1;
24086 arg3 = obj2;
24087 arg4 = obj3;
24088 {
24089 PyThreadState* __tstate = wxPyBeginAllowThreads();
24090 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
24091 wxPyEndAllowThreads(__tstate);
24092 if (PyErr_Occurred()) SWIG_fail;
24093 }
24094 resultobj = result;
24095 return resultobj;
24096 fail:
24097 return NULL;
24098 }
24099
24100
24101 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24102 PyObject *resultobj = 0;
24103 wxDC *arg1 = (wxDC *) 0 ;
24104 PyObject *arg2 = (PyObject *) 0 ;
24105 PyObject *arg3 = (PyObject *) 0 ;
24106 PyObject *arg4 = (PyObject *) 0 ;
24107 PyObject *arg5 = (PyObject *) 0 ;
24108 PyObject *result = 0 ;
24109 void *argp1 = 0 ;
24110 int res1 = 0 ;
24111 PyObject * obj0 = 0 ;
24112 PyObject * obj1 = 0 ;
24113 PyObject * obj2 = 0 ;
24114 PyObject * obj3 = 0 ;
24115 PyObject * obj4 = 0 ;
24116 char * kwnames[] = {
24117 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
24118 };
24119
24120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24122 if (!SWIG_IsOK(res1)) {
24123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
24124 }
24125 arg1 = reinterpret_cast< wxDC * >(argp1);
24126 arg2 = obj1;
24127 arg3 = obj2;
24128 arg4 = obj3;
24129 arg5 = obj4;
24130 {
24131 PyThreadState* __tstate = wxPyBeginAllowThreads();
24132 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
24133 wxPyEndAllowThreads(__tstate);
24134 if (PyErr_Occurred()) SWIG_fail;
24135 }
24136 resultobj = result;
24137 return resultobj;
24138 fail:
24139 return NULL;
24140 }
24141
24142
24143 SWIGINTERN PyObject *DC_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_wxDC, SWIG_NewClientData(obj));
24147 return SWIG_Py_Void();
24148 }
24149
24150 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24151 PyObject *resultobj = 0;
24152 wxDC *arg1 = 0 ;
24153 wxColour *arg2 = 0 ;
24154 wxDCTextColourChanger *result = 0 ;
24155 void *argp1 = 0 ;
24156 int res1 = 0 ;
24157 wxColour temp2 ;
24158 PyObject * obj0 = 0 ;
24159 PyObject * obj1 = 0 ;
24160 char * kwnames[] = {
24161 (char *) "dc",(char *) "col", NULL
24162 };
24163
24164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24165 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24166 if (!SWIG_IsOK(res1)) {
24167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24168 }
24169 if (!argp1) {
24170 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24171 }
24172 arg1 = reinterpret_cast< wxDC * >(argp1);
24173 {
24174 arg2 = &temp2;
24175 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24176 }
24177 {
24178 PyThreadState* __tstate = wxPyBeginAllowThreads();
24179 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
24180 wxPyEndAllowThreads(__tstate);
24181 if (PyErr_Occurred()) SWIG_fail;
24182 }
24183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
24184 return resultobj;
24185 fail:
24186 return NULL;
24187 }
24188
24189
24190 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24191 PyObject *resultobj = 0;
24192 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
24193 void *argp1 = 0 ;
24194 int res1 = 0 ;
24195 PyObject *swig_obj[1] ;
24196
24197 if (!args) SWIG_fail;
24198 swig_obj[0] = args;
24199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
24200 if (!SWIG_IsOK(res1)) {
24201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
24202 }
24203 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
24204 {
24205 PyThreadState* __tstate = wxPyBeginAllowThreads();
24206 delete arg1;
24207
24208 wxPyEndAllowThreads(__tstate);
24209 if (PyErr_Occurred()) SWIG_fail;
24210 }
24211 resultobj = SWIG_Py_Void();
24212 return resultobj;
24213 fail:
24214 return NULL;
24215 }
24216
24217
24218 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24219 PyObject *obj;
24220 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24221 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
24222 return SWIG_Py_Void();
24223 }
24224
24225 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24226 return SWIG_Python_InitShadowInstance(args);
24227 }
24228
24229 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24230 PyObject *resultobj = 0;
24231 wxDC *arg1 = 0 ;
24232 wxPen *arg2 = 0 ;
24233 wxDCPenChanger *result = 0 ;
24234 void *argp1 = 0 ;
24235 int res1 = 0 ;
24236 void *argp2 = 0 ;
24237 int res2 = 0 ;
24238 PyObject * obj0 = 0 ;
24239 PyObject * obj1 = 0 ;
24240 char * kwnames[] = {
24241 (char *) "dc",(char *) "pen", NULL
24242 };
24243
24244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24245 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24246 if (!SWIG_IsOK(res1)) {
24247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24248 }
24249 if (!argp1) {
24250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24251 }
24252 arg1 = reinterpret_cast< wxDC * >(argp1);
24253 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
24254 if (!SWIG_IsOK(res2)) {
24255 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24256 }
24257 if (!argp2) {
24258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24259 }
24260 arg2 = reinterpret_cast< wxPen * >(argp2);
24261 {
24262 PyThreadState* __tstate = wxPyBeginAllowThreads();
24263 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
24264 wxPyEndAllowThreads(__tstate);
24265 if (PyErr_Occurred()) SWIG_fail;
24266 }
24267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
24268 return resultobj;
24269 fail:
24270 return NULL;
24271 }
24272
24273
24274 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24275 PyObject *resultobj = 0;
24276 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
24277 void *argp1 = 0 ;
24278 int res1 = 0 ;
24279 PyObject *swig_obj[1] ;
24280
24281 if (!args) SWIG_fail;
24282 swig_obj[0] = args;
24283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
24284 if (!SWIG_IsOK(res1)) {
24285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
24286 }
24287 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
24288 {
24289 PyThreadState* __tstate = wxPyBeginAllowThreads();
24290 delete arg1;
24291
24292 wxPyEndAllowThreads(__tstate);
24293 if (PyErr_Occurred()) SWIG_fail;
24294 }
24295 resultobj = SWIG_Py_Void();
24296 return resultobj;
24297 fail:
24298 return NULL;
24299 }
24300
24301
24302 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24303 PyObject *obj;
24304 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24305 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
24306 return SWIG_Py_Void();
24307 }
24308
24309 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24310 return SWIG_Python_InitShadowInstance(args);
24311 }
24312
24313 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24314 PyObject *resultobj = 0;
24315 wxDC *arg1 = 0 ;
24316 wxBrush *arg2 = 0 ;
24317 wxDCBrushChanger *result = 0 ;
24318 void *argp1 = 0 ;
24319 int res1 = 0 ;
24320 void *argp2 = 0 ;
24321 int res2 = 0 ;
24322 PyObject * obj0 = 0 ;
24323 PyObject * obj1 = 0 ;
24324 char * kwnames[] = {
24325 (char *) "dc",(char *) "brush", NULL
24326 };
24327
24328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24329 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24330 if (!SWIG_IsOK(res1)) {
24331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24332 }
24333 if (!argp1) {
24334 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24335 }
24336 arg1 = reinterpret_cast< wxDC * >(argp1);
24337 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24338 if (!SWIG_IsOK(res2)) {
24339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24340 }
24341 if (!argp2) {
24342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24343 }
24344 arg2 = reinterpret_cast< wxBrush * >(argp2);
24345 {
24346 PyThreadState* __tstate = wxPyBeginAllowThreads();
24347 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24348 wxPyEndAllowThreads(__tstate);
24349 if (PyErr_Occurred()) SWIG_fail;
24350 }
24351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24352 return resultobj;
24353 fail:
24354 return NULL;
24355 }
24356
24357
24358 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24359 PyObject *resultobj = 0;
24360 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24361 void *argp1 = 0 ;
24362 int res1 = 0 ;
24363 PyObject *swig_obj[1] ;
24364
24365 if (!args) SWIG_fail;
24366 swig_obj[0] = args;
24367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24368 if (!SWIG_IsOK(res1)) {
24369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24370 }
24371 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24372 {
24373 PyThreadState* __tstate = wxPyBeginAllowThreads();
24374 delete arg1;
24375
24376 wxPyEndAllowThreads(__tstate);
24377 if (PyErr_Occurred()) SWIG_fail;
24378 }
24379 resultobj = SWIG_Py_Void();
24380 return resultobj;
24381 fail:
24382 return NULL;
24383 }
24384
24385
24386 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24387 PyObject *obj;
24388 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24389 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24390 return SWIG_Py_Void();
24391 }
24392
24393 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24394 return SWIG_Python_InitShadowInstance(args);
24395 }
24396
24397 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24398 PyObject *resultobj = 0;
24399 wxDC *arg1 = 0 ;
24400 wxRegion *arg2 = 0 ;
24401 wxDCClipper *result = 0 ;
24402 void *argp1 = 0 ;
24403 int res1 = 0 ;
24404 void *argp2 = 0 ;
24405 int res2 = 0 ;
24406
24407 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24409 if (!SWIG_IsOK(res1)) {
24410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24411 }
24412 if (!argp1) {
24413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24414 }
24415 arg1 = reinterpret_cast< wxDC * >(argp1);
24416 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24417 if (!SWIG_IsOK(res2)) {
24418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24419 }
24420 if (!argp2) {
24421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24422 }
24423 arg2 = reinterpret_cast< wxRegion * >(argp2);
24424 {
24425 PyThreadState* __tstate = wxPyBeginAllowThreads();
24426 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24427 wxPyEndAllowThreads(__tstate);
24428 if (PyErr_Occurred()) SWIG_fail;
24429 }
24430 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24431 return resultobj;
24432 fail:
24433 return NULL;
24434 }
24435
24436
24437 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24438 PyObject *resultobj = 0;
24439 wxDC *arg1 = 0 ;
24440 wxRect *arg2 = 0 ;
24441 wxDCClipper *result = 0 ;
24442 void *argp1 = 0 ;
24443 int res1 = 0 ;
24444 wxRect temp2 ;
24445
24446 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24448 if (!SWIG_IsOK(res1)) {
24449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24450 }
24451 if (!argp1) {
24452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24453 }
24454 arg1 = reinterpret_cast< wxDC * >(argp1);
24455 {
24456 arg2 = &temp2;
24457 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24458 }
24459 {
24460 PyThreadState* __tstate = wxPyBeginAllowThreads();
24461 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24462 wxPyEndAllowThreads(__tstate);
24463 if (PyErr_Occurred()) SWIG_fail;
24464 }
24465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24466 return resultobj;
24467 fail:
24468 return NULL;
24469 }
24470
24471
24472 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24473 PyObject *resultobj = 0;
24474 wxDC *arg1 = 0 ;
24475 int arg2 ;
24476 int arg3 ;
24477 int arg4 ;
24478 int arg5 ;
24479 wxDCClipper *result = 0 ;
24480 void *argp1 = 0 ;
24481 int res1 = 0 ;
24482 int val2 ;
24483 int ecode2 = 0 ;
24484 int val3 ;
24485 int ecode3 = 0 ;
24486 int val4 ;
24487 int ecode4 = 0 ;
24488 int val5 ;
24489 int ecode5 = 0 ;
24490
24491 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24493 if (!SWIG_IsOK(res1)) {
24494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24495 }
24496 if (!argp1) {
24497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24498 }
24499 arg1 = reinterpret_cast< wxDC * >(argp1);
24500 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24501 if (!SWIG_IsOK(ecode2)) {
24502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
24503 }
24504 arg2 = static_cast< int >(val2);
24505 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24506 if (!SWIG_IsOK(ecode3)) {
24507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
24508 }
24509 arg3 = static_cast< int >(val3);
24510 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24511 if (!SWIG_IsOK(ecode4)) {
24512 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
24513 }
24514 arg4 = static_cast< int >(val4);
24515 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
24516 if (!SWIG_IsOK(ecode5)) {
24517 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
24518 }
24519 arg5 = static_cast< int >(val5);
24520 {
24521 PyThreadState* __tstate = wxPyBeginAllowThreads();
24522 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
24523 wxPyEndAllowThreads(__tstate);
24524 if (PyErr_Occurred()) SWIG_fail;
24525 }
24526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24527 return resultobj;
24528 fail:
24529 return NULL;
24530 }
24531
24532
24533 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
24534 int argc;
24535 PyObject *argv[6];
24536
24537 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
24538 --argc;
24539 if (argc == 2) {
24540 int _v = 0;
24541 {
24542 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
24543 _v = SWIG_CheckState(res);
24544 }
24545 if (!_v) goto check_1;
24546 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
24547 }
24548 check_1:
24549
24550 if (argc == 2) {
24551 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
24552 }
24553 if (argc == 5) {
24554 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
24555 }
24556
24557 fail:
24558 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
24559 return NULL;
24560 }
24561
24562
24563 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24564 PyObject *resultobj = 0;
24565 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
24566 void *argp1 = 0 ;
24567 int res1 = 0 ;
24568 PyObject *swig_obj[1] ;
24569
24570 if (!args) SWIG_fail;
24571 swig_obj[0] = args;
24572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
24573 if (!SWIG_IsOK(res1)) {
24574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
24575 }
24576 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
24577 {
24578 PyThreadState* __tstate = wxPyBeginAllowThreads();
24579 delete arg1;
24580
24581 wxPyEndAllowThreads(__tstate);
24582 if (PyErr_Occurred()) SWIG_fail;
24583 }
24584 resultobj = SWIG_Py_Void();
24585 return resultobj;
24586 fail:
24587 return NULL;
24588 }
24589
24590
24591 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24592 PyObject *obj;
24593 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24594 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
24595 return SWIG_Py_Void();
24596 }
24597
24598 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24599 return SWIG_Python_InitShadowInstance(args);
24600 }
24601
24602 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24603 PyObject *resultobj = 0;
24604 wxScreenDC *result = 0 ;
24605
24606 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24607 {
24608 if (!wxPyCheckForApp()) SWIG_fail;
24609 PyThreadState* __tstate = wxPyBeginAllowThreads();
24610 result = (wxScreenDC *)new wxScreenDC();
24611 wxPyEndAllowThreads(__tstate);
24612 if (PyErr_Occurred()) SWIG_fail;
24613 }
24614 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24615 return resultobj;
24616 fail:
24617 return NULL;
24618 }
24619
24620
24621 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24622 PyObject *resultobj = 0;
24623 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24624 wxWindow *arg2 = (wxWindow *) 0 ;
24625 bool result;
24626 void *argp1 = 0 ;
24627 int res1 = 0 ;
24628 void *argp2 = 0 ;
24629 int res2 = 0 ;
24630 PyObject * obj0 = 0 ;
24631 PyObject * obj1 = 0 ;
24632 char * kwnames[] = {
24633 (char *) "self",(char *) "window", NULL
24634 };
24635
24636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24638 if (!SWIG_IsOK(res1)) {
24639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24640 }
24641 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24642 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24643 if (!SWIG_IsOK(res2)) {
24644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24645 }
24646 arg2 = reinterpret_cast< wxWindow * >(argp2);
24647 {
24648 PyThreadState* __tstate = wxPyBeginAllowThreads();
24649 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24650 wxPyEndAllowThreads(__tstate);
24651 if (PyErr_Occurred()) SWIG_fail;
24652 }
24653 {
24654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24655 }
24656 return resultobj;
24657 fail:
24658 return NULL;
24659 }
24660
24661
24662 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24663 PyObject *resultobj = 0;
24664 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24665 wxRect *arg2 = (wxRect *) NULL ;
24666 bool result;
24667 void *argp1 = 0 ;
24668 int res1 = 0 ;
24669 void *argp2 = 0 ;
24670 int res2 = 0 ;
24671 PyObject * obj0 = 0 ;
24672 PyObject * obj1 = 0 ;
24673 char * kwnames[] = {
24674 (char *) "self",(char *) "rect", NULL
24675 };
24676
24677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24679 if (!SWIG_IsOK(res1)) {
24680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24681 }
24682 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24683 if (obj1) {
24684 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24685 if (!SWIG_IsOK(res2)) {
24686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24687 }
24688 arg2 = reinterpret_cast< wxRect * >(argp2);
24689 }
24690 {
24691 PyThreadState* __tstate = wxPyBeginAllowThreads();
24692 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24693 wxPyEndAllowThreads(__tstate);
24694 if (PyErr_Occurred()) SWIG_fail;
24695 }
24696 {
24697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24698 }
24699 return resultobj;
24700 fail:
24701 return NULL;
24702 }
24703
24704
24705 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24706 PyObject *resultobj = 0;
24707 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24708 bool result;
24709 void *argp1 = 0 ;
24710 int res1 = 0 ;
24711 PyObject *swig_obj[1] ;
24712
24713 if (!args) SWIG_fail;
24714 swig_obj[0] = args;
24715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24716 if (!SWIG_IsOK(res1)) {
24717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24718 }
24719 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24720 {
24721 PyThreadState* __tstate = wxPyBeginAllowThreads();
24722 result = (bool)(arg1)->EndDrawingOnTop();
24723 wxPyEndAllowThreads(__tstate);
24724 if (PyErr_Occurred()) SWIG_fail;
24725 }
24726 {
24727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24728 }
24729 return resultobj;
24730 fail:
24731 return NULL;
24732 }
24733
24734
24735 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24736 PyObject *obj;
24737 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24738 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24739 return SWIG_Py_Void();
24740 }
24741
24742 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24743 return SWIG_Python_InitShadowInstance(args);
24744 }
24745
24746 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24747 PyObject *resultobj = 0;
24748 wxWindow *arg1 = (wxWindow *) 0 ;
24749 wxWindowDC *result = 0 ;
24750 void *argp1 = 0 ;
24751 int res1 = 0 ;
24752 PyObject * obj0 = 0 ;
24753 char * kwnames[] = {
24754 (char *) "win", NULL
24755 };
24756
24757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24759 if (!SWIG_IsOK(res1)) {
24760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24761 }
24762 arg1 = reinterpret_cast< wxWindow * >(argp1);
24763 {
24764 if (!wxPyCheckForApp()) SWIG_fail;
24765 PyThreadState* __tstate = wxPyBeginAllowThreads();
24766 result = (wxWindowDC *)new wxWindowDC(arg1);
24767 wxPyEndAllowThreads(__tstate);
24768 if (PyErr_Occurred()) SWIG_fail;
24769 }
24770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24771 return resultobj;
24772 fail:
24773 return NULL;
24774 }
24775
24776
24777 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24778 PyObject *obj;
24779 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24780 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24781 return SWIG_Py_Void();
24782 }
24783
24784 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24785 return SWIG_Python_InitShadowInstance(args);
24786 }
24787
24788 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24789 PyObject *resultobj = 0;
24790 wxWindow *arg1 = (wxWindow *) 0 ;
24791 wxClientDC *result = 0 ;
24792 void *argp1 = 0 ;
24793 int res1 = 0 ;
24794 PyObject * obj0 = 0 ;
24795 char * kwnames[] = {
24796 (char *) "win", NULL
24797 };
24798
24799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24801 if (!SWIG_IsOK(res1)) {
24802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24803 }
24804 arg1 = reinterpret_cast< wxWindow * >(argp1);
24805 {
24806 if (!wxPyCheckForApp()) SWIG_fail;
24807 PyThreadState* __tstate = wxPyBeginAllowThreads();
24808 result = (wxClientDC *)new wxClientDC(arg1);
24809 wxPyEndAllowThreads(__tstate);
24810 if (PyErr_Occurred()) SWIG_fail;
24811 }
24812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24813 return resultobj;
24814 fail:
24815 return NULL;
24816 }
24817
24818
24819 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24820 PyObject *obj;
24821 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24822 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24823 return SWIG_Py_Void();
24824 }
24825
24826 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24827 return SWIG_Python_InitShadowInstance(args);
24828 }
24829
24830 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24831 PyObject *resultobj = 0;
24832 wxWindow *arg1 = (wxWindow *) 0 ;
24833 wxPaintDC *result = 0 ;
24834 void *argp1 = 0 ;
24835 int res1 = 0 ;
24836 PyObject * obj0 = 0 ;
24837 char * kwnames[] = {
24838 (char *) "win", NULL
24839 };
24840
24841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24843 if (!SWIG_IsOK(res1)) {
24844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24845 }
24846 arg1 = reinterpret_cast< wxWindow * >(argp1);
24847 {
24848 if (!wxPyCheckForApp()) SWIG_fail;
24849 PyThreadState* __tstate = wxPyBeginAllowThreads();
24850 result = (wxPaintDC *)new wxPaintDC(arg1);
24851 wxPyEndAllowThreads(__tstate);
24852 if (PyErr_Occurred()) SWIG_fail;
24853 }
24854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24855 return resultobj;
24856 fail:
24857 return NULL;
24858 }
24859
24860
24861 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24862 PyObject *obj;
24863 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24864 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24865 return SWIG_Py_Void();
24866 }
24867
24868 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24869 return SWIG_Python_InitShadowInstance(args);
24870 }
24871
24872 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24873 PyObject *resultobj = 0;
24874 wxBitmap &arg1_defvalue = wxNullBitmap ;
24875 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24876 wxMemoryDC *result = 0 ;
24877 void *argp1 = 0 ;
24878 int res1 = 0 ;
24879 PyObject * obj0 = 0 ;
24880 char * kwnames[] = {
24881 (char *) "bitmap", NULL
24882 };
24883
24884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24885 if (obj0) {
24886 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24887 if (!SWIG_IsOK(res1)) {
24888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24889 }
24890 if (!argp1) {
24891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24892 }
24893 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24894 }
24895 {
24896 if (!wxPyCheckForApp()) SWIG_fail;
24897 PyThreadState* __tstate = wxPyBeginAllowThreads();
24898 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24899 wxPyEndAllowThreads(__tstate);
24900 if (PyErr_Occurred()) SWIG_fail;
24901 }
24902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24903 return resultobj;
24904 fail:
24905 return NULL;
24906 }
24907
24908
24909 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24910 PyObject *resultobj = 0;
24911 wxDC *arg1 = (wxDC *) 0 ;
24912 wxMemoryDC *result = 0 ;
24913 void *argp1 = 0 ;
24914 int res1 = 0 ;
24915 PyObject * obj0 = 0 ;
24916 char * kwnames[] = {
24917 (char *) "oldDC", NULL
24918 };
24919
24920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24922 if (!SWIG_IsOK(res1)) {
24923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24924 }
24925 arg1 = reinterpret_cast< wxDC * >(argp1);
24926 {
24927 if (!wxPyCheckForApp()) SWIG_fail;
24928 PyThreadState* __tstate = wxPyBeginAllowThreads();
24929 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24930 wxPyEndAllowThreads(__tstate);
24931 if (PyErr_Occurred()) SWIG_fail;
24932 }
24933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24934 return resultobj;
24935 fail:
24936 return NULL;
24937 }
24938
24939
24940 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24941 PyObject *resultobj = 0;
24942 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24943 wxBitmap *arg2 = 0 ;
24944 void *argp1 = 0 ;
24945 int res1 = 0 ;
24946 void *argp2 = 0 ;
24947 int res2 = 0 ;
24948 PyObject * obj0 = 0 ;
24949 PyObject * obj1 = 0 ;
24950 char * kwnames[] = {
24951 (char *) "self",(char *) "bitmap", NULL
24952 };
24953
24954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24956 if (!SWIG_IsOK(res1)) {
24957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24958 }
24959 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24960 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24961 if (!SWIG_IsOK(res2)) {
24962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24963 }
24964 if (!argp2) {
24965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24966 }
24967 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24968 {
24969 PyThreadState* __tstate = wxPyBeginAllowThreads();
24970 (arg1)->SelectObject(*arg2);
24971 wxPyEndAllowThreads(__tstate);
24972 if (PyErr_Occurred()) SWIG_fail;
24973 }
24974 resultobj = SWIG_Py_Void();
24975 return resultobj;
24976 fail:
24977 return NULL;
24978 }
24979
24980
24981 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24982 PyObject *resultobj = 0;
24983 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24984 wxBitmap *arg2 = 0 ;
24985 void *argp1 = 0 ;
24986 int res1 = 0 ;
24987 void *argp2 = 0 ;
24988 int res2 = 0 ;
24989 PyObject * obj0 = 0 ;
24990 PyObject * obj1 = 0 ;
24991 char * kwnames[] = {
24992 (char *) "self",(char *) "bmp", NULL
24993 };
24994
24995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24997 if (!SWIG_IsOK(res1)) {
24998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24999 }
25000 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
25001 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25002 if (!SWIG_IsOK(res2)) {
25003 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25004 }
25005 if (!argp2) {
25006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25007 }
25008 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25009 {
25010 PyThreadState* __tstate = wxPyBeginAllowThreads();
25011 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
25012 wxPyEndAllowThreads(__tstate);
25013 if (PyErr_Occurred()) SWIG_fail;
25014 }
25015 resultobj = SWIG_Py_Void();
25016 return resultobj;
25017 fail:
25018 return NULL;
25019 }
25020
25021
25022 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25023 PyObject *obj;
25024 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25025 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
25026 return SWIG_Py_Void();
25027 }
25028
25029 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25030 return SWIG_Python_InitShadowInstance(args);
25031 }
25032
25033 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25034 PyObject *resultobj = 0;
25035 wxDC *arg1 = (wxDC *) 0 ;
25036 wxBitmap &arg2_defvalue = wxNullBitmap ;
25037 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25038 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25039 wxBufferedDC *result = 0 ;
25040 void *argp1 = 0 ;
25041 int res1 = 0 ;
25042 void *argp2 = 0 ;
25043 int res2 = 0 ;
25044 int val3 ;
25045 int ecode3 = 0 ;
25046
25047 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
25048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25049 if (!SWIG_IsOK(res1)) {
25050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25051 }
25052 arg1 = reinterpret_cast< wxDC * >(argp1);
25053 if (swig_obj[1]) {
25054 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
25055 if (!SWIG_IsOK(res2)) {
25056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25057 }
25058 if (!argp2) {
25059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25060 }
25061 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25062 }
25063 if (swig_obj[2]) {
25064 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25065 if (!SWIG_IsOK(ecode3)) {
25066 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25067 }
25068 arg3 = static_cast< int >(val3);
25069 }
25070 {
25071 if (!wxPyCheckForApp()) SWIG_fail;
25072 PyThreadState* __tstate = wxPyBeginAllowThreads();
25073 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
25074 wxPyEndAllowThreads(__tstate);
25075 if (PyErr_Occurred()) SWIG_fail;
25076 }
25077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25078 return resultobj;
25079 fail:
25080 return NULL;
25081 }
25082
25083
25084 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25085 PyObject *resultobj = 0;
25086 wxDC *arg1 = (wxDC *) 0 ;
25087 wxSize *arg2 = 0 ;
25088 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25089 wxBufferedDC *result = 0 ;
25090 void *argp1 = 0 ;
25091 int res1 = 0 ;
25092 wxSize temp2 ;
25093 int val3 ;
25094 int ecode3 = 0 ;
25095
25096 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
25097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25098 if (!SWIG_IsOK(res1)) {
25099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25100 }
25101 arg1 = reinterpret_cast< wxDC * >(argp1);
25102 {
25103 arg2 = &temp2;
25104 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
25105 }
25106 if (swig_obj[2]) {
25107 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25108 if (!SWIG_IsOK(ecode3)) {
25109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25110 }
25111 arg3 = static_cast< int >(val3);
25112 }
25113 {
25114 if (!wxPyCheckForApp()) SWIG_fail;
25115 PyThreadState* __tstate = wxPyBeginAllowThreads();
25116 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
25117 wxPyEndAllowThreads(__tstate);
25118 if (PyErr_Occurred()) SWIG_fail;
25119 }
25120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25121 return resultobj;
25122 fail:
25123 return NULL;
25124 }
25125
25126
25127 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
25128 int argc;
25129 PyObject *argv[4];
25130
25131 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
25132 --argc;
25133 if ((argc >= 1) && (argc <= 3)) {
25134 int _v = 0;
25135 if (argc > 1) {
25136 {
25137 void *vptr = 0;
25138 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
25139 _v = SWIG_CheckState(res);
25140 }
25141 if (!_v) goto check_1;
25142 }
25143 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
25144 }
25145 check_1:
25146
25147 if ((argc >= 2) && (argc <= 3)) {
25148 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
25149 }
25150
25151 fail:
25152 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
25153 return NULL;
25154 }
25155
25156
25157 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25158 PyObject *resultobj = 0;
25159 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25160 void *argp1 = 0 ;
25161 int res1 = 0 ;
25162 PyObject *swig_obj[1] ;
25163
25164 if (!args) SWIG_fail;
25165 swig_obj[0] = args;
25166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
25167 if (!SWIG_IsOK(res1)) {
25168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25169 }
25170 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25171 {
25172 PyThreadState* __tstate = wxPyBeginAllowThreads();
25173 delete arg1;
25174
25175 wxPyEndAllowThreads(__tstate);
25176 if (PyErr_Occurred()) SWIG_fail;
25177 }
25178 resultobj = SWIG_Py_Void();
25179 return resultobj;
25180 fail:
25181 return NULL;
25182 }
25183
25184
25185 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25186 PyObject *resultobj = 0;
25187 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25188 void *argp1 = 0 ;
25189 int res1 = 0 ;
25190 PyObject *swig_obj[1] ;
25191
25192 if (!args) SWIG_fail;
25193 swig_obj[0] = args;
25194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25195 if (!SWIG_IsOK(res1)) {
25196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25197 }
25198 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25199 {
25200 PyThreadState* __tstate = wxPyBeginAllowThreads();
25201 (arg1)->UnMask();
25202 wxPyEndAllowThreads(__tstate);
25203 if (PyErr_Occurred()) SWIG_fail;
25204 }
25205 resultobj = SWIG_Py_Void();
25206 return resultobj;
25207 fail:
25208 return NULL;
25209 }
25210
25211
25212 SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25213 PyObject *resultobj = 0;
25214 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25215 int arg2 ;
25216 void *argp1 = 0 ;
25217 int res1 = 0 ;
25218 int val2 ;
25219 int ecode2 = 0 ;
25220 PyObject * obj0 = 0 ;
25221 PyObject * obj1 = 0 ;
25222 char * kwnames[] = {
25223 (char *) "self",(char *) "style", NULL
25224 };
25225
25226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
25227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25228 if (!SWIG_IsOK(res1)) {
25229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25230 }
25231 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25232 ecode2 = SWIG_AsVal_int(obj1, &val2);
25233 if (!SWIG_IsOK(ecode2)) {
25234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
25235 }
25236 arg2 = static_cast< int >(val2);
25237 {
25238 PyThreadState* __tstate = wxPyBeginAllowThreads();
25239 (arg1)->SetStyle(arg2);
25240 wxPyEndAllowThreads(__tstate);
25241 if (PyErr_Occurred()) SWIG_fail;
25242 }
25243 resultobj = SWIG_Py_Void();
25244 return resultobj;
25245 fail:
25246 return NULL;
25247 }
25248
25249
25250 SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25251 PyObject *resultobj = 0;
25252 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25253 int result;
25254 void *argp1 = 0 ;
25255 int res1 = 0 ;
25256 PyObject *swig_obj[1] ;
25257
25258 if (!args) SWIG_fail;
25259 swig_obj[0] = args;
25260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25261 if (!SWIG_IsOK(res1)) {
25262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
25263 }
25264 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25265 {
25266 PyThreadState* __tstate = wxPyBeginAllowThreads();
25267 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
25268 wxPyEndAllowThreads(__tstate);
25269 if (PyErr_Occurred()) SWIG_fail;
25270 }
25271 resultobj = SWIG_From_int(static_cast< int >(result));
25272 return resultobj;
25273 fail:
25274 return NULL;
25275 }
25276
25277
25278 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25279 PyObject *obj;
25280 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25281 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
25282 return SWIG_Py_Void();
25283 }
25284
25285 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25286 return SWIG_Python_InitShadowInstance(args);
25287 }
25288
25289 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25290 PyObject *resultobj = 0;
25291 wxWindow *arg1 = (wxWindow *) 0 ;
25292 wxBitmap &arg2_defvalue = wxNullBitmap ;
25293 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25294 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25295 wxBufferedPaintDC *result = 0 ;
25296 void *argp1 = 0 ;
25297 int res1 = 0 ;
25298 void *argp2 = 0 ;
25299 int res2 = 0 ;
25300 int val3 ;
25301 int ecode3 = 0 ;
25302 PyObject * obj0 = 0 ;
25303 PyObject * obj1 = 0 ;
25304 PyObject * obj2 = 0 ;
25305 char * kwnames[] = {
25306 (char *) "window",(char *) "buffer",(char *) "style", NULL
25307 };
25308
25309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25311 if (!SWIG_IsOK(res1)) {
25312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25313 }
25314 arg1 = reinterpret_cast< wxWindow * >(argp1);
25315 if (obj1) {
25316 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
25317 if (!SWIG_IsOK(res2)) {
25318 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25319 }
25320 if (!argp2) {
25321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25322 }
25323 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25324 }
25325 if (obj2) {
25326 ecode3 = SWIG_AsVal_int(obj2, &val3);
25327 if (!SWIG_IsOK(ecode3)) {
25328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25329 }
25330 arg3 = static_cast< int >(val3);
25331 }
25332 {
25333 if (!wxPyCheckForApp()) SWIG_fail;
25334 PyThreadState* __tstate = wxPyBeginAllowThreads();
25335 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
25336 wxPyEndAllowThreads(__tstate);
25337 if (PyErr_Occurred()) SWIG_fail;
25338 }
25339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25340 return resultobj;
25341 fail:
25342 return NULL;
25343 }
25344
25345
25346 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25347 PyObject *obj;
25348 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25349 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25350 return SWIG_Py_Void();
25351 }
25352
25353 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25354 return SWIG_Python_InitShadowInstance(args);
25355 }
25356
25357 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25358 PyObject *resultobj = 0;
25359 wxWindow *arg1 = (wxWindow *) 0 ;
25360 wxAutoBufferedPaintDC *result = 0 ;
25361 void *argp1 = 0 ;
25362 int res1 = 0 ;
25363 PyObject * obj0 = 0 ;
25364 char * kwnames[] = {
25365 (char *) "win", NULL
25366 };
25367
25368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
25369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25370 if (!SWIG_IsOK(res1)) {
25371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25372 }
25373 arg1 = reinterpret_cast< wxWindow * >(argp1);
25374 {
25375 PyThreadState* __tstate = wxPyBeginAllowThreads();
25376 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
25377 wxPyEndAllowThreads(__tstate);
25378 if (PyErr_Occurred()) SWIG_fail;
25379 }
25380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25381 return resultobj;
25382 fail:
25383 return NULL;
25384 }
25385
25386
25387 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25388 PyObject *obj;
25389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25390 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
25391 return SWIG_Py_Void();
25392 }
25393
25394 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25395 return SWIG_Python_InitShadowInstance(args);
25396 }
25397
25398 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25399 PyObject *resultobj = 0;
25400 wxWindow *arg1 = (wxWindow *) 0 ;
25401 wxDC *result = 0 ;
25402 void *argp1 = 0 ;
25403 int res1 = 0 ;
25404 PyObject * obj0 = 0 ;
25405 char * kwnames[] = {
25406 (char *) "window", NULL
25407 };
25408
25409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25411 if (!SWIG_IsOK(res1)) {
25412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25413 }
25414 arg1 = reinterpret_cast< wxWindow * >(argp1);
25415 {
25416 PyThreadState* __tstate = wxPyBeginAllowThreads();
25417 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25418 wxPyEndAllowThreads(__tstate);
25419 if (PyErr_Occurred()) SWIG_fail;
25420 }
25421 {
25422 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25423 }
25424 return resultobj;
25425 fail:
25426 return NULL;
25427 }
25428
25429
25430 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25431 PyObject *resultobj = 0;
25432 wxDC *arg1 = 0 ;
25433 bool arg2 ;
25434 wxMirrorDC *result = 0 ;
25435 void *argp1 = 0 ;
25436 int res1 = 0 ;
25437 bool val2 ;
25438 int ecode2 = 0 ;
25439 PyObject * obj0 = 0 ;
25440 PyObject * obj1 = 0 ;
25441 char * kwnames[] = {
25442 (char *) "dc",(char *) "mirror", NULL
25443 };
25444
25445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25446 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25447 if (!SWIG_IsOK(res1)) {
25448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25449 }
25450 if (!argp1) {
25451 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25452 }
25453 arg1 = reinterpret_cast< wxDC * >(argp1);
25454 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25455 if (!SWIG_IsOK(ecode2)) {
25456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25457 }
25458 arg2 = static_cast< bool >(val2);
25459 {
25460 if (!wxPyCheckForApp()) SWIG_fail;
25461 PyThreadState* __tstate = wxPyBeginAllowThreads();
25462 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25463 wxPyEndAllowThreads(__tstate);
25464 if (PyErr_Occurred()) SWIG_fail;
25465 }
25466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25467 return resultobj;
25468 fail:
25469 return NULL;
25470 }
25471
25472
25473 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25474 PyObject *obj;
25475 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25476 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
25477 return SWIG_Py_Void();
25478 }
25479
25480 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25481 return SWIG_Python_InitShadowInstance(args);
25482 }
25483
25484 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25485 PyObject *resultobj = 0;
25486 wxPrintData *arg1 = 0 ;
25487 wxPostScriptDC *result = 0 ;
25488 void *argp1 = 0 ;
25489 int res1 = 0 ;
25490 PyObject * obj0 = 0 ;
25491 char * kwnames[] = {
25492 (char *) "printData", NULL
25493 };
25494
25495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
25496 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25497 if (!SWIG_IsOK(res1)) {
25498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25499 }
25500 if (!argp1) {
25501 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25502 }
25503 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25504 {
25505 if (!wxPyCheckForApp()) SWIG_fail;
25506 PyThreadState* __tstate = wxPyBeginAllowThreads();
25507 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
25508 wxPyEndAllowThreads(__tstate);
25509 if (PyErr_Occurred()) SWIG_fail;
25510 }
25511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
25512 return resultobj;
25513 fail:
25514 return NULL;
25515 }
25516
25517
25518 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25519 PyObject *resultobj = 0;
25520 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25521 wxPrintData *result = 0 ;
25522 void *argp1 = 0 ;
25523 int res1 = 0 ;
25524 PyObject *swig_obj[1] ;
25525
25526 if (!args) SWIG_fail;
25527 swig_obj[0] = args;
25528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25529 if (!SWIG_IsOK(res1)) {
25530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25531 }
25532 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25533 {
25534 PyThreadState* __tstate = wxPyBeginAllowThreads();
25535 {
25536 wxPrintData &_result_ref = (arg1)->GetPrintData();
25537 result = (wxPrintData *) &_result_ref;
25538 }
25539 wxPyEndAllowThreads(__tstate);
25540 if (PyErr_Occurred()) SWIG_fail;
25541 }
25542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
25543 return resultobj;
25544 fail:
25545 return NULL;
25546 }
25547
25548
25549 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25550 PyObject *resultobj = 0;
25551 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25552 wxPrintData *arg2 = 0 ;
25553 void *argp1 = 0 ;
25554 int res1 = 0 ;
25555 void *argp2 = 0 ;
25556 int res2 = 0 ;
25557 PyObject * obj0 = 0 ;
25558 PyObject * obj1 = 0 ;
25559 char * kwnames[] = {
25560 (char *) "self",(char *) "data", NULL
25561 };
25562
25563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
25564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25565 if (!SWIG_IsOK(res1)) {
25566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25567 }
25568 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25569 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
25570 if (!SWIG_IsOK(res2)) {
25571 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25572 }
25573 if (!argp2) {
25574 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25575 }
25576 arg2 = reinterpret_cast< wxPrintData * >(argp2);
25577 {
25578 PyThreadState* __tstate = wxPyBeginAllowThreads();
25579 (arg1)->SetPrintData((wxPrintData const &)*arg2);
25580 wxPyEndAllowThreads(__tstate);
25581 if (PyErr_Occurred()) SWIG_fail;
25582 }
25583 resultobj = SWIG_Py_Void();
25584 return resultobj;
25585 fail:
25586 return NULL;
25587 }
25588
25589
25590 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25591 PyObject *resultobj = 0;
25592 int arg1 ;
25593 int val1 ;
25594 int ecode1 = 0 ;
25595 PyObject * obj0 = 0 ;
25596 char * kwnames[] = {
25597 (char *) "ppi", NULL
25598 };
25599
25600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
25601 ecode1 = SWIG_AsVal_int(obj0, &val1);
25602 if (!SWIG_IsOK(ecode1)) {
25603 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
25604 }
25605 arg1 = static_cast< int >(val1);
25606 {
25607 PyThreadState* __tstate = wxPyBeginAllowThreads();
25608 wxPostScriptDC::SetResolution(arg1);
25609 wxPyEndAllowThreads(__tstate);
25610 if (PyErr_Occurred()) SWIG_fail;
25611 }
25612 resultobj = SWIG_Py_Void();
25613 return resultobj;
25614 fail:
25615 return NULL;
25616 }
25617
25618
25619 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25620 PyObject *resultobj = 0;
25621 int result;
25622
25623 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
25624 {
25625 PyThreadState* __tstate = wxPyBeginAllowThreads();
25626 result = (int)wxPostScriptDC::GetResolution();
25627 wxPyEndAllowThreads(__tstate);
25628 if (PyErr_Occurred()) SWIG_fail;
25629 }
25630 resultobj = SWIG_From_int(static_cast< int >(result));
25631 return resultobj;
25632 fail:
25633 return NULL;
25634 }
25635
25636
25637 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25638 PyObject *obj;
25639 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25640 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
25641 return SWIG_Py_Void();
25642 }
25643
25644 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25645 return SWIG_Python_InitShadowInstance(args);
25646 }
25647
25648 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25649 PyObject *resultobj = 0;
25650 wxString const &arg1_defvalue = wxPyEmptyString ;
25651 wxString *arg1 = (wxString *) &arg1_defvalue ;
25652 wxMetaFile *result = 0 ;
25653 bool temp1 = false ;
25654 PyObject * obj0 = 0 ;
25655 char * kwnames[] = {
25656 (char *) "filename", NULL
25657 };
25658
25659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25660 if (obj0) {
25661 {
25662 arg1 = wxString_in_helper(obj0);
25663 if (arg1 == NULL) SWIG_fail;
25664 temp1 = true;
25665 }
25666 }
25667 {
25668 if (!wxPyCheckForApp()) SWIG_fail;
25669 PyThreadState* __tstate = wxPyBeginAllowThreads();
25670 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25671 wxPyEndAllowThreads(__tstate);
25672 if (PyErr_Occurred()) SWIG_fail;
25673 }
25674 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25675 {
25676 if (temp1)
25677 delete arg1;
25678 }
25679 return resultobj;
25680 fail:
25681 {
25682 if (temp1)
25683 delete arg1;
25684 }
25685 return NULL;
25686 }
25687
25688
25689 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25690 PyObject *resultobj = 0;
25691 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25692 void *argp1 = 0 ;
25693 int res1 = 0 ;
25694 PyObject *swig_obj[1] ;
25695
25696 if (!args) SWIG_fail;
25697 swig_obj[0] = args;
25698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25699 if (!SWIG_IsOK(res1)) {
25700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25701 }
25702 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25703 {
25704 PyThreadState* __tstate = wxPyBeginAllowThreads();
25705 delete arg1;
25706
25707 wxPyEndAllowThreads(__tstate);
25708 if (PyErr_Occurred()) SWIG_fail;
25709 }
25710 resultobj = SWIG_Py_Void();
25711 return resultobj;
25712 fail:
25713 return NULL;
25714 }
25715
25716
25717 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25718 PyObject *resultobj = 0;
25719 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25720 bool result;
25721 void *argp1 = 0 ;
25722 int res1 = 0 ;
25723 PyObject *swig_obj[1] ;
25724
25725 if (!args) SWIG_fail;
25726 swig_obj[0] = args;
25727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25728 if (!SWIG_IsOK(res1)) {
25729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25730 }
25731 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25732 {
25733 PyThreadState* __tstate = wxPyBeginAllowThreads();
25734 result = (bool)(arg1)->IsOk();
25735 wxPyEndAllowThreads(__tstate);
25736 if (PyErr_Occurred()) SWIG_fail;
25737 }
25738 {
25739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25740 }
25741 return resultobj;
25742 fail:
25743 return NULL;
25744 }
25745
25746
25747 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25748 PyObject *resultobj = 0;
25749 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25750 int arg2 = (int) 0 ;
25751 int arg3 = (int) 0 ;
25752 bool result;
25753 void *argp1 = 0 ;
25754 int res1 = 0 ;
25755 int val2 ;
25756 int ecode2 = 0 ;
25757 int val3 ;
25758 int ecode3 = 0 ;
25759 PyObject * obj0 = 0 ;
25760 PyObject * obj1 = 0 ;
25761 PyObject * obj2 = 0 ;
25762 char * kwnames[] = {
25763 (char *) "self",(char *) "width",(char *) "height", NULL
25764 };
25765
25766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25768 if (!SWIG_IsOK(res1)) {
25769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25770 }
25771 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25772 if (obj1) {
25773 ecode2 = SWIG_AsVal_int(obj1, &val2);
25774 if (!SWIG_IsOK(ecode2)) {
25775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25776 }
25777 arg2 = static_cast< int >(val2);
25778 }
25779 if (obj2) {
25780 ecode3 = SWIG_AsVal_int(obj2, &val3);
25781 if (!SWIG_IsOK(ecode3)) {
25782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25783 }
25784 arg3 = static_cast< int >(val3);
25785 }
25786 {
25787 PyThreadState* __tstate = wxPyBeginAllowThreads();
25788 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25789 wxPyEndAllowThreads(__tstate);
25790 if (PyErr_Occurred()) SWIG_fail;
25791 }
25792 {
25793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25794 }
25795 return resultobj;
25796 fail:
25797 return NULL;
25798 }
25799
25800
25801 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25802 PyObject *resultobj = 0;
25803 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25804 wxSize result;
25805 void *argp1 = 0 ;
25806 int res1 = 0 ;
25807 PyObject *swig_obj[1] ;
25808
25809 if (!args) SWIG_fail;
25810 swig_obj[0] = args;
25811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25812 if (!SWIG_IsOK(res1)) {
25813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25814 }
25815 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25816 {
25817 PyThreadState* __tstate = wxPyBeginAllowThreads();
25818 result = (arg1)->GetSize();
25819 wxPyEndAllowThreads(__tstate);
25820 if (PyErr_Occurred()) SWIG_fail;
25821 }
25822 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25823 return resultobj;
25824 fail:
25825 return NULL;
25826 }
25827
25828
25829 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25830 PyObject *resultobj = 0;
25831 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25832 int result;
25833 void *argp1 = 0 ;
25834 int res1 = 0 ;
25835 PyObject *swig_obj[1] ;
25836
25837 if (!args) SWIG_fail;
25838 swig_obj[0] = args;
25839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25840 if (!SWIG_IsOK(res1)) {
25841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25842 }
25843 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25844 {
25845 PyThreadState* __tstate = wxPyBeginAllowThreads();
25846 result = (int)(arg1)->GetWidth();
25847 wxPyEndAllowThreads(__tstate);
25848 if (PyErr_Occurred()) SWIG_fail;
25849 }
25850 resultobj = SWIG_From_int(static_cast< int >(result));
25851 return resultobj;
25852 fail:
25853 return NULL;
25854 }
25855
25856
25857 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25858 PyObject *resultobj = 0;
25859 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25860 int result;
25861 void *argp1 = 0 ;
25862 int res1 = 0 ;
25863 PyObject *swig_obj[1] ;
25864
25865 if (!args) SWIG_fail;
25866 swig_obj[0] = args;
25867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25868 if (!SWIG_IsOK(res1)) {
25869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25870 }
25871 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25872 {
25873 PyThreadState* __tstate = wxPyBeginAllowThreads();
25874 result = (int)(arg1)->GetHeight();
25875 wxPyEndAllowThreads(__tstate);
25876 if (PyErr_Occurred()) SWIG_fail;
25877 }
25878 resultobj = SWIG_From_int(static_cast< int >(result));
25879 return resultobj;
25880 fail:
25881 return NULL;
25882 }
25883
25884
25885 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25886 PyObject *resultobj = 0;
25887 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25888 wxString *result = 0 ;
25889 void *argp1 = 0 ;
25890 int res1 = 0 ;
25891 PyObject *swig_obj[1] ;
25892
25893 if (!args) SWIG_fail;
25894 swig_obj[0] = args;
25895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25896 if (!SWIG_IsOK(res1)) {
25897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
25898 }
25899 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25900 {
25901 PyThreadState* __tstate = wxPyBeginAllowThreads();
25902 {
25903 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
25904 result = (wxString *) &_result_ref;
25905 }
25906 wxPyEndAllowThreads(__tstate);
25907 if (PyErr_Occurred()) SWIG_fail;
25908 }
25909 {
25910 #if wxUSE_UNICODE
25911 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25912 #else
25913 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25914 #endif
25915 }
25916 return resultobj;
25917 fail:
25918 return NULL;
25919 }
25920
25921
25922 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25923 PyObject *obj;
25924 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25925 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25926 return SWIG_Py_Void();
25927 }
25928
25929 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25930 return SWIG_Python_InitShadowInstance(args);
25931 }
25932
25933 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25934 PyObject *resultobj = 0;
25935 wxString const &arg1_defvalue = wxPyEmptyString ;
25936 wxString *arg1 = (wxString *) &arg1_defvalue ;
25937 int arg2 = (int) 0 ;
25938 int arg3 = (int) 0 ;
25939 wxString const &arg4_defvalue = wxPyEmptyString ;
25940 wxString *arg4 = (wxString *) &arg4_defvalue ;
25941 wxMetaFileDC *result = 0 ;
25942 bool temp1 = false ;
25943 int val2 ;
25944 int ecode2 = 0 ;
25945 int val3 ;
25946 int ecode3 = 0 ;
25947 bool temp4 = false ;
25948 PyObject * obj0 = 0 ;
25949 PyObject * obj1 = 0 ;
25950 PyObject * obj2 = 0 ;
25951 PyObject * obj3 = 0 ;
25952 char * kwnames[] = {
25953 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25954 };
25955
25956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25957 if (obj0) {
25958 {
25959 arg1 = wxString_in_helper(obj0);
25960 if (arg1 == NULL) SWIG_fail;
25961 temp1 = true;
25962 }
25963 }
25964 if (obj1) {
25965 ecode2 = SWIG_AsVal_int(obj1, &val2);
25966 if (!SWIG_IsOK(ecode2)) {
25967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25968 }
25969 arg2 = static_cast< int >(val2);
25970 }
25971 if (obj2) {
25972 ecode3 = SWIG_AsVal_int(obj2, &val3);
25973 if (!SWIG_IsOK(ecode3)) {
25974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25975 }
25976 arg3 = static_cast< int >(val3);
25977 }
25978 if (obj3) {
25979 {
25980 arg4 = wxString_in_helper(obj3);
25981 if (arg4 == NULL) SWIG_fail;
25982 temp4 = true;
25983 }
25984 }
25985 {
25986 if (!wxPyCheckForApp()) SWIG_fail;
25987 PyThreadState* __tstate = wxPyBeginAllowThreads();
25988 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25989 wxPyEndAllowThreads(__tstate);
25990 if (PyErr_Occurred()) SWIG_fail;
25991 }
25992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25993 {
25994 if (temp1)
25995 delete arg1;
25996 }
25997 {
25998 if (temp4)
25999 delete arg4;
26000 }
26001 return resultobj;
26002 fail:
26003 {
26004 if (temp1)
26005 delete arg1;
26006 }
26007 {
26008 if (temp4)
26009 delete arg4;
26010 }
26011 return NULL;
26012 }
26013
26014
26015 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26016 PyObject *resultobj = 0;
26017 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
26018 wxMetaFile *result = 0 ;
26019 void *argp1 = 0 ;
26020 int res1 = 0 ;
26021 PyObject *swig_obj[1] ;
26022
26023 if (!args) SWIG_fail;
26024 swig_obj[0] = args;
26025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
26026 if (!SWIG_IsOK(res1)) {
26027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
26028 }
26029 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
26030 {
26031 PyThreadState* __tstate = wxPyBeginAllowThreads();
26032 result = (wxMetaFile *)(arg1)->Close();
26033 wxPyEndAllowThreads(__tstate);
26034 if (PyErr_Occurred()) SWIG_fail;
26035 }
26036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
26037 return resultobj;
26038 fail:
26039 return NULL;
26040 }
26041
26042
26043 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26044 PyObject *obj;
26045 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26046 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
26047 return SWIG_Py_Void();
26048 }
26049
26050 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26051 return SWIG_Python_InitShadowInstance(args);
26052 }
26053
26054 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26055 PyObject *resultobj = 0;
26056 wxPrintData *arg1 = 0 ;
26057 wxPrinterDC *result = 0 ;
26058 void *argp1 = 0 ;
26059 int res1 = 0 ;
26060 PyObject * obj0 = 0 ;
26061 char * kwnames[] = {
26062 (char *) "printData", NULL
26063 };
26064
26065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
26066 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
26067 if (!SWIG_IsOK(res1)) {
26068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26069 }
26070 if (!argp1) {
26071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26072 }
26073 arg1 = reinterpret_cast< wxPrintData * >(argp1);
26074 {
26075 if (!wxPyCheckForApp()) SWIG_fail;
26076 PyThreadState* __tstate = wxPyBeginAllowThreads();
26077 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
26078 wxPyEndAllowThreads(__tstate);
26079 if (PyErr_Occurred()) SWIG_fail;
26080 }
26081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
26082 return resultobj;
26083 fail:
26084 return NULL;
26085 }
26086
26087
26088 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26089 PyObject *obj;
26090 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26091 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
26092 return SWIG_Py_Void();
26093 }
26094
26095 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26096 return SWIG_Python_InitShadowInstance(args);
26097 }
26098
26099 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26100 PyObject *resultobj = 0;
26101 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
26102 wxGraphicsObject *result = 0 ;
26103 void *argp1 = 0 ;
26104 int res1 = 0 ;
26105 PyObject * obj0 = 0 ;
26106 char * kwnames[] = {
26107 (char *) "renderer", NULL
26108 };
26109
26110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
26111 if (obj0) {
26112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26113 if (!SWIG_IsOK(res1)) {
26114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
26115 }
26116 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
26117 }
26118 {
26119 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
26120 if (PyErr_Occurred()) SWIG_fail;
26121 }
26122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
26123 return resultobj;
26124 fail:
26125 return NULL;
26126 }
26127
26128
26129 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26130 PyObject *resultobj = 0;
26131 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26132 void *argp1 = 0 ;
26133 int res1 = 0 ;
26134 PyObject *swig_obj[1] ;
26135
26136 if (!args) SWIG_fail;
26137 swig_obj[0] = args;
26138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
26139 if (!SWIG_IsOK(res1)) {
26140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
26141 }
26142 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26143 {
26144 delete arg1;
26145
26146 if (PyErr_Occurred()) SWIG_fail;
26147 }
26148 resultobj = SWIG_Py_Void();
26149 return resultobj;
26150 fail:
26151 return NULL;
26152 }
26153
26154
26155 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26156 PyObject *resultobj = 0;
26157 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26158 bool result;
26159 void *argp1 = 0 ;
26160 int res1 = 0 ;
26161 PyObject *swig_obj[1] ;
26162
26163 if (!args) SWIG_fail;
26164 swig_obj[0] = args;
26165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26166 if (!SWIG_IsOK(res1)) {
26167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26168 }
26169 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26170 {
26171 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
26172 if (PyErr_Occurred()) SWIG_fail;
26173 }
26174 {
26175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26176 }
26177 return resultobj;
26178 fail:
26179 return NULL;
26180 }
26181
26182
26183 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26184 PyObject *resultobj = 0;
26185 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26186 wxGraphicsRenderer *result = 0 ;
26187 void *argp1 = 0 ;
26188 int res1 = 0 ;
26189 PyObject *swig_obj[1] ;
26190
26191 if (!args) SWIG_fail;
26192 swig_obj[0] = args;
26193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26194 if (!SWIG_IsOK(res1)) {
26195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26196 }
26197 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26198 {
26199 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
26200 if (PyErr_Occurred()) SWIG_fail;
26201 }
26202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26203 return resultobj;
26204 fail:
26205 return NULL;
26206 }
26207
26208
26209 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26210 PyObject *obj;
26211 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26212 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
26213 return SWIG_Py_Void();
26214 }
26215
26216 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26217 return SWIG_Python_InitShadowInstance(args);
26218 }
26219
26220 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26221 PyObject *resultobj = 0;
26222 wxGraphicsPen *result = 0 ;
26223
26224 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
26225 {
26226 result = (wxGraphicsPen *)new wxGraphicsPen();
26227 if (PyErr_Occurred()) SWIG_fail;
26228 }
26229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
26230 return resultobj;
26231 fail:
26232 return NULL;
26233 }
26234
26235
26236 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26237 PyObject *resultobj = 0;
26238 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
26239 void *argp1 = 0 ;
26240 int res1 = 0 ;
26241 PyObject *swig_obj[1] ;
26242
26243 if (!args) SWIG_fail;
26244 swig_obj[0] = args;
26245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
26246 if (!SWIG_IsOK(res1)) {
26247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
26248 }
26249 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
26250 {
26251 delete arg1;
26252
26253 if (PyErr_Occurred()) SWIG_fail;
26254 }
26255 resultobj = SWIG_Py_Void();
26256 return resultobj;
26257 fail:
26258 return NULL;
26259 }
26260
26261
26262 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26263 PyObject *obj;
26264 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26265 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
26266 return SWIG_Py_Void();
26267 }
26268
26269 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26270 return SWIG_Python_InitShadowInstance(args);
26271 }
26272
26273 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26274 PyObject *resultobj = 0;
26275 wxGraphicsBrush *result = 0 ;
26276
26277 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
26278 {
26279 result = (wxGraphicsBrush *)new wxGraphicsBrush();
26280 if (PyErr_Occurred()) SWIG_fail;
26281 }
26282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
26283 return resultobj;
26284 fail:
26285 return NULL;
26286 }
26287
26288
26289 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26290 PyObject *resultobj = 0;
26291 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
26292 void *argp1 = 0 ;
26293 int res1 = 0 ;
26294 PyObject *swig_obj[1] ;
26295
26296 if (!args) SWIG_fail;
26297 swig_obj[0] = args;
26298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
26299 if (!SWIG_IsOK(res1)) {
26300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
26301 }
26302 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
26303 {
26304 delete arg1;
26305
26306 if (PyErr_Occurred()) SWIG_fail;
26307 }
26308 resultobj = SWIG_Py_Void();
26309 return resultobj;
26310 fail:
26311 return NULL;
26312 }
26313
26314
26315 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26316 PyObject *obj;
26317 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26318 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
26319 return SWIG_Py_Void();
26320 }
26321
26322 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26323 return SWIG_Python_InitShadowInstance(args);
26324 }
26325
26326 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26327 PyObject *resultobj = 0;
26328 wxGraphicsFont *result = 0 ;
26329
26330 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
26331 {
26332 result = (wxGraphicsFont *)new wxGraphicsFont();
26333 if (PyErr_Occurred()) SWIG_fail;
26334 }
26335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
26336 return resultobj;
26337 fail:
26338 return NULL;
26339 }
26340
26341
26342 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26343 PyObject *resultobj = 0;
26344 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
26345 void *argp1 = 0 ;
26346 int res1 = 0 ;
26347 PyObject *swig_obj[1] ;
26348
26349 if (!args) SWIG_fail;
26350 swig_obj[0] = args;
26351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
26352 if (!SWIG_IsOK(res1)) {
26353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
26354 }
26355 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
26356 {
26357 delete arg1;
26358
26359 if (PyErr_Occurred()) SWIG_fail;
26360 }
26361 resultobj = SWIG_Py_Void();
26362 return resultobj;
26363 fail:
26364 return NULL;
26365 }
26366
26367
26368 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26369 PyObject *obj;
26370 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26371 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
26372 return SWIG_Py_Void();
26373 }
26374
26375 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26376 return SWIG_Python_InitShadowInstance(args);
26377 }
26378
26379 SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26380 PyObject *resultobj = 0;
26381 wxGraphicsMatrix *result = 0 ;
26382
26383 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
26384 {
26385 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
26386 if (PyErr_Occurred()) SWIG_fail;
26387 }
26388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
26389 return resultobj;
26390 fail:
26391 return NULL;
26392 }
26393
26394
26395 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26396 PyObject *resultobj = 0;
26397 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26398 void *argp1 = 0 ;
26399 int res1 = 0 ;
26400 PyObject *swig_obj[1] ;
26401
26402 if (!args) SWIG_fail;
26403 swig_obj[0] = args;
26404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
26405 if (!SWIG_IsOK(res1)) {
26406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26407 }
26408 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26409 {
26410 delete arg1;
26411
26412 if (PyErr_Occurred()) SWIG_fail;
26413 }
26414 resultobj = SWIG_Py_Void();
26415 return resultobj;
26416 fail:
26417 return NULL;
26418 }
26419
26420
26421 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26422 PyObject *resultobj = 0;
26423 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26424 wxGraphicsMatrix *arg2 = 0 ;
26425 void *argp1 = 0 ;
26426 int res1 = 0 ;
26427 void *argp2 = 0 ;
26428 int res2 = 0 ;
26429 PyObject * obj0 = 0 ;
26430 PyObject * obj1 = 0 ;
26431 char * kwnames[] = {
26432 (char *) "self",(char *) "t", NULL
26433 };
26434
26435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26437 if (!SWIG_IsOK(res1)) {
26438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26439 }
26440 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26441 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26442 if (!SWIG_IsOK(res2)) {
26443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26444 }
26445 if (!argp2) {
26446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26447 }
26448 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26449 {
26450 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
26451 if (PyErr_Occurred()) SWIG_fail;
26452 }
26453 resultobj = SWIG_Py_Void();
26454 return resultobj;
26455 fail:
26456 return NULL;
26457 }
26458
26459
26460 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26461 PyObject *resultobj = 0;
26462 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26463 wxDouble arg2 = (wxDouble) 1.0 ;
26464 wxDouble arg3 = (wxDouble) 0.0 ;
26465 wxDouble arg4 = (wxDouble) 0.0 ;
26466 wxDouble arg5 = (wxDouble) 1.0 ;
26467 wxDouble arg6 = (wxDouble) 0.0 ;
26468 wxDouble arg7 = (wxDouble) 0.0 ;
26469 void *argp1 = 0 ;
26470 int res1 = 0 ;
26471 double val2 ;
26472 int ecode2 = 0 ;
26473 double val3 ;
26474 int ecode3 = 0 ;
26475 double val4 ;
26476 int ecode4 = 0 ;
26477 double val5 ;
26478 int ecode5 = 0 ;
26479 double val6 ;
26480 int ecode6 = 0 ;
26481 double val7 ;
26482 int ecode7 = 0 ;
26483 PyObject * obj0 = 0 ;
26484 PyObject * obj1 = 0 ;
26485 PyObject * obj2 = 0 ;
26486 PyObject * obj3 = 0 ;
26487 PyObject * obj4 = 0 ;
26488 PyObject * obj5 = 0 ;
26489 PyObject * obj6 = 0 ;
26490 char * kwnames[] = {
26491 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26492 };
26493
26494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26496 if (!SWIG_IsOK(res1)) {
26497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26498 }
26499 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26500 if (obj1) {
26501 ecode2 = SWIG_AsVal_double(obj1, &val2);
26502 if (!SWIG_IsOK(ecode2)) {
26503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
26504 }
26505 arg2 = static_cast< wxDouble >(val2);
26506 }
26507 if (obj2) {
26508 ecode3 = SWIG_AsVal_double(obj2, &val3);
26509 if (!SWIG_IsOK(ecode3)) {
26510 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
26511 }
26512 arg3 = static_cast< wxDouble >(val3);
26513 }
26514 if (obj3) {
26515 ecode4 = SWIG_AsVal_double(obj3, &val4);
26516 if (!SWIG_IsOK(ecode4)) {
26517 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
26518 }
26519 arg4 = static_cast< wxDouble >(val4);
26520 }
26521 if (obj4) {
26522 ecode5 = SWIG_AsVal_double(obj4, &val5);
26523 if (!SWIG_IsOK(ecode5)) {
26524 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
26525 }
26526 arg5 = static_cast< wxDouble >(val5);
26527 }
26528 if (obj5) {
26529 ecode6 = SWIG_AsVal_double(obj5, &val6);
26530 if (!SWIG_IsOK(ecode6)) {
26531 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
26532 }
26533 arg6 = static_cast< wxDouble >(val6);
26534 }
26535 if (obj6) {
26536 ecode7 = SWIG_AsVal_double(obj6, &val7);
26537 if (!SWIG_IsOK(ecode7)) {
26538 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
26539 }
26540 arg7 = static_cast< wxDouble >(val7);
26541 }
26542 {
26543 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
26544 if (PyErr_Occurred()) SWIG_fail;
26545 }
26546 resultobj = SWIG_Py_Void();
26547 return resultobj;
26548 fail:
26549 return NULL;
26550 }
26551
26552
26553 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26554 PyObject *resultobj = 0;
26555 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26556 void *argp1 = 0 ;
26557 int res1 = 0 ;
26558 PyObject *swig_obj[1] ;
26559
26560 if (!args) SWIG_fail;
26561 swig_obj[0] = args;
26562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26563 if (!SWIG_IsOK(res1)) {
26564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26565 }
26566 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26567 {
26568 (arg1)->Invert();
26569 if (PyErr_Occurred()) SWIG_fail;
26570 }
26571 resultobj = SWIG_Py_Void();
26572 return resultobj;
26573 fail:
26574 return NULL;
26575 }
26576
26577
26578 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26579 PyObject *resultobj = 0;
26580 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26581 wxGraphicsMatrix *arg2 = 0 ;
26582 bool result;
26583 void *argp1 = 0 ;
26584 int res1 = 0 ;
26585 void *argp2 = 0 ;
26586 int res2 = 0 ;
26587 PyObject * obj0 = 0 ;
26588 PyObject * obj1 = 0 ;
26589 char * kwnames[] = {
26590 (char *) "self",(char *) "t", NULL
26591 };
26592
26593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
26594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26595 if (!SWIG_IsOK(res1)) {
26596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26597 }
26598 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26599 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26600 if (!SWIG_IsOK(res2)) {
26601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26602 }
26603 if (!argp2) {
26604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26605 }
26606 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26607 {
26608 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
26609 if (PyErr_Occurred()) SWIG_fail;
26610 }
26611 {
26612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26613 }
26614 return resultobj;
26615 fail:
26616 return NULL;
26617 }
26618
26619
26620 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26621 PyObject *resultobj = 0;
26622 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26623 bool result;
26624 void *argp1 = 0 ;
26625 int res1 = 0 ;
26626 PyObject *swig_obj[1] ;
26627
26628 if (!args) SWIG_fail;
26629 swig_obj[0] = args;
26630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26631 if (!SWIG_IsOK(res1)) {
26632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26633 }
26634 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26635 {
26636 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
26637 if (PyErr_Occurred()) SWIG_fail;
26638 }
26639 {
26640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26641 }
26642 return resultobj;
26643 fail:
26644 return NULL;
26645 }
26646
26647
26648 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26649 PyObject *resultobj = 0;
26650 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26651 wxDouble arg2 ;
26652 wxDouble arg3 ;
26653 void *argp1 = 0 ;
26654 int res1 = 0 ;
26655 double val2 ;
26656 int ecode2 = 0 ;
26657 double val3 ;
26658 int ecode3 = 0 ;
26659 PyObject * obj0 = 0 ;
26660 PyObject * obj1 = 0 ;
26661 PyObject * obj2 = 0 ;
26662 char * kwnames[] = {
26663 (char *) "self",(char *) "dx",(char *) "dy", NULL
26664 };
26665
26666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26668 if (!SWIG_IsOK(res1)) {
26669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26670 }
26671 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26672 ecode2 = SWIG_AsVal_double(obj1, &val2);
26673 if (!SWIG_IsOK(ecode2)) {
26674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
26675 }
26676 arg2 = static_cast< wxDouble >(val2);
26677 ecode3 = SWIG_AsVal_double(obj2, &val3);
26678 if (!SWIG_IsOK(ecode3)) {
26679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
26680 }
26681 arg3 = static_cast< wxDouble >(val3);
26682 {
26683 (arg1)->Translate(arg2,arg3);
26684 if (PyErr_Occurred()) SWIG_fail;
26685 }
26686 resultobj = SWIG_Py_Void();
26687 return resultobj;
26688 fail:
26689 return NULL;
26690 }
26691
26692
26693 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26694 PyObject *resultobj = 0;
26695 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26696 wxDouble arg2 ;
26697 wxDouble arg3 ;
26698 void *argp1 = 0 ;
26699 int res1 = 0 ;
26700 double val2 ;
26701 int ecode2 = 0 ;
26702 double val3 ;
26703 int ecode3 = 0 ;
26704 PyObject * obj0 = 0 ;
26705 PyObject * obj1 = 0 ;
26706 PyObject * obj2 = 0 ;
26707 char * kwnames[] = {
26708 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26709 };
26710
26711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26713 if (!SWIG_IsOK(res1)) {
26714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26715 }
26716 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26717 ecode2 = SWIG_AsVal_double(obj1, &val2);
26718 if (!SWIG_IsOK(ecode2)) {
26719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26720 }
26721 arg2 = static_cast< wxDouble >(val2);
26722 ecode3 = SWIG_AsVal_double(obj2, &val3);
26723 if (!SWIG_IsOK(ecode3)) {
26724 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26725 }
26726 arg3 = static_cast< wxDouble >(val3);
26727 {
26728 (arg1)->Scale(arg2,arg3);
26729 if (PyErr_Occurred()) SWIG_fail;
26730 }
26731 resultobj = SWIG_Py_Void();
26732 return resultobj;
26733 fail:
26734 return NULL;
26735 }
26736
26737
26738 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26739 PyObject *resultobj = 0;
26740 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26741 wxDouble arg2 ;
26742 void *argp1 = 0 ;
26743 int res1 = 0 ;
26744 double val2 ;
26745 int ecode2 = 0 ;
26746 PyObject * obj0 = 0 ;
26747 PyObject * obj1 = 0 ;
26748 char * kwnames[] = {
26749 (char *) "self",(char *) "angle", NULL
26750 };
26751
26752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26754 if (!SWIG_IsOK(res1)) {
26755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26756 }
26757 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26758 ecode2 = SWIG_AsVal_double(obj1, &val2);
26759 if (!SWIG_IsOK(ecode2)) {
26760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26761 }
26762 arg2 = static_cast< wxDouble >(val2);
26763 {
26764 (arg1)->Rotate(arg2);
26765 if (PyErr_Occurred()) SWIG_fail;
26766 }
26767 resultobj = SWIG_Py_Void();
26768 return resultobj;
26769 fail:
26770 return NULL;
26771 }
26772
26773
26774 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26775 PyObject *resultobj = 0;
26776 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26777 wxDouble *arg2 = (wxDouble *) 0 ;
26778 wxDouble *arg3 = (wxDouble *) 0 ;
26779 void *argp1 = 0 ;
26780 int res1 = 0 ;
26781 wxDouble temp2 ;
26782 int res2 = 0 ;
26783 wxDouble temp3 ;
26784 int res3 = 0 ;
26785 PyObject * obj0 = 0 ;
26786 PyObject * obj1 = 0 ;
26787 PyObject * obj2 = 0 ;
26788 char * kwnames[] = {
26789 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26790 };
26791
26792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26794 if (!SWIG_IsOK(res1)) {
26795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26796 }
26797 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26798 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26799 double val;
26800 int ecode = SWIG_AsVal_double(obj1, &val);
26801 if (!SWIG_IsOK(ecode)) {
26802 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26803 }
26804 temp2 = static_cast< wxDouble >(val);
26805 arg2 = &temp2;
26806 res2 = SWIG_AddTmpMask(ecode);
26807 }
26808 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26809 double val;
26810 int ecode = SWIG_AsVal_double(obj2, &val);
26811 if (!SWIG_IsOK(ecode)) {
26812 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26813 }
26814 temp3 = static_cast< wxDouble >(val);
26815 arg3 = &temp3;
26816 res3 = SWIG_AddTmpMask(ecode);
26817 }
26818 {
26819 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
26820 if (PyErr_Occurred()) SWIG_fail;
26821 }
26822 resultobj = SWIG_Py_Void();
26823 if (SWIG_IsTmpObj(res2)) {
26824 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26825 } else {
26826 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26827 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26828 }
26829 if (SWIG_IsTmpObj(res3)) {
26830 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26831 } else {
26832 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26833 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26834 }
26835 return resultobj;
26836 fail:
26837 return NULL;
26838 }
26839
26840
26841 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26842 PyObject *resultobj = 0;
26843 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26844 wxDouble *arg2 = (wxDouble *) 0 ;
26845 wxDouble *arg3 = (wxDouble *) 0 ;
26846 void *argp1 = 0 ;
26847 int res1 = 0 ;
26848 wxDouble temp2 ;
26849 int res2 = 0 ;
26850 wxDouble temp3 ;
26851 int res3 = 0 ;
26852 PyObject * obj0 = 0 ;
26853 PyObject * obj1 = 0 ;
26854 PyObject * obj2 = 0 ;
26855 char * kwnames[] = {
26856 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26857 };
26858
26859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26861 if (!SWIG_IsOK(res1)) {
26862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26863 }
26864 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26865 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26866 double val;
26867 int ecode = SWIG_AsVal_double(obj1, &val);
26868 if (!SWIG_IsOK(ecode)) {
26869 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26870 }
26871 temp2 = static_cast< wxDouble >(val);
26872 arg2 = &temp2;
26873 res2 = SWIG_AddTmpMask(ecode);
26874 }
26875 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26876 double val;
26877 int ecode = SWIG_AsVal_double(obj2, &val);
26878 if (!SWIG_IsOK(ecode)) {
26879 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26880 }
26881 temp3 = static_cast< wxDouble >(val);
26882 arg3 = &temp3;
26883 res3 = SWIG_AddTmpMask(ecode);
26884 }
26885 {
26886 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
26887 if (PyErr_Occurred()) SWIG_fail;
26888 }
26889 resultobj = SWIG_Py_Void();
26890 if (SWIG_IsTmpObj(res2)) {
26891 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26892 } else {
26893 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26894 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26895 }
26896 if (SWIG_IsTmpObj(res3)) {
26897 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26898 } else {
26899 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26900 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26901 }
26902 return resultobj;
26903 fail:
26904 return NULL;
26905 }
26906
26907
26908 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26909 PyObject *resultobj = 0;
26910 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26911 void *result = 0 ;
26912 void *argp1 = 0 ;
26913 int res1 = 0 ;
26914 PyObject *swig_obj[1] ;
26915
26916 if (!args) SWIG_fail;
26917 swig_obj[0] = args;
26918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26919 if (!SWIG_IsOK(res1)) {
26920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26921 }
26922 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26923 {
26924 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26925 if (PyErr_Occurred()) SWIG_fail;
26926 }
26927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26928 return resultobj;
26929 fail:
26930 return NULL;
26931 }
26932
26933
26934 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26935 PyObject *obj;
26936 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26937 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26938 return SWIG_Py_Void();
26939 }
26940
26941 SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26942 return SWIG_Python_InitShadowInstance(args);
26943 }
26944
26945 SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26946 PyObject *resultobj = 0;
26947 wxGraphicsPath *result = 0 ;
26948
26949 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26950 {
26951 if (!wxPyCheckForApp()) SWIG_fail;
26952 PyThreadState* __tstate = wxPyBeginAllowThreads();
26953 result = (wxGraphicsPath *)new wxGraphicsPath();
26954 wxPyEndAllowThreads(__tstate);
26955 if (PyErr_Occurred()) SWIG_fail;
26956 }
26957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26958 return resultobj;
26959 fail:
26960 return NULL;
26961 }
26962
26963
26964 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26965 PyObject *resultobj = 0;
26966 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26967 void *argp1 = 0 ;
26968 int res1 = 0 ;
26969 PyObject *swig_obj[1] ;
26970
26971 if (!args) SWIG_fail;
26972 swig_obj[0] = args;
26973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
26974 if (!SWIG_IsOK(res1)) {
26975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26976 }
26977 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26978 {
26979 delete arg1;
26980
26981 if (PyErr_Occurred()) SWIG_fail;
26982 }
26983 resultobj = SWIG_Py_Void();
26984 return resultobj;
26985 fail:
26986 return NULL;
26987 }
26988
26989
26990 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26991 PyObject *resultobj = 0;
26992 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26993 wxDouble arg2 ;
26994 wxDouble arg3 ;
26995 void *argp1 = 0 ;
26996 int res1 = 0 ;
26997 double val2 ;
26998 int ecode2 = 0 ;
26999 double val3 ;
27000 int ecode3 = 0 ;
27001
27002 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27004 if (!SWIG_IsOK(res1)) {
27005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27006 }
27007 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27008 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27009 if (!SWIG_IsOK(ecode2)) {
27010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27011 }
27012 arg2 = static_cast< wxDouble >(val2);
27013 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27014 if (!SWIG_IsOK(ecode3)) {
27015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27016 }
27017 arg3 = static_cast< wxDouble >(val3);
27018 {
27019 (arg1)->MoveToPoint(arg2,arg3);
27020 if (PyErr_Occurred()) SWIG_fail;
27021 }
27022 resultobj = SWIG_Py_Void();
27023 return resultobj;
27024 fail:
27025 return NULL;
27026 }
27027
27028
27029 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27030 PyObject *resultobj = 0;
27031 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27032 wxPoint2D *arg2 = 0 ;
27033 void *argp1 = 0 ;
27034 int res1 = 0 ;
27035 wxPoint2D temp2 ;
27036
27037 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27039 if (!SWIG_IsOK(res1)) {
27040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27041 }
27042 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27043 {
27044 arg2 = &temp2;
27045 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27046 }
27047 {
27048 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
27049 if (PyErr_Occurred()) SWIG_fail;
27050 }
27051 resultobj = SWIG_Py_Void();
27052 return resultobj;
27053 fail:
27054 return NULL;
27055 }
27056
27057
27058 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
27059 int argc;
27060 PyObject *argv[4];
27061
27062 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
27063 --argc;
27064 if (argc == 2) {
27065 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
27066 }
27067 if (argc == 3) {
27068 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
27069 }
27070
27071 fail:
27072 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
27073 return NULL;
27074 }
27075
27076
27077 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27078 PyObject *resultobj = 0;
27079 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27080 wxDouble arg2 ;
27081 wxDouble arg3 ;
27082 void *argp1 = 0 ;
27083 int res1 = 0 ;
27084 double val2 ;
27085 int ecode2 = 0 ;
27086 double val3 ;
27087 int ecode3 = 0 ;
27088
27089 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27091 if (!SWIG_IsOK(res1)) {
27092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27093 }
27094 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27095 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27096 if (!SWIG_IsOK(ecode2)) {
27097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27098 }
27099 arg2 = static_cast< wxDouble >(val2);
27100 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27101 if (!SWIG_IsOK(ecode3)) {
27102 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27103 }
27104 arg3 = static_cast< wxDouble >(val3);
27105 {
27106 (arg1)->AddLineToPoint(arg2,arg3);
27107 if (PyErr_Occurred()) SWIG_fail;
27108 }
27109 resultobj = SWIG_Py_Void();
27110 return resultobj;
27111 fail:
27112 return NULL;
27113 }
27114
27115
27116 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27117 PyObject *resultobj = 0;
27118 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27119 wxPoint2D *arg2 = 0 ;
27120 void *argp1 = 0 ;
27121 int res1 = 0 ;
27122 wxPoint2D temp2 ;
27123
27124 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27126 if (!SWIG_IsOK(res1)) {
27127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27128 }
27129 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27130 {
27131 arg2 = &temp2;
27132 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27133 }
27134 {
27135 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
27136 if (PyErr_Occurred()) SWIG_fail;
27137 }
27138 resultobj = SWIG_Py_Void();
27139 return resultobj;
27140 fail:
27141 return NULL;
27142 }
27143
27144
27145 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
27146 int argc;
27147 PyObject *argv[4];
27148
27149 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
27150 --argc;
27151 if (argc == 2) {
27152 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
27153 }
27154 if (argc == 3) {
27155 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
27156 }
27157
27158 fail:
27159 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
27160 return NULL;
27161 }
27162
27163
27164 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27165 PyObject *resultobj = 0;
27166 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27167 wxDouble arg2 ;
27168 wxDouble arg3 ;
27169 wxDouble arg4 ;
27170 wxDouble arg5 ;
27171 wxDouble arg6 ;
27172 wxDouble arg7 ;
27173 void *argp1 = 0 ;
27174 int res1 = 0 ;
27175 double val2 ;
27176 int ecode2 = 0 ;
27177 double val3 ;
27178 int ecode3 = 0 ;
27179 double val4 ;
27180 int ecode4 = 0 ;
27181 double val5 ;
27182 int ecode5 = 0 ;
27183 double val6 ;
27184 int ecode6 = 0 ;
27185 double val7 ;
27186 int ecode7 = 0 ;
27187
27188 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27190 if (!SWIG_IsOK(res1)) {
27191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27192 }
27193 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27194 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27195 if (!SWIG_IsOK(ecode2)) {
27196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27197 }
27198 arg2 = static_cast< wxDouble >(val2);
27199 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27200 if (!SWIG_IsOK(ecode3)) {
27201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27202 }
27203 arg3 = static_cast< wxDouble >(val3);
27204 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27205 if (!SWIG_IsOK(ecode4)) {
27206 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27207 }
27208 arg4 = static_cast< wxDouble >(val4);
27209 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27210 if (!SWIG_IsOK(ecode5)) {
27211 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27212 }
27213 arg5 = static_cast< wxDouble >(val5);
27214 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27215 if (!SWIG_IsOK(ecode6)) {
27216 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27217 }
27218 arg6 = static_cast< wxDouble >(val6);
27219 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
27220 if (!SWIG_IsOK(ecode7)) {
27221 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
27222 }
27223 arg7 = static_cast< wxDouble >(val7);
27224 {
27225 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
27226 if (PyErr_Occurred()) SWIG_fail;
27227 }
27228 resultobj = SWIG_Py_Void();
27229 return resultobj;
27230 fail:
27231 return NULL;
27232 }
27233
27234
27235 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27236 PyObject *resultobj = 0;
27237 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27238 wxPoint2D *arg2 = 0 ;
27239 wxPoint2D *arg3 = 0 ;
27240 wxPoint2D *arg4 = 0 ;
27241 void *argp1 = 0 ;
27242 int res1 = 0 ;
27243 wxPoint2D temp2 ;
27244 wxPoint2D temp3 ;
27245 wxPoint2D temp4 ;
27246
27247 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
27248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27249 if (!SWIG_IsOK(res1)) {
27250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27251 }
27252 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27253 {
27254 arg2 = &temp2;
27255 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27256 }
27257 {
27258 arg3 = &temp3;
27259 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
27260 }
27261 {
27262 arg4 = &temp4;
27263 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
27264 }
27265 {
27266 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
27267 if (PyErr_Occurred()) SWIG_fail;
27268 }
27269 resultobj = SWIG_Py_Void();
27270 return resultobj;
27271 fail:
27272 return NULL;
27273 }
27274
27275
27276 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
27277 int argc;
27278 PyObject *argv[8];
27279
27280 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
27281 --argc;
27282 if (argc == 4) {
27283 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
27284 }
27285 if (argc == 7) {
27286 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
27287 }
27288
27289 fail:
27290 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
27291 return NULL;
27292 }
27293
27294
27295 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27296 PyObject *resultobj = 0;
27297 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27298 wxGraphicsPath *arg2 = 0 ;
27299 void *argp1 = 0 ;
27300 int res1 = 0 ;
27301 void *argp2 = 0 ;
27302 int res2 = 0 ;
27303 PyObject * obj0 = 0 ;
27304 PyObject * obj1 = 0 ;
27305 char * kwnames[] = {
27306 (char *) "self",(char *) "path", NULL
27307 };
27308
27309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
27310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27311 if (!SWIG_IsOK(res1)) {
27312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27313 }
27314 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27315 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
27316 if (!SWIG_IsOK(res2)) {
27317 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27318 }
27319 if (!argp2) {
27320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27321 }
27322 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
27323 {
27324 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
27325 if (PyErr_Occurred()) SWIG_fail;
27326 }
27327 resultobj = SWIG_Py_Void();
27328 return resultobj;
27329 fail:
27330 return NULL;
27331 }
27332
27333
27334 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27335 PyObject *resultobj = 0;
27336 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27337 void *argp1 = 0 ;
27338 int res1 = 0 ;
27339 PyObject *swig_obj[1] ;
27340
27341 if (!args) SWIG_fail;
27342 swig_obj[0] = args;
27343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27344 if (!SWIG_IsOK(res1)) {
27345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27346 }
27347 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27348 {
27349 (arg1)->CloseSubpath();
27350 if (PyErr_Occurred()) SWIG_fail;
27351 }
27352 resultobj = SWIG_Py_Void();
27353 return resultobj;
27354 fail:
27355 return NULL;
27356 }
27357
27358
27359 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27360 PyObject *resultobj = 0;
27361 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27362 wxPoint2D result;
27363 void *argp1 = 0 ;
27364 int res1 = 0 ;
27365 PyObject *swig_obj[1] ;
27366
27367 if (!args) SWIG_fail;
27368 swig_obj[0] = args;
27369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27370 if (!SWIG_IsOK(res1)) {
27371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27372 }
27373 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27374 {
27375 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
27376 if (PyErr_Occurred()) SWIG_fail;
27377 }
27378 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
27379 return resultobj;
27380 fail:
27381 return NULL;
27382 }
27383
27384
27385 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27386 PyObject *resultobj = 0;
27387 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27388 wxDouble arg2 ;
27389 wxDouble arg3 ;
27390 wxDouble arg4 ;
27391 wxDouble arg5 ;
27392 wxDouble arg6 ;
27393 bool arg7 ;
27394 void *argp1 = 0 ;
27395 int res1 = 0 ;
27396 double val2 ;
27397 int ecode2 = 0 ;
27398 double val3 ;
27399 int ecode3 = 0 ;
27400 double val4 ;
27401 int ecode4 = 0 ;
27402 double val5 ;
27403 int ecode5 = 0 ;
27404 double val6 ;
27405 int ecode6 = 0 ;
27406 bool val7 ;
27407 int ecode7 = 0 ;
27408
27409 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27411 if (!SWIG_IsOK(res1)) {
27412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27413 }
27414 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27415 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27416 if (!SWIG_IsOK(ecode2)) {
27417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
27418 }
27419 arg2 = static_cast< wxDouble >(val2);
27420 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27421 if (!SWIG_IsOK(ecode3)) {
27422 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27423 }
27424 arg3 = static_cast< wxDouble >(val3);
27425 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27426 if (!SWIG_IsOK(ecode4)) {
27427 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27428 }
27429 arg4 = static_cast< wxDouble >(val4);
27430 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27431 if (!SWIG_IsOK(ecode5)) {
27432 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27433 }
27434 arg5 = static_cast< wxDouble >(val5);
27435 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27436 if (!SWIG_IsOK(ecode6)) {
27437 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
27438 }
27439 arg6 = static_cast< wxDouble >(val6);
27440 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
27441 if (!SWIG_IsOK(ecode7)) {
27442 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
27443 }
27444 arg7 = static_cast< bool >(val7);
27445 {
27446 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
27447 if (PyErr_Occurred()) SWIG_fail;
27448 }
27449 resultobj = SWIG_Py_Void();
27450 return resultobj;
27451 fail:
27452 return NULL;
27453 }
27454
27455
27456 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27457 PyObject *resultobj = 0;
27458 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27459 wxPoint2D *arg2 = 0 ;
27460 wxDouble arg3 ;
27461 wxDouble arg4 ;
27462 wxDouble arg5 ;
27463 bool arg6 ;
27464 void *argp1 = 0 ;
27465 int res1 = 0 ;
27466 wxPoint2D temp2 ;
27467 double val3 ;
27468 int ecode3 = 0 ;
27469 double val4 ;
27470 int ecode4 = 0 ;
27471 double val5 ;
27472 int ecode5 = 0 ;
27473 bool val6 ;
27474 int ecode6 = 0 ;
27475
27476 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
27477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27478 if (!SWIG_IsOK(res1)) {
27479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27480 }
27481 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27482 {
27483 arg2 = &temp2;
27484 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27485 }
27486 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27487 if (!SWIG_IsOK(ecode3)) {
27488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27489 }
27490 arg3 = static_cast< wxDouble >(val3);
27491 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27492 if (!SWIG_IsOK(ecode4)) {
27493 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27494 }
27495 arg4 = static_cast< wxDouble >(val4);
27496 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27497 if (!SWIG_IsOK(ecode5)) {
27498 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27499 }
27500 arg5 = static_cast< wxDouble >(val5);
27501 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
27502 if (!SWIG_IsOK(ecode6)) {
27503 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
27504 }
27505 arg6 = static_cast< bool >(val6);
27506 {
27507 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
27508 if (PyErr_Occurred()) SWIG_fail;
27509 }
27510 resultobj = SWIG_Py_Void();
27511 return resultobj;
27512 fail:
27513 return NULL;
27514 }
27515
27516
27517 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
27518 int argc;
27519 PyObject *argv[8];
27520
27521 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
27522 --argc;
27523 if (argc == 6) {
27524 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
27525 }
27526 if (argc == 7) {
27527 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
27528 }
27529
27530 fail:
27531 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
27532 return NULL;
27533 }
27534
27535
27536 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27537 PyObject *resultobj = 0;
27538 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27539 wxDouble arg2 ;
27540 wxDouble arg3 ;
27541 wxDouble arg4 ;
27542 wxDouble arg5 ;
27543 void *argp1 = 0 ;
27544 int res1 = 0 ;
27545 double val2 ;
27546 int ecode2 = 0 ;
27547 double val3 ;
27548 int ecode3 = 0 ;
27549 double val4 ;
27550 int ecode4 = 0 ;
27551 double val5 ;
27552 int ecode5 = 0 ;
27553 PyObject * obj0 = 0 ;
27554 PyObject * obj1 = 0 ;
27555 PyObject * obj2 = 0 ;
27556 PyObject * obj3 = 0 ;
27557 PyObject * obj4 = 0 ;
27558 char * kwnames[] = {
27559 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
27560 };
27561
27562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27564 if (!SWIG_IsOK(res1)) {
27565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27566 }
27567 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27568 ecode2 = SWIG_AsVal_double(obj1, &val2);
27569 if (!SWIG_IsOK(ecode2)) {
27570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27571 }
27572 arg2 = static_cast< wxDouble >(val2);
27573 ecode3 = SWIG_AsVal_double(obj2, &val3);
27574 if (!SWIG_IsOK(ecode3)) {
27575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27576 }
27577 arg3 = static_cast< wxDouble >(val3);
27578 ecode4 = SWIG_AsVal_double(obj3, &val4);
27579 if (!SWIG_IsOK(ecode4)) {
27580 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27581 }
27582 arg4 = static_cast< wxDouble >(val4);
27583 ecode5 = SWIG_AsVal_double(obj4, &val5);
27584 if (!SWIG_IsOK(ecode5)) {
27585 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27586 }
27587 arg5 = static_cast< wxDouble >(val5);
27588 {
27589 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
27590 if (PyErr_Occurred()) SWIG_fail;
27591 }
27592 resultobj = SWIG_Py_Void();
27593 return resultobj;
27594 fail:
27595 return NULL;
27596 }
27597
27598
27599 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27600 PyObject *resultobj = 0;
27601 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27602 wxDouble arg2 ;
27603 wxDouble arg3 ;
27604 wxDouble arg4 ;
27605 wxDouble arg5 ;
27606 void *argp1 = 0 ;
27607 int res1 = 0 ;
27608 double val2 ;
27609 int ecode2 = 0 ;
27610 double val3 ;
27611 int ecode3 = 0 ;
27612 double val4 ;
27613 int ecode4 = 0 ;
27614 double val5 ;
27615 int ecode5 = 0 ;
27616 PyObject * obj0 = 0 ;
27617 PyObject * obj1 = 0 ;
27618 PyObject * obj2 = 0 ;
27619 PyObject * obj3 = 0 ;
27620 PyObject * obj4 = 0 ;
27621 char * kwnames[] = {
27622 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27623 };
27624
27625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27627 if (!SWIG_IsOK(res1)) {
27628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27629 }
27630 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27631 ecode2 = SWIG_AsVal_double(obj1, &val2);
27632 if (!SWIG_IsOK(ecode2)) {
27633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27634 }
27635 arg2 = static_cast< wxDouble >(val2);
27636 ecode3 = SWIG_AsVal_double(obj2, &val3);
27637 if (!SWIG_IsOK(ecode3)) {
27638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27639 }
27640 arg3 = static_cast< wxDouble >(val3);
27641 ecode4 = SWIG_AsVal_double(obj3, &val4);
27642 if (!SWIG_IsOK(ecode4)) {
27643 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27644 }
27645 arg4 = static_cast< wxDouble >(val4);
27646 ecode5 = SWIG_AsVal_double(obj4, &val5);
27647 if (!SWIG_IsOK(ecode5)) {
27648 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27649 }
27650 arg5 = static_cast< wxDouble >(val5);
27651 {
27652 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
27653 if (PyErr_Occurred()) SWIG_fail;
27654 }
27655 resultobj = SWIG_Py_Void();
27656 return resultobj;
27657 fail:
27658 return NULL;
27659 }
27660
27661
27662 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27663 PyObject *resultobj = 0;
27664 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27665 wxDouble arg2 ;
27666 wxDouble arg3 ;
27667 wxDouble arg4 ;
27668 void *argp1 = 0 ;
27669 int res1 = 0 ;
27670 double val2 ;
27671 int ecode2 = 0 ;
27672 double val3 ;
27673 int ecode3 = 0 ;
27674 double val4 ;
27675 int ecode4 = 0 ;
27676 PyObject * obj0 = 0 ;
27677 PyObject * obj1 = 0 ;
27678 PyObject * obj2 = 0 ;
27679 PyObject * obj3 = 0 ;
27680 char * kwnames[] = {
27681 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
27682 };
27683
27684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27686 if (!SWIG_IsOK(res1)) {
27687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27688 }
27689 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27690 ecode2 = SWIG_AsVal_double(obj1, &val2);
27691 if (!SWIG_IsOK(ecode2)) {
27692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27693 }
27694 arg2 = static_cast< wxDouble >(val2);
27695 ecode3 = SWIG_AsVal_double(obj2, &val3);
27696 if (!SWIG_IsOK(ecode3)) {
27697 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27698 }
27699 arg3 = static_cast< wxDouble >(val3);
27700 ecode4 = SWIG_AsVal_double(obj3, &val4);
27701 if (!SWIG_IsOK(ecode4)) {
27702 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27703 }
27704 arg4 = static_cast< wxDouble >(val4);
27705 {
27706 (arg1)->AddCircle(arg2,arg3,arg4);
27707 if (PyErr_Occurred()) SWIG_fail;
27708 }
27709 resultobj = SWIG_Py_Void();
27710 return resultobj;
27711 fail:
27712 return NULL;
27713 }
27714
27715
27716 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27717 PyObject *resultobj = 0;
27718 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27719 wxDouble arg2 ;
27720 wxDouble arg3 ;
27721 wxDouble arg4 ;
27722 wxDouble arg5 ;
27723 wxDouble arg6 ;
27724 void *argp1 = 0 ;
27725 int res1 = 0 ;
27726 double val2 ;
27727 int ecode2 = 0 ;
27728 double val3 ;
27729 int ecode3 = 0 ;
27730 double val4 ;
27731 int ecode4 = 0 ;
27732 double val5 ;
27733 int ecode5 = 0 ;
27734 double val6 ;
27735 int ecode6 = 0 ;
27736 PyObject * obj0 = 0 ;
27737 PyObject * obj1 = 0 ;
27738 PyObject * obj2 = 0 ;
27739 PyObject * obj3 = 0 ;
27740 PyObject * obj4 = 0 ;
27741 PyObject * obj5 = 0 ;
27742 char * kwnames[] = {
27743 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
27744 };
27745
27746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27748 if (!SWIG_IsOK(res1)) {
27749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27750 }
27751 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27752 ecode2 = SWIG_AsVal_double(obj1, &val2);
27753 if (!SWIG_IsOK(ecode2)) {
27754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27755 }
27756 arg2 = static_cast< wxDouble >(val2);
27757 ecode3 = SWIG_AsVal_double(obj2, &val3);
27758 if (!SWIG_IsOK(ecode3)) {
27759 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27760 }
27761 arg3 = static_cast< wxDouble >(val3);
27762 ecode4 = SWIG_AsVal_double(obj3, &val4);
27763 if (!SWIG_IsOK(ecode4)) {
27764 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27765 }
27766 arg4 = static_cast< wxDouble >(val4);
27767 ecode5 = SWIG_AsVal_double(obj4, &val5);
27768 if (!SWIG_IsOK(ecode5)) {
27769 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27770 }
27771 arg5 = static_cast< wxDouble >(val5);
27772 ecode6 = SWIG_AsVal_double(obj5, &val6);
27773 if (!SWIG_IsOK(ecode6)) {
27774 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27775 }
27776 arg6 = static_cast< wxDouble >(val6);
27777 {
27778 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
27779 if (PyErr_Occurred()) SWIG_fail;
27780 }
27781 resultobj = SWIG_Py_Void();
27782 return resultobj;
27783 fail:
27784 return NULL;
27785 }
27786
27787
27788 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27789 PyObject *resultobj = 0;
27790 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27791 wxDouble arg2 ;
27792 wxDouble arg3 ;
27793 wxDouble arg4 ;
27794 wxDouble arg5 ;
27795 void *argp1 = 0 ;
27796 int res1 = 0 ;
27797 double val2 ;
27798 int ecode2 = 0 ;
27799 double val3 ;
27800 int ecode3 = 0 ;
27801 double val4 ;
27802 int ecode4 = 0 ;
27803 double val5 ;
27804 int ecode5 = 0 ;
27805 PyObject * obj0 = 0 ;
27806 PyObject * obj1 = 0 ;
27807 PyObject * obj2 = 0 ;
27808 PyObject * obj3 = 0 ;
27809 PyObject * obj4 = 0 ;
27810 char * kwnames[] = {
27811 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27812 };
27813
27814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27816 if (!SWIG_IsOK(res1)) {
27817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27818 }
27819 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27820 ecode2 = SWIG_AsVal_double(obj1, &val2);
27821 if (!SWIG_IsOK(ecode2)) {
27822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27823 }
27824 arg2 = static_cast< wxDouble >(val2);
27825 ecode3 = SWIG_AsVal_double(obj2, &val3);
27826 if (!SWIG_IsOK(ecode3)) {
27827 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27828 }
27829 arg3 = static_cast< wxDouble >(val3);
27830 ecode4 = SWIG_AsVal_double(obj3, &val4);
27831 if (!SWIG_IsOK(ecode4)) {
27832 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27833 }
27834 arg4 = static_cast< wxDouble >(val4);
27835 ecode5 = SWIG_AsVal_double(obj4, &val5);
27836 if (!SWIG_IsOK(ecode5)) {
27837 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27838 }
27839 arg5 = static_cast< wxDouble >(val5);
27840 {
27841 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
27842 if (PyErr_Occurred()) SWIG_fail;
27843 }
27844 resultobj = SWIG_Py_Void();
27845 return resultobj;
27846 fail:
27847 return NULL;
27848 }
27849
27850
27851 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27852 PyObject *resultobj = 0;
27853 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27854 wxDouble arg2 ;
27855 wxDouble arg3 ;
27856 wxDouble arg4 ;
27857 wxDouble arg5 ;
27858 wxDouble arg6 ;
27859 void *argp1 = 0 ;
27860 int res1 = 0 ;
27861 double val2 ;
27862 int ecode2 = 0 ;
27863 double val3 ;
27864 int ecode3 = 0 ;
27865 double val4 ;
27866 int ecode4 = 0 ;
27867 double val5 ;
27868 int ecode5 = 0 ;
27869 double val6 ;
27870 int ecode6 = 0 ;
27871 PyObject * obj0 = 0 ;
27872 PyObject * obj1 = 0 ;
27873 PyObject * obj2 = 0 ;
27874 PyObject * obj3 = 0 ;
27875 PyObject * obj4 = 0 ;
27876 PyObject * obj5 = 0 ;
27877 char * kwnames[] = {
27878 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27879 };
27880
27881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27883 if (!SWIG_IsOK(res1)) {
27884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27885 }
27886 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27887 ecode2 = SWIG_AsVal_double(obj1, &val2);
27888 if (!SWIG_IsOK(ecode2)) {
27889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27890 }
27891 arg2 = static_cast< wxDouble >(val2);
27892 ecode3 = SWIG_AsVal_double(obj2, &val3);
27893 if (!SWIG_IsOK(ecode3)) {
27894 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27895 }
27896 arg3 = static_cast< wxDouble >(val3);
27897 ecode4 = SWIG_AsVal_double(obj3, &val4);
27898 if (!SWIG_IsOK(ecode4)) {
27899 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27900 }
27901 arg4 = static_cast< wxDouble >(val4);
27902 ecode5 = SWIG_AsVal_double(obj4, &val5);
27903 if (!SWIG_IsOK(ecode5)) {
27904 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27905 }
27906 arg5 = static_cast< wxDouble >(val5);
27907 ecode6 = SWIG_AsVal_double(obj5, &val6);
27908 if (!SWIG_IsOK(ecode6)) {
27909 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27910 }
27911 arg6 = static_cast< wxDouble >(val6);
27912 {
27913 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27914 if (PyErr_Occurred()) SWIG_fail;
27915 }
27916 resultobj = SWIG_Py_Void();
27917 return resultobj;
27918 fail:
27919 return NULL;
27920 }
27921
27922
27923 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27924 PyObject *resultobj = 0;
27925 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27926 void *result = 0 ;
27927 void *argp1 = 0 ;
27928 int res1 = 0 ;
27929 PyObject *swig_obj[1] ;
27930
27931 if (!args) SWIG_fail;
27932 swig_obj[0] = args;
27933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27934 if (!SWIG_IsOK(res1)) {
27935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27936 }
27937 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27938 {
27939 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
27940 if (PyErr_Occurred()) SWIG_fail;
27941 }
27942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27943 return resultobj;
27944 fail:
27945 return NULL;
27946 }
27947
27948
27949 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27950 PyObject *resultobj = 0;
27951 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27952 void *arg2 = (void *) 0 ;
27953 void *argp1 = 0 ;
27954 int res1 = 0 ;
27955 int res2 ;
27956 PyObject * obj0 = 0 ;
27957 PyObject * obj1 = 0 ;
27958 char * kwnames[] = {
27959 (char *) "self",(char *) "p", NULL
27960 };
27961
27962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27964 if (!SWIG_IsOK(res1)) {
27965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27966 }
27967 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27968 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27969 if (!SWIG_IsOK(res2)) {
27970 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
27971 }
27972 {
27973 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
27974 if (PyErr_Occurred()) SWIG_fail;
27975 }
27976 resultobj = SWIG_Py_Void();
27977 return resultobj;
27978 fail:
27979 return NULL;
27980 }
27981
27982
27983 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27984 PyObject *resultobj = 0;
27985 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27986 wxGraphicsMatrix *arg2 = 0 ;
27987 void *argp1 = 0 ;
27988 int res1 = 0 ;
27989 void *argp2 = 0 ;
27990 int res2 = 0 ;
27991 PyObject * obj0 = 0 ;
27992 PyObject * obj1 = 0 ;
27993 char * kwnames[] = {
27994 (char *) "self",(char *) "matrix", NULL
27995 };
27996
27997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27999 if (!SWIG_IsOK(res1)) {
28000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28001 }
28002 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28003 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28004 if (!SWIG_IsOK(res2)) {
28005 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28006 }
28007 if (!argp2) {
28008 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28009 }
28010 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28011 {
28012 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
28013 if (PyErr_Occurred()) SWIG_fail;
28014 }
28015 resultobj = SWIG_Py_Void();
28016 return resultobj;
28017 fail:
28018 return NULL;
28019 }
28020
28021
28022 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28023 PyObject *resultobj = 0;
28024 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28025 wxRect2DDouble result;
28026 void *argp1 = 0 ;
28027 int res1 = 0 ;
28028 PyObject *swig_obj[1] ;
28029
28030 if (!args) SWIG_fail;
28031 swig_obj[0] = args;
28032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28033 if (!SWIG_IsOK(res1)) {
28034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28035 }
28036 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28037 {
28038 result = ((wxGraphicsPath const *)arg1)->GetBox();
28039 if (PyErr_Occurred()) SWIG_fail;
28040 }
28041 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
28042 return resultobj;
28043 fail:
28044 return NULL;
28045 }
28046
28047
28048 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28049 PyObject *resultobj = 0;
28050 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28051 wxDouble arg2 ;
28052 wxDouble arg3 ;
28053 int arg4 = (int) wxODDEVEN_RULE ;
28054 bool result;
28055 void *argp1 = 0 ;
28056 int res1 = 0 ;
28057 double val2 ;
28058 int ecode2 = 0 ;
28059 double val3 ;
28060 int ecode3 = 0 ;
28061 int val4 ;
28062 int ecode4 = 0 ;
28063
28064 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
28065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28066 if (!SWIG_IsOK(res1)) {
28067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28068 }
28069 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28070 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
28071 if (!SWIG_IsOK(ecode2)) {
28072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
28073 }
28074 arg2 = static_cast< wxDouble >(val2);
28075 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28076 if (!SWIG_IsOK(ecode3)) {
28077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
28078 }
28079 arg3 = static_cast< wxDouble >(val3);
28080 if (swig_obj[3]) {
28081 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
28082 if (!SWIG_IsOK(ecode4)) {
28083 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
28084 }
28085 arg4 = static_cast< int >(val4);
28086 }
28087 {
28088 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
28089 if (PyErr_Occurred()) SWIG_fail;
28090 }
28091 {
28092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28093 }
28094 return resultobj;
28095 fail:
28096 return NULL;
28097 }
28098
28099
28100 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28101 PyObject *resultobj = 0;
28102 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28103 wxPoint2DDouble *arg2 = 0 ;
28104 int arg3 = (int) wxODDEVEN_RULE ;
28105 bool result;
28106 void *argp1 = 0 ;
28107 int res1 = 0 ;
28108 void *argp2 = 0 ;
28109 int res2 = 0 ;
28110 int val3 ;
28111 int ecode3 = 0 ;
28112
28113 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28115 if (!SWIG_IsOK(res1)) {
28116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28117 }
28118 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28119 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
28120 if (!SWIG_IsOK(res2)) {
28121 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
28122 }
28123 if (!argp2) {
28124 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
28125 }
28126 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
28127 if (swig_obj[2]) {
28128 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
28129 if (!SWIG_IsOK(ecode3)) {
28130 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
28131 }
28132 arg3 = static_cast< int >(val3);
28133 }
28134 {
28135 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
28136 if (PyErr_Occurred()) SWIG_fail;
28137 }
28138 {
28139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28140 }
28141 return resultobj;
28142 fail:
28143 return NULL;
28144 }
28145
28146
28147 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
28148 int argc;
28149 PyObject *argv[5];
28150
28151 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
28152 --argc;
28153 if ((argc >= 2) && (argc <= 3)) {
28154 int _v = 0;
28155 {
28156 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
28157 _v = SWIG_CheckState(res);
28158 }
28159 if (!_v) goto check_1;
28160 if (argc > 2) {
28161 {
28162 {
28163 int res = SWIG_AsVal_int(argv[2], NULL);
28164 _v = SWIG_CheckState(res);
28165 }
28166 }
28167 if (!_v) goto check_1;
28168 }
28169 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
28170 }
28171 check_1:
28172
28173 if ((argc >= 3) && (argc <= 4)) {
28174 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
28175 }
28176
28177 fail:
28178 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
28179 return NULL;
28180 }
28181
28182
28183 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28184 PyObject *obj;
28185 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28186 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
28187 return SWIG_Py_Void();
28188 }
28189
28190 SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28191 return SWIG_Python_InitShadowInstance(args);
28192 }
28193
28194 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
28195 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
28196 return 1;
28197 }
28198
28199
28200 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
28201 PyObject *pyobj = 0;
28202
28203 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
28204 return pyobj;
28205 }
28206
28207
28208 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
28209 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
28210 return 1;
28211 }
28212
28213
28214 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
28215 PyObject *pyobj = 0;
28216
28217 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
28218 return pyobj;
28219 }
28220
28221
28222 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
28223 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
28224 return 1;
28225 }
28226
28227
28228 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
28229 PyObject *pyobj = 0;
28230
28231 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
28232 return pyobj;
28233 }
28234
28235
28236 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
28237 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
28238 return 1;
28239 }
28240
28241
28242 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
28243 PyObject *pyobj = 0;
28244
28245 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
28246 return pyobj;
28247 }
28248
28249
28250 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
28251 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
28252 return 1;
28253 }
28254
28255
28256 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
28257 PyObject *pyobj = 0;
28258
28259 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
28260 return pyobj;
28261 }
28262
28263
28264 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28265 PyObject *resultobj = 0;
28266 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28267 void *argp1 = 0 ;
28268 int res1 = 0 ;
28269 PyObject *swig_obj[1] ;
28270
28271 if (!args) SWIG_fail;
28272 swig_obj[0] = args;
28273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
28274 if (!SWIG_IsOK(res1)) {
28275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28276 }
28277 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28278 {
28279 delete arg1;
28280
28281 if (PyErr_Occurred()) SWIG_fail;
28282 }
28283 resultobj = SWIG_Py_Void();
28284 return resultobj;
28285 fail:
28286 return NULL;
28287 }
28288
28289
28290 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28291 PyObject *resultobj = 0;
28292 wxWindowDC *arg1 = 0 ;
28293 wxGraphicsContext *result = 0 ;
28294 void *argp1 = 0 ;
28295 int res1 = 0 ;
28296
28297 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
28299 if (!SWIG_IsOK(res1)) {
28300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28301 }
28302 if (!argp1) {
28303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28304 }
28305 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
28306 {
28307 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
28308 if (PyErr_Occurred()) SWIG_fail;
28309 }
28310 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28311 return resultobj;
28312 fail:
28313 return NULL;
28314 }
28315
28316
28317 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28318 PyObject *resultobj = 0;
28319 wxWindow *arg1 = (wxWindow *) 0 ;
28320 wxGraphicsContext *result = 0 ;
28321 void *argp1 = 0 ;
28322 int res1 = 0 ;
28323
28324 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28326 if (!SWIG_IsOK(res1)) {
28327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
28328 }
28329 arg1 = reinterpret_cast< wxWindow * >(argp1);
28330 {
28331 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
28332 if (PyErr_Occurred()) SWIG_fail;
28333 }
28334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28335 return resultobj;
28336 fail:
28337 return NULL;
28338 }
28339
28340
28341 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
28342 int argc;
28343 PyObject *argv[2];
28344
28345 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
28346 --argc;
28347 if (argc == 1) {
28348 int _v = 0;
28349 {
28350 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
28351 _v = SWIG_CheckState(res);
28352 }
28353 if (!_v) goto check_1;
28354 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
28355 }
28356 check_1:
28357
28358 if (argc == 1) {
28359 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
28360 }
28361
28362 fail:
28363 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
28364 return NULL;
28365 }
28366
28367
28368 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28369 PyObject *resultobj = 0;
28370 void *arg1 = (void *) 0 ;
28371 wxGraphicsContext *result = 0 ;
28372 int res1 ;
28373 PyObject * obj0 = 0 ;
28374 char * kwnames[] = {
28375 (char *) "context", NULL
28376 };
28377
28378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28379 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28380 if (!SWIG_IsOK(res1)) {
28381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28382 }
28383 {
28384 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28385 if (PyErr_Occurred()) SWIG_fail;
28386 }
28387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28388 return resultobj;
28389 fail:
28390 return NULL;
28391 }
28392
28393
28394 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28395 PyObject *resultobj = 0;
28396 void *arg1 = (void *) 0 ;
28397 wxGraphicsContext *result = 0 ;
28398 int res1 ;
28399 PyObject * obj0 = 0 ;
28400 char * kwnames[] = {
28401 (char *) "window", NULL
28402 };
28403
28404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
28405 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28406 if (!SWIG_IsOK(res1)) {
28407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
28408 }
28409 {
28410 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
28411 if (PyErr_Occurred()) SWIG_fail;
28412 }
28413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28414 return resultobj;
28415 fail:
28416 return NULL;
28417 }
28418
28419
28420 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28421 PyObject *resultobj = 0;
28422 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28423 wxGraphicsPath result;
28424 void *argp1 = 0 ;
28425 int res1 = 0 ;
28426 PyObject *swig_obj[1] ;
28427
28428 if (!args) SWIG_fail;
28429 swig_obj[0] = args;
28430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28431 if (!SWIG_IsOK(res1)) {
28432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28433 }
28434 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28435 {
28436 result = (arg1)->CreatePath();
28437 if (PyErr_Occurred()) SWIG_fail;
28438 }
28439 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
28440 return resultobj;
28441 fail:
28442 return NULL;
28443 }
28444
28445
28446 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28447 PyObject *resultobj = 0;
28448 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28449 wxPen *arg2 = 0 ;
28450 wxGraphicsPen result;
28451 void *argp1 = 0 ;
28452 int res1 = 0 ;
28453 void *argp2 = 0 ;
28454 int res2 = 0 ;
28455 PyObject * obj0 = 0 ;
28456 PyObject * obj1 = 0 ;
28457 char * kwnames[] = {
28458 (char *) "self",(char *) "pen", NULL
28459 };
28460
28461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
28462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28463 if (!SWIG_IsOK(res1)) {
28464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28465 }
28466 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28467 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28468 if (!SWIG_IsOK(res2)) {
28469 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28470 }
28471 if (!argp2) {
28472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28473 }
28474 arg2 = reinterpret_cast< wxPen * >(argp2);
28475 {
28476 result = (arg1)->CreatePen((wxPen const &)*arg2);
28477 if (PyErr_Occurred()) SWIG_fail;
28478 }
28479 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
28480 return resultobj;
28481 fail:
28482 return NULL;
28483 }
28484
28485
28486 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28487 PyObject *resultobj = 0;
28488 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28489 wxBrush *arg2 = 0 ;
28490 wxGraphicsBrush result;
28491 void *argp1 = 0 ;
28492 int res1 = 0 ;
28493 void *argp2 = 0 ;
28494 int res2 = 0 ;
28495 PyObject * obj0 = 0 ;
28496 PyObject * obj1 = 0 ;
28497 char * kwnames[] = {
28498 (char *) "self",(char *) "brush", NULL
28499 };
28500
28501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28503 if (!SWIG_IsOK(res1)) {
28504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28505 }
28506 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28507 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28508 if (!SWIG_IsOK(res2)) {
28509 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28510 }
28511 if (!argp2) {
28512 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28513 }
28514 arg2 = reinterpret_cast< wxBrush * >(argp2);
28515 {
28516 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
28517 if (PyErr_Occurred()) SWIG_fail;
28518 }
28519 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28520 return resultobj;
28521 fail:
28522 return NULL;
28523 }
28524
28525
28526 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28527 PyObject *resultobj = 0;
28528 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28529 wxDouble arg2 ;
28530 wxDouble arg3 ;
28531 wxDouble arg4 ;
28532 wxDouble arg5 ;
28533 wxColour *arg6 = 0 ;
28534 wxColour *arg7 = 0 ;
28535 wxGraphicsBrush result;
28536 void *argp1 = 0 ;
28537 int res1 = 0 ;
28538 double val2 ;
28539 int ecode2 = 0 ;
28540 double val3 ;
28541 int ecode3 = 0 ;
28542 double val4 ;
28543 int ecode4 = 0 ;
28544 double val5 ;
28545 int ecode5 = 0 ;
28546 wxColour temp6 ;
28547 wxColour temp7 ;
28548 PyObject * obj0 = 0 ;
28549 PyObject * obj1 = 0 ;
28550 PyObject * obj2 = 0 ;
28551 PyObject * obj3 = 0 ;
28552 PyObject * obj4 = 0 ;
28553 PyObject * obj5 = 0 ;
28554 PyObject * obj6 = 0 ;
28555 char * kwnames[] = {
28556 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
28557 };
28558
28559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28561 if (!SWIG_IsOK(res1)) {
28562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28563 }
28564 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28565 ecode2 = SWIG_AsVal_double(obj1, &val2);
28566 if (!SWIG_IsOK(ecode2)) {
28567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28568 }
28569 arg2 = static_cast< wxDouble >(val2);
28570 ecode3 = SWIG_AsVal_double(obj2, &val3);
28571 if (!SWIG_IsOK(ecode3)) {
28572 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28573 }
28574 arg3 = static_cast< wxDouble >(val3);
28575 ecode4 = SWIG_AsVal_double(obj3, &val4);
28576 if (!SWIG_IsOK(ecode4)) {
28577 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28578 }
28579 arg4 = static_cast< wxDouble >(val4);
28580 ecode5 = SWIG_AsVal_double(obj4, &val5);
28581 if (!SWIG_IsOK(ecode5)) {
28582 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28583 }
28584 arg5 = static_cast< wxDouble >(val5);
28585 {
28586 arg6 = &temp6;
28587 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
28588 }
28589 {
28590 arg7 = &temp7;
28591 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28592 }
28593 {
28594 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
28595 if (PyErr_Occurred()) SWIG_fail;
28596 }
28597 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28598 return resultobj;
28599 fail:
28600 return NULL;
28601 }
28602
28603
28604 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28605 PyObject *resultobj = 0;
28606 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28607 wxDouble arg2 ;
28608 wxDouble arg3 ;
28609 wxDouble arg4 ;
28610 wxDouble arg5 ;
28611 wxDouble arg6 ;
28612 wxColour *arg7 = 0 ;
28613 wxColour *arg8 = 0 ;
28614 wxGraphicsBrush result;
28615 void *argp1 = 0 ;
28616 int res1 = 0 ;
28617 double val2 ;
28618 int ecode2 = 0 ;
28619 double val3 ;
28620 int ecode3 = 0 ;
28621 double val4 ;
28622 int ecode4 = 0 ;
28623 double val5 ;
28624 int ecode5 = 0 ;
28625 double val6 ;
28626 int ecode6 = 0 ;
28627 wxColour temp7 ;
28628 wxColour temp8 ;
28629 PyObject * obj0 = 0 ;
28630 PyObject * obj1 = 0 ;
28631 PyObject * obj2 = 0 ;
28632 PyObject * obj3 = 0 ;
28633 PyObject * obj4 = 0 ;
28634 PyObject * obj5 = 0 ;
28635 PyObject * obj6 = 0 ;
28636 PyObject * obj7 = 0 ;
28637 char * kwnames[] = {
28638 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
28639 };
28640
28641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28643 if (!SWIG_IsOK(res1)) {
28644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28645 }
28646 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28647 ecode2 = SWIG_AsVal_double(obj1, &val2);
28648 if (!SWIG_IsOK(ecode2)) {
28649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28650 }
28651 arg2 = static_cast< wxDouble >(val2);
28652 ecode3 = SWIG_AsVal_double(obj2, &val3);
28653 if (!SWIG_IsOK(ecode3)) {
28654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28655 }
28656 arg3 = static_cast< wxDouble >(val3);
28657 ecode4 = SWIG_AsVal_double(obj3, &val4);
28658 if (!SWIG_IsOK(ecode4)) {
28659 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28660 }
28661 arg4 = static_cast< wxDouble >(val4);
28662 ecode5 = SWIG_AsVal_double(obj4, &val5);
28663 if (!SWIG_IsOK(ecode5)) {
28664 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28665 }
28666 arg5 = static_cast< wxDouble >(val5);
28667 ecode6 = SWIG_AsVal_double(obj5, &val6);
28668 if (!SWIG_IsOK(ecode6)) {
28669 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
28670 }
28671 arg6 = static_cast< wxDouble >(val6);
28672 {
28673 arg7 = &temp7;
28674 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28675 }
28676 {
28677 arg8 = &temp8;
28678 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28679 }
28680 {
28681 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
28682 if (PyErr_Occurred()) SWIG_fail;
28683 }
28684 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28685 return resultobj;
28686 fail:
28687 return NULL;
28688 }
28689
28690
28691 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28692 PyObject *resultobj = 0;
28693 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28694 wxFont *arg2 = 0 ;
28695 wxColour const &arg3_defvalue = *wxBLACK ;
28696 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28697 wxGraphicsFont result;
28698 void *argp1 = 0 ;
28699 int res1 = 0 ;
28700 void *argp2 = 0 ;
28701 int res2 = 0 ;
28702 wxColour temp3 ;
28703 PyObject * obj0 = 0 ;
28704 PyObject * obj1 = 0 ;
28705 PyObject * obj2 = 0 ;
28706 char * kwnames[] = {
28707 (char *) "self",(char *) "font",(char *) "col", NULL
28708 };
28709
28710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28712 if (!SWIG_IsOK(res1)) {
28713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28714 }
28715 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28716 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28717 if (!SWIG_IsOK(res2)) {
28718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28719 }
28720 if (!argp2) {
28721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28722 }
28723 arg2 = reinterpret_cast< wxFont * >(argp2);
28724 if (obj2) {
28725 {
28726 arg3 = &temp3;
28727 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28728 }
28729 }
28730 {
28731 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28732 if (PyErr_Occurred()) SWIG_fail;
28733 }
28734 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
28735 return resultobj;
28736 fail:
28737 return NULL;
28738 }
28739
28740
28741 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28742 PyObject *resultobj = 0;
28743 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28744 wxDouble arg2 = (wxDouble) 1.0 ;
28745 wxDouble arg3 = (wxDouble) 0.0 ;
28746 wxDouble arg4 = (wxDouble) 0.0 ;
28747 wxDouble arg5 = (wxDouble) 1.0 ;
28748 wxDouble arg6 = (wxDouble) 0.0 ;
28749 wxDouble arg7 = (wxDouble) 0.0 ;
28750 wxGraphicsMatrix result;
28751 void *argp1 = 0 ;
28752 int res1 = 0 ;
28753 double val2 ;
28754 int ecode2 = 0 ;
28755 double val3 ;
28756 int ecode3 = 0 ;
28757 double val4 ;
28758 int ecode4 = 0 ;
28759 double val5 ;
28760 int ecode5 = 0 ;
28761 double val6 ;
28762 int ecode6 = 0 ;
28763 double val7 ;
28764 int ecode7 = 0 ;
28765 PyObject * obj0 = 0 ;
28766 PyObject * obj1 = 0 ;
28767 PyObject * obj2 = 0 ;
28768 PyObject * obj3 = 0 ;
28769 PyObject * obj4 = 0 ;
28770 PyObject * obj5 = 0 ;
28771 PyObject * obj6 = 0 ;
28772 char * kwnames[] = {
28773 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28774 };
28775
28776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28778 if (!SWIG_IsOK(res1)) {
28779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28780 }
28781 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28782 if (obj1) {
28783 ecode2 = SWIG_AsVal_double(obj1, &val2);
28784 if (!SWIG_IsOK(ecode2)) {
28785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28786 }
28787 arg2 = static_cast< wxDouble >(val2);
28788 }
28789 if (obj2) {
28790 ecode3 = SWIG_AsVal_double(obj2, &val3);
28791 if (!SWIG_IsOK(ecode3)) {
28792 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28793 }
28794 arg3 = static_cast< wxDouble >(val3);
28795 }
28796 if (obj3) {
28797 ecode4 = SWIG_AsVal_double(obj3, &val4);
28798 if (!SWIG_IsOK(ecode4)) {
28799 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28800 }
28801 arg4 = static_cast< wxDouble >(val4);
28802 }
28803 if (obj4) {
28804 ecode5 = SWIG_AsVal_double(obj4, &val5);
28805 if (!SWIG_IsOK(ecode5)) {
28806 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28807 }
28808 arg5 = static_cast< wxDouble >(val5);
28809 }
28810 if (obj5) {
28811 ecode6 = SWIG_AsVal_double(obj5, &val6);
28812 if (!SWIG_IsOK(ecode6)) {
28813 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28814 }
28815 arg6 = static_cast< wxDouble >(val6);
28816 }
28817 if (obj6) {
28818 ecode7 = SWIG_AsVal_double(obj6, &val7);
28819 if (!SWIG_IsOK(ecode7)) {
28820 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28821 }
28822 arg7 = static_cast< wxDouble >(val7);
28823 }
28824 {
28825 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
28826 if (PyErr_Occurred()) SWIG_fail;
28827 }
28828 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28829 return resultobj;
28830 fail:
28831 return NULL;
28832 }
28833
28834
28835 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28836 PyObject *resultobj = 0;
28837 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28838 void *argp1 = 0 ;
28839 int res1 = 0 ;
28840 PyObject *swig_obj[1] ;
28841
28842 if (!args) SWIG_fail;
28843 swig_obj[0] = args;
28844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28845 if (!SWIG_IsOK(res1)) {
28846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28847 }
28848 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28849 {
28850 (arg1)->PushState();
28851 if (PyErr_Occurred()) SWIG_fail;
28852 }
28853 resultobj = SWIG_Py_Void();
28854 return resultobj;
28855 fail:
28856 return NULL;
28857 }
28858
28859
28860 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28861 PyObject *resultobj = 0;
28862 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28863 void *argp1 = 0 ;
28864 int res1 = 0 ;
28865 PyObject *swig_obj[1] ;
28866
28867 if (!args) SWIG_fail;
28868 swig_obj[0] = args;
28869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28870 if (!SWIG_IsOK(res1)) {
28871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28872 }
28873 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28874 {
28875 (arg1)->PopState();
28876 if (PyErr_Occurred()) SWIG_fail;
28877 }
28878 resultobj = SWIG_Py_Void();
28879 return resultobj;
28880 fail:
28881 return NULL;
28882 }
28883
28884
28885 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28886 PyObject *resultobj = 0;
28887 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28888 wxRegion *arg2 = 0 ;
28889 void *argp1 = 0 ;
28890 int res1 = 0 ;
28891 void *argp2 = 0 ;
28892 int res2 = 0 ;
28893 PyObject * obj0 = 0 ;
28894 PyObject * obj1 = 0 ;
28895 char * kwnames[] = {
28896 (char *) "self",(char *) "region", NULL
28897 };
28898
28899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
28900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28901 if (!SWIG_IsOK(res1)) {
28902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28903 }
28904 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28905 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28906 if (!SWIG_IsOK(res2)) {
28907 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28908 }
28909 if (!argp2) {
28910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28911 }
28912 arg2 = reinterpret_cast< wxRegion * >(argp2);
28913 {
28914 (arg1)->Clip((wxRegion const &)*arg2);
28915 if (PyErr_Occurred()) SWIG_fail;
28916 }
28917 resultobj = SWIG_Py_Void();
28918 return resultobj;
28919 fail:
28920 return NULL;
28921 }
28922
28923
28924 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28925 PyObject *resultobj = 0;
28926 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28927 wxDouble arg2 ;
28928 wxDouble arg3 ;
28929 wxDouble arg4 ;
28930 wxDouble arg5 ;
28931 void *argp1 = 0 ;
28932 int res1 = 0 ;
28933 double val2 ;
28934 int ecode2 = 0 ;
28935 double val3 ;
28936 int ecode3 = 0 ;
28937 double val4 ;
28938 int ecode4 = 0 ;
28939 double val5 ;
28940 int ecode5 = 0 ;
28941 PyObject * obj0 = 0 ;
28942 PyObject * obj1 = 0 ;
28943 PyObject * obj2 = 0 ;
28944 PyObject * obj3 = 0 ;
28945 PyObject * obj4 = 0 ;
28946 char * kwnames[] = {
28947 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28948 };
28949
28950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28952 if (!SWIG_IsOK(res1)) {
28953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28954 }
28955 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28956 ecode2 = SWIG_AsVal_double(obj1, &val2);
28957 if (!SWIG_IsOK(ecode2)) {
28958 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28959 }
28960 arg2 = static_cast< wxDouble >(val2);
28961 ecode3 = SWIG_AsVal_double(obj2, &val3);
28962 if (!SWIG_IsOK(ecode3)) {
28963 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28964 }
28965 arg3 = static_cast< wxDouble >(val3);
28966 ecode4 = SWIG_AsVal_double(obj3, &val4);
28967 if (!SWIG_IsOK(ecode4)) {
28968 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28969 }
28970 arg4 = static_cast< wxDouble >(val4);
28971 ecode5 = SWIG_AsVal_double(obj4, &val5);
28972 if (!SWIG_IsOK(ecode5)) {
28973 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28974 }
28975 arg5 = static_cast< wxDouble >(val5);
28976 {
28977 (arg1)->Clip(arg2,arg3,arg4,arg5);
28978 if (PyErr_Occurred()) SWIG_fail;
28979 }
28980 resultobj = SWIG_Py_Void();
28981 return resultobj;
28982 fail:
28983 return NULL;
28984 }
28985
28986
28987 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28988 PyObject *resultobj = 0;
28989 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28990 void *argp1 = 0 ;
28991 int res1 = 0 ;
28992 PyObject *swig_obj[1] ;
28993
28994 if (!args) SWIG_fail;
28995 swig_obj[0] = args;
28996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28997 if (!SWIG_IsOK(res1)) {
28998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28999 }
29000 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29001 {
29002 (arg1)->ResetClip();
29003 if (PyErr_Occurred()) SWIG_fail;
29004 }
29005 resultobj = SWIG_Py_Void();
29006 return resultobj;
29007 fail:
29008 return NULL;
29009 }
29010
29011
29012 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29013 PyObject *resultobj = 0;
29014 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29015 void *result = 0 ;
29016 void *argp1 = 0 ;
29017 int res1 = 0 ;
29018 PyObject *swig_obj[1] ;
29019
29020 if (!args) SWIG_fail;
29021 swig_obj[0] = args;
29022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29023 if (!SWIG_IsOK(res1)) {
29024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29025 }
29026 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29027 {
29028 result = (void *)(arg1)->GetNativeContext();
29029 if (PyErr_Occurred()) SWIG_fail;
29030 }
29031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
29032 return resultobj;
29033 fail:
29034 return NULL;
29035 }
29036
29037
29038 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29039 PyObject *resultobj = 0;
29040 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29041 wxDouble arg2 ;
29042 wxDouble arg3 ;
29043 void *argp1 = 0 ;
29044 int res1 = 0 ;
29045 double val2 ;
29046 int ecode2 = 0 ;
29047 double val3 ;
29048 int ecode3 = 0 ;
29049 PyObject * obj0 = 0 ;
29050 PyObject * obj1 = 0 ;
29051 PyObject * obj2 = 0 ;
29052 char * kwnames[] = {
29053 (char *) "self",(char *) "dx",(char *) "dy", NULL
29054 };
29055
29056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29058 if (!SWIG_IsOK(res1)) {
29059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29060 }
29061 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29062 ecode2 = SWIG_AsVal_double(obj1, &val2);
29063 if (!SWIG_IsOK(ecode2)) {
29064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
29065 }
29066 arg2 = static_cast< wxDouble >(val2);
29067 ecode3 = SWIG_AsVal_double(obj2, &val3);
29068 if (!SWIG_IsOK(ecode3)) {
29069 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
29070 }
29071 arg3 = static_cast< wxDouble >(val3);
29072 {
29073 (arg1)->Translate(arg2,arg3);
29074 if (PyErr_Occurred()) SWIG_fail;
29075 }
29076 resultobj = SWIG_Py_Void();
29077 return resultobj;
29078 fail:
29079 return NULL;
29080 }
29081
29082
29083 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29084 PyObject *resultobj = 0;
29085 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29086 wxDouble arg2 ;
29087 wxDouble arg3 ;
29088 void *argp1 = 0 ;
29089 int res1 = 0 ;
29090 double val2 ;
29091 int ecode2 = 0 ;
29092 double val3 ;
29093 int ecode3 = 0 ;
29094 PyObject * obj0 = 0 ;
29095 PyObject * obj1 = 0 ;
29096 PyObject * obj2 = 0 ;
29097 char * kwnames[] = {
29098 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
29099 };
29100
29101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29103 if (!SWIG_IsOK(res1)) {
29104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29105 }
29106 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29107 ecode2 = SWIG_AsVal_double(obj1, &val2);
29108 if (!SWIG_IsOK(ecode2)) {
29109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
29110 }
29111 arg2 = static_cast< wxDouble >(val2);
29112 ecode3 = SWIG_AsVal_double(obj2, &val3);
29113 if (!SWIG_IsOK(ecode3)) {
29114 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
29115 }
29116 arg3 = static_cast< wxDouble >(val3);
29117 {
29118 (arg1)->Scale(arg2,arg3);
29119 if (PyErr_Occurred()) SWIG_fail;
29120 }
29121 resultobj = SWIG_Py_Void();
29122 return resultobj;
29123 fail:
29124 return NULL;
29125 }
29126
29127
29128 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29129 PyObject *resultobj = 0;
29130 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29131 wxDouble arg2 ;
29132 void *argp1 = 0 ;
29133 int res1 = 0 ;
29134 double val2 ;
29135 int ecode2 = 0 ;
29136 PyObject * obj0 = 0 ;
29137 PyObject * obj1 = 0 ;
29138 char * kwnames[] = {
29139 (char *) "self",(char *) "angle", NULL
29140 };
29141
29142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
29143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29144 if (!SWIG_IsOK(res1)) {
29145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29146 }
29147 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29148 ecode2 = SWIG_AsVal_double(obj1, &val2);
29149 if (!SWIG_IsOK(ecode2)) {
29150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
29151 }
29152 arg2 = static_cast< wxDouble >(val2);
29153 {
29154 (arg1)->Rotate(arg2);
29155 if (PyErr_Occurred()) SWIG_fail;
29156 }
29157 resultobj = SWIG_Py_Void();
29158 return resultobj;
29159 fail:
29160 return NULL;
29161 }
29162
29163
29164 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29165 PyObject *resultobj = 0;
29166 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29167 wxGraphicsMatrix *arg2 = 0 ;
29168 void *argp1 = 0 ;
29169 int res1 = 0 ;
29170 void *argp2 = 0 ;
29171 int res2 = 0 ;
29172 PyObject * obj0 = 0 ;
29173 PyObject * obj1 = 0 ;
29174 char * kwnames[] = {
29175 (char *) "self",(char *) "matrix", NULL
29176 };
29177
29178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29180 if (!SWIG_IsOK(res1)) {
29181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29182 }
29183 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29184 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29185 if (!SWIG_IsOK(res2)) {
29186 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29187 }
29188 if (!argp2) {
29189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29190 }
29191 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29192 {
29193 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
29194 if (PyErr_Occurred()) SWIG_fail;
29195 }
29196 resultobj = SWIG_Py_Void();
29197 return resultobj;
29198 fail:
29199 return NULL;
29200 }
29201
29202
29203 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29204 PyObject *resultobj = 0;
29205 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29206 wxGraphicsMatrix *arg2 = 0 ;
29207 void *argp1 = 0 ;
29208 int res1 = 0 ;
29209 void *argp2 = 0 ;
29210 int res2 = 0 ;
29211 PyObject * obj0 = 0 ;
29212 PyObject * obj1 = 0 ;
29213 char * kwnames[] = {
29214 (char *) "self",(char *) "matrix", NULL
29215 };
29216
29217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29219 if (!SWIG_IsOK(res1)) {
29220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29221 }
29222 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29223 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29224 if (!SWIG_IsOK(res2)) {
29225 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29226 }
29227 if (!argp2) {
29228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29229 }
29230 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29231 {
29232 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
29233 if (PyErr_Occurred()) SWIG_fail;
29234 }
29235 resultobj = SWIG_Py_Void();
29236 return resultobj;
29237 fail:
29238 return NULL;
29239 }
29240
29241
29242 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29243 PyObject *resultobj = 0;
29244 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29245 wxGraphicsMatrix result;
29246 void *argp1 = 0 ;
29247 int res1 = 0 ;
29248 PyObject *swig_obj[1] ;
29249
29250 if (!args) SWIG_fail;
29251 swig_obj[0] = args;
29252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29253 if (!SWIG_IsOK(res1)) {
29254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29255 }
29256 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29257 {
29258 result = ((wxGraphicsContext const *)arg1)->GetTransform();
29259 if (PyErr_Occurred()) SWIG_fail;
29260 }
29261 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29262 return resultobj;
29263 fail:
29264 return NULL;
29265 }
29266
29267
29268 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29269 PyObject *resultobj = 0;
29270 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29271 wxGraphicsPen *arg2 = 0 ;
29272 void *argp1 = 0 ;
29273 int res1 = 0 ;
29274 void *argp2 = 0 ;
29275 int res2 = 0 ;
29276
29277 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29279 if (!SWIG_IsOK(res1)) {
29280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29281 }
29282 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29283 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
29284 if (!SWIG_IsOK(res2)) {
29285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29286 }
29287 if (!argp2) {
29288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29289 }
29290 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
29291 {
29292 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
29293 if (PyErr_Occurred()) SWIG_fail;
29294 }
29295 resultobj = SWIG_Py_Void();
29296 return resultobj;
29297 fail:
29298 return NULL;
29299 }
29300
29301
29302 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29303 PyObject *resultobj = 0;
29304 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29305 wxPen *arg2 = 0 ;
29306 void *argp1 = 0 ;
29307 int res1 = 0 ;
29308 void *argp2 = 0 ;
29309 int res2 = 0 ;
29310
29311 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29313 if (!SWIG_IsOK(res1)) {
29314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29315 }
29316 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29317 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
29318 if (!SWIG_IsOK(res2)) {
29319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29320 }
29321 if (!argp2) {
29322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29323 }
29324 arg2 = reinterpret_cast< wxPen * >(argp2);
29325 {
29326 (arg1)->SetPen((wxPen const &)*arg2);
29327 if (PyErr_Occurred()) SWIG_fail;
29328 }
29329 resultobj = SWIG_Py_Void();
29330 return resultobj;
29331 fail:
29332 return NULL;
29333 }
29334
29335
29336 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
29337 int argc;
29338 PyObject *argv[3];
29339
29340 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
29341 --argc;
29342 if (argc == 2) {
29343 int _v = 0;
29344 {
29345 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
29346 _v = SWIG_CheckState(res);
29347 }
29348 if (!_v) goto check_1;
29349 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
29350 }
29351 check_1:
29352
29353 if (argc == 2) {
29354 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
29355 }
29356
29357 fail:
29358 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
29359 return NULL;
29360 }
29361
29362
29363 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29364 PyObject *resultobj = 0;
29365 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29366 wxGraphicsBrush *arg2 = 0 ;
29367 void *argp1 = 0 ;
29368 int res1 = 0 ;
29369 void *argp2 = 0 ;
29370 int res2 = 0 ;
29371
29372 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29374 if (!SWIG_IsOK(res1)) {
29375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29376 }
29377 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29378 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29379 if (!SWIG_IsOK(res2)) {
29380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29381 }
29382 if (!argp2) {
29383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29384 }
29385 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
29386 {
29387 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
29388 if (PyErr_Occurred()) SWIG_fail;
29389 }
29390 resultobj = SWIG_Py_Void();
29391 return resultobj;
29392 fail:
29393 return NULL;
29394 }
29395
29396
29397 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29398 PyObject *resultobj = 0;
29399 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29400 wxBrush *arg2 = 0 ;
29401 void *argp1 = 0 ;
29402 int res1 = 0 ;
29403 void *argp2 = 0 ;
29404 int res2 = 0 ;
29405
29406 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29408 if (!SWIG_IsOK(res1)) {
29409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29410 }
29411 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29412 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
29413 if (!SWIG_IsOK(res2)) {
29414 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29415 }
29416 if (!argp2) {
29417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29418 }
29419 arg2 = reinterpret_cast< wxBrush * >(argp2);
29420 {
29421 (arg1)->SetBrush((wxBrush const &)*arg2);
29422 if (PyErr_Occurred()) SWIG_fail;
29423 }
29424 resultobj = SWIG_Py_Void();
29425 return resultobj;
29426 fail:
29427 return NULL;
29428 }
29429
29430
29431 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
29432 int argc;
29433 PyObject *argv[3];
29434
29435 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
29436 --argc;
29437 if (argc == 2) {
29438 int _v = 0;
29439 {
29440 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
29441 _v = SWIG_CheckState(res);
29442 }
29443 if (!_v) goto check_1;
29444 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
29445 }
29446 check_1:
29447
29448 if (argc == 2) {
29449 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
29450 }
29451
29452 fail:
29453 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
29454 return NULL;
29455 }
29456
29457
29458 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29459 PyObject *resultobj = 0;
29460 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29461 wxGraphicsFont *arg2 = 0 ;
29462 void *argp1 = 0 ;
29463 int res1 = 0 ;
29464 void *argp2 = 0 ;
29465 int res2 = 0 ;
29466
29467 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29469 if (!SWIG_IsOK(res1)) {
29470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29471 }
29472 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29473 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
29474 if (!SWIG_IsOK(res2)) {
29475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29476 }
29477 if (!argp2) {
29478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29479 }
29480 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
29481 {
29482 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
29483 if (PyErr_Occurred()) SWIG_fail;
29484 }
29485 resultobj = SWIG_Py_Void();
29486 return resultobj;
29487 fail:
29488 return NULL;
29489 }
29490
29491
29492 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29493 PyObject *resultobj = 0;
29494 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29495 wxFont *arg2 = 0 ;
29496 wxColour const &arg3_defvalue = *wxBLACK ;
29497 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
29498 void *argp1 = 0 ;
29499 int res1 = 0 ;
29500 void *argp2 = 0 ;
29501 int res2 = 0 ;
29502 wxColour temp3 ;
29503
29504 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
29505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29506 if (!SWIG_IsOK(res1)) {
29507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29508 }
29509 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29510 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
29511 if (!SWIG_IsOK(res2)) {
29512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29513 }
29514 if (!argp2) {
29515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29516 }
29517 arg2 = reinterpret_cast< wxFont * >(argp2);
29518 if (swig_obj[2]) {
29519 {
29520 arg3 = &temp3;
29521 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29522 }
29523 }
29524 {
29525 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
29526 if (PyErr_Occurred()) SWIG_fail;
29527 }
29528 resultobj = SWIG_Py_Void();
29529 return resultobj;
29530 fail:
29531 return NULL;
29532 }
29533
29534
29535 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29536 int argc;
29537 PyObject *argv[4];
29538
29539 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29540 --argc;
29541 if (argc == 2) {
29542 int _v = 0;
29543 {
29544 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29545 _v = SWIG_CheckState(res);
29546 }
29547 if (!_v) goto check_1;
29548 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
29549 }
29550 check_1:
29551
29552 if ((argc >= 2) && (argc <= 3)) {
29553 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
29554 }
29555
29556 fail:
29557 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
29558 return NULL;
29559 }
29560
29561
29562 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29563 PyObject *resultobj = 0;
29564 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29565 wxGraphicsPath *arg2 = 0 ;
29566 void *argp1 = 0 ;
29567 int res1 = 0 ;
29568 void *argp2 = 0 ;
29569 int res2 = 0 ;
29570 PyObject * obj0 = 0 ;
29571 PyObject * obj1 = 0 ;
29572 char * kwnames[] = {
29573 (char *) "self",(char *) "path", NULL
29574 };
29575
29576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29578 if (!SWIG_IsOK(res1)) {
29579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29580 }
29581 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29582 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29583 if (!SWIG_IsOK(res2)) {
29584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29585 }
29586 if (!argp2) {
29587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29588 }
29589 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29590 {
29591 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
29592 if (PyErr_Occurred()) SWIG_fail;
29593 }
29594 resultobj = SWIG_Py_Void();
29595 return resultobj;
29596 fail:
29597 return NULL;
29598 }
29599
29600
29601 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29602 PyObject *resultobj = 0;
29603 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29604 wxGraphicsPath *arg2 = 0 ;
29605 int arg3 = (int) wxODDEVEN_RULE ;
29606 void *argp1 = 0 ;
29607 int res1 = 0 ;
29608 void *argp2 = 0 ;
29609 int res2 = 0 ;
29610 int val3 ;
29611 int ecode3 = 0 ;
29612 PyObject * obj0 = 0 ;
29613 PyObject * obj1 = 0 ;
29614 PyObject * obj2 = 0 ;
29615 char * kwnames[] = {
29616 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29617 };
29618
29619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29621 if (!SWIG_IsOK(res1)) {
29622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29623 }
29624 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29626 if (!SWIG_IsOK(res2)) {
29627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29628 }
29629 if (!argp2) {
29630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29631 }
29632 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29633 if (obj2) {
29634 ecode3 = SWIG_AsVal_int(obj2, &val3);
29635 if (!SWIG_IsOK(ecode3)) {
29636 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29637 }
29638 arg3 = static_cast< int >(val3);
29639 }
29640 {
29641 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
29642 if (PyErr_Occurred()) SWIG_fail;
29643 }
29644 resultobj = SWIG_Py_Void();
29645 return resultobj;
29646 fail:
29647 return NULL;
29648 }
29649
29650
29651 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29652 PyObject *resultobj = 0;
29653 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29654 wxGraphicsPath *arg2 = 0 ;
29655 int arg3 = (int) wxODDEVEN_RULE ;
29656 void *argp1 = 0 ;
29657 int res1 = 0 ;
29658 void *argp2 = 0 ;
29659 int res2 = 0 ;
29660 int val3 ;
29661 int ecode3 = 0 ;
29662 PyObject * obj0 = 0 ;
29663 PyObject * obj1 = 0 ;
29664 PyObject * obj2 = 0 ;
29665 char * kwnames[] = {
29666 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29667 };
29668
29669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29671 if (!SWIG_IsOK(res1)) {
29672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29673 }
29674 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29675 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29676 if (!SWIG_IsOK(res2)) {
29677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29678 }
29679 if (!argp2) {
29680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29681 }
29682 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29683 if (obj2) {
29684 ecode3 = SWIG_AsVal_int(obj2, &val3);
29685 if (!SWIG_IsOK(ecode3)) {
29686 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29687 }
29688 arg3 = static_cast< int >(val3);
29689 }
29690 {
29691 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
29692 if (PyErr_Occurred()) SWIG_fail;
29693 }
29694 resultobj = SWIG_Py_Void();
29695 return resultobj;
29696 fail:
29697 return NULL;
29698 }
29699
29700
29701 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29702 PyObject *resultobj = 0;
29703 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29704 wxString *arg2 = 0 ;
29705 wxDouble arg3 ;
29706 wxDouble arg4 ;
29707 void *argp1 = 0 ;
29708 int res1 = 0 ;
29709 bool temp2 = false ;
29710 double val3 ;
29711 int ecode3 = 0 ;
29712 double val4 ;
29713 int ecode4 = 0 ;
29714 PyObject * obj0 = 0 ;
29715 PyObject * obj1 = 0 ;
29716 PyObject * obj2 = 0 ;
29717 PyObject * obj3 = 0 ;
29718 char * kwnames[] = {
29719 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
29720 };
29721
29722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29724 if (!SWIG_IsOK(res1)) {
29725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29726 }
29727 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29728 {
29729 arg2 = wxString_in_helper(obj1);
29730 if (arg2 == NULL) SWIG_fail;
29731 temp2 = true;
29732 }
29733 ecode3 = SWIG_AsVal_double(obj2, &val3);
29734 if (!SWIG_IsOK(ecode3)) {
29735 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29736 }
29737 arg3 = static_cast< wxDouble >(val3);
29738 ecode4 = SWIG_AsVal_double(obj3, &val4);
29739 if (!SWIG_IsOK(ecode4)) {
29740 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29741 }
29742 arg4 = static_cast< wxDouble >(val4);
29743 {
29744 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
29745 if (PyErr_Occurred()) SWIG_fail;
29746 }
29747 resultobj = SWIG_Py_Void();
29748 {
29749 if (temp2)
29750 delete arg2;
29751 }
29752 return resultobj;
29753 fail:
29754 {
29755 if (temp2)
29756 delete arg2;
29757 }
29758 return NULL;
29759 }
29760
29761
29762 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29763 PyObject *resultobj = 0;
29764 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29765 wxString *arg2 = 0 ;
29766 wxDouble arg3 ;
29767 wxDouble arg4 ;
29768 wxDouble arg5 ;
29769 void *argp1 = 0 ;
29770 int res1 = 0 ;
29771 bool temp2 = false ;
29772 double val3 ;
29773 int ecode3 = 0 ;
29774 double val4 ;
29775 int ecode4 = 0 ;
29776 double val5 ;
29777 int ecode5 = 0 ;
29778 PyObject * obj0 = 0 ;
29779 PyObject * obj1 = 0 ;
29780 PyObject * obj2 = 0 ;
29781 PyObject * obj3 = 0 ;
29782 PyObject * obj4 = 0 ;
29783 char * kwnames[] = {
29784 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
29785 };
29786
29787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29789 if (!SWIG_IsOK(res1)) {
29790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29791 }
29792 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29793 {
29794 arg2 = wxString_in_helper(obj1);
29795 if (arg2 == NULL) SWIG_fail;
29796 temp2 = true;
29797 }
29798 ecode3 = SWIG_AsVal_double(obj2, &val3);
29799 if (!SWIG_IsOK(ecode3)) {
29800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
29801 }
29802 arg3 = static_cast< wxDouble >(val3);
29803 ecode4 = SWIG_AsVal_double(obj3, &val4);
29804 if (!SWIG_IsOK(ecode4)) {
29805 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
29806 }
29807 arg4 = static_cast< wxDouble >(val4);
29808 ecode5 = SWIG_AsVal_double(obj4, &val5);
29809 if (!SWIG_IsOK(ecode5)) {
29810 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
29811 }
29812 arg5 = static_cast< wxDouble >(val5);
29813 {
29814 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
29815 if (PyErr_Occurred()) SWIG_fail;
29816 }
29817 resultobj = SWIG_Py_Void();
29818 {
29819 if (temp2)
29820 delete arg2;
29821 }
29822 return resultobj;
29823 fail:
29824 {
29825 if (temp2)
29826 delete arg2;
29827 }
29828 return NULL;
29829 }
29830
29831
29832 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29833 PyObject *resultobj = 0;
29834 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29835 wxString *arg2 = 0 ;
29836 wxDouble *arg3 = (wxDouble *) 0 ;
29837 wxDouble *arg4 = (wxDouble *) 0 ;
29838 wxDouble *arg5 = (wxDouble *) 0 ;
29839 wxDouble *arg6 = (wxDouble *) 0 ;
29840 void *argp1 = 0 ;
29841 int res1 = 0 ;
29842 bool temp2 = false ;
29843 wxDouble temp3 ;
29844 int res3 = SWIG_TMPOBJ ;
29845 wxDouble temp4 ;
29846 int res4 = SWIG_TMPOBJ ;
29847 wxDouble temp5 ;
29848 int res5 = SWIG_TMPOBJ ;
29849 wxDouble temp6 ;
29850 int res6 = SWIG_TMPOBJ ;
29851 PyObject * obj0 = 0 ;
29852 PyObject * obj1 = 0 ;
29853 char * kwnames[] = {
29854 (char *) "self",(char *) "text", NULL
29855 };
29856
29857 arg3 = &temp3;
29858 arg4 = &temp4;
29859 arg5 = &temp5;
29860 arg6 = &temp6;
29861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29863 if (!SWIG_IsOK(res1)) {
29864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29865 }
29866 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29867 {
29868 arg2 = wxString_in_helper(obj1);
29869 if (arg2 == NULL) SWIG_fail;
29870 temp2 = true;
29871 }
29872 {
29873 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
29874 if (PyErr_Occurred()) SWIG_fail;
29875 }
29876 resultobj = SWIG_Py_Void();
29877 if (SWIG_IsTmpObj(res3)) {
29878 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29879 } else {
29880 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29881 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29882 }
29883 if (SWIG_IsTmpObj(res4)) {
29884 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29885 } else {
29886 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29887 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29888 }
29889 if (SWIG_IsTmpObj(res5)) {
29890 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29891 } else {
29892 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29893 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29894 }
29895 if (SWIG_IsTmpObj(res6)) {
29896 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29897 } else {
29898 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29899 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29900 }
29901 {
29902 if (temp2)
29903 delete arg2;
29904 }
29905 return resultobj;
29906 fail:
29907 {
29908 if (temp2)
29909 delete arg2;
29910 }
29911 return NULL;
29912 }
29913
29914
29915 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29916 PyObject *resultobj = 0;
29917 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29918 wxString *arg2 = 0 ;
29919 PyObject *result = 0 ;
29920 void *argp1 = 0 ;
29921 int res1 = 0 ;
29922 bool temp2 = false ;
29923 PyObject * obj0 = 0 ;
29924 PyObject * obj1 = 0 ;
29925 char * kwnames[] = {
29926 (char *) "self",(char *) "text", NULL
29927 };
29928
29929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29931 if (!SWIG_IsOK(res1)) {
29932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29933 }
29934 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29935 {
29936 arg2 = wxString_in_helper(obj1);
29937 if (arg2 == NULL) SWIG_fail;
29938 temp2 = true;
29939 }
29940 {
29941 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29942 if (PyErr_Occurred()) SWIG_fail;
29943 }
29944 resultobj = result;
29945 {
29946 if (temp2)
29947 delete arg2;
29948 }
29949 return resultobj;
29950 fail:
29951 {
29952 if (temp2)
29953 delete arg2;
29954 }
29955 return NULL;
29956 }
29957
29958
29959 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29960 PyObject *resultobj = 0;
29961 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29962 wxString *arg2 = 0 ;
29963 wxArrayDouble result;
29964 void *argp1 = 0 ;
29965 int res1 = 0 ;
29966 bool temp2 = false ;
29967 PyObject * obj0 = 0 ;
29968 PyObject * obj1 = 0 ;
29969 char * kwnames[] = {
29970 (char *) "self",(char *) "text", NULL
29971 };
29972
29973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
29974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29975 if (!SWIG_IsOK(res1)) {
29976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29977 }
29978 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29979 {
29980 arg2 = wxString_in_helper(obj1);
29981 if (arg2 == NULL) SWIG_fail;
29982 temp2 = true;
29983 }
29984 {
29985 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
29986 if (PyErr_Occurred()) SWIG_fail;
29987 }
29988 {
29989 resultobj = wxArrayDouble2PyList_helper(result);
29990 }
29991 {
29992 if (temp2)
29993 delete arg2;
29994 }
29995 return resultobj;
29996 fail:
29997 {
29998 if (temp2)
29999 delete arg2;
30000 }
30001 return NULL;
30002 }
30003
30004
30005 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30006 PyObject *resultobj = 0;
30007 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30008 wxBitmap *arg2 = 0 ;
30009 wxDouble arg3 ;
30010 wxDouble arg4 ;
30011 wxDouble arg5 ;
30012 wxDouble arg6 ;
30013 void *argp1 = 0 ;
30014 int res1 = 0 ;
30015 void *argp2 = 0 ;
30016 int res2 = 0 ;
30017 double val3 ;
30018 int ecode3 = 0 ;
30019 double val4 ;
30020 int ecode4 = 0 ;
30021 double val5 ;
30022 int ecode5 = 0 ;
30023 double val6 ;
30024 int ecode6 = 0 ;
30025 PyObject * obj0 = 0 ;
30026 PyObject * obj1 = 0 ;
30027 PyObject * obj2 = 0 ;
30028 PyObject * obj3 = 0 ;
30029 PyObject * obj4 = 0 ;
30030 PyObject * obj5 = 0 ;
30031 char * kwnames[] = {
30032 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30033 };
30034
30035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30037 if (!SWIG_IsOK(res1)) {
30038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30039 }
30040 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30041 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30042 if (!SWIG_IsOK(res2)) {
30043 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30044 }
30045 if (!argp2) {
30046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30047 }
30048 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30049 ecode3 = SWIG_AsVal_double(obj2, &val3);
30050 if (!SWIG_IsOK(ecode3)) {
30051 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
30052 }
30053 arg3 = static_cast< wxDouble >(val3);
30054 ecode4 = SWIG_AsVal_double(obj3, &val4);
30055 if (!SWIG_IsOK(ecode4)) {
30056 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
30057 }
30058 arg4 = static_cast< wxDouble >(val4);
30059 ecode5 = SWIG_AsVal_double(obj4, &val5);
30060 if (!SWIG_IsOK(ecode5)) {
30061 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
30062 }
30063 arg5 = static_cast< wxDouble >(val5);
30064 ecode6 = SWIG_AsVal_double(obj5, &val6);
30065 if (!SWIG_IsOK(ecode6)) {
30066 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
30067 }
30068 arg6 = static_cast< wxDouble >(val6);
30069 {
30070 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
30071 if (PyErr_Occurred()) SWIG_fail;
30072 }
30073 resultobj = SWIG_Py_Void();
30074 return resultobj;
30075 fail:
30076 return NULL;
30077 }
30078
30079
30080 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30081 PyObject *resultobj = 0;
30082 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30083 wxIcon *arg2 = 0 ;
30084 wxDouble arg3 ;
30085 wxDouble arg4 ;
30086 wxDouble arg5 ;
30087 wxDouble arg6 ;
30088 void *argp1 = 0 ;
30089 int res1 = 0 ;
30090 void *argp2 = 0 ;
30091 int res2 = 0 ;
30092 double val3 ;
30093 int ecode3 = 0 ;
30094 double val4 ;
30095 int ecode4 = 0 ;
30096 double val5 ;
30097 int ecode5 = 0 ;
30098 double val6 ;
30099 int ecode6 = 0 ;
30100 PyObject * obj0 = 0 ;
30101 PyObject * obj1 = 0 ;
30102 PyObject * obj2 = 0 ;
30103 PyObject * obj3 = 0 ;
30104 PyObject * obj4 = 0 ;
30105 PyObject * obj5 = 0 ;
30106 char * kwnames[] = {
30107 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30108 };
30109
30110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30112 if (!SWIG_IsOK(res1)) {
30113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30114 }
30115 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30116 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30117 if (!SWIG_IsOK(res2)) {
30118 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30119 }
30120 if (!argp2) {
30121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30122 }
30123 arg2 = reinterpret_cast< wxIcon * >(argp2);
30124 ecode3 = SWIG_AsVal_double(obj2, &val3);
30125 if (!SWIG_IsOK(ecode3)) {
30126 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
30127 }
30128 arg3 = static_cast< wxDouble >(val3);
30129 ecode4 = SWIG_AsVal_double(obj3, &val4);
30130 if (!SWIG_IsOK(ecode4)) {
30131 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
30132 }
30133 arg4 = static_cast< wxDouble >(val4);
30134 ecode5 = SWIG_AsVal_double(obj4, &val5);
30135 if (!SWIG_IsOK(ecode5)) {
30136 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
30137 }
30138 arg5 = static_cast< wxDouble >(val5);
30139 ecode6 = SWIG_AsVal_double(obj5, &val6);
30140 if (!SWIG_IsOK(ecode6)) {
30141 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
30142 }
30143 arg6 = static_cast< wxDouble >(val6);
30144 {
30145 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
30146 if (PyErr_Occurred()) SWIG_fail;
30147 }
30148 resultobj = SWIG_Py_Void();
30149 return resultobj;
30150 fail:
30151 return NULL;
30152 }
30153
30154
30155 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30156 PyObject *resultobj = 0;
30157 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30158 wxDouble arg2 ;
30159 wxDouble arg3 ;
30160 wxDouble arg4 ;
30161 wxDouble arg5 ;
30162 void *argp1 = 0 ;
30163 int res1 = 0 ;
30164 double val2 ;
30165 int ecode2 = 0 ;
30166 double val3 ;
30167 int ecode3 = 0 ;
30168 double val4 ;
30169 int ecode4 = 0 ;
30170 double val5 ;
30171 int ecode5 = 0 ;
30172 PyObject * obj0 = 0 ;
30173 PyObject * obj1 = 0 ;
30174 PyObject * obj2 = 0 ;
30175 PyObject * obj3 = 0 ;
30176 PyObject * obj4 = 0 ;
30177 char * kwnames[] = {
30178 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
30179 };
30180
30181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30183 if (!SWIG_IsOK(res1)) {
30184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30185 }
30186 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30187 ecode2 = SWIG_AsVal_double(obj1, &val2);
30188 if (!SWIG_IsOK(ecode2)) {
30189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
30190 }
30191 arg2 = static_cast< wxDouble >(val2);
30192 ecode3 = SWIG_AsVal_double(obj2, &val3);
30193 if (!SWIG_IsOK(ecode3)) {
30194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
30195 }
30196 arg3 = static_cast< wxDouble >(val3);
30197 ecode4 = SWIG_AsVal_double(obj3, &val4);
30198 if (!SWIG_IsOK(ecode4)) {
30199 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
30200 }
30201 arg4 = static_cast< wxDouble >(val4);
30202 ecode5 = SWIG_AsVal_double(obj4, &val5);
30203 if (!SWIG_IsOK(ecode5)) {
30204 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
30205 }
30206 arg5 = static_cast< wxDouble >(val5);
30207 {
30208 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
30209 if (PyErr_Occurred()) SWIG_fail;
30210 }
30211 resultobj = SWIG_Py_Void();
30212 return resultobj;
30213 fail:
30214 return NULL;
30215 }
30216
30217
30218 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30219 PyObject *resultobj = 0;
30220 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30221 size_t arg2 ;
30222 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30223 void *argp1 = 0 ;
30224 int res1 = 0 ;
30225 PyObject * obj0 = 0 ;
30226 PyObject * obj1 = 0 ;
30227 char * kwnames[] = {
30228 (char *) "self",(char *) "points", NULL
30229 };
30230
30231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
30232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30233 if (!SWIG_IsOK(res1)) {
30234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30235 }
30236 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30237 {
30238 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30239 if (arg3 == NULL) SWIG_fail;
30240 }
30241 {
30242 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
30243 if (PyErr_Occurred()) SWIG_fail;
30244 }
30245 resultobj = SWIG_Py_Void();
30246 {
30247 if (arg3) delete [] arg3;
30248 }
30249 return resultobj;
30250 fail:
30251 {
30252 if (arg3) delete [] arg3;
30253 }
30254 return NULL;
30255 }
30256
30257
30258 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30259 PyObject *resultobj = 0;
30260 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30261 PyObject *arg2 = (PyObject *) 0 ;
30262 PyObject *arg3 = (PyObject *) 0 ;
30263 void *argp1 = 0 ;
30264 int res1 = 0 ;
30265 PyObject * obj0 = 0 ;
30266 PyObject * obj1 = 0 ;
30267 PyObject * obj2 = 0 ;
30268 char * kwnames[] = {
30269 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
30270 };
30271
30272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30274 if (!SWIG_IsOK(res1)) {
30275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30276 }
30277 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30278 arg2 = obj1;
30279 arg3 = obj2;
30280 {
30281 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
30282 if (PyErr_Occurred()) SWIG_fail;
30283 }
30284 resultobj = SWIG_Py_Void();
30285 return resultobj;
30286 fail:
30287 return NULL;
30288 }
30289
30290
30291 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30292 PyObject *resultobj = 0;
30293 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30294 size_t arg2 ;
30295 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30296 int arg4 = (int) wxODDEVEN_RULE ;
30297 void *argp1 = 0 ;
30298 int res1 = 0 ;
30299 int val4 ;
30300 int ecode4 = 0 ;
30301 PyObject * obj0 = 0 ;
30302 PyObject * obj1 = 0 ;
30303 PyObject * obj2 = 0 ;
30304 char * kwnames[] = {
30305 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
30306 };
30307
30308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30310 if (!SWIG_IsOK(res1)) {
30311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30312 }
30313 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30314 {
30315 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30316 if (arg3 == NULL) SWIG_fail;
30317 }
30318 if (obj2) {
30319 ecode4 = SWIG_AsVal_int(obj2, &val4);
30320 if (!SWIG_IsOK(ecode4)) {
30321 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
30322 }
30323 arg4 = static_cast< int >(val4);
30324 }
30325 {
30326 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
30327 if (PyErr_Occurred()) SWIG_fail;
30328 }
30329 resultobj = SWIG_Py_Void();
30330 {
30331 if (arg3) delete [] arg3;
30332 }
30333 return resultobj;
30334 fail:
30335 {
30336 if (arg3) delete [] arg3;
30337 }
30338 return NULL;
30339 }
30340
30341
30342 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30343 PyObject *resultobj = 0;
30344 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30345 wxDouble arg2 ;
30346 wxDouble arg3 ;
30347 wxDouble arg4 ;
30348 wxDouble arg5 ;
30349 void *argp1 = 0 ;
30350 int res1 = 0 ;
30351 double val2 ;
30352 int ecode2 = 0 ;
30353 double val3 ;
30354 int ecode3 = 0 ;
30355 double val4 ;
30356 int ecode4 = 0 ;
30357 double val5 ;
30358 int ecode5 = 0 ;
30359 PyObject * obj0 = 0 ;
30360 PyObject * obj1 = 0 ;
30361 PyObject * obj2 = 0 ;
30362 PyObject * obj3 = 0 ;
30363 PyObject * obj4 = 0 ;
30364 char * kwnames[] = {
30365 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30366 };
30367
30368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30370 if (!SWIG_IsOK(res1)) {
30371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30372 }
30373 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30374 ecode2 = SWIG_AsVal_double(obj1, &val2);
30375 if (!SWIG_IsOK(ecode2)) {
30376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30377 }
30378 arg2 = static_cast< wxDouble >(val2);
30379 ecode3 = SWIG_AsVal_double(obj2, &val3);
30380 if (!SWIG_IsOK(ecode3)) {
30381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30382 }
30383 arg3 = static_cast< wxDouble >(val3);
30384 ecode4 = SWIG_AsVal_double(obj3, &val4);
30385 if (!SWIG_IsOK(ecode4)) {
30386 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30387 }
30388 arg4 = static_cast< wxDouble >(val4);
30389 ecode5 = SWIG_AsVal_double(obj4, &val5);
30390 if (!SWIG_IsOK(ecode5)) {
30391 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30392 }
30393 arg5 = static_cast< wxDouble >(val5);
30394 {
30395 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30396 if (PyErr_Occurred()) SWIG_fail;
30397 }
30398 resultobj = SWIG_Py_Void();
30399 return resultobj;
30400 fail:
30401 return NULL;
30402 }
30403
30404
30405 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30406 PyObject *resultobj = 0;
30407 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30408 wxDouble arg2 ;
30409 wxDouble arg3 ;
30410 wxDouble arg4 ;
30411 wxDouble arg5 ;
30412 void *argp1 = 0 ;
30413 int res1 = 0 ;
30414 double val2 ;
30415 int ecode2 = 0 ;
30416 double val3 ;
30417 int ecode3 = 0 ;
30418 double val4 ;
30419 int ecode4 = 0 ;
30420 double val5 ;
30421 int ecode5 = 0 ;
30422 PyObject * obj0 = 0 ;
30423 PyObject * obj1 = 0 ;
30424 PyObject * obj2 = 0 ;
30425 PyObject * obj3 = 0 ;
30426 PyObject * obj4 = 0 ;
30427 char * kwnames[] = {
30428 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30429 };
30430
30431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30433 if (!SWIG_IsOK(res1)) {
30434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30435 }
30436 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30437 ecode2 = SWIG_AsVal_double(obj1, &val2);
30438 if (!SWIG_IsOK(ecode2)) {
30439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
30440 }
30441 arg2 = static_cast< wxDouble >(val2);
30442 ecode3 = SWIG_AsVal_double(obj2, &val3);
30443 if (!SWIG_IsOK(ecode3)) {
30444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
30445 }
30446 arg3 = static_cast< wxDouble >(val3);
30447 ecode4 = SWIG_AsVal_double(obj3, &val4);
30448 if (!SWIG_IsOK(ecode4)) {
30449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
30450 }
30451 arg4 = static_cast< wxDouble >(val4);
30452 ecode5 = SWIG_AsVal_double(obj4, &val5);
30453 if (!SWIG_IsOK(ecode5)) {
30454 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
30455 }
30456 arg5 = static_cast< wxDouble >(val5);
30457 {
30458 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
30459 if (PyErr_Occurred()) SWIG_fail;
30460 }
30461 resultobj = SWIG_Py_Void();
30462 return resultobj;
30463 fail:
30464 return NULL;
30465 }
30466
30467
30468 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30469 PyObject *resultobj = 0;
30470 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30471 wxDouble arg2 ;
30472 wxDouble arg3 ;
30473 wxDouble arg4 ;
30474 wxDouble arg5 ;
30475 wxDouble arg6 ;
30476 void *argp1 = 0 ;
30477 int res1 = 0 ;
30478 double val2 ;
30479 int ecode2 = 0 ;
30480 double val3 ;
30481 int ecode3 = 0 ;
30482 double val4 ;
30483 int ecode4 = 0 ;
30484 double val5 ;
30485 int ecode5 = 0 ;
30486 double val6 ;
30487 int ecode6 = 0 ;
30488 PyObject * obj0 = 0 ;
30489 PyObject * obj1 = 0 ;
30490 PyObject * obj2 = 0 ;
30491 PyObject * obj3 = 0 ;
30492 PyObject * obj4 = 0 ;
30493 PyObject * obj5 = 0 ;
30494 char * kwnames[] = {
30495 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
30496 };
30497
30498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30500 if (!SWIG_IsOK(res1)) {
30501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30502 }
30503 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30504 ecode2 = SWIG_AsVal_double(obj1, &val2);
30505 if (!SWIG_IsOK(ecode2)) {
30506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30507 }
30508 arg2 = static_cast< wxDouble >(val2);
30509 ecode3 = SWIG_AsVal_double(obj2, &val3);
30510 if (!SWIG_IsOK(ecode3)) {
30511 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30512 }
30513 arg3 = static_cast< wxDouble >(val3);
30514 ecode4 = SWIG_AsVal_double(obj3, &val4);
30515 if (!SWIG_IsOK(ecode4)) {
30516 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30517 }
30518 arg4 = static_cast< wxDouble >(val4);
30519 ecode5 = SWIG_AsVal_double(obj4, &val5);
30520 if (!SWIG_IsOK(ecode5)) {
30521 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30522 }
30523 arg5 = static_cast< wxDouble >(val5);
30524 ecode6 = SWIG_AsVal_double(obj5, &val6);
30525 if (!SWIG_IsOK(ecode6)) {
30526 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30527 }
30528 arg6 = static_cast< wxDouble >(val6);
30529 {
30530 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
30531 if (PyErr_Occurred()) SWIG_fail;
30532 }
30533 resultobj = SWIG_Py_Void();
30534 return resultobj;
30535 fail:
30536 return NULL;
30537 }
30538
30539
30540 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30541 PyObject *resultobj = 0;
30542 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30543 bool result;
30544 void *argp1 = 0 ;
30545 int res1 = 0 ;
30546 PyObject *swig_obj[1] ;
30547
30548 if (!args) SWIG_fail;
30549 swig_obj[0] = args;
30550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30551 if (!SWIG_IsOK(res1)) {
30552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
30553 }
30554 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30555 {
30556 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30557 if (PyErr_Occurred()) SWIG_fail;
30558 }
30559 {
30560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30561 }
30562 return resultobj;
30563 fail:
30564 return NULL;
30565 }
30566
30567
30568 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30569 PyObject *obj;
30570 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30571 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30572 return SWIG_Py_Void();
30573 }
30574
30575 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30576 PyObject *resultobj = 0;
30577 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30578 void *argp1 = 0 ;
30579 int res1 = 0 ;
30580 PyObject *swig_obj[1] ;
30581
30582 if (!args) SWIG_fail;
30583 swig_obj[0] = args;
30584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30585 if (!SWIG_IsOK(res1)) {
30586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30587 }
30588 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30589 {
30590 delete arg1;
30591
30592 if (PyErr_Occurred()) SWIG_fail;
30593 }
30594 resultobj = SWIG_Py_Void();
30595 return resultobj;
30596 fail:
30597 return NULL;
30598 }
30599
30600
30601 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30602 PyObject *resultobj = 0;
30603 wxGraphicsRenderer *result = 0 ;
30604
30605 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
30606 {
30607 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30608 if (PyErr_Occurred()) SWIG_fail;
30609 }
30610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30611 return resultobj;
30612 fail:
30613 return NULL;
30614 }
30615
30616
30617 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30618 PyObject *resultobj = 0;
30619 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30620 wxWindowDC *arg2 = 0 ;
30621 wxGraphicsContext *result = 0 ;
30622 void *argp1 = 0 ;
30623 int res1 = 0 ;
30624 void *argp2 = 0 ;
30625 int res2 = 0 ;
30626
30627 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30629 if (!SWIG_IsOK(res1)) {
30630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30631 }
30632 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30633 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30634 if (!SWIG_IsOK(res2)) {
30635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30636 }
30637 if (!argp2) {
30638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30639 }
30640 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30641 {
30642 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30643 if (PyErr_Occurred()) SWIG_fail;
30644 }
30645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30646 return resultobj;
30647 fail:
30648 return NULL;
30649 }
30650
30651
30652 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30653 PyObject *resultobj = 0;
30654 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30655 wxWindow *arg2 = (wxWindow *) 0 ;
30656 wxGraphicsContext *result = 0 ;
30657 void *argp1 = 0 ;
30658 int res1 = 0 ;
30659 void *argp2 = 0 ;
30660 int res2 = 0 ;
30661
30662 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30664 if (!SWIG_IsOK(res1)) {
30665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30666 }
30667 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30668 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30669 if (!SWIG_IsOK(res2)) {
30670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30671 }
30672 arg2 = reinterpret_cast< wxWindow * >(argp2);
30673 {
30674 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30675 if (PyErr_Occurred()) SWIG_fail;
30676 }
30677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30678 return resultobj;
30679 fail:
30680 return NULL;
30681 }
30682
30683
30684 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30685 int argc;
30686 PyObject *argv[3];
30687
30688 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30689 --argc;
30690 if (argc == 2) {
30691 int _v = 0;
30692 {
30693 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30694 _v = SWIG_CheckState(res);
30695 }
30696 if (!_v) goto check_1;
30697 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30698 }
30699 check_1:
30700
30701 if (argc == 2) {
30702 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30703 }
30704
30705 fail:
30706 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30707 return NULL;
30708 }
30709
30710
30711 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30712 PyObject *resultobj = 0;
30713 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30714 void *arg2 = (void *) 0 ;
30715 wxGraphicsContext *result = 0 ;
30716 void *argp1 = 0 ;
30717 int res1 = 0 ;
30718 int res2 ;
30719 PyObject * obj0 = 0 ;
30720 PyObject * obj1 = 0 ;
30721 char * kwnames[] = {
30722 (char *) "self",(char *) "context", NULL
30723 };
30724
30725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30727 if (!SWIG_IsOK(res1)) {
30728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30729 }
30730 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30731 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30732 if (!SWIG_IsOK(res2)) {
30733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
30734 }
30735 {
30736 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
30737 if (PyErr_Occurred()) SWIG_fail;
30738 }
30739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30740 return resultobj;
30741 fail:
30742 return NULL;
30743 }
30744
30745
30746 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30747 PyObject *resultobj = 0;
30748 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30749 void *arg2 = (void *) 0 ;
30750 wxGraphicsContext *result = 0 ;
30751 void *argp1 = 0 ;
30752 int res1 = 0 ;
30753 int res2 ;
30754 PyObject * obj0 = 0 ;
30755 PyObject * obj1 = 0 ;
30756 char * kwnames[] = {
30757 (char *) "self",(char *) "window", NULL
30758 };
30759
30760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30762 if (!SWIG_IsOK(res1)) {
30763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30764 }
30765 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30766 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30767 if (!SWIG_IsOK(res2)) {
30768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
30769 }
30770 {
30771 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
30772 if (PyErr_Occurred()) SWIG_fail;
30773 }
30774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30775 return resultobj;
30776 fail:
30777 return NULL;
30778 }
30779
30780
30781 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30782 PyObject *resultobj = 0;
30783 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30784 wxGraphicsPath result;
30785 void *argp1 = 0 ;
30786 int res1 = 0 ;
30787 PyObject *swig_obj[1] ;
30788
30789 if (!args) SWIG_fail;
30790 swig_obj[0] = args;
30791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30792 if (!SWIG_IsOK(res1)) {
30793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30794 }
30795 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30796 {
30797 result = (arg1)->CreatePath();
30798 if (PyErr_Occurred()) SWIG_fail;
30799 }
30800 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
30801 return resultobj;
30802 fail:
30803 return NULL;
30804 }
30805
30806
30807 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30808 PyObject *resultobj = 0;
30809 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30810 wxDouble arg2 = (wxDouble) 1.0 ;
30811 wxDouble arg3 = (wxDouble) 0.0 ;
30812 wxDouble arg4 = (wxDouble) 0.0 ;
30813 wxDouble arg5 = (wxDouble) 1.0 ;
30814 wxDouble arg6 = (wxDouble) 0.0 ;
30815 wxDouble arg7 = (wxDouble) 0.0 ;
30816 wxGraphicsMatrix result;
30817 void *argp1 = 0 ;
30818 int res1 = 0 ;
30819 double val2 ;
30820 int ecode2 = 0 ;
30821 double val3 ;
30822 int ecode3 = 0 ;
30823 double val4 ;
30824 int ecode4 = 0 ;
30825 double val5 ;
30826 int ecode5 = 0 ;
30827 double val6 ;
30828 int ecode6 = 0 ;
30829 double val7 ;
30830 int ecode7 = 0 ;
30831 PyObject * obj0 = 0 ;
30832 PyObject * obj1 = 0 ;
30833 PyObject * obj2 = 0 ;
30834 PyObject * obj3 = 0 ;
30835 PyObject * obj4 = 0 ;
30836 PyObject * obj5 = 0 ;
30837 PyObject * obj6 = 0 ;
30838 char * kwnames[] = {
30839 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
30840 };
30841
30842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30844 if (!SWIG_IsOK(res1)) {
30845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30846 }
30847 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30848 if (obj1) {
30849 ecode2 = SWIG_AsVal_double(obj1, &val2);
30850 if (!SWIG_IsOK(ecode2)) {
30851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30852 }
30853 arg2 = static_cast< wxDouble >(val2);
30854 }
30855 if (obj2) {
30856 ecode3 = SWIG_AsVal_double(obj2, &val3);
30857 if (!SWIG_IsOK(ecode3)) {
30858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30859 }
30860 arg3 = static_cast< wxDouble >(val3);
30861 }
30862 if (obj3) {
30863 ecode4 = SWIG_AsVal_double(obj3, &val4);
30864 if (!SWIG_IsOK(ecode4)) {
30865 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30866 }
30867 arg4 = static_cast< wxDouble >(val4);
30868 }
30869 if (obj4) {
30870 ecode5 = SWIG_AsVal_double(obj4, &val5);
30871 if (!SWIG_IsOK(ecode5)) {
30872 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30873 }
30874 arg5 = static_cast< wxDouble >(val5);
30875 }
30876 if (obj5) {
30877 ecode6 = SWIG_AsVal_double(obj5, &val6);
30878 if (!SWIG_IsOK(ecode6)) {
30879 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30880 }
30881 arg6 = static_cast< wxDouble >(val6);
30882 }
30883 if (obj6) {
30884 ecode7 = SWIG_AsVal_double(obj6, &val7);
30885 if (!SWIG_IsOK(ecode7)) {
30886 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30887 }
30888 arg7 = static_cast< wxDouble >(val7);
30889 }
30890 {
30891 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
30892 if (PyErr_Occurred()) SWIG_fail;
30893 }
30894 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
30895 return resultobj;
30896 fail:
30897 return NULL;
30898 }
30899
30900
30901 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30902 PyObject *resultobj = 0;
30903 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30904 wxPen *arg2 = 0 ;
30905 wxGraphicsPen result;
30906 void *argp1 = 0 ;
30907 int res1 = 0 ;
30908 void *argp2 = 0 ;
30909 int res2 = 0 ;
30910 PyObject * obj0 = 0 ;
30911 PyObject * obj1 = 0 ;
30912 char * kwnames[] = {
30913 (char *) "self",(char *) "pen", NULL
30914 };
30915
30916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30918 if (!SWIG_IsOK(res1)) {
30919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30920 }
30921 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30922 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30923 if (!SWIG_IsOK(res2)) {
30924 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30925 }
30926 if (!argp2) {
30927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30928 }
30929 arg2 = reinterpret_cast< wxPen * >(argp2);
30930 {
30931 result = (arg1)->CreatePen((wxPen const &)*arg2);
30932 if (PyErr_Occurred()) SWIG_fail;
30933 }
30934 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30935 return resultobj;
30936 fail:
30937 return NULL;
30938 }
30939
30940
30941 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30942 PyObject *resultobj = 0;
30943 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30944 wxBrush *arg2 = 0 ;
30945 wxGraphicsBrush result;
30946 void *argp1 = 0 ;
30947 int res1 = 0 ;
30948 void *argp2 = 0 ;
30949 int res2 = 0 ;
30950 PyObject * obj0 = 0 ;
30951 PyObject * obj1 = 0 ;
30952 char * kwnames[] = {
30953 (char *) "self",(char *) "brush", NULL
30954 };
30955
30956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30958 if (!SWIG_IsOK(res1)) {
30959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30960 }
30961 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30962 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30963 if (!SWIG_IsOK(res2)) {
30964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30965 }
30966 if (!argp2) {
30967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30968 }
30969 arg2 = reinterpret_cast< wxBrush * >(argp2);
30970 {
30971 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30972 if (PyErr_Occurred()) SWIG_fail;
30973 }
30974 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30975 return resultobj;
30976 fail:
30977 return NULL;
30978 }
30979
30980
30981 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30982 PyObject *resultobj = 0;
30983 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30984 wxDouble arg2 ;
30985 wxDouble arg3 ;
30986 wxDouble arg4 ;
30987 wxDouble arg5 ;
30988 wxColour *arg6 = 0 ;
30989 wxColour *arg7 = 0 ;
30990 wxGraphicsBrush result;
30991 void *argp1 = 0 ;
30992 int res1 = 0 ;
30993 double val2 ;
30994 int ecode2 = 0 ;
30995 double val3 ;
30996 int ecode3 = 0 ;
30997 double val4 ;
30998 int ecode4 = 0 ;
30999 double val5 ;
31000 int ecode5 = 0 ;
31001 wxColour temp6 ;
31002 wxColour temp7 ;
31003 PyObject * obj0 = 0 ;
31004 PyObject * obj1 = 0 ;
31005 PyObject * obj2 = 0 ;
31006 PyObject * obj3 = 0 ;
31007 PyObject * obj4 = 0 ;
31008 PyObject * obj5 = 0 ;
31009 PyObject * obj6 = 0 ;
31010 char * kwnames[] = {
31011 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
31012 };
31013
31014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31016 if (!SWIG_IsOK(res1)) {
31017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31018 }
31019 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31020 ecode2 = SWIG_AsVal_double(obj1, &val2);
31021 if (!SWIG_IsOK(ecode2)) {
31022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
31023 }
31024 arg2 = static_cast< wxDouble >(val2);
31025 ecode3 = SWIG_AsVal_double(obj2, &val3);
31026 if (!SWIG_IsOK(ecode3)) {
31027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31028 }
31029 arg3 = static_cast< wxDouble >(val3);
31030 ecode4 = SWIG_AsVal_double(obj3, &val4);
31031 if (!SWIG_IsOK(ecode4)) {
31032 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31033 }
31034 arg4 = static_cast< wxDouble >(val4);
31035 ecode5 = SWIG_AsVal_double(obj4, &val5);
31036 if (!SWIG_IsOK(ecode5)) {
31037 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31038 }
31039 arg5 = static_cast< wxDouble >(val5);
31040 {
31041 arg6 = &temp6;
31042 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
31043 }
31044 {
31045 arg7 = &temp7;
31046 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31047 }
31048 {
31049 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
31050 if (PyErr_Occurred()) SWIG_fail;
31051 }
31052 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31053 return resultobj;
31054 fail:
31055 return NULL;
31056 }
31057
31058
31059 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31060 PyObject *resultobj = 0;
31061 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31062 wxDouble arg2 ;
31063 wxDouble arg3 ;
31064 wxDouble arg4 ;
31065 wxDouble arg5 ;
31066 wxDouble arg6 ;
31067 wxColour *arg7 = 0 ;
31068 wxColour *arg8 = 0 ;
31069 wxGraphicsBrush result;
31070 void *argp1 = 0 ;
31071 int res1 = 0 ;
31072 double val2 ;
31073 int ecode2 = 0 ;
31074 double val3 ;
31075 int ecode3 = 0 ;
31076 double val4 ;
31077 int ecode4 = 0 ;
31078 double val5 ;
31079 int ecode5 = 0 ;
31080 double val6 ;
31081 int ecode6 = 0 ;
31082 wxColour temp7 ;
31083 wxColour temp8 ;
31084 PyObject * obj0 = 0 ;
31085 PyObject * obj1 = 0 ;
31086 PyObject * obj2 = 0 ;
31087 PyObject * obj3 = 0 ;
31088 PyObject * obj4 = 0 ;
31089 PyObject * obj5 = 0 ;
31090 PyObject * obj6 = 0 ;
31091 PyObject * obj7 = 0 ;
31092 char * kwnames[] = {
31093 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
31094 };
31095
31096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31098 if (!SWIG_IsOK(res1)) {
31099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31100 }
31101 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31102 ecode2 = SWIG_AsVal_double(obj1, &val2);
31103 if (!SWIG_IsOK(ecode2)) {
31104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
31105 }
31106 arg2 = static_cast< wxDouble >(val2);
31107 ecode3 = SWIG_AsVal_double(obj2, &val3);
31108 if (!SWIG_IsOK(ecode3)) {
31109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31110 }
31111 arg3 = static_cast< wxDouble >(val3);
31112 ecode4 = SWIG_AsVal_double(obj3, &val4);
31113 if (!SWIG_IsOK(ecode4)) {
31114 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31115 }
31116 arg4 = static_cast< wxDouble >(val4);
31117 ecode5 = SWIG_AsVal_double(obj4, &val5);
31118 if (!SWIG_IsOK(ecode5)) {
31119 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31120 }
31121 arg5 = static_cast< wxDouble >(val5);
31122 ecode6 = SWIG_AsVal_double(obj5, &val6);
31123 if (!SWIG_IsOK(ecode6)) {
31124 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
31125 }
31126 arg6 = static_cast< wxDouble >(val6);
31127 {
31128 arg7 = &temp7;
31129 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31130 }
31131 {
31132 arg8 = &temp8;
31133 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
31134 }
31135 {
31136 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
31137 if (PyErr_Occurred()) SWIG_fail;
31138 }
31139 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31140 return resultobj;
31141 fail:
31142 return NULL;
31143 }
31144
31145
31146 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31147 PyObject *resultobj = 0;
31148 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31149 wxFont *arg2 = 0 ;
31150 wxColour const &arg3_defvalue = *wxBLACK ;
31151 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
31152 wxGraphicsFont result;
31153 void *argp1 = 0 ;
31154 int res1 = 0 ;
31155 void *argp2 = 0 ;
31156 int res2 = 0 ;
31157 wxColour temp3 ;
31158 PyObject * obj0 = 0 ;
31159 PyObject * obj1 = 0 ;
31160 PyObject * obj2 = 0 ;
31161 char * kwnames[] = {
31162 (char *) "self",(char *) "font",(char *) "col", NULL
31163 };
31164
31165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31167 if (!SWIG_IsOK(res1)) {
31168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31169 }
31170 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31171 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31172 if (!SWIG_IsOK(res2)) {
31173 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31174 }
31175 if (!argp2) {
31176 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31177 }
31178 arg2 = reinterpret_cast< wxFont * >(argp2);
31179 if (obj2) {
31180 {
31181 arg3 = &temp3;
31182 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31183 }
31184 }
31185 {
31186 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
31187 if (PyErr_Occurred()) SWIG_fail;
31188 }
31189 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
31190 return resultobj;
31191 fail:
31192 return NULL;
31193 }
31194
31195
31196 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31197 PyObject *obj;
31198 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31199 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
31200 return SWIG_Py_Void();
31201 }
31202
31203 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31204 PyObject *resultobj = 0;
31205 wxWindowDC *arg1 = 0 ;
31206 wxGCDC *result = 0 ;
31207 void *argp1 = 0 ;
31208 int res1 = 0 ;
31209 PyObject * obj0 = 0 ;
31210 char * kwnames[] = {
31211 (char *) "dc", NULL
31212 };
31213
31214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
31215 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
31216 if (!SWIG_IsOK(res1)) {
31217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31218 }
31219 if (!argp1) {
31220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31221 }
31222 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
31223 {
31224 if (!wxPyCheckForApp()) SWIG_fail;
31225 PyThreadState* __tstate = wxPyBeginAllowThreads();
31226 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
31227 wxPyEndAllowThreads(__tstate);
31228 if (PyErr_Occurred()) SWIG_fail;
31229 }
31230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31231 return resultobj;
31232 fail:
31233 return NULL;
31234 }
31235
31236
31237 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31238 PyObject *resultobj = 0;
31239 wxGCDC *arg1 = (wxGCDC *) 0 ;
31240 void *argp1 = 0 ;
31241 int res1 = 0 ;
31242 PyObject *swig_obj[1] ;
31243
31244 if (!args) SWIG_fail;
31245 swig_obj[0] = args;
31246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
31247 if (!SWIG_IsOK(res1)) {
31248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
31249 }
31250 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31251 {
31252 delete arg1;
31253
31254 if (PyErr_Occurred()) SWIG_fail;
31255 }
31256 resultobj = SWIG_Py_Void();
31257 return resultobj;
31258 fail:
31259 return NULL;
31260 }
31261
31262
31263 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31264 PyObject *resultobj = 0;
31265 wxGCDC *arg1 = (wxGCDC *) 0 ;
31266 wxGraphicsContext *result = 0 ;
31267 void *argp1 = 0 ;
31268 int res1 = 0 ;
31269 PyObject *swig_obj[1] ;
31270
31271 if (!args) SWIG_fail;
31272 swig_obj[0] = args;
31273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31274 if (!SWIG_IsOK(res1)) {
31275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31276 }
31277 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31278 {
31279 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
31280 if (PyErr_Occurred()) SWIG_fail;
31281 }
31282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31283 return resultobj;
31284 fail:
31285 return NULL;
31286 }
31287
31288
31289 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31290 PyObject *resultobj = 0;
31291 wxGCDC *arg1 = (wxGCDC *) 0 ;
31292 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
31293 void *argp1 = 0 ;
31294 int res1 = 0 ;
31295 void *argp2 = 0 ;
31296 int res2 = 0 ;
31297 PyObject * obj0 = 0 ;
31298 PyObject * obj1 = 0 ;
31299 char * kwnames[] = {
31300 (char *) "self",(char *) "ctx", NULL
31301 };
31302
31303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
31304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31305 if (!SWIG_IsOK(res1)) {
31306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31307 }
31308 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31309 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31310 if (!SWIG_IsOK(res2)) {
31311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
31312 }
31313 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
31314 {
31315 (arg1)->SetGraphicsContext(arg2);
31316 if (PyErr_Occurred()) SWIG_fail;
31317 }
31318 resultobj = SWIG_Py_Void();
31319 return resultobj;
31320 fail:
31321 return NULL;
31322 }
31323
31324
31325 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31326 PyObject *obj;
31327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31328 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
31329 return SWIG_Py_Void();
31330 }
31331
31332 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31333 return SWIG_Python_InitShadowInstance(args);
31334 }
31335
31336 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31337 PyObject *resultobj = 0;
31338 wxOverlay *result = 0 ;
31339
31340 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
31341 {
31342 PyThreadState* __tstate = wxPyBeginAllowThreads();
31343 result = (wxOverlay *)new wxOverlay();
31344 wxPyEndAllowThreads(__tstate);
31345 if (PyErr_Occurred()) SWIG_fail;
31346 }
31347 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
31348 return resultobj;
31349 fail:
31350 return NULL;
31351 }
31352
31353
31354 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31355 PyObject *resultobj = 0;
31356 wxOverlay *arg1 = (wxOverlay *) 0 ;
31357 void *argp1 = 0 ;
31358 int res1 = 0 ;
31359 PyObject *swig_obj[1] ;
31360
31361 if (!args) SWIG_fail;
31362 swig_obj[0] = args;
31363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
31364 if (!SWIG_IsOK(res1)) {
31365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
31366 }
31367 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31368 {
31369 PyThreadState* __tstate = wxPyBeginAllowThreads();
31370 delete arg1;
31371
31372 wxPyEndAllowThreads(__tstate);
31373 if (PyErr_Occurred()) SWIG_fail;
31374 }
31375 resultobj = SWIG_Py_Void();
31376 return resultobj;
31377 fail:
31378 return NULL;
31379 }
31380
31381
31382 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31383 PyObject *resultobj = 0;
31384 wxOverlay *arg1 = (wxOverlay *) 0 ;
31385 void *argp1 = 0 ;
31386 int res1 = 0 ;
31387 PyObject *swig_obj[1] ;
31388
31389 if (!args) SWIG_fail;
31390 swig_obj[0] = args;
31391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
31392 if (!SWIG_IsOK(res1)) {
31393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
31394 }
31395 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31396 {
31397 PyThreadState* __tstate = wxPyBeginAllowThreads();
31398 (arg1)->Reset();
31399 wxPyEndAllowThreads(__tstate);
31400 if (PyErr_Occurred()) SWIG_fail;
31401 }
31402 resultobj = SWIG_Py_Void();
31403 return resultobj;
31404 fail:
31405 return NULL;
31406 }
31407
31408
31409 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31410 PyObject *obj;
31411 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31412 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31413 return SWIG_Py_Void();
31414 }
31415
31416 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31417 return SWIG_Python_InitShadowInstance(args);
31418 }
31419
31420 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31421 PyObject *resultobj = 0;
31422 wxOverlay *arg1 = 0 ;
31423 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31424 int arg3 ;
31425 int arg4 ;
31426 int arg5 ;
31427 int arg6 ;
31428 wxDCOverlay *result = 0 ;
31429 void *argp1 = 0 ;
31430 int res1 = 0 ;
31431 void *argp2 = 0 ;
31432 int res2 = 0 ;
31433 int val3 ;
31434 int ecode3 = 0 ;
31435 int val4 ;
31436 int ecode4 = 0 ;
31437 int val5 ;
31438 int ecode5 = 0 ;
31439 int val6 ;
31440 int ecode6 = 0 ;
31441
31442 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31444 if (!SWIG_IsOK(res1)) {
31445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31446 }
31447 if (!argp1) {
31448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31449 }
31450 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31451 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31452 if (!SWIG_IsOK(res2)) {
31453 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31454 }
31455 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31456 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31457 if (!SWIG_IsOK(ecode3)) {
31458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31459 }
31460 arg3 = static_cast< int >(val3);
31461 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31462 if (!SWIG_IsOK(ecode4)) {
31463 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31464 }
31465 arg4 = static_cast< int >(val4);
31466 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31467 if (!SWIG_IsOK(ecode5)) {
31468 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31469 }
31470 arg5 = static_cast< int >(val5);
31471 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31472 if (!SWIG_IsOK(ecode6)) {
31473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31474 }
31475 arg6 = static_cast< int >(val6);
31476 {
31477 PyThreadState* __tstate = wxPyBeginAllowThreads();
31478 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31479 wxPyEndAllowThreads(__tstate);
31480 if (PyErr_Occurred()) SWIG_fail;
31481 }
31482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31483 return resultobj;
31484 fail:
31485 return NULL;
31486 }
31487
31488
31489 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31490 PyObject *resultobj = 0;
31491 wxOverlay *arg1 = 0 ;
31492 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31493 wxDCOverlay *result = 0 ;
31494 void *argp1 = 0 ;
31495 int res1 = 0 ;
31496 void *argp2 = 0 ;
31497 int res2 = 0 ;
31498
31499 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31501 if (!SWIG_IsOK(res1)) {
31502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31503 }
31504 if (!argp1) {
31505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31506 }
31507 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31508 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31509 if (!SWIG_IsOK(res2)) {
31510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31511 }
31512 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31513 {
31514 PyThreadState* __tstate = wxPyBeginAllowThreads();
31515 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31516 wxPyEndAllowThreads(__tstate);
31517 if (PyErr_Occurred()) SWIG_fail;
31518 }
31519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31520 return resultobj;
31521 fail:
31522 return NULL;
31523 }
31524
31525
31526 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31527 int argc;
31528 PyObject *argv[7];
31529
31530 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31531 --argc;
31532 if (argc == 2) {
31533 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31534 }
31535 if (argc == 6) {
31536 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31537 }
31538
31539 fail:
31540 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31541 return NULL;
31542 }
31543
31544
31545 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31546 PyObject *resultobj = 0;
31547 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31548 void *argp1 = 0 ;
31549 int res1 = 0 ;
31550 PyObject *swig_obj[1] ;
31551
31552 if (!args) SWIG_fail;
31553 swig_obj[0] = args;
31554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31555 if (!SWIG_IsOK(res1)) {
31556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31557 }
31558 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31559 {
31560 PyThreadState* __tstate = wxPyBeginAllowThreads();
31561 delete arg1;
31562
31563 wxPyEndAllowThreads(__tstate);
31564 if (PyErr_Occurred()) SWIG_fail;
31565 }
31566 resultobj = SWIG_Py_Void();
31567 return resultobj;
31568 fail:
31569 return NULL;
31570 }
31571
31572
31573 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31574 PyObject *resultobj = 0;
31575 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31576 void *argp1 = 0 ;
31577 int res1 = 0 ;
31578 PyObject *swig_obj[1] ;
31579
31580 if (!args) SWIG_fail;
31581 swig_obj[0] = args;
31582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31583 if (!SWIG_IsOK(res1)) {
31584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31585 }
31586 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31587 {
31588 PyThreadState* __tstate = wxPyBeginAllowThreads();
31589 (arg1)->Clear();
31590 wxPyEndAllowThreads(__tstate);
31591 if (PyErr_Occurred()) SWIG_fail;
31592 }
31593 resultobj = SWIG_Py_Void();
31594 return resultobj;
31595 fail:
31596 return NULL;
31597 }
31598
31599
31600 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31601 PyObject *obj;
31602 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31603 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31604 return SWIG_Py_Void();
31605 }
31606
31607 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31608 return SWIG_Python_InitShadowInstance(args);
31609 }
31610
31611 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31612 PyObject *resultobj = 0;
31613 int arg1 ;
31614 int arg2 ;
31615 int arg3 = (int) true ;
31616 int arg4 = (int) 1 ;
31617 wxImageList *result = 0 ;
31618 int val1 ;
31619 int ecode1 = 0 ;
31620 int val2 ;
31621 int ecode2 = 0 ;
31622 int val3 ;
31623 int ecode3 = 0 ;
31624 int val4 ;
31625 int ecode4 = 0 ;
31626 PyObject * obj0 = 0 ;
31627 PyObject * obj1 = 0 ;
31628 PyObject * obj2 = 0 ;
31629 PyObject * obj3 = 0 ;
31630 char * kwnames[] = {
31631 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31632 };
31633
31634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31635 ecode1 = SWIG_AsVal_int(obj0, &val1);
31636 if (!SWIG_IsOK(ecode1)) {
31637 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31638 }
31639 arg1 = static_cast< int >(val1);
31640 ecode2 = SWIG_AsVal_int(obj1, &val2);
31641 if (!SWIG_IsOK(ecode2)) {
31642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31643 }
31644 arg2 = static_cast< int >(val2);
31645 if (obj2) {
31646 ecode3 = SWIG_AsVal_int(obj2, &val3);
31647 if (!SWIG_IsOK(ecode3)) {
31648 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31649 }
31650 arg3 = static_cast< int >(val3);
31651 }
31652 if (obj3) {
31653 ecode4 = SWIG_AsVal_int(obj3, &val4);
31654 if (!SWIG_IsOK(ecode4)) {
31655 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31656 }
31657 arg4 = static_cast< int >(val4);
31658 }
31659 {
31660 if (!wxPyCheckForApp()) SWIG_fail;
31661 PyThreadState* __tstate = wxPyBeginAllowThreads();
31662 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31663 wxPyEndAllowThreads(__tstate);
31664 if (PyErr_Occurred()) SWIG_fail;
31665 }
31666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
31667 return resultobj;
31668 fail:
31669 return NULL;
31670 }
31671
31672
31673 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31674 PyObject *resultobj = 0;
31675 wxImageList *arg1 = (wxImageList *) 0 ;
31676 void *argp1 = 0 ;
31677 int res1 = 0 ;
31678 PyObject *swig_obj[1] ;
31679
31680 if (!args) SWIG_fail;
31681 swig_obj[0] = args;
31682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31683 if (!SWIG_IsOK(res1)) {
31684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31685 }
31686 arg1 = reinterpret_cast< wxImageList * >(argp1);
31687 {
31688 PyThreadState* __tstate = wxPyBeginAllowThreads();
31689 delete arg1;
31690
31691 wxPyEndAllowThreads(__tstate);
31692 if (PyErr_Occurred()) SWIG_fail;
31693 }
31694 resultobj = SWIG_Py_Void();
31695 return resultobj;
31696 fail:
31697 return NULL;
31698 }
31699
31700
31701 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31702 PyObject *resultobj = 0;
31703 wxImageList *arg1 = (wxImageList *) 0 ;
31704 wxBitmap *arg2 = 0 ;
31705 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31706 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31707 int result;
31708 void *argp1 = 0 ;
31709 int res1 = 0 ;
31710 void *argp2 = 0 ;
31711 int res2 = 0 ;
31712 void *argp3 = 0 ;
31713 int res3 = 0 ;
31714 PyObject * obj0 = 0 ;
31715 PyObject * obj1 = 0 ;
31716 PyObject * obj2 = 0 ;
31717 char * kwnames[] = {
31718 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31719 };
31720
31721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31723 if (!SWIG_IsOK(res1)) {
31724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31725 }
31726 arg1 = reinterpret_cast< wxImageList * >(argp1);
31727 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31728 if (!SWIG_IsOK(res2)) {
31729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31730 }
31731 if (!argp2) {
31732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31733 }
31734 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31735 if (obj2) {
31736 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31737 if (!SWIG_IsOK(res3)) {
31738 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31739 }
31740 if (!argp3) {
31741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31742 }
31743 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31744 }
31745 {
31746 PyThreadState* __tstate = wxPyBeginAllowThreads();
31747 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31748 wxPyEndAllowThreads(__tstate);
31749 if (PyErr_Occurred()) SWIG_fail;
31750 }
31751 resultobj = SWIG_From_int(static_cast< int >(result));
31752 return resultobj;
31753 fail:
31754 return NULL;
31755 }
31756
31757
31758 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31759 PyObject *resultobj = 0;
31760 wxImageList *arg1 = (wxImageList *) 0 ;
31761 wxBitmap *arg2 = 0 ;
31762 wxColour *arg3 = 0 ;
31763 int result;
31764 void *argp1 = 0 ;
31765 int res1 = 0 ;
31766 void *argp2 = 0 ;
31767 int res2 = 0 ;
31768 wxColour temp3 ;
31769 PyObject * obj0 = 0 ;
31770 PyObject * obj1 = 0 ;
31771 PyObject * obj2 = 0 ;
31772 char * kwnames[] = {
31773 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31774 };
31775
31776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31778 if (!SWIG_IsOK(res1)) {
31779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31780 }
31781 arg1 = reinterpret_cast< wxImageList * >(argp1);
31782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31783 if (!SWIG_IsOK(res2)) {
31784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31785 }
31786 if (!argp2) {
31787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31788 }
31789 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31790 {
31791 arg3 = &temp3;
31792 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31793 }
31794 {
31795 PyThreadState* __tstate = wxPyBeginAllowThreads();
31796 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31797 wxPyEndAllowThreads(__tstate);
31798 if (PyErr_Occurred()) SWIG_fail;
31799 }
31800 resultobj = SWIG_From_int(static_cast< int >(result));
31801 return resultobj;
31802 fail:
31803 return NULL;
31804 }
31805
31806
31807 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31808 PyObject *resultobj = 0;
31809 wxImageList *arg1 = (wxImageList *) 0 ;
31810 wxIcon *arg2 = 0 ;
31811 int result;
31812 void *argp1 = 0 ;
31813 int res1 = 0 ;
31814 void *argp2 = 0 ;
31815 int res2 = 0 ;
31816 PyObject * obj0 = 0 ;
31817 PyObject * obj1 = 0 ;
31818 char * kwnames[] = {
31819 (char *) "self",(char *) "icon", NULL
31820 };
31821
31822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31824 if (!SWIG_IsOK(res1)) {
31825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31826 }
31827 arg1 = reinterpret_cast< wxImageList * >(argp1);
31828 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31829 if (!SWIG_IsOK(res2)) {
31830 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31831 }
31832 if (!argp2) {
31833 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31834 }
31835 arg2 = reinterpret_cast< wxIcon * >(argp2);
31836 {
31837 PyThreadState* __tstate = wxPyBeginAllowThreads();
31838 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31839 wxPyEndAllowThreads(__tstate);
31840 if (PyErr_Occurred()) SWIG_fail;
31841 }
31842 resultobj = SWIG_From_int(static_cast< int >(result));
31843 return resultobj;
31844 fail:
31845 return NULL;
31846 }
31847
31848
31849 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31850 PyObject *resultobj = 0;
31851 wxImageList *arg1 = (wxImageList *) 0 ;
31852 int arg2 ;
31853 SwigValueWrapper<wxBitmap > result;
31854 void *argp1 = 0 ;
31855 int res1 = 0 ;
31856 int val2 ;
31857 int ecode2 = 0 ;
31858 PyObject * obj0 = 0 ;
31859 PyObject * obj1 = 0 ;
31860 char * kwnames[] = {
31861 (char *) "self",(char *) "index", NULL
31862 };
31863
31864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31866 if (!SWIG_IsOK(res1)) {
31867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31868 }
31869 arg1 = reinterpret_cast< wxImageList * >(argp1);
31870 ecode2 = SWIG_AsVal_int(obj1, &val2);
31871 if (!SWIG_IsOK(ecode2)) {
31872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31873 }
31874 arg2 = static_cast< int >(val2);
31875 {
31876 PyThreadState* __tstate = wxPyBeginAllowThreads();
31877 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31878 wxPyEndAllowThreads(__tstate);
31879 if (PyErr_Occurred()) SWIG_fail;
31880 }
31881 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31882 return resultobj;
31883 fail:
31884 return NULL;
31885 }
31886
31887
31888 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31889 PyObject *resultobj = 0;
31890 wxImageList *arg1 = (wxImageList *) 0 ;
31891 int arg2 ;
31892 wxIcon result;
31893 void *argp1 = 0 ;
31894 int res1 = 0 ;
31895 int val2 ;
31896 int ecode2 = 0 ;
31897 PyObject * obj0 = 0 ;
31898 PyObject * obj1 = 0 ;
31899 char * kwnames[] = {
31900 (char *) "self",(char *) "index", NULL
31901 };
31902
31903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31905 if (!SWIG_IsOK(res1)) {
31906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31907 }
31908 arg1 = reinterpret_cast< wxImageList * >(argp1);
31909 ecode2 = SWIG_AsVal_int(obj1, &val2);
31910 if (!SWIG_IsOK(ecode2)) {
31911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31912 }
31913 arg2 = static_cast< int >(val2);
31914 {
31915 PyThreadState* __tstate = wxPyBeginAllowThreads();
31916 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31917 wxPyEndAllowThreads(__tstate);
31918 if (PyErr_Occurred()) SWIG_fail;
31919 }
31920 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31921 return resultobj;
31922 fail:
31923 return NULL;
31924 }
31925
31926
31927 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31928 PyObject *resultobj = 0;
31929 wxImageList *arg1 = (wxImageList *) 0 ;
31930 int arg2 ;
31931 wxBitmap *arg3 = 0 ;
31932 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31933 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
31934 bool result;
31935 void *argp1 = 0 ;
31936 int res1 = 0 ;
31937 int val2 ;
31938 int ecode2 = 0 ;
31939 void *argp3 = 0 ;
31940 int res3 = 0 ;
31941 void *argp4 = 0 ;
31942 int res4 = 0 ;
31943 PyObject * obj0 = 0 ;
31944 PyObject * obj1 = 0 ;
31945 PyObject * obj2 = 0 ;
31946 PyObject * obj3 = 0 ;
31947 char * kwnames[] = {
31948 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
31949 };
31950
31951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31953 if (!SWIG_IsOK(res1)) {
31954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31955 }
31956 arg1 = reinterpret_cast< wxImageList * >(argp1);
31957 ecode2 = SWIG_AsVal_int(obj1, &val2);
31958 if (!SWIG_IsOK(ecode2)) {
31959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31960 }
31961 arg2 = static_cast< int >(val2);
31962 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31963 if (!SWIG_IsOK(res3)) {
31964 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31965 }
31966 if (!argp3) {
31967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31968 }
31969 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31970 if (obj3) {
31971 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31972 if (!SWIG_IsOK(res4)) {
31973 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31974 }
31975 if (!argp4) {
31976 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31977 }
31978 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31979 }
31980 {
31981 PyThreadState* __tstate = wxPyBeginAllowThreads();
31982 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
31983 wxPyEndAllowThreads(__tstate);
31984 if (PyErr_Occurred()) SWIG_fail;
31985 }
31986 {
31987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31988 }
31989 return resultobj;
31990 fail:
31991 return NULL;
31992 }
31993
31994
31995 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31996 PyObject *resultobj = 0;
31997 wxImageList *arg1 = (wxImageList *) 0 ;
31998 int arg2 ;
31999 wxDC *arg3 = 0 ;
32000 int arg4 ;
32001 int arg5 ;
32002 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
32003 bool arg7 = (bool) (bool)false ;
32004 bool result;
32005 void *argp1 = 0 ;
32006 int res1 = 0 ;
32007 int val2 ;
32008 int ecode2 = 0 ;
32009 void *argp3 = 0 ;
32010 int res3 = 0 ;
32011 int val4 ;
32012 int ecode4 = 0 ;
32013 int val5 ;
32014 int ecode5 = 0 ;
32015 int val6 ;
32016 int ecode6 = 0 ;
32017 bool val7 ;
32018 int ecode7 = 0 ;
32019 PyObject * obj0 = 0 ;
32020 PyObject * obj1 = 0 ;
32021 PyObject * obj2 = 0 ;
32022 PyObject * obj3 = 0 ;
32023 PyObject * obj4 = 0 ;
32024 PyObject * obj5 = 0 ;
32025 PyObject * obj6 = 0 ;
32026 char * kwnames[] = {
32027 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
32028 };
32029
32030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32032 if (!SWIG_IsOK(res1)) {
32033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
32034 }
32035 arg1 = reinterpret_cast< wxImageList * >(argp1);
32036 ecode2 = SWIG_AsVal_int(obj1, &val2);
32037 if (!SWIG_IsOK(ecode2)) {
32038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
32039 }
32040 arg2 = static_cast< int >(val2);
32041 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
32042 if (!SWIG_IsOK(res3)) {
32043 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32044 }
32045 if (!argp3) {
32046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32047 }
32048 arg3 = reinterpret_cast< wxDC * >(argp3);
32049 ecode4 = SWIG_AsVal_int(obj3, &val4);
32050 if (!SWIG_IsOK(ecode4)) {
32051 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
32052 }
32053 arg4 = static_cast< int >(val4);
32054 ecode5 = SWIG_AsVal_int(obj4, &val5);
32055 if (!SWIG_IsOK(ecode5)) {
32056 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
32057 }
32058 arg5 = static_cast< int >(val5);
32059 if (obj5) {
32060 ecode6 = SWIG_AsVal_int(obj5, &val6);
32061 if (!SWIG_IsOK(ecode6)) {
32062 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
32063 }
32064 arg6 = static_cast< int >(val6);
32065 }
32066 if (obj6) {
32067 ecode7 = SWIG_AsVal_bool(obj6, &val7);
32068 if (!SWIG_IsOK(ecode7)) {
32069 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
32070 }
32071 arg7 = static_cast< bool >(val7);
32072 }
32073 {
32074 PyThreadState* __tstate = wxPyBeginAllowThreads();
32075 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
32076 wxPyEndAllowThreads(__tstate);
32077 if (PyErr_Occurred()) SWIG_fail;
32078 }
32079 {
32080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32081 }
32082 return resultobj;
32083 fail:
32084 return NULL;
32085 }
32086
32087
32088 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32089 PyObject *resultobj = 0;
32090 wxImageList *arg1 = (wxImageList *) 0 ;
32091 int result;
32092 void *argp1 = 0 ;
32093 int res1 = 0 ;
32094 PyObject *swig_obj[1] ;
32095
32096 if (!args) SWIG_fail;
32097 swig_obj[0] = args;
32098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32099 if (!SWIG_IsOK(res1)) {
32100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
32101 }
32102 arg1 = reinterpret_cast< wxImageList * >(argp1);
32103 {
32104 PyThreadState* __tstate = wxPyBeginAllowThreads();
32105 result = (int)(arg1)->GetImageCount();
32106 wxPyEndAllowThreads(__tstate);
32107 if (PyErr_Occurred()) SWIG_fail;
32108 }
32109 resultobj = SWIG_From_int(static_cast< int >(result));
32110 return resultobj;
32111 fail:
32112 return NULL;
32113 }
32114
32115
32116 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32117 PyObject *resultobj = 0;
32118 wxImageList *arg1 = (wxImageList *) 0 ;
32119 int arg2 ;
32120 bool result;
32121 void *argp1 = 0 ;
32122 int res1 = 0 ;
32123 int val2 ;
32124 int ecode2 = 0 ;
32125 PyObject * obj0 = 0 ;
32126 PyObject * obj1 = 0 ;
32127 char * kwnames[] = {
32128 (char *) "self",(char *) "index", NULL
32129 };
32130
32131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
32132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32133 if (!SWIG_IsOK(res1)) {
32134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
32135 }
32136 arg1 = reinterpret_cast< wxImageList * >(argp1);
32137 ecode2 = SWIG_AsVal_int(obj1, &val2);
32138 if (!SWIG_IsOK(ecode2)) {
32139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
32140 }
32141 arg2 = static_cast< int >(val2);
32142 {
32143 PyThreadState* __tstate = wxPyBeginAllowThreads();
32144 result = (bool)(arg1)->Remove(arg2);
32145 wxPyEndAllowThreads(__tstate);
32146 if (PyErr_Occurred()) SWIG_fail;
32147 }
32148 {
32149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32150 }
32151 return resultobj;
32152 fail:
32153 return NULL;
32154 }
32155
32156
32157 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32158 PyObject *resultobj = 0;
32159 wxImageList *arg1 = (wxImageList *) 0 ;
32160 bool result;
32161 void *argp1 = 0 ;
32162 int res1 = 0 ;
32163 PyObject *swig_obj[1] ;
32164
32165 if (!args) SWIG_fail;
32166 swig_obj[0] = args;
32167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32168 if (!SWIG_IsOK(res1)) {
32169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
32170 }
32171 arg1 = reinterpret_cast< wxImageList * >(argp1);
32172 {
32173 PyThreadState* __tstate = wxPyBeginAllowThreads();
32174 result = (bool)(arg1)->RemoveAll();
32175 wxPyEndAllowThreads(__tstate);
32176 if (PyErr_Occurred()) SWIG_fail;
32177 }
32178 {
32179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32180 }
32181 return resultobj;
32182 fail:
32183 return NULL;
32184 }
32185
32186
32187 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32188 PyObject *resultobj = 0;
32189 wxImageList *arg1 = (wxImageList *) 0 ;
32190 int arg2 ;
32191 int *arg3 = 0 ;
32192 int *arg4 = 0 ;
32193 void *argp1 = 0 ;
32194 int res1 = 0 ;
32195 int val2 ;
32196 int ecode2 = 0 ;
32197 int temp3 ;
32198 int res3 = SWIG_TMPOBJ ;
32199 int temp4 ;
32200 int res4 = SWIG_TMPOBJ ;
32201 PyObject * obj0 = 0 ;
32202 PyObject * obj1 = 0 ;
32203 char * kwnames[] = {
32204 (char *) "self",(char *) "index", NULL
32205 };
32206
32207 arg3 = &temp3;
32208 arg4 = &temp4;
32209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
32210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32211 if (!SWIG_IsOK(res1)) {
32212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
32213 }
32214 arg1 = reinterpret_cast< wxImageList * >(argp1);
32215 ecode2 = SWIG_AsVal_int(obj1, &val2);
32216 if (!SWIG_IsOK(ecode2)) {
32217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
32218 }
32219 arg2 = static_cast< int >(val2);
32220 {
32221 PyThreadState* __tstate = wxPyBeginAllowThreads();
32222 (arg1)->GetSize(arg2,*arg3,*arg4);
32223 wxPyEndAllowThreads(__tstate);
32224 if (PyErr_Occurred()) SWIG_fail;
32225 }
32226 resultobj = SWIG_Py_Void();
32227 if (SWIG_IsTmpObj(res3)) {
32228 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
32229 } else {
32230 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32231 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
32232 }
32233 if (SWIG_IsTmpObj(res4)) {
32234 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
32235 } else {
32236 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32237 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
32238 }
32239 return resultobj;
32240 fail:
32241 return NULL;
32242 }
32243
32244
32245 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32246 PyObject *obj;
32247 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32248 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
32249 return SWIG_Py_Void();
32250 }
32251
32252 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32253 return SWIG_Python_InitShadowInstance(args);
32254 }
32255
32256 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32257 PyObject *resultobj = 0;
32258 wxStockGDI *result = 0 ;
32259
32260 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
32261 {
32262 PyThreadState* __tstate = wxPyBeginAllowThreads();
32263 result = (wxStockGDI *)new wxStockGDI();
32264 wxPyEndAllowThreads(__tstate);
32265 if (PyErr_Occurred()) SWIG_fail;
32266 }
32267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
32268 return resultobj;
32269 fail:
32270 return NULL;
32271 }
32272
32273
32274 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32275 PyObject *resultobj = 0;
32276 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32277 void *argp1 = 0 ;
32278 int res1 = 0 ;
32279 PyObject *swig_obj[1] ;
32280
32281 if (!args) SWIG_fail;
32282 swig_obj[0] = args;
32283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
32284 if (!SWIG_IsOK(res1)) {
32285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32286 }
32287 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32288 {
32289 PyThreadState* __tstate = wxPyBeginAllowThreads();
32290 delete arg1;
32291
32292 wxPyEndAllowThreads(__tstate);
32293 if (PyErr_Occurred()) SWIG_fail;
32294 }
32295 resultobj = SWIG_Py_Void();
32296 return resultobj;
32297 fail:
32298 return NULL;
32299 }
32300
32301
32302 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32303 PyObject *resultobj = 0;
32304
32305 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
32306 {
32307 PyThreadState* __tstate = wxPyBeginAllowThreads();
32308 wxStockGDI::DeleteAll();
32309 wxPyEndAllowThreads(__tstate);
32310 if (PyErr_Occurred()) SWIG_fail;
32311 }
32312 resultobj = SWIG_Py_Void();
32313 return resultobj;
32314 fail:
32315 return NULL;
32316 }
32317
32318
32319 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32320 PyObject *resultobj = 0;
32321 wxStockGDI *result = 0 ;
32322
32323 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
32324 {
32325 PyThreadState* __tstate = wxPyBeginAllowThreads();
32326 {
32327 wxStockGDI &_result_ref = wxStockGDI::instance();
32328 result = (wxStockGDI *) &_result_ref;
32329 }
32330 wxPyEndAllowThreads(__tstate);
32331 if (PyErr_Occurred()) SWIG_fail;
32332 }
32333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
32334 return resultobj;
32335 fail:
32336 return NULL;
32337 }
32338
32339
32340 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32341 PyObject *resultobj = 0;
32342 wxStockGDI::Item arg1 ;
32343 wxBrush *result = 0 ;
32344 int val1 ;
32345 int ecode1 = 0 ;
32346 PyObject * obj0 = 0 ;
32347 char * kwnames[] = {
32348 (char *) "item", NULL
32349 };
32350
32351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
32352 ecode1 = SWIG_AsVal_int(obj0, &val1);
32353 if (!SWIG_IsOK(ecode1)) {
32354 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32355 }
32356 arg1 = static_cast< wxStockGDI::Item >(val1);
32357 {
32358 PyThreadState* __tstate = wxPyBeginAllowThreads();
32359 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
32360 wxPyEndAllowThreads(__tstate);
32361 if (PyErr_Occurred()) SWIG_fail;
32362 }
32363 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32364 return resultobj;
32365 fail:
32366 return NULL;
32367 }
32368
32369
32370 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32371 PyObject *resultobj = 0;
32372 wxStockGDI::Item arg1 ;
32373 wxColour *result = 0 ;
32374 int val1 ;
32375 int ecode1 = 0 ;
32376 PyObject * obj0 = 0 ;
32377 char * kwnames[] = {
32378 (char *) "item", NULL
32379 };
32380
32381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
32382 ecode1 = SWIG_AsVal_int(obj0, &val1);
32383 if (!SWIG_IsOK(ecode1)) {
32384 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32385 }
32386 arg1 = static_cast< wxStockGDI::Item >(val1);
32387 {
32388 PyThreadState* __tstate = wxPyBeginAllowThreads();
32389 result = (wxColour *)wxStockGDI::GetColour(arg1);
32390 wxPyEndAllowThreads(__tstate);
32391 if (PyErr_Occurred()) SWIG_fail;
32392 }
32393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32394 return resultobj;
32395 fail:
32396 return NULL;
32397 }
32398
32399
32400 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32401 PyObject *resultobj = 0;
32402 wxStockGDI::Item arg1 ;
32403 wxCursor *result = 0 ;
32404 int val1 ;
32405 int ecode1 = 0 ;
32406 PyObject * obj0 = 0 ;
32407 char * kwnames[] = {
32408 (char *) "item", NULL
32409 };
32410
32411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32412 ecode1 = SWIG_AsVal_int(obj0, &val1);
32413 if (!SWIG_IsOK(ecode1)) {
32414 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32415 }
32416 arg1 = static_cast< wxStockGDI::Item >(val1);
32417 {
32418 PyThreadState* __tstate = wxPyBeginAllowThreads();
32419 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32420 wxPyEndAllowThreads(__tstate);
32421 if (PyErr_Occurred()) SWIG_fail;
32422 }
32423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32424 return resultobj;
32425 fail:
32426 return NULL;
32427 }
32428
32429
32430 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32431 PyObject *resultobj = 0;
32432 wxStockGDI::Item arg1 ;
32433 wxPen *result = 0 ;
32434 int val1 ;
32435 int ecode1 = 0 ;
32436 PyObject * obj0 = 0 ;
32437 char * kwnames[] = {
32438 (char *) "item", NULL
32439 };
32440
32441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32442 ecode1 = SWIG_AsVal_int(obj0, &val1);
32443 if (!SWIG_IsOK(ecode1)) {
32444 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32445 }
32446 arg1 = static_cast< wxStockGDI::Item >(val1);
32447 {
32448 PyThreadState* __tstate = wxPyBeginAllowThreads();
32449 result = (wxPen *)wxStockGDI::GetPen(arg1);
32450 wxPyEndAllowThreads(__tstate);
32451 if (PyErr_Occurred()) SWIG_fail;
32452 }
32453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32454 return resultobj;
32455 fail:
32456 return NULL;
32457 }
32458
32459
32460 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32461 PyObject *resultobj = 0;
32462 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32463 wxStockGDI::Item arg2 ;
32464 wxFont *result = 0 ;
32465 void *argp1 = 0 ;
32466 int res1 = 0 ;
32467 int val2 ;
32468 int ecode2 = 0 ;
32469 PyObject * obj0 = 0 ;
32470 PyObject * obj1 = 0 ;
32471 char * kwnames[] = {
32472 (char *) "self",(char *) "item", NULL
32473 };
32474
32475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32477 if (!SWIG_IsOK(res1)) {
32478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32479 }
32480 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32481 ecode2 = SWIG_AsVal_int(obj1, &val2);
32482 if (!SWIG_IsOK(ecode2)) {
32483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32484 }
32485 arg2 = static_cast< wxStockGDI::Item >(val2);
32486 {
32487 PyThreadState* __tstate = wxPyBeginAllowThreads();
32488 result = (wxFont *)(arg1)->GetFont(arg2);
32489 wxPyEndAllowThreads(__tstate);
32490 if (PyErr_Occurred()) SWIG_fail;
32491 }
32492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32493 return resultobj;
32494 fail:
32495 return NULL;
32496 }
32497
32498
32499 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32500 PyObject *obj;
32501 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32502 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32503 return SWIG_Py_Void();
32504 }
32505
32506 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32507 return SWIG_Python_InitShadowInstance(args);
32508 }
32509
32510 SWIGINTERN int NullBitmap_set(PyObject *) {
32511 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32512 return 1;
32513 }
32514
32515
32516 SWIGINTERN PyObject *NullBitmap_get(void) {
32517 PyObject *pyobj = 0;
32518
32519 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32520 return pyobj;
32521 }
32522
32523
32524 SWIGINTERN int NullIcon_set(PyObject *) {
32525 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32526 return 1;
32527 }
32528
32529
32530 SWIGINTERN PyObject *NullIcon_get(void) {
32531 PyObject *pyobj = 0;
32532
32533 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32534 return pyobj;
32535 }
32536
32537
32538 SWIGINTERN int NullCursor_set(PyObject *) {
32539 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32540 return 1;
32541 }
32542
32543
32544 SWIGINTERN PyObject *NullCursor_get(void) {
32545 PyObject *pyobj = 0;
32546
32547 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32548 return pyobj;
32549 }
32550
32551
32552 SWIGINTERN int NullPen_set(PyObject *) {
32553 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32554 return 1;
32555 }
32556
32557
32558 SWIGINTERN PyObject *NullPen_get(void) {
32559 PyObject *pyobj = 0;
32560
32561 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32562 return pyobj;
32563 }
32564
32565
32566 SWIGINTERN int NullBrush_set(PyObject *) {
32567 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32568 return 1;
32569 }
32570
32571
32572 SWIGINTERN PyObject *NullBrush_get(void) {
32573 PyObject *pyobj = 0;
32574
32575 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32576 return pyobj;
32577 }
32578
32579
32580 SWIGINTERN int NullPalette_set(PyObject *) {
32581 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32582 return 1;
32583 }
32584
32585
32586 SWIGINTERN PyObject *NullPalette_get(void) {
32587 PyObject *pyobj = 0;
32588
32589 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32590 return pyobj;
32591 }
32592
32593
32594 SWIGINTERN int NullFont_set(PyObject *) {
32595 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32596 return 1;
32597 }
32598
32599
32600 SWIGINTERN PyObject *NullFont_get(void) {
32601 PyObject *pyobj = 0;
32602
32603 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32604 return pyobj;
32605 }
32606
32607
32608 SWIGINTERN int NullColour_set(PyObject *) {
32609 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32610 return 1;
32611 }
32612
32613
32614 SWIGINTERN PyObject *NullColour_get(void) {
32615 PyObject *pyobj = 0;
32616
32617 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32618 return pyobj;
32619 }
32620
32621
32622 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32623 PyObject *resultobj = 0;
32624 wxGDIObjListBase *result = 0 ;
32625
32626 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32627 {
32628 PyThreadState* __tstate = wxPyBeginAllowThreads();
32629 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32630 wxPyEndAllowThreads(__tstate);
32631 if (PyErr_Occurred()) SWIG_fail;
32632 }
32633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32634 return resultobj;
32635 fail:
32636 return NULL;
32637 }
32638
32639
32640 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32641 PyObject *resultobj = 0;
32642 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
32643 void *argp1 = 0 ;
32644 int res1 = 0 ;
32645 PyObject *swig_obj[1] ;
32646
32647 if (!args) SWIG_fail;
32648 swig_obj[0] = args;
32649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
32650 if (!SWIG_IsOK(res1)) {
32651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
32652 }
32653 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
32654 {
32655 PyThreadState* __tstate = wxPyBeginAllowThreads();
32656 delete arg1;
32657
32658 wxPyEndAllowThreads(__tstate);
32659 if (PyErr_Occurred()) SWIG_fail;
32660 }
32661 resultobj = SWIG_Py_Void();
32662 return resultobj;
32663 fail:
32664 return NULL;
32665 }
32666
32667
32668 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32669 PyObject *obj;
32670 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32671 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32672 return SWIG_Py_Void();
32673 }
32674
32675 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32676 return SWIG_Python_InitShadowInstance(args);
32677 }
32678
32679 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32680 PyObject *resultobj = 0;
32681 wxPenList *arg1 = (wxPenList *) 0 ;
32682 wxColour *arg2 = 0 ;
32683 int arg3 ;
32684 int arg4 ;
32685 wxPen *result = 0 ;
32686 void *argp1 = 0 ;
32687 int res1 = 0 ;
32688 wxColour temp2 ;
32689 int val3 ;
32690 int ecode3 = 0 ;
32691 int val4 ;
32692 int ecode4 = 0 ;
32693 PyObject * obj0 = 0 ;
32694 PyObject * obj1 = 0 ;
32695 PyObject * obj2 = 0 ;
32696 PyObject * obj3 = 0 ;
32697 char * kwnames[] = {
32698 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32699 };
32700
32701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32703 if (!SWIG_IsOK(res1)) {
32704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32705 }
32706 arg1 = reinterpret_cast< wxPenList * >(argp1);
32707 {
32708 arg2 = &temp2;
32709 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32710 }
32711 ecode3 = SWIG_AsVal_int(obj2, &val3);
32712 if (!SWIG_IsOK(ecode3)) {
32713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32714 }
32715 arg3 = static_cast< int >(val3);
32716 ecode4 = SWIG_AsVal_int(obj3, &val4);
32717 if (!SWIG_IsOK(ecode4)) {
32718 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32719 }
32720 arg4 = static_cast< int >(val4);
32721 {
32722 PyThreadState* __tstate = wxPyBeginAllowThreads();
32723 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32724 wxPyEndAllowThreads(__tstate);
32725 if (PyErr_Occurred()) SWIG_fail;
32726 }
32727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32728 return resultobj;
32729 fail:
32730 return NULL;
32731 }
32732
32733
32734 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32735 PyObject *resultobj = 0;
32736 wxPenList *arg1 = (wxPenList *) 0 ;
32737 wxPen *arg2 = (wxPen *) 0 ;
32738 void *argp1 = 0 ;
32739 int res1 = 0 ;
32740 void *argp2 = 0 ;
32741 int res2 = 0 ;
32742 PyObject * obj0 = 0 ;
32743 PyObject * obj1 = 0 ;
32744 char * kwnames[] = {
32745 (char *) "self",(char *) "pen", NULL
32746 };
32747
32748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
32749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32750 if (!SWIG_IsOK(res1)) {
32751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
32752 }
32753 arg1 = reinterpret_cast< wxPenList * >(argp1);
32754 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32755 if (!SWIG_IsOK(res2)) {
32756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
32757 }
32758 arg2 = reinterpret_cast< wxPen * >(argp2);
32759 {
32760 PyThreadState* __tstate = wxPyBeginAllowThreads();
32761 (arg1)->AddPen(arg2);
32762 wxPyEndAllowThreads(__tstate);
32763 if (PyErr_Occurred()) SWIG_fail;
32764 }
32765 resultobj = SWIG_Py_Void();
32766 return resultobj;
32767 fail:
32768 return NULL;
32769 }
32770
32771
32772 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32773 PyObject *resultobj = 0;
32774 wxPenList *arg1 = (wxPenList *) 0 ;
32775 wxPen *arg2 = (wxPen *) 0 ;
32776 void *argp1 = 0 ;
32777 int res1 = 0 ;
32778 void *argp2 = 0 ;
32779 int res2 = 0 ;
32780 PyObject * obj0 = 0 ;
32781 PyObject * obj1 = 0 ;
32782 char * kwnames[] = {
32783 (char *) "self",(char *) "pen", NULL
32784 };
32785
32786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32788 if (!SWIG_IsOK(res1)) {
32789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32790 }
32791 arg1 = reinterpret_cast< wxPenList * >(argp1);
32792 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32793 if (!SWIG_IsOK(res2)) {
32794 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32795 }
32796 arg2 = reinterpret_cast< wxPen * >(argp2);
32797 {
32798 PyThreadState* __tstate = wxPyBeginAllowThreads();
32799 (arg1)->RemovePen(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 *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32811 PyObject *obj;
32812 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32813 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32814 return SWIG_Py_Void();
32815 }
32816
32817 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32818 PyObject *resultobj = 0;
32819 wxBrushList *arg1 = (wxBrushList *) 0 ;
32820 wxColour *arg2 = 0 ;
32821 int arg3 = (int) wxSOLID ;
32822 wxBrush *result = 0 ;
32823 void *argp1 = 0 ;
32824 int res1 = 0 ;
32825 wxColour temp2 ;
32826 int val3 ;
32827 int ecode3 = 0 ;
32828 PyObject * obj0 = 0 ;
32829 PyObject * obj1 = 0 ;
32830 PyObject * obj2 = 0 ;
32831 char * kwnames[] = {
32832 (char *) "self",(char *) "colour",(char *) "style", NULL
32833 };
32834
32835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32837 if (!SWIG_IsOK(res1)) {
32838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32839 }
32840 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32841 {
32842 arg2 = &temp2;
32843 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32844 }
32845 if (obj2) {
32846 ecode3 = SWIG_AsVal_int(obj2, &val3);
32847 if (!SWIG_IsOK(ecode3)) {
32848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32849 }
32850 arg3 = static_cast< int >(val3);
32851 }
32852 {
32853 PyThreadState* __tstate = wxPyBeginAllowThreads();
32854 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32855 wxPyEndAllowThreads(__tstate);
32856 if (PyErr_Occurred()) SWIG_fail;
32857 }
32858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32859 return resultobj;
32860 fail:
32861 return NULL;
32862 }
32863
32864
32865 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32866 PyObject *resultobj = 0;
32867 wxBrushList *arg1 = (wxBrushList *) 0 ;
32868 wxBrush *arg2 = (wxBrush *) 0 ;
32869 void *argp1 = 0 ;
32870 int res1 = 0 ;
32871 void *argp2 = 0 ;
32872 int res2 = 0 ;
32873 PyObject * obj0 = 0 ;
32874 PyObject * obj1 = 0 ;
32875 char * kwnames[] = {
32876 (char *) "self",(char *) "brush", NULL
32877 };
32878
32879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32881 if (!SWIG_IsOK(res1)) {
32882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32883 }
32884 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32885 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32886 if (!SWIG_IsOK(res2)) {
32887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32888 }
32889 arg2 = reinterpret_cast< wxBrush * >(argp2);
32890 {
32891 PyThreadState* __tstate = wxPyBeginAllowThreads();
32892 (arg1)->AddBrush(arg2);
32893 wxPyEndAllowThreads(__tstate);
32894 if (PyErr_Occurred()) SWIG_fail;
32895 }
32896 resultobj = SWIG_Py_Void();
32897 return resultobj;
32898 fail:
32899 return NULL;
32900 }
32901
32902
32903 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32904 PyObject *resultobj = 0;
32905 wxBrushList *arg1 = (wxBrushList *) 0 ;
32906 wxBrush *arg2 = (wxBrush *) 0 ;
32907 void *argp1 = 0 ;
32908 int res1 = 0 ;
32909 void *argp2 = 0 ;
32910 int res2 = 0 ;
32911 PyObject * obj0 = 0 ;
32912 PyObject * obj1 = 0 ;
32913 char * kwnames[] = {
32914 (char *) "self",(char *) "brush", NULL
32915 };
32916
32917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32919 if (!SWIG_IsOK(res1)) {
32920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32921 }
32922 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32923 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32924 if (!SWIG_IsOK(res2)) {
32925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32926 }
32927 arg2 = reinterpret_cast< wxBrush * >(argp2);
32928 {
32929 PyThreadState* __tstate = wxPyBeginAllowThreads();
32930 (arg1)->RemoveBrush(arg2);
32931 wxPyEndAllowThreads(__tstate);
32932 if (PyErr_Occurred()) SWIG_fail;
32933 }
32934 resultobj = SWIG_Py_Void();
32935 return resultobj;
32936 fail:
32937 return NULL;
32938 }
32939
32940
32941 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32942 PyObject *obj;
32943 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32944 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32945 return SWIG_Py_Void();
32946 }
32947
32948 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32949 PyObject *resultobj = 0;
32950 wxFontList *arg1 = (wxFontList *) 0 ;
32951 int arg2 ;
32952 int arg3 ;
32953 int arg4 ;
32954 int arg5 ;
32955 bool arg6 = (bool) false ;
32956 wxString const &arg7_defvalue = wxPyEmptyString ;
32957 wxString *arg7 = (wxString *) &arg7_defvalue ;
32958 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32959 wxFont *result = 0 ;
32960 void *argp1 = 0 ;
32961 int res1 = 0 ;
32962 int val2 ;
32963 int ecode2 = 0 ;
32964 int val3 ;
32965 int ecode3 = 0 ;
32966 int val4 ;
32967 int ecode4 = 0 ;
32968 int val5 ;
32969 int ecode5 = 0 ;
32970 bool val6 ;
32971 int ecode6 = 0 ;
32972 bool temp7 = false ;
32973 int val8 ;
32974 int ecode8 = 0 ;
32975 PyObject * obj0 = 0 ;
32976 PyObject * obj1 = 0 ;
32977 PyObject * obj2 = 0 ;
32978 PyObject * obj3 = 0 ;
32979 PyObject * obj4 = 0 ;
32980 PyObject * obj5 = 0 ;
32981 PyObject * obj6 = 0 ;
32982 PyObject * obj7 = 0 ;
32983 char * kwnames[] = {
32984 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
32985 };
32986
32987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32989 if (!SWIG_IsOK(res1)) {
32990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32991 }
32992 arg1 = reinterpret_cast< wxFontList * >(argp1);
32993 ecode2 = SWIG_AsVal_int(obj1, &val2);
32994 if (!SWIG_IsOK(ecode2)) {
32995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32996 }
32997 arg2 = static_cast< int >(val2);
32998 ecode3 = SWIG_AsVal_int(obj2, &val3);
32999 if (!SWIG_IsOK(ecode3)) {
33000 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
33001 }
33002 arg3 = static_cast< int >(val3);
33003 ecode4 = SWIG_AsVal_int(obj3, &val4);
33004 if (!SWIG_IsOK(ecode4)) {
33005 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
33006 }
33007 arg4 = static_cast< int >(val4);
33008 ecode5 = SWIG_AsVal_int(obj4, &val5);
33009 if (!SWIG_IsOK(ecode5)) {
33010 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
33011 }
33012 arg5 = static_cast< int >(val5);
33013 if (obj5) {
33014 ecode6 = SWIG_AsVal_bool(obj5, &val6);
33015 if (!SWIG_IsOK(ecode6)) {
33016 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
33017 }
33018 arg6 = static_cast< bool >(val6);
33019 }
33020 if (obj6) {
33021 {
33022 arg7 = wxString_in_helper(obj6);
33023 if (arg7 == NULL) SWIG_fail;
33024 temp7 = true;
33025 }
33026 }
33027 if (obj7) {
33028 ecode8 = SWIG_AsVal_int(obj7, &val8);
33029 if (!SWIG_IsOK(ecode8)) {
33030 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
33031 }
33032 arg8 = static_cast< wxFontEncoding >(val8);
33033 }
33034 {
33035 PyThreadState* __tstate = wxPyBeginAllowThreads();
33036 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
33037 wxPyEndAllowThreads(__tstate);
33038 if (PyErr_Occurred()) SWIG_fail;
33039 }
33040 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33041 {
33042 if (temp7)
33043 delete arg7;
33044 }
33045 return resultobj;
33046 fail:
33047 {
33048 if (temp7)
33049 delete arg7;
33050 }
33051 return NULL;
33052 }
33053
33054
33055 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33056 PyObject *resultobj = 0;
33057 wxFontList *arg1 = (wxFontList *) 0 ;
33058 wxFont *arg2 = (wxFont *) 0 ;
33059 void *argp1 = 0 ;
33060 int res1 = 0 ;
33061 void *argp2 = 0 ;
33062 int res2 = 0 ;
33063 PyObject * obj0 = 0 ;
33064 PyObject * obj1 = 0 ;
33065 char * kwnames[] = {
33066 (char *) "self",(char *) "font", NULL
33067 };
33068
33069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
33070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33071 if (!SWIG_IsOK(res1)) {
33072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33073 }
33074 arg1 = reinterpret_cast< wxFontList * >(argp1);
33075 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33076 if (!SWIG_IsOK(res2)) {
33077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
33078 }
33079 arg2 = reinterpret_cast< wxFont * >(argp2);
33080 {
33081 PyThreadState* __tstate = wxPyBeginAllowThreads();
33082 (arg1)->AddFont(arg2);
33083 wxPyEndAllowThreads(__tstate);
33084 if (PyErr_Occurred()) SWIG_fail;
33085 }
33086 resultobj = SWIG_Py_Void();
33087 return resultobj;
33088 fail:
33089 return NULL;
33090 }
33091
33092
33093 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33094 PyObject *resultobj = 0;
33095 wxFontList *arg1 = (wxFontList *) 0 ;
33096 wxFont *arg2 = (wxFont *) 0 ;
33097 void *argp1 = 0 ;
33098 int res1 = 0 ;
33099 void *argp2 = 0 ;
33100 int res2 = 0 ;
33101 PyObject * obj0 = 0 ;
33102 PyObject * obj1 = 0 ;
33103 char * kwnames[] = {
33104 (char *) "self",(char *) "font", NULL
33105 };
33106
33107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
33108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33109 if (!SWIG_IsOK(res1)) {
33110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33111 }
33112 arg1 = reinterpret_cast< wxFontList * >(argp1);
33113 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33114 if (!SWIG_IsOK(res2)) {
33115 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
33116 }
33117 arg2 = reinterpret_cast< wxFont * >(argp2);
33118 {
33119 PyThreadState* __tstate = wxPyBeginAllowThreads();
33120 (arg1)->RemoveFont(arg2);
33121 wxPyEndAllowThreads(__tstate);
33122 if (PyErr_Occurred()) SWIG_fail;
33123 }
33124 resultobj = SWIG_Py_Void();
33125 return resultobj;
33126 fail:
33127 return NULL;
33128 }
33129
33130
33131 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33132 PyObject *obj;
33133 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33134 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
33135 return SWIG_Py_Void();
33136 }
33137
33138 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33139 PyObject *resultobj = 0;
33140 wxColourDatabase *result = 0 ;
33141
33142 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
33143 {
33144 if (!wxPyCheckForApp()) SWIG_fail;
33145 PyThreadState* __tstate = wxPyBeginAllowThreads();
33146 result = (wxColourDatabase *)new wxColourDatabase();
33147 wxPyEndAllowThreads(__tstate);
33148 if (PyErr_Occurred()) SWIG_fail;
33149 }
33150 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
33151 return resultobj;
33152 fail:
33153 return NULL;
33154 }
33155
33156
33157 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33158 PyObject *resultobj = 0;
33159 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33160 void *argp1 = 0 ;
33161 int res1 = 0 ;
33162 PyObject *swig_obj[1] ;
33163
33164 if (!args) SWIG_fail;
33165 swig_obj[0] = args;
33166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
33167 if (!SWIG_IsOK(res1)) {
33168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33169 }
33170 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33171 {
33172 PyThreadState* __tstate = wxPyBeginAllowThreads();
33173 delete arg1;
33174
33175 wxPyEndAllowThreads(__tstate);
33176 if (PyErr_Occurred()) SWIG_fail;
33177 }
33178 resultobj = SWIG_Py_Void();
33179 return resultobj;
33180 fail:
33181 return NULL;
33182 }
33183
33184
33185 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33186 PyObject *resultobj = 0;
33187 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33188 wxString *arg2 = 0 ;
33189 wxColour result;
33190 void *argp1 = 0 ;
33191 int res1 = 0 ;
33192 bool temp2 = false ;
33193 PyObject * obj0 = 0 ;
33194 PyObject * obj1 = 0 ;
33195 char * kwnames[] = {
33196 (char *) "self",(char *) "name", NULL
33197 };
33198
33199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
33200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33201 if (!SWIG_IsOK(res1)) {
33202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33203 }
33204 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33205 {
33206 arg2 = wxString_in_helper(obj1);
33207 if (arg2 == NULL) SWIG_fail;
33208 temp2 = true;
33209 }
33210 {
33211 PyThreadState* __tstate = wxPyBeginAllowThreads();
33212 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
33213 wxPyEndAllowThreads(__tstate);
33214 if (PyErr_Occurred()) SWIG_fail;
33215 }
33216 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33217 {
33218 if (temp2)
33219 delete arg2;
33220 }
33221 return resultobj;
33222 fail:
33223 {
33224 if (temp2)
33225 delete arg2;
33226 }
33227 return NULL;
33228 }
33229
33230
33231 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33232 PyObject *resultobj = 0;
33233 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33234 wxColour *arg2 = 0 ;
33235 wxString result;
33236 void *argp1 = 0 ;
33237 int res1 = 0 ;
33238 wxColour temp2 ;
33239 PyObject * obj0 = 0 ;
33240 PyObject * obj1 = 0 ;
33241 char * kwnames[] = {
33242 (char *) "self",(char *) "colour", NULL
33243 };
33244
33245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
33246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33247 if (!SWIG_IsOK(res1)) {
33248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33249 }
33250 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33251 {
33252 arg2 = &temp2;
33253 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33254 }
33255 {
33256 PyThreadState* __tstate = wxPyBeginAllowThreads();
33257 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
33258 wxPyEndAllowThreads(__tstate);
33259 if (PyErr_Occurred()) SWIG_fail;
33260 }
33261 {
33262 #if wxUSE_UNICODE
33263 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33264 #else
33265 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33266 #endif
33267 }
33268 return resultobj;
33269 fail:
33270 return NULL;
33271 }
33272
33273
33274 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33275 PyObject *resultobj = 0;
33276 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33277 wxString *arg2 = 0 ;
33278 wxColour *arg3 = 0 ;
33279 void *argp1 = 0 ;
33280 int res1 = 0 ;
33281 bool temp2 = false ;
33282 wxColour temp3 ;
33283 PyObject * obj0 = 0 ;
33284 PyObject * obj1 = 0 ;
33285 PyObject * obj2 = 0 ;
33286 char * kwnames[] = {
33287 (char *) "self",(char *) "name",(char *) "colour", NULL
33288 };
33289
33290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33292 if (!SWIG_IsOK(res1)) {
33293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33294 }
33295 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33296 {
33297 arg2 = wxString_in_helper(obj1);
33298 if (arg2 == NULL) SWIG_fail;
33299 temp2 = true;
33300 }
33301 {
33302 arg3 = &temp3;
33303 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33304 }
33305 {
33306 PyThreadState* __tstate = wxPyBeginAllowThreads();
33307 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
33308 wxPyEndAllowThreads(__tstate);
33309 if (PyErr_Occurred()) SWIG_fail;
33310 }
33311 resultobj = SWIG_Py_Void();
33312 {
33313 if (temp2)
33314 delete arg2;
33315 }
33316 return resultobj;
33317 fail:
33318 {
33319 if (temp2)
33320 delete arg2;
33321 }
33322 return NULL;
33323 }
33324
33325
33326 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33327 PyObject *resultobj = 0;
33328 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33329 wxString *arg2 = 0 ;
33330 int arg3 ;
33331 int arg4 ;
33332 int arg5 ;
33333 void *argp1 = 0 ;
33334 int res1 = 0 ;
33335 bool temp2 = false ;
33336 int val3 ;
33337 int ecode3 = 0 ;
33338 int val4 ;
33339 int ecode4 = 0 ;
33340 int val5 ;
33341 int ecode5 = 0 ;
33342 PyObject * obj0 = 0 ;
33343 PyObject * obj1 = 0 ;
33344 PyObject * obj2 = 0 ;
33345 PyObject * obj3 = 0 ;
33346 PyObject * obj4 = 0 ;
33347 char * kwnames[] = {
33348 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
33349 };
33350
33351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33353 if (!SWIG_IsOK(res1)) {
33354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33355 }
33356 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33357 {
33358 arg2 = wxString_in_helper(obj1);
33359 if (arg2 == NULL) SWIG_fail;
33360 temp2 = true;
33361 }
33362 ecode3 = SWIG_AsVal_int(obj2, &val3);
33363 if (!SWIG_IsOK(ecode3)) {
33364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
33365 }
33366 arg3 = static_cast< int >(val3);
33367 ecode4 = SWIG_AsVal_int(obj3, &val4);
33368 if (!SWIG_IsOK(ecode4)) {
33369 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
33370 }
33371 arg4 = static_cast< int >(val4);
33372 ecode5 = SWIG_AsVal_int(obj4, &val5);
33373 if (!SWIG_IsOK(ecode5)) {
33374 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
33375 }
33376 arg5 = static_cast< int >(val5);
33377 {
33378 PyThreadState* __tstate = wxPyBeginAllowThreads();
33379 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
33380 wxPyEndAllowThreads(__tstate);
33381 if (PyErr_Occurred()) SWIG_fail;
33382 }
33383 resultobj = SWIG_Py_Void();
33384 {
33385 if (temp2)
33386 delete arg2;
33387 }
33388 return resultobj;
33389 fail:
33390 {
33391 if (temp2)
33392 delete arg2;
33393 }
33394 return NULL;
33395 }
33396
33397
33398 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33399 PyObject *obj;
33400 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33401 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33402 return SWIG_Py_Void();
33403 }
33404
33405 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33406 return SWIG_Python_InitShadowInstance(args);
33407 }
33408
33409 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33410 PyObject *resultobj = 0;
33411 wxFontList *result = 0 ;
33412
33413 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
33414 {
33415 PyThreadState* __tstate = wxPyBeginAllowThreads();
33416 result = (wxFontList *)_wxPyInitTheFontList();
33417 wxPyEndAllowThreads(__tstate);
33418 if (PyErr_Occurred()) SWIG_fail;
33419 }
33420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
33421 return resultobj;
33422 fail:
33423 return NULL;
33424 }
33425
33426
33427 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33428 PyObject *resultobj = 0;
33429 wxPenList *result = 0 ;
33430
33431 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
33432 {
33433 PyThreadState* __tstate = wxPyBeginAllowThreads();
33434 result = (wxPenList *)_wxPyInitThePenList();
33435 wxPyEndAllowThreads(__tstate);
33436 if (PyErr_Occurred()) SWIG_fail;
33437 }
33438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
33439 return resultobj;
33440 fail:
33441 return NULL;
33442 }
33443
33444
33445 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33446 PyObject *resultobj = 0;
33447 wxBrushList *result = 0 ;
33448
33449 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33450 {
33451 PyThreadState* __tstate = wxPyBeginAllowThreads();
33452 result = (wxBrushList *)_wxPyInitTheBrushList();
33453 wxPyEndAllowThreads(__tstate);
33454 if (PyErr_Occurred()) SWIG_fail;
33455 }
33456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33457 return resultobj;
33458 fail:
33459 return NULL;
33460 }
33461
33462
33463 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33464 PyObject *resultobj = 0;
33465 wxColourDatabase *result = 0 ;
33466
33467 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33468 {
33469 PyThreadState* __tstate = wxPyBeginAllowThreads();
33470 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33471 wxPyEndAllowThreads(__tstate);
33472 if (PyErr_Occurred()) SWIG_fail;
33473 }
33474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33475 return resultobj;
33476 fail:
33477 return NULL;
33478 }
33479
33480
33481 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33482 PyObject *resultobj = 0;
33483 wxEffects *result = 0 ;
33484
33485 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33486 {
33487 PyThreadState* __tstate = wxPyBeginAllowThreads();
33488 result = (wxEffects *)new wxEffects();
33489 wxPyEndAllowThreads(__tstate);
33490 if (PyErr_Occurred()) SWIG_fail;
33491 }
33492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33493 return resultobj;
33494 fail:
33495 return NULL;
33496 }
33497
33498
33499 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33500 PyObject *resultobj = 0;
33501 wxEffects *arg1 = (wxEffects *) 0 ;
33502 wxColour result;
33503 void *argp1 = 0 ;
33504 int res1 = 0 ;
33505 PyObject *swig_obj[1] ;
33506
33507 if (!args) SWIG_fail;
33508 swig_obj[0] = args;
33509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33510 if (!SWIG_IsOK(res1)) {
33511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33512 }
33513 arg1 = reinterpret_cast< wxEffects * >(argp1);
33514 {
33515 PyThreadState* __tstate = wxPyBeginAllowThreads();
33516 result = ((wxEffects const *)arg1)->GetHighlightColour();
33517 wxPyEndAllowThreads(__tstate);
33518 if (PyErr_Occurred()) SWIG_fail;
33519 }
33520 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33521 return resultobj;
33522 fail:
33523 return NULL;
33524 }
33525
33526
33527 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33528 PyObject *resultobj = 0;
33529 wxEffects *arg1 = (wxEffects *) 0 ;
33530 wxColour result;
33531 void *argp1 = 0 ;
33532 int res1 = 0 ;
33533 PyObject *swig_obj[1] ;
33534
33535 if (!args) SWIG_fail;
33536 swig_obj[0] = args;
33537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33538 if (!SWIG_IsOK(res1)) {
33539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33540 }
33541 arg1 = reinterpret_cast< wxEffects * >(argp1);
33542 {
33543 PyThreadState* __tstate = wxPyBeginAllowThreads();
33544 result = ((wxEffects const *)arg1)->GetLightShadow();
33545 wxPyEndAllowThreads(__tstate);
33546 if (PyErr_Occurred()) SWIG_fail;
33547 }
33548 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33549 return resultobj;
33550 fail:
33551 return NULL;
33552 }
33553
33554
33555 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33556 PyObject *resultobj = 0;
33557 wxEffects *arg1 = (wxEffects *) 0 ;
33558 wxColour result;
33559 void *argp1 = 0 ;
33560 int res1 = 0 ;
33561 PyObject *swig_obj[1] ;
33562
33563 if (!args) SWIG_fail;
33564 swig_obj[0] = args;
33565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33566 if (!SWIG_IsOK(res1)) {
33567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33568 }
33569 arg1 = reinterpret_cast< wxEffects * >(argp1);
33570 {
33571 PyThreadState* __tstate = wxPyBeginAllowThreads();
33572 result = ((wxEffects const *)arg1)->GetFaceColour();
33573 wxPyEndAllowThreads(__tstate);
33574 if (PyErr_Occurred()) SWIG_fail;
33575 }
33576 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33577 return resultobj;
33578 fail:
33579 return NULL;
33580 }
33581
33582
33583 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33584 PyObject *resultobj = 0;
33585 wxEffects *arg1 = (wxEffects *) 0 ;
33586 wxColour result;
33587 void *argp1 = 0 ;
33588 int res1 = 0 ;
33589 PyObject *swig_obj[1] ;
33590
33591 if (!args) SWIG_fail;
33592 swig_obj[0] = args;
33593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33594 if (!SWIG_IsOK(res1)) {
33595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33596 }
33597 arg1 = reinterpret_cast< wxEffects * >(argp1);
33598 {
33599 PyThreadState* __tstate = wxPyBeginAllowThreads();
33600 result = ((wxEffects const *)arg1)->GetMediumShadow();
33601 wxPyEndAllowThreads(__tstate);
33602 if (PyErr_Occurred()) SWIG_fail;
33603 }
33604 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33605 return resultobj;
33606 fail:
33607 return NULL;
33608 }
33609
33610
33611 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33612 PyObject *resultobj = 0;
33613 wxEffects *arg1 = (wxEffects *) 0 ;
33614 wxColour result;
33615 void *argp1 = 0 ;
33616 int res1 = 0 ;
33617 PyObject *swig_obj[1] ;
33618
33619 if (!args) SWIG_fail;
33620 swig_obj[0] = args;
33621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33622 if (!SWIG_IsOK(res1)) {
33623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33624 }
33625 arg1 = reinterpret_cast< wxEffects * >(argp1);
33626 {
33627 PyThreadState* __tstate = wxPyBeginAllowThreads();
33628 result = ((wxEffects const *)arg1)->GetDarkShadow();
33629 wxPyEndAllowThreads(__tstate);
33630 if (PyErr_Occurred()) SWIG_fail;
33631 }
33632 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33633 return resultobj;
33634 fail:
33635 return NULL;
33636 }
33637
33638
33639 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33640 PyObject *resultobj = 0;
33641 wxEffects *arg1 = (wxEffects *) 0 ;
33642 wxColour *arg2 = 0 ;
33643 void *argp1 = 0 ;
33644 int res1 = 0 ;
33645 wxColour temp2 ;
33646 PyObject * obj0 = 0 ;
33647 PyObject * obj1 = 0 ;
33648 char * kwnames[] = {
33649 (char *) "self",(char *) "c", NULL
33650 };
33651
33652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33654 if (!SWIG_IsOK(res1)) {
33655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33656 }
33657 arg1 = reinterpret_cast< wxEffects * >(argp1);
33658 {
33659 arg2 = &temp2;
33660 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33661 }
33662 {
33663 PyThreadState* __tstate = wxPyBeginAllowThreads();
33664 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33665 wxPyEndAllowThreads(__tstate);
33666 if (PyErr_Occurred()) SWIG_fail;
33667 }
33668 resultobj = SWIG_Py_Void();
33669 return resultobj;
33670 fail:
33671 return NULL;
33672 }
33673
33674
33675 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33676 PyObject *resultobj = 0;
33677 wxEffects *arg1 = (wxEffects *) 0 ;
33678 wxColour *arg2 = 0 ;
33679 void *argp1 = 0 ;
33680 int res1 = 0 ;
33681 wxColour temp2 ;
33682 PyObject * obj0 = 0 ;
33683 PyObject * obj1 = 0 ;
33684 char * kwnames[] = {
33685 (char *) "self",(char *) "c", NULL
33686 };
33687
33688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33690 if (!SWIG_IsOK(res1)) {
33691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33692 }
33693 arg1 = reinterpret_cast< wxEffects * >(argp1);
33694 {
33695 arg2 = &temp2;
33696 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33697 }
33698 {
33699 PyThreadState* __tstate = wxPyBeginAllowThreads();
33700 (arg1)->SetLightShadow((wxColour const &)*arg2);
33701 wxPyEndAllowThreads(__tstate);
33702 if (PyErr_Occurred()) SWIG_fail;
33703 }
33704 resultobj = SWIG_Py_Void();
33705 return resultobj;
33706 fail:
33707 return NULL;
33708 }
33709
33710
33711 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33712 PyObject *resultobj = 0;
33713 wxEffects *arg1 = (wxEffects *) 0 ;
33714 wxColour *arg2 = 0 ;
33715 void *argp1 = 0 ;
33716 int res1 = 0 ;
33717 wxColour temp2 ;
33718 PyObject * obj0 = 0 ;
33719 PyObject * obj1 = 0 ;
33720 char * kwnames[] = {
33721 (char *) "self",(char *) "c", NULL
33722 };
33723
33724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33726 if (!SWIG_IsOK(res1)) {
33727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33728 }
33729 arg1 = reinterpret_cast< wxEffects * >(argp1);
33730 {
33731 arg2 = &temp2;
33732 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33733 }
33734 {
33735 PyThreadState* __tstate = wxPyBeginAllowThreads();
33736 (arg1)->SetFaceColour((wxColour const &)*arg2);
33737 wxPyEndAllowThreads(__tstate);
33738 if (PyErr_Occurred()) SWIG_fail;
33739 }
33740 resultobj = SWIG_Py_Void();
33741 return resultobj;
33742 fail:
33743 return NULL;
33744 }
33745
33746
33747 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33748 PyObject *resultobj = 0;
33749 wxEffects *arg1 = (wxEffects *) 0 ;
33750 wxColour *arg2 = 0 ;
33751 void *argp1 = 0 ;
33752 int res1 = 0 ;
33753 wxColour temp2 ;
33754 PyObject * obj0 = 0 ;
33755 PyObject * obj1 = 0 ;
33756 char * kwnames[] = {
33757 (char *) "self",(char *) "c", NULL
33758 };
33759
33760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33762 if (!SWIG_IsOK(res1)) {
33763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33764 }
33765 arg1 = reinterpret_cast< wxEffects * >(argp1);
33766 {
33767 arg2 = &temp2;
33768 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33769 }
33770 {
33771 PyThreadState* __tstate = wxPyBeginAllowThreads();
33772 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33773 wxPyEndAllowThreads(__tstate);
33774 if (PyErr_Occurred()) SWIG_fail;
33775 }
33776 resultobj = SWIG_Py_Void();
33777 return resultobj;
33778 fail:
33779 return NULL;
33780 }
33781
33782
33783 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33784 PyObject *resultobj = 0;
33785 wxEffects *arg1 = (wxEffects *) 0 ;
33786 wxColour *arg2 = 0 ;
33787 void *argp1 = 0 ;
33788 int res1 = 0 ;
33789 wxColour temp2 ;
33790 PyObject * obj0 = 0 ;
33791 PyObject * obj1 = 0 ;
33792 char * kwnames[] = {
33793 (char *) "self",(char *) "c", NULL
33794 };
33795
33796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33798 if (!SWIG_IsOK(res1)) {
33799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33800 }
33801 arg1 = reinterpret_cast< wxEffects * >(argp1);
33802 {
33803 arg2 = &temp2;
33804 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33805 }
33806 {
33807 PyThreadState* __tstate = wxPyBeginAllowThreads();
33808 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33809 wxPyEndAllowThreads(__tstate);
33810 if (PyErr_Occurred()) SWIG_fail;
33811 }
33812 resultobj = SWIG_Py_Void();
33813 return resultobj;
33814 fail:
33815 return NULL;
33816 }
33817
33818
33819 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33820 PyObject *resultobj = 0;
33821 wxEffects *arg1 = (wxEffects *) 0 ;
33822 wxColour *arg2 = 0 ;
33823 wxColour *arg3 = 0 ;
33824 wxColour *arg4 = 0 ;
33825 wxColour *arg5 = 0 ;
33826 wxColour *arg6 = 0 ;
33827 void *argp1 = 0 ;
33828 int res1 = 0 ;
33829 wxColour temp2 ;
33830 wxColour temp3 ;
33831 wxColour temp4 ;
33832 wxColour temp5 ;
33833 wxColour temp6 ;
33834 PyObject * obj0 = 0 ;
33835 PyObject * obj1 = 0 ;
33836 PyObject * obj2 = 0 ;
33837 PyObject * obj3 = 0 ;
33838 PyObject * obj4 = 0 ;
33839 PyObject * obj5 = 0 ;
33840 char * kwnames[] = {
33841 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33842 };
33843
33844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33846 if (!SWIG_IsOK(res1)) {
33847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33848 }
33849 arg1 = reinterpret_cast< wxEffects * >(argp1);
33850 {
33851 arg2 = &temp2;
33852 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33853 }
33854 {
33855 arg3 = &temp3;
33856 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33857 }
33858 {
33859 arg4 = &temp4;
33860 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33861 }
33862 {
33863 arg5 = &temp5;
33864 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33865 }
33866 {
33867 arg6 = &temp6;
33868 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33869 }
33870 {
33871 PyThreadState* __tstate = wxPyBeginAllowThreads();
33872 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33873 wxPyEndAllowThreads(__tstate);
33874 if (PyErr_Occurred()) SWIG_fail;
33875 }
33876 resultobj = SWIG_Py_Void();
33877 return resultobj;
33878 fail:
33879 return NULL;
33880 }
33881
33882
33883 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33884 PyObject *resultobj = 0;
33885 wxEffects *arg1 = (wxEffects *) 0 ;
33886 wxDC *arg2 = 0 ;
33887 wxRect *arg3 = 0 ;
33888 int arg4 = (int) 1 ;
33889 void *argp1 = 0 ;
33890 int res1 = 0 ;
33891 void *argp2 = 0 ;
33892 int res2 = 0 ;
33893 wxRect temp3 ;
33894 int val4 ;
33895 int ecode4 = 0 ;
33896 PyObject * obj0 = 0 ;
33897 PyObject * obj1 = 0 ;
33898 PyObject * obj2 = 0 ;
33899 PyObject * obj3 = 0 ;
33900 char * kwnames[] = {
33901 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33902 };
33903
33904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33906 if (!SWIG_IsOK(res1)) {
33907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33908 }
33909 arg1 = reinterpret_cast< wxEffects * >(argp1);
33910 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33911 if (!SWIG_IsOK(res2)) {
33912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33913 }
33914 if (!argp2) {
33915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33916 }
33917 arg2 = reinterpret_cast< wxDC * >(argp2);
33918 {
33919 arg3 = &temp3;
33920 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33921 }
33922 if (obj3) {
33923 ecode4 = SWIG_AsVal_int(obj3, &val4);
33924 if (!SWIG_IsOK(ecode4)) {
33925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33926 }
33927 arg4 = static_cast< int >(val4);
33928 }
33929 {
33930 PyThreadState* __tstate = wxPyBeginAllowThreads();
33931 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33932 wxPyEndAllowThreads(__tstate);
33933 if (PyErr_Occurred()) SWIG_fail;
33934 }
33935 resultobj = SWIG_Py_Void();
33936 return resultobj;
33937 fail:
33938 return NULL;
33939 }
33940
33941
33942 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33943 PyObject *resultobj = 0;
33944 wxEffects *arg1 = (wxEffects *) 0 ;
33945 wxRect *arg2 = 0 ;
33946 wxDC *arg3 = 0 ;
33947 wxBitmap *arg4 = 0 ;
33948 bool result;
33949 void *argp1 = 0 ;
33950 int res1 = 0 ;
33951 wxRect temp2 ;
33952 void *argp3 = 0 ;
33953 int res3 = 0 ;
33954 void *argp4 = 0 ;
33955 int res4 = 0 ;
33956 PyObject * obj0 = 0 ;
33957 PyObject * obj1 = 0 ;
33958 PyObject * obj2 = 0 ;
33959 PyObject * obj3 = 0 ;
33960 char * kwnames[] = {
33961 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33962 };
33963
33964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33966 if (!SWIG_IsOK(res1)) {
33967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33968 }
33969 arg1 = reinterpret_cast< wxEffects * >(argp1);
33970 {
33971 arg2 = &temp2;
33972 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33973 }
33974 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33975 if (!SWIG_IsOK(res3)) {
33976 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33977 }
33978 if (!argp3) {
33979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33980 }
33981 arg3 = reinterpret_cast< wxDC * >(argp3);
33982 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33983 if (!SWIG_IsOK(res4)) {
33984 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33985 }
33986 if (!argp4) {
33987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33988 }
33989 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33990 {
33991 PyThreadState* __tstate = wxPyBeginAllowThreads();
33992 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33993 wxPyEndAllowThreads(__tstate);
33994 if (PyErr_Occurred()) SWIG_fail;
33995 }
33996 {
33997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33998 }
33999 return resultobj;
34000 fail:
34001 return NULL;
34002 }
34003
34004
34005 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34006 PyObject *obj;
34007 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34008 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
34009 return SWIG_Py_Void();
34010 }
34011
34012 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34013 return SWIG_Python_InitShadowInstance(args);
34014 }
34015
34016 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34017 PyObject *resultobj = 0;
34018 int arg1 ;
34019 int arg2 ;
34020 bool arg3 ;
34021 wxSplitterRenderParams *result = 0 ;
34022 int val1 ;
34023 int ecode1 = 0 ;
34024 int val2 ;
34025 int ecode2 = 0 ;
34026 bool val3 ;
34027 int ecode3 = 0 ;
34028 PyObject * obj0 = 0 ;
34029 PyObject * obj1 = 0 ;
34030 PyObject * obj2 = 0 ;
34031 char * kwnames[] = {
34032 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
34033 };
34034
34035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34036 ecode1 = SWIG_AsVal_int(obj0, &val1);
34037 if (!SWIG_IsOK(ecode1)) {
34038 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
34039 }
34040 arg1 = static_cast< int >(val1);
34041 ecode2 = SWIG_AsVal_int(obj1, &val2);
34042 if (!SWIG_IsOK(ecode2)) {
34043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
34044 }
34045 arg2 = static_cast< int >(val2);
34046 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34047 if (!SWIG_IsOK(ecode3)) {
34048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
34049 }
34050 arg3 = static_cast< bool >(val3);
34051 {
34052 PyThreadState* __tstate = wxPyBeginAllowThreads();
34053 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
34054 wxPyEndAllowThreads(__tstate);
34055 if (PyErr_Occurred()) SWIG_fail;
34056 }
34057 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
34058 return resultobj;
34059 fail:
34060 return NULL;
34061 }
34062
34063
34064 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34065 PyObject *resultobj = 0;
34066 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34067 void *argp1 = 0 ;
34068 int res1 = 0 ;
34069 PyObject *swig_obj[1] ;
34070
34071 if (!args) SWIG_fail;
34072 swig_obj[0] = args;
34073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
34074 if (!SWIG_IsOK(res1)) {
34075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34076 }
34077 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34078 {
34079 PyThreadState* __tstate = wxPyBeginAllowThreads();
34080 delete arg1;
34081
34082 wxPyEndAllowThreads(__tstate);
34083 if (PyErr_Occurred()) SWIG_fail;
34084 }
34085 resultobj = SWIG_Py_Void();
34086 return resultobj;
34087 fail:
34088 return NULL;
34089 }
34090
34091
34092 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34093 PyObject *resultobj = 0;
34094 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34095 int result;
34096 void *argp1 = 0 ;
34097 int res1 = 0 ;
34098 PyObject *swig_obj[1] ;
34099
34100 if (!args) SWIG_fail;
34101 swig_obj[0] = args;
34102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34103 if (!SWIG_IsOK(res1)) {
34104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34105 }
34106 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34107 result = (int)(int) ((arg1)->widthSash);
34108 resultobj = SWIG_From_int(static_cast< int >(result));
34109 return resultobj;
34110 fail:
34111 return NULL;
34112 }
34113
34114
34115 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34116 PyObject *resultobj = 0;
34117 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34118 int result;
34119 void *argp1 = 0 ;
34120 int res1 = 0 ;
34121 PyObject *swig_obj[1] ;
34122
34123 if (!args) SWIG_fail;
34124 swig_obj[0] = args;
34125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34126 if (!SWIG_IsOK(res1)) {
34127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34128 }
34129 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34130 result = (int)(int) ((arg1)->border);
34131 resultobj = SWIG_From_int(static_cast< int >(result));
34132 return resultobj;
34133 fail:
34134 return NULL;
34135 }
34136
34137
34138 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34139 PyObject *resultobj = 0;
34140 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34141 bool result;
34142 void *argp1 = 0 ;
34143 int res1 = 0 ;
34144 PyObject *swig_obj[1] ;
34145
34146 if (!args) SWIG_fail;
34147 swig_obj[0] = args;
34148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34149 if (!SWIG_IsOK(res1)) {
34150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34151 }
34152 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34153 result = (bool)(bool) ((arg1)->isHotSensitive);
34154 resultobj = SWIG_From_bool(static_cast< bool >(result));
34155 return resultobj;
34156 fail:
34157 return NULL;
34158 }
34159
34160
34161 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34162 PyObject *obj;
34163 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34164 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
34165 return SWIG_Py_Void();
34166 }
34167
34168 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34169 return SWIG_Python_InitShadowInstance(args);
34170 }
34171
34172 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34173 PyObject *resultobj = 0;
34174 wxHeaderButtonParams *result = 0 ;
34175
34176 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
34177 {
34178 PyThreadState* __tstate = wxPyBeginAllowThreads();
34179 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
34180 wxPyEndAllowThreads(__tstate);
34181 if (PyErr_Occurred()) SWIG_fail;
34182 }
34183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
34184 return resultobj;
34185 fail:
34186 return NULL;
34187 }
34188
34189
34190 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34191 PyObject *resultobj = 0;
34192 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34193 void *argp1 = 0 ;
34194 int res1 = 0 ;
34195 PyObject *swig_obj[1] ;
34196
34197 if (!args) SWIG_fail;
34198 swig_obj[0] = args;
34199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
34200 if (!SWIG_IsOK(res1)) {
34201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34202 }
34203 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34204 {
34205 PyThreadState* __tstate = wxPyBeginAllowThreads();
34206 delete arg1;
34207
34208 wxPyEndAllowThreads(__tstate);
34209 if (PyErr_Occurred()) SWIG_fail;
34210 }
34211 resultobj = SWIG_Py_Void();
34212 return resultobj;
34213 fail:
34214 return NULL;
34215 }
34216
34217
34218 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34219 PyObject *resultobj = 0;
34220 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34221 wxColour *arg2 = (wxColour *) 0 ;
34222 void *argp1 = 0 ;
34223 int res1 = 0 ;
34224 wxColour temp2 ;
34225 PyObject *swig_obj[2] ;
34226
34227 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
34228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34229 if (!SWIG_IsOK(res1)) {
34230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34231 }
34232 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34233 {
34234 arg2 = &temp2;
34235 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34236 }
34237 if (arg1) (arg1)->m_arrowColour = *arg2;
34238
34239 resultobj = SWIG_Py_Void();
34240 return resultobj;
34241 fail:
34242 return NULL;
34243 }
34244
34245
34246 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34247 PyObject *resultobj = 0;
34248 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34249 wxColour *result = 0 ;
34250 void *argp1 = 0 ;
34251 int res1 = 0 ;
34252 PyObject *swig_obj[1] ;
34253
34254 if (!args) SWIG_fail;
34255 swig_obj[0] = args;
34256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34257 if (!SWIG_IsOK(res1)) {
34258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34259 }
34260 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34261 result = (wxColour *)& ((arg1)->m_arrowColour);
34262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34263 return resultobj;
34264 fail:
34265 return NULL;
34266 }
34267
34268
34269 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34270 PyObject *resultobj = 0;
34271 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34272 wxColour *arg2 = (wxColour *) 0 ;
34273 void *argp1 = 0 ;
34274 int res1 = 0 ;
34275 wxColour temp2 ;
34276 PyObject *swig_obj[2] ;
34277
34278 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
34279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34280 if (!SWIG_IsOK(res1)) {
34281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34282 }
34283 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34284 {
34285 arg2 = &temp2;
34286 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34287 }
34288 if (arg1) (arg1)->m_selectionColour = *arg2;
34289
34290 resultobj = SWIG_Py_Void();
34291 return resultobj;
34292 fail:
34293 return NULL;
34294 }
34295
34296
34297 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34298 PyObject *resultobj = 0;
34299 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34300 wxColour *result = 0 ;
34301 void *argp1 = 0 ;
34302 int res1 = 0 ;
34303 PyObject *swig_obj[1] ;
34304
34305 if (!args) SWIG_fail;
34306 swig_obj[0] = args;
34307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34308 if (!SWIG_IsOK(res1)) {
34309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34310 }
34311 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34312 result = (wxColour *)& ((arg1)->m_selectionColour);
34313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34314 return resultobj;
34315 fail:
34316 return NULL;
34317 }
34318
34319
34320 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34321 PyObject *resultobj = 0;
34322 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34323 wxString *arg2 = (wxString *) 0 ;
34324 void *argp1 = 0 ;
34325 int res1 = 0 ;
34326 bool temp2 = false ;
34327 PyObject *swig_obj[2] ;
34328
34329 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
34330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34331 if (!SWIG_IsOK(res1)) {
34332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34333 }
34334 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34335 {
34336 arg2 = wxString_in_helper(swig_obj[1]);
34337 if (arg2 == NULL) SWIG_fail;
34338 temp2 = true;
34339 }
34340 if (arg1) (arg1)->m_labelText = *arg2;
34341
34342 resultobj = SWIG_Py_Void();
34343 {
34344 if (temp2)
34345 delete arg2;
34346 }
34347 return resultobj;
34348 fail:
34349 {
34350 if (temp2)
34351 delete arg2;
34352 }
34353 return NULL;
34354 }
34355
34356
34357 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34358 PyObject *resultobj = 0;
34359 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34360 wxString *result = 0 ;
34361 void *argp1 = 0 ;
34362 int res1 = 0 ;
34363 PyObject *swig_obj[1] ;
34364
34365 if (!args) SWIG_fail;
34366 swig_obj[0] = args;
34367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34368 if (!SWIG_IsOK(res1)) {
34369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34370 }
34371 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34372 result = (wxString *)& ((arg1)->m_labelText);
34373 {
34374 #if wxUSE_UNICODE
34375 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
34376 #else
34377 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
34378 #endif
34379 }
34380 return resultobj;
34381 fail:
34382 return NULL;
34383 }
34384
34385
34386 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34387 PyObject *resultobj = 0;
34388 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34389 wxFont *arg2 = (wxFont *) 0 ;
34390 void *argp1 = 0 ;
34391 int res1 = 0 ;
34392 void *argp2 = 0 ;
34393 int res2 = 0 ;
34394 PyObject *swig_obj[2] ;
34395
34396 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34398 if (!SWIG_IsOK(res1)) {
34399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34400 }
34401 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34402 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34403 if (!SWIG_IsOK(res2)) {
34404 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34405 }
34406 arg2 = reinterpret_cast< wxFont * >(argp2);
34407 if (arg1) (arg1)->m_labelFont = *arg2;
34408
34409 resultobj = SWIG_Py_Void();
34410 return resultobj;
34411 fail:
34412 return NULL;
34413 }
34414
34415
34416 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34417 PyObject *resultobj = 0;
34418 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34419 wxFont *result = 0 ;
34420 void *argp1 = 0 ;
34421 int res1 = 0 ;
34422 PyObject *swig_obj[1] ;
34423
34424 if (!args) SWIG_fail;
34425 swig_obj[0] = args;
34426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34427 if (!SWIG_IsOK(res1)) {
34428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34429 }
34430 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34431 result = (wxFont *)& ((arg1)->m_labelFont);
34432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34433 return resultobj;
34434 fail:
34435 return NULL;
34436 }
34437
34438
34439 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34440 PyObject *resultobj = 0;
34441 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34442 wxColour *arg2 = (wxColour *) 0 ;
34443 void *argp1 = 0 ;
34444 int res1 = 0 ;
34445 wxColour temp2 ;
34446 PyObject *swig_obj[2] ;
34447
34448 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34450 if (!SWIG_IsOK(res1)) {
34451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34452 }
34453 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34454 {
34455 arg2 = &temp2;
34456 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34457 }
34458 if (arg1) (arg1)->m_labelColour = *arg2;
34459
34460 resultobj = SWIG_Py_Void();
34461 return resultobj;
34462 fail:
34463 return NULL;
34464 }
34465
34466
34467 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34468 PyObject *resultobj = 0;
34469 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34470 wxColour *result = 0 ;
34471 void *argp1 = 0 ;
34472 int res1 = 0 ;
34473 PyObject *swig_obj[1] ;
34474
34475 if (!args) SWIG_fail;
34476 swig_obj[0] = args;
34477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34478 if (!SWIG_IsOK(res1)) {
34479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34480 }
34481 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34482 result = (wxColour *)& ((arg1)->m_labelColour);
34483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34484 return resultobj;
34485 fail:
34486 return NULL;
34487 }
34488
34489
34490 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34491 PyObject *resultobj = 0;
34492 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34493 wxBitmap *arg2 = (wxBitmap *) 0 ;
34494 void *argp1 = 0 ;
34495 int res1 = 0 ;
34496 void *argp2 = 0 ;
34497 int res2 = 0 ;
34498 PyObject *swig_obj[2] ;
34499
34500 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34502 if (!SWIG_IsOK(res1)) {
34503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34504 }
34505 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34506 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34507 if (!SWIG_IsOK(res2)) {
34508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34509 }
34510 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34511 if (arg1) (arg1)->m_labelBitmap = *arg2;
34512
34513 resultobj = SWIG_Py_Void();
34514 return resultobj;
34515 fail:
34516 return NULL;
34517 }
34518
34519
34520 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34521 PyObject *resultobj = 0;
34522 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34523 wxBitmap *result = 0 ;
34524 void *argp1 = 0 ;
34525 int res1 = 0 ;
34526 PyObject *swig_obj[1] ;
34527
34528 if (!args) SWIG_fail;
34529 swig_obj[0] = args;
34530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34531 if (!SWIG_IsOK(res1)) {
34532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34533 }
34534 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34535 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34537 return resultobj;
34538 fail:
34539 return NULL;
34540 }
34541
34542
34543 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34544 PyObject *resultobj = 0;
34545 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34546 int arg2 ;
34547 void *argp1 = 0 ;
34548 int res1 = 0 ;
34549 int val2 ;
34550 int ecode2 = 0 ;
34551 PyObject *swig_obj[2] ;
34552
34553 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34555 if (!SWIG_IsOK(res1)) {
34556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34557 }
34558 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34559 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34560 if (!SWIG_IsOK(ecode2)) {
34561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34562 }
34563 arg2 = static_cast< int >(val2);
34564 if (arg1) (arg1)->m_labelAlignment = arg2;
34565
34566 resultobj = SWIG_Py_Void();
34567 return resultobj;
34568 fail:
34569 return NULL;
34570 }
34571
34572
34573 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34574 PyObject *resultobj = 0;
34575 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34576 int result;
34577 void *argp1 = 0 ;
34578 int res1 = 0 ;
34579 PyObject *swig_obj[1] ;
34580
34581 if (!args) SWIG_fail;
34582 swig_obj[0] = args;
34583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34584 if (!SWIG_IsOK(res1)) {
34585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34586 }
34587 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34588 result = (int) ((arg1)->m_labelAlignment);
34589 resultobj = SWIG_From_int(static_cast< int >(result));
34590 return resultobj;
34591 fail:
34592 return NULL;
34593 }
34594
34595
34596 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34597 PyObject *obj;
34598 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34599 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34600 return SWIG_Py_Void();
34601 }
34602
34603 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34604 return SWIG_Python_InitShadowInstance(args);
34605 }
34606
34607 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34608 PyObject *resultobj = 0;
34609 int arg1 ;
34610 int arg2 ;
34611 wxRendererVersion *result = 0 ;
34612 int val1 ;
34613 int ecode1 = 0 ;
34614 int val2 ;
34615 int ecode2 = 0 ;
34616 PyObject * obj0 = 0 ;
34617 PyObject * obj1 = 0 ;
34618 char * kwnames[] = {
34619 (char *) "version_",(char *) "age_", NULL
34620 };
34621
34622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34623 ecode1 = SWIG_AsVal_int(obj0, &val1);
34624 if (!SWIG_IsOK(ecode1)) {
34625 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34626 }
34627 arg1 = static_cast< int >(val1);
34628 ecode2 = SWIG_AsVal_int(obj1, &val2);
34629 if (!SWIG_IsOK(ecode2)) {
34630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34631 }
34632 arg2 = static_cast< int >(val2);
34633 {
34634 PyThreadState* __tstate = wxPyBeginAllowThreads();
34635 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34636 wxPyEndAllowThreads(__tstate);
34637 if (PyErr_Occurred()) SWIG_fail;
34638 }
34639 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34640 return resultobj;
34641 fail:
34642 return NULL;
34643 }
34644
34645
34646 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34647 PyObject *resultobj = 0;
34648 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34649 void *argp1 = 0 ;
34650 int res1 = 0 ;
34651 PyObject *swig_obj[1] ;
34652
34653 if (!args) SWIG_fail;
34654 swig_obj[0] = args;
34655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34656 if (!SWIG_IsOK(res1)) {
34657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34658 }
34659 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34660 {
34661 PyThreadState* __tstate = wxPyBeginAllowThreads();
34662 delete arg1;
34663
34664 wxPyEndAllowThreads(__tstate);
34665 if (PyErr_Occurred()) SWIG_fail;
34666 }
34667 resultobj = SWIG_Py_Void();
34668 return resultobj;
34669 fail:
34670 return NULL;
34671 }
34672
34673
34674 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34675 PyObject *resultobj = 0;
34676 wxRendererVersion *arg1 = 0 ;
34677 bool result;
34678 void *argp1 = 0 ;
34679 int res1 = 0 ;
34680 PyObject * obj0 = 0 ;
34681 char * kwnames[] = {
34682 (char *) "ver", NULL
34683 };
34684
34685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34686 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34687 if (!SWIG_IsOK(res1)) {
34688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34689 }
34690 if (!argp1) {
34691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34692 }
34693 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34694 {
34695 PyThreadState* __tstate = wxPyBeginAllowThreads();
34696 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34697 wxPyEndAllowThreads(__tstate);
34698 if (PyErr_Occurred()) SWIG_fail;
34699 }
34700 {
34701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34702 }
34703 return resultobj;
34704 fail:
34705 return NULL;
34706 }
34707
34708
34709 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34710 PyObject *resultobj = 0;
34711 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34712 int result;
34713 void *argp1 = 0 ;
34714 int res1 = 0 ;
34715 PyObject *swig_obj[1] ;
34716
34717 if (!args) SWIG_fail;
34718 swig_obj[0] = args;
34719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34720 if (!SWIG_IsOK(res1)) {
34721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34722 }
34723 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34724 result = (int)(int) ((arg1)->version);
34725 resultobj = SWIG_From_int(static_cast< int >(result));
34726 return resultobj;
34727 fail:
34728 return NULL;
34729 }
34730
34731
34732 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34733 PyObject *resultobj = 0;
34734 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34735 int result;
34736 void *argp1 = 0 ;
34737 int res1 = 0 ;
34738 PyObject *swig_obj[1] ;
34739
34740 if (!args) SWIG_fail;
34741 swig_obj[0] = args;
34742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34743 if (!SWIG_IsOK(res1)) {
34744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34745 }
34746 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34747 result = (int)(int) ((arg1)->age);
34748 resultobj = SWIG_From_int(static_cast< int >(result));
34749 return resultobj;
34750 fail:
34751 return NULL;
34752 }
34753
34754
34755 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34756 PyObject *obj;
34757 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34758 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34759 return SWIG_Py_Void();
34760 }
34761
34762 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34763 return SWIG_Python_InitShadowInstance(args);
34764 }
34765
34766 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34767 PyObject *resultobj = 0;
34768 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34769 wxWindow *arg2 = (wxWindow *) 0 ;
34770 wxDC *arg3 = 0 ;
34771 wxRect *arg4 = 0 ;
34772 int arg5 = (int) 0 ;
34773 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34774 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34775 void *argp1 = 0 ;
34776 int res1 = 0 ;
34777 void *argp2 = 0 ;
34778 int res2 = 0 ;
34779 void *argp3 = 0 ;
34780 int res3 = 0 ;
34781 wxRect temp4 ;
34782 int val5 ;
34783 int ecode5 = 0 ;
34784 int val6 ;
34785 int ecode6 = 0 ;
34786 void *argp7 = 0 ;
34787 int res7 = 0 ;
34788 PyObject * obj0 = 0 ;
34789 PyObject * obj1 = 0 ;
34790 PyObject * obj2 = 0 ;
34791 PyObject * obj3 = 0 ;
34792 PyObject * obj4 = 0 ;
34793 PyObject * obj5 = 0 ;
34794 PyObject * obj6 = 0 ;
34795 char * kwnames[] = {
34796 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34797 };
34798
34799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34801 if (!SWIG_IsOK(res1)) {
34802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34803 }
34804 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34805 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34806 if (!SWIG_IsOK(res2)) {
34807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34808 }
34809 arg2 = reinterpret_cast< wxWindow * >(argp2);
34810 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34811 if (!SWIG_IsOK(res3)) {
34812 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34813 }
34814 if (!argp3) {
34815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34816 }
34817 arg3 = reinterpret_cast< wxDC * >(argp3);
34818 {
34819 arg4 = &temp4;
34820 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34821 }
34822 if (obj4) {
34823 ecode5 = SWIG_AsVal_int(obj4, &val5);
34824 if (!SWIG_IsOK(ecode5)) {
34825 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34826 }
34827 arg5 = static_cast< int >(val5);
34828 }
34829 if (obj5) {
34830 ecode6 = SWIG_AsVal_int(obj5, &val6);
34831 if (!SWIG_IsOK(ecode6)) {
34832 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34833 }
34834 arg6 = static_cast< wxHeaderSortIconType >(val6);
34835 }
34836 if (obj6) {
34837 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34838 if (!SWIG_IsOK(res7)) {
34839 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34840 }
34841 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34842 }
34843 {
34844 PyThreadState* __tstate = wxPyBeginAllowThreads();
34845 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34846 wxPyEndAllowThreads(__tstate);
34847 if (PyErr_Occurred()) SWIG_fail;
34848 }
34849 resultobj = SWIG_Py_Void();
34850 return resultobj;
34851 fail:
34852 return NULL;
34853 }
34854
34855
34856 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34857 PyObject *resultobj = 0;
34858 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34859 wxWindow *arg2 = (wxWindow *) 0 ;
34860 wxDC *arg3 = 0 ;
34861 wxRect *arg4 = 0 ;
34862 int arg5 = (int) 0 ;
34863 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34864 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34865 void *argp1 = 0 ;
34866 int res1 = 0 ;
34867 void *argp2 = 0 ;
34868 int res2 = 0 ;
34869 void *argp3 = 0 ;
34870 int res3 = 0 ;
34871 wxRect temp4 ;
34872 int val5 ;
34873 int ecode5 = 0 ;
34874 int val6 ;
34875 int ecode6 = 0 ;
34876 void *argp7 = 0 ;
34877 int res7 = 0 ;
34878 PyObject * obj0 = 0 ;
34879 PyObject * obj1 = 0 ;
34880 PyObject * obj2 = 0 ;
34881 PyObject * obj3 = 0 ;
34882 PyObject * obj4 = 0 ;
34883 PyObject * obj5 = 0 ;
34884 PyObject * obj6 = 0 ;
34885 char * kwnames[] = {
34886 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34887 };
34888
34889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34891 if (!SWIG_IsOK(res1)) {
34892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34893 }
34894 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34895 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34896 if (!SWIG_IsOK(res2)) {
34897 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34898 }
34899 arg2 = reinterpret_cast< wxWindow * >(argp2);
34900 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34901 if (!SWIG_IsOK(res3)) {
34902 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34903 }
34904 if (!argp3) {
34905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34906 }
34907 arg3 = reinterpret_cast< wxDC * >(argp3);
34908 {
34909 arg4 = &temp4;
34910 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34911 }
34912 if (obj4) {
34913 ecode5 = SWIG_AsVal_int(obj4, &val5);
34914 if (!SWIG_IsOK(ecode5)) {
34915 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34916 }
34917 arg5 = static_cast< int >(val5);
34918 }
34919 if (obj5) {
34920 ecode6 = SWIG_AsVal_int(obj5, &val6);
34921 if (!SWIG_IsOK(ecode6)) {
34922 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34923 }
34924 arg6 = static_cast< wxHeaderSortIconType >(val6);
34925 }
34926 if (obj6) {
34927 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34928 if (!SWIG_IsOK(res7)) {
34929 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34930 }
34931 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34932 }
34933 {
34934 PyThreadState* __tstate = wxPyBeginAllowThreads();
34935 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34936 wxPyEndAllowThreads(__tstate);
34937 if (PyErr_Occurred()) SWIG_fail;
34938 }
34939 resultobj = SWIG_Py_Void();
34940 return resultobj;
34941 fail:
34942 return NULL;
34943 }
34944
34945
34946 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34947 PyObject *resultobj = 0;
34948 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34949 wxWindow *arg2 = (wxWindow *) 0 ;
34950 int result;
34951 void *argp1 = 0 ;
34952 int res1 = 0 ;
34953 void *argp2 = 0 ;
34954 int res2 = 0 ;
34955 PyObject * obj0 = 0 ;
34956 PyObject * obj1 = 0 ;
34957 char * kwnames[] = {
34958 (char *) "self",(char *) "win", NULL
34959 };
34960
34961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34963 if (!SWIG_IsOK(res1)) {
34964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34965 }
34966 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34967 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34968 if (!SWIG_IsOK(res2)) {
34969 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34970 }
34971 arg2 = reinterpret_cast< wxWindow * >(argp2);
34972 {
34973 PyThreadState* __tstate = wxPyBeginAllowThreads();
34974 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34975 wxPyEndAllowThreads(__tstate);
34976 if (PyErr_Occurred()) SWIG_fail;
34977 }
34978 resultobj = SWIG_From_int(static_cast< int >(result));
34979 return resultobj;
34980 fail:
34981 return NULL;
34982 }
34983
34984
34985 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34986 PyObject *resultobj = 0;
34987 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34988 wxWindow *arg2 = (wxWindow *) 0 ;
34989 wxDC *arg3 = 0 ;
34990 wxRect *arg4 = 0 ;
34991 int arg5 = (int) 0 ;
34992 void *argp1 = 0 ;
34993 int res1 = 0 ;
34994 void *argp2 = 0 ;
34995 int res2 = 0 ;
34996 void *argp3 = 0 ;
34997 int res3 = 0 ;
34998 wxRect temp4 ;
34999 int val5 ;
35000 int ecode5 = 0 ;
35001 PyObject * obj0 = 0 ;
35002 PyObject * obj1 = 0 ;
35003 PyObject * obj2 = 0 ;
35004 PyObject * obj3 = 0 ;
35005 PyObject * obj4 = 0 ;
35006 char * kwnames[] = {
35007 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35008 };
35009
35010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35012 if (!SWIG_IsOK(res1)) {
35013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35014 }
35015 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35016 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35017 if (!SWIG_IsOK(res2)) {
35018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35019 }
35020 arg2 = reinterpret_cast< wxWindow * >(argp2);
35021 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35022 if (!SWIG_IsOK(res3)) {
35023 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35024 }
35025 if (!argp3) {
35026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35027 }
35028 arg3 = reinterpret_cast< wxDC * >(argp3);
35029 {
35030 arg4 = &temp4;
35031 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35032 }
35033 if (obj4) {
35034 ecode5 = SWIG_AsVal_int(obj4, &val5);
35035 if (!SWIG_IsOK(ecode5)) {
35036 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
35037 }
35038 arg5 = static_cast< int >(val5);
35039 }
35040 {
35041 PyThreadState* __tstate = wxPyBeginAllowThreads();
35042 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35043 wxPyEndAllowThreads(__tstate);
35044 if (PyErr_Occurred()) SWIG_fail;
35045 }
35046 resultobj = SWIG_Py_Void();
35047 return resultobj;
35048 fail:
35049 return NULL;
35050 }
35051
35052
35053 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35054 PyObject *resultobj = 0;
35055 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35056 wxWindow *arg2 = (wxWindow *) 0 ;
35057 wxDC *arg3 = 0 ;
35058 wxRect *arg4 = 0 ;
35059 int arg5 = (int) 0 ;
35060 void *argp1 = 0 ;
35061 int res1 = 0 ;
35062 void *argp2 = 0 ;
35063 int res2 = 0 ;
35064 void *argp3 = 0 ;
35065 int res3 = 0 ;
35066 wxRect temp4 ;
35067 int val5 ;
35068 int ecode5 = 0 ;
35069 PyObject * obj0 = 0 ;
35070 PyObject * obj1 = 0 ;
35071 PyObject * obj2 = 0 ;
35072 PyObject * obj3 = 0 ;
35073 PyObject * obj4 = 0 ;
35074 char * kwnames[] = {
35075 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35076 };
35077
35078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35080 if (!SWIG_IsOK(res1)) {
35081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35082 }
35083 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35084 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35085 if (!SWIG_IsOK(res2)) {
35086 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
35087 }
35088 arg2 = reinterpret_cast< wxWindow * >(argp2);
35089 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35090 if (!SWIG_IsOK(res3)) {
35091 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35092 }
35093 if (!argp3) {
35094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35095 }
35096 arg3 = reinterpret_cast< wxDC * >(argp3);
35097 {
35098 arg4 = &temp4;
35099 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35100 }
35101 if (obj4) {
35102 ecode5 = SWIG_AsVal_int(obj4, &val5);
35103 if (!SWIG_IsOK(ecode5)) {
35104 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
35105 }
35106 arg5 = static_cast< int >(val5);
35107 }
35108 {
35109 PyThreadState* __tstate = wxPyBeginAllowThreads();
35110 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
35111 wxPyEndAllowThreads(__tstate);
35112 if (PyErr_Occurred()) SWIG_fail;
35113 }
35114 resultobj = SWIG_Py_Void();
35115 return resultobj;
35116 fail:
35117 return NULL;
35118 }
35119
35120
35121 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35122 PyObject *resultobj = 0;
35123 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35124 wxWindow *arg2 = (wxWindow *) 0 ;
35125 wxDC *arg3 = 0 ;
35126 wxSize *arg4 = 0 ;
35127 int arg5 ;
35128 wxOrientation arg6 ;
35129 int arg7 = (int) 0 ;
35130 void *argp1 = 0 ;
35131 int res1 = 0 ;
35132 void *argp2 = 0 ;
35133 int res2 = 0 ;
35134 void *argp3 = 0 ;
35135 int res3 = 0 ;
35136 wxSize temp4 ;
35137 int val5 ;
35138 int ecode5 = 0 ;
35139 int val6 ;
35140 int ecode6 = 0 ;
35141 int val7 ;
35142 int ecode7 = 0 ;
35143 PyObject * obj0 = 0 ;
35144 PyObject * obj1 = 0 ;
35145 PyObject * obj2 = 0 ;
35146 PyObject * obj3 = 0 ;
35147 PyObject * obj4 = 0 ;
35148 PyObject * obj5 = 0 ;
35149 PyObject * obj6 = 0 ;
35150 char * kwnames[] = {
35151 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
35152 };
35153
35154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35156 if (!SWIG_IsOK(res1)) {
35157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35158 }
35159 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35160 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35161 if (!SWIG_IsOK(res2)) {
35162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
35163 }
35164 arg2 = reinterpret_cast< wxWindow * >(argp2);
35165 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35166 if (!SWIG_IsOK(res3)) {
35167 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35168 }
35169 if (!argp3) {
35170 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35171 }
35172 arg3 = reinterpret_cast< wxDC * >(argp3);
35173 {
35174 arg4 = &temp4;
35175 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
35176 }
35177 ecode5 = SWIG_AsVal_int(obj4, &val5);
35178 if (!SWIG_IsOK(ecode5)) {
35179 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
35180 }
35181 arg5 = static_cast< int >(val5);
35182 ecode6 = SWIG_AsVal_int(obj5, &val6);
35183 if (!SWIG_IsOK(ecode6)) {
35184 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
35185 }
35186 arg6 = static_cast< wxOrientation >(val6);
35187 if (obj6) {
35188 ecode7 = SWIG_AsVal_int(obj6, &val7);
35189 if (!SWIG_IsOK(ecode7)) {
35190 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
35191 }
35192 arg7 = static_cast< int >(val7);
35193 }
35194 {
35195 PyThreadState* __tstate = wxPyBeginAllowThreads();
35196 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
35197 wxPyEndAllowThreads(__tstate);
35198 if (PyErr_Occurred()) SWIG_fail;
35199 }
35200 resultobj = SWIG_Py_Void();
35201 return resultobj;
35202 fail:
35203 return NULL;
35204 }
35205
35206
35207 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35208 PyObject *resultobj = 0;
35209 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35210 wxWindow *arg2 = (wxWindow *) 0 ;
35211 wxDC *arg3 = 0 ;
35212 wxRect *arg4 = 0 ;
35213 int arg5 = (int) 0 ;
35214 void *argp1 = 0 ;
35215 int res1 = 0 ;
35216 void *argp2 = 0 ;
35217 int res2 = 0 ;
35218 void *argp3 = 0 ;
35219 int res3 = 0 ;
35220 wxRect temp4 ;
35221 int val5 ;
35222 int ecode5 = 0 ;
35223 PyObject * obj0 = 0 ;
35224 PyObject * obj1 = 0 ;
35225 PyObject * obj2 = 0 ;
35226 PyObject * obj3 = 0 ;
35227 PyObject * obj4 = 0 ;
35228 char * kwnames[] = {
35229 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35230 };
35231
35232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35234 if (!SWIG_IsOK(res1)) {
35235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35236 }
35237 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35238 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35239 if (!SWIG_IsOK(res2)) {
35240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35241 }
35242 arg2 = reinterpret_cast< wxWindow * >(argp2);
35243 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35244 if (!SWIG_IsOK(res3)) {
35245 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35246 }
35247 if (!argp3) {
35248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35249 }
35250 arg3 = reinterpret_cast< wxDC * >(argp3);
35251 {
35252 arg4 = &temp4;
35253 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35254 }
35255 if (obj4) {
35256 ecode5 = SWIG_AsVal_int(obj4, &val5);
35257 if (!SWIG_IsOK(ecode5)) {
35258 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
35259 }
35260 arg5 = static_cast< int >(val5);
35261 }
35262 {
35263 PyThreadState* __tstate = wxPyBeginAllowThreads();
35264 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35265 wxPyEndAllowThreads(__tstate);
35266 if (PyErr_Occurred()) SWIG_fail;
35267 }
35268 resultobj = SWIG_Py_Void();
35269 return resultobj;
35270 fail:
35271 return NULL;
35272 }
35273
35274
35275 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35276 PyObject *resultobj = 0;
35277 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35278 wxWindow *arg2 = (wxWindow *) 0 ;
35279 wxDC *arg3 = 0 ;
35280 wxRect *arg4 = 0 ;
35281 int arg5 = (int) 0 ;
35282 void *argp1 = 0 ;
35283 int res1 = 0 ;
35284 void *argp2 = 0 ;
35285 int res2 = 0 ;
35286 void *argp3 = 0 ;
35287 int res3 = 0 ;
35288 wxRect temp4 ;
35289 int val5 ;
35290 int ecode5 = 0 ;
35291 PyObject * obj0 = 0 ;
35292 PyObject * obj1 = 0 ;
35293 PyObject * obj2 = 0 ;
35294 PyObject * obj3 = 0 ;
35295 PyObject * obj4 = 0 ;
35296 char * kwnames[] = {
35297 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35298 };
35299
35300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35302 if (!SWIG_IsOK(res1)) {
35303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35304 }
35305 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35306 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35307 if (!SWIG_IsOK(res2)) {
35308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
35309 }
35310 arg2 = reinterpret_cast< wxWindow * >(argp2);
35311 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35312 if (!SWIG_IsOK(res3)) {
35313 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35314 }
35315 if (!argp3) {
35316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35317 }
35318 arg3 = reinterpret_cast< wxDC * >(argp3);
35319 {
35320 arg4 = &temp4;
35321 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35322 }
35323 if (obj4) {
35324 ecode5 = SWIG_AsVal_int(obj4, &val5);
35325 if (!SWIG_IsOK(ecode5)) {
35326 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
35327 }
35328 arg5 = static_cast< int >(val5);
35329 }
35330 {
35331 PyThreadState* __tstate = wxPyBeginAllowThreads();
35332 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
35333 wxPyEndAllowThreads(__tstate);
35334 if (PyErr_Occurred()) SWIG_fail;
35335 }
35336 resultobj = SWIG_Py_Void();
35337 return resultobj;
35338 fail:
35339 return NULL;
35340 }
35341
35342
35343 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35344 PyObject *resultobj = 0;
35345 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35346 wxWindow *arg2 = (wxWindow *) 0 ;
35347 wxDC *arg3 = 0 ;
35348 wxRect *arg4 = 0 ;
35349 int arg5 = (int) 0 ;
35350 void *argp1 = 0 ;
35351 int res1 = 0 ;
35352 void *argp2 = 0 ;
35353 int res2 = 0 ;
35354 void *argp3 = 0 ;
35355 int res3 = 0 ;
35356 wxRect temp4 ;
35357 int val5 ;
35358 int ecode5 = 0 ;
35359 PyObject * obj0 = 0 ;
35360 PyObject * obj1 = 0 ;
35361 PyObject * obj2 = 0 ;
35362 PyObject * obj3 = 0 ;
35363 PyObject * obj4 = 0 ;
35364 char * kwnames[] = {
35365 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35366 };
35367
35368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35370 if (!SWIG_IsOK(res1)) {
35371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35372 }
35373 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35374 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35375 if (!SWIG_IsOK(res2)) {
35376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
35377 }
35378 arg2 = reinterpret_cast< wxWindow * >(argp2);
35379 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35380 if (!SWIG_IsOK(res3)) {
35381 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35382 }
35383 if (!argp3) {
35384 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35385 }
35386 arg3 = reinterpret_cast< wxDC * >(argp3);
35387 {
35388 arg4 = &temp4;
35389 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35390 }
35391 if (obj4) {
35392 ecode5 = SWIG_AsVal_int(obj4, &val5);
35393 if (!SWIG_IsOK(ecode5)) {
35394 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
35395 }
35396 arg5 = static_cast< int >(val5);
35397 }
35398 {
35399 PyThreadState* __tstate = wxPyBeginAllowThreads();
35400 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35401 wxPyEndAllowThreads(__tstate);
35402 if (PyErr_Occurred()) SWIG_fail;
35403 }
35404 resultobj = SWIG_Py_Void();
35405 return resultobj;
35406 fail:
35407 return NULL;
35408 }
35409
35410
35411 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35412 PyObject *resultobj = 0;
35413 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35414 wxWindow *arg2 = (wxWindow *) 0 ;
35415 wxDC *arg3 = 0 ;
35416 wxRect *arg4 = 0 ;
35417 int arg5 = (int) 0 ;
35418 void *argp1 = 0 ;
35419 int res1 = 0 ;
35420 void *argp2 = 0 ;
35421 int res2 = 0 ;
35422 void *argp3 = 0 ;
35423 int res3 = 0 ;
35424 wxRect temp4 ;
35425 int val5 ;
35426 int ecode5 = 0 ;
35427 PyObject * obj0 = 0 ;
35428 PyObject * obj1 = 0 ;
35429 PyObject * obj2 = 0 ;
35430 PyObject * obj3 = 0 ;
35431 PyObject * obj4 = 0 ;
35432 char * kwnames[] = {
35433 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35434 };
35435
35436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35438 if (!SWIG_IsOK(res1)) {
35439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35440 }
35441 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35442 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35443 if (!SWIG_IsOK(res2)) {
35444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35445 }
35446 arg2 = reinterpret_cast< wxWindow * >(argp2);
35447 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35448 if (!SWIG_IsOK(res3)) {
35449 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35450 }
35451 if (!argp3) {
35452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35453 }
35454 arg3 = reinterpret_cast< wxDC * >(argp3);
35455 {
35456 arg4 = &temp4;
35457 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35458 }
35459 if (obj4) {
35460 ecode5 = SWIG_AsVal_int(obj4, &val5);
35461 if (!SWIG_IsOK(ecode5)) {
35462 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35463 }
35464 arg5 = static_cast< int >(val5);
35465 }
35466 {
35467 PyThreadState* __tstate = wxPyBeginAllowThreads();
35468 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35469 wxPyEndAllowThreads(__tstate);
35470 if (PyErr_Occurred()) SWIG_fail;
35471 }
35472 resultobj = SWIG_Py_Void();
35473 return resultobj;
35474 fail:
35475 return NULL;
35476 }
35477
35478
35479 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35480 PyObject *resultobj = 0;
35481 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35482 wxWindow *arg2 = (wxWindow *) 0 ;
35483 wxDC *arg3 = 0 ;
35484 wxRect *arg4 = 0 ;
35485 int arg5 = (int) 0 ;
35486 void *argp1 = 0 ;
35487 int res1 = 0 ;
35488 void *argp2 = 0 ;
35489 int res2 = 0 ;
35490 void *argp3 = 0 ;
35491 int res3 = 0 ;
35492 wxRect temp4 ;
35493 int val5 ;
35494 int ecode5 = 0 ;
35495 PyObject * obj0 = 0 ;
35496 PyObject * obj1 = 0 ;
35497 PyObject * obj2 = 0 ;
35498 PyObject * obj3 = 0 ;
35499 PyObject * obj4 = 0 ;
35500 char * kwnames[] = {
35501 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35502 };
35503
35504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35506 if (!SWIG_IsOK(res1)) {
35507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35508 }
35509 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35510 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35511 if (!SWIG_IsOK(res2)) {
35512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
35513 }
35514 arg2 = reinterpret_cast< wxWindow * >(argp2);
35515 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35516 if (!SWIG_IsOK(res3)) {
35517 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35518 }
35519 if (!argp3) {
35520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35521 }
35522 arg3 = reinterpret_cast< wxDC * >(argp3);
35523 {
35524 arg4 = &temp4;
35525 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35526 }
35527 if (obj4) {
35528 ecode5 = SWIG_AsVal_int(obj4, &val5);
35529 if (!SWIG_IsOK(ecode5)) {
35530 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
35531 }
35532 arg5 = static_cast< int >(val5);
35533 }
35534 {
35535 PyThreadState* __tstate = wxPyBeginAllowThreads();
35536 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
35537 wxPyEndAllowThreads(__tstate);
35538 if (PyErr_Occurred()) SWIG_fail;
35539 }
35540 resultobj = SWIG_Py_Void();
35541 return resultobj;
35542 fail:
35543 return NULL;
35544 }
35545
35546
35547 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35548 PyObject *resultobj = 0;
35549 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35550 wxWindow *arg2 = (wxWindow *) 0 ;
35551 SwigValueWrapper<wxSplitterRenderParams > result;
35552 void *argp1 = 0 ;
35553 int res1 = 0 ;
35554 void *argp2 = 0 ;
35555 int res2 = 0 ;
35556 PyObject * obj0 = 0 ;
35557 PyObject * obj1 = 0 ;
35558 char * kwnames[] = {
35559 (char *) "self",(char *) "win", NULL
35560 };
35561
35562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35564 if (!SWIG_IsOK(res1)) {
35565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35566 }
35567 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35568 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35569 if (!SWIG_IsOK(res2)) {
35570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35571 }
35572 arg2 = reinterpret_cast< wxWindow * >(argp2);
35573 {
35574 PyThreadState* __tstate = wxPyBeginAllowThreads();
35575 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35576 wxPyEndAllowThreads(__tstate);
35577 if (PyErr_Occurred()) SWIG_fail;
35578 }
35579 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35580 return resultobj;
35581 fail:
35582 return NULL;
35583 }
35584
35585
35586 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35587 PyObject *resultobj = 0;
35588 wxRendererNative *result = 0 ;
35589
35590 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35591 {
35592 if (!wxPyCheckForApp()) SWIG_fail;
35593 PyThreadState* __tstate = wxPyBeginAllowThreads();
35594 {
35595 wxRendererNative &_result_ref = wxRendererNative::Get();
35596 result = (wxRendererNative *) &_result_ref;
35597 }
35598 wxPyEndAllowThreads(__tstate);
35599 if (PyErr_Occurred()) SWIG_fail;
35600 }
35601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35602 return resultobj;
35603 fail:
35604 return NULL;
35605 }
35606
35607
35608 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35609 PyObject *resultobj = 0;
35610 wxRendererNative *result = 0 ;
35611
35612 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35613 {
35614 if (!wxPyCheckForApp()) SWIG_fail;
35615 PyThreadState* __tstate = wxPyBeginAllowThreads();
35616 {
35617 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35618 result = (wxRendererNative *) &_result_ref;
35619 }
35620 wxPyEndAllowThreads(__tstate);
35621 if (PyErr_Occurred()) SWIG_fail;
35622 }
35623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35624 return resultobj;
35625 fail:
35626 return NULL;
35627 }
35628
35629
35630 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35631 PyObject *resultobj = 0;
35632 wxRendererNative *result = 0 ;
35633
35634 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35635 {
35636 if (!wxPyCheckForApp()) SWIG_fail;
35637 PyThreadState* __tstate = wxPyBeginAllowThreads();
35638 {
35639 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35640 result = (wxRendererNative *) &_result_ref;
35641 }
35642 wxPyEndAllowThreads(__tstate);
35643 if (PyErr_Occurred()) SWIG_fail;
35644 }
35645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35646 return resultobj;
35647 fail:
35648 return NULL;
35649 }
35650
35651
35652 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35653 PyObject *resultobj = 0;
35654 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35655 wxRendererNative *result = 0 ;
35656 void *argp1 = 0 ;
35657 int res1 = 0 ;
35658 PyObject * obj0 = 0 ;
35659 char * kwnames[] = {
35660 (char *) "renderer", NULL
35661 };
35662
35663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35665 if (!SWIG_IsOK(res1)) {
35666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35667 }
35668 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35669 {
35670 if (!wxPyCheckForApp()) SWIG_fail;
35671 PyThreadState* __tstate = wxPyBeginAllowThreads();
35672 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35673 wxPyEndAllowThreads(__tstate);
35674 if (PyErr_Occurred()) SWIG_fail;
35675 }
35676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35677 return resultobj;
35678 fail:
35679 return NULL;
35680 }
35681
35682
35683 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35684 PyObject *resultobj = 0;
35685 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35686 SwigValueWrapper<wxRendererVersion > result;
35687 void *argp1 = 0 ;
35688 int res1 = 0 ;
35689 PyObject *swig_obj[1] ;
35690
35691 if (!args) SWIG_fail;
35692 swig_obj[0] = args;
35693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35694 if (!SWIG_IsOK(res1)) {
35695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35696 }
35697 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35698 {
35699 PyThreadState* __tstate = wxPyBeginAllowThreads();
35700 result = ((wxRendererNative const *)arg1)->GetVersion();
35701 wxPyEndAllowThreads(__tstate);
35702 if (PyErr_Occurred()) SWIG_fail;
35703 }
35704 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35705 return resultobj;
35706 fail:
35707 return NULL;
35708 }
35709
35710
35711 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35712 PyObject *obj;
35713 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35714 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35715 return SWIG_Py_Void();
35716 }
35717
35718 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35719 PyObject *resultobj = 0;
35720 wxPseudoDC *result = 0 ;
35721
35722 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35723 {
35724 PyThreadState* __tstate = wxPyBeginAllowThreads();
35725 result = (wxPseudoDC *)new wxPseudoDC();
35726 wxPyEndAllowThreads(__tstate);
35727 if (PyErr_Occurred()) SWIG_fail;
35728 }
35729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35730 return resultobj;
35731 fail:
35732 return NULL;
35733 }
35734
35735
35736 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35737 PyObject *resultobj = 0;
35738 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35739 void *argp1 = 0 ;
35740 int res1 = 0 ;
35741 PyObject *swig_obj[1] ;
35742
35743 if (!args) SWIG_fail;
35744 swig_obj[0] = args;
35745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35746 if (!SWIG_IsOK(res1)) {
35747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35748 }
35749 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35750 {
35751 PyThreadState* __tstate = wxPyBeginAllowThreads();
35752 (arg1)->BeginDrawing();
35753 wxPyEndAllowThreads(__tstate);
35754 if (PyErr_Occurred()) SWIG_fail;
35755 }
35756 resultobj = SWIG_Py_Void();
35757 return resultobj;
35758 fail:
35759 return NULL;
35760 }
35761
35762
35763 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35764 PyObject *resultobj = 0;
35765 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35766 void *argp1 = 0 ;
35767 int res1 = 0 ;
35768 PyObject *swig_obj[1] ;
35769
35770 if (!args) SWIG_fail;
35771 swig_obj[0] = args;
35772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35773 if (!SWIG_IsOK(res1)) {
35774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35775 }
35776 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35777 {
35778 PyThreadState* __tstate = wxPyBeginAllowThreads();
35779 (arg1)->EndDrawing();
35780 wxPyEndAllowThreads(__tstate);
35781 if (PyErr_Occurred()) SWIG_fail;
35782 }
35783 resultobj = SWIG_Py_Void();
35784 return resultobj;
35785 fail:
35786 return NULL;
35787 }
35788
35789
35790 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35791 PyObject *resultobj = 0;
35792 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35793 void *argp1 = 0 ;
35794 int res1 = 0 ;
35795 PyObject *swig_obj[1] ;
35796
35797 if (!args) SWIG_fail;
35798 swig_obj[0] = args;
35799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35800 if (!SWIG_IsOK(res1)) {
35801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35802 }
35803 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35804 {
35805 PyThreadState* __tstate = wxPyBeginAllowThreads();
35806 delete arg1;
35807
35808 wxPyEndAllowThreads(__tstate);
35809 if (PyErr_Occurred()) SWIG_fail;
35810 }
35811 resultobj = SWIG_Py_Void();
35812 return resultobj;
35813 fail:
35814 return NULL;
35815 }
35816
35817
35818 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35819 PyObject *resultobj = 0;
35820 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35821 void *argp1 = 0 ;
35822 int res1 = 0 ;
35823 PyObject *swig_obj[1] ;
35824
35825 if (!args) SWIG_fail;
35826 swig_obj[0] = args;
35827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35828 if (!SWIG_IsOK(res1)) {
35829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35830 }
35831 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35832 {
35833 PyThreadState* __tstate = wxPyBeginAllowThreads();
35834 (arg1)->RemoveAll();
35835 wxPyEndAllowThreads(__tstate);
35836 if (PyErr_Occurred()) SWIG_fail;
35837 }
35838 resultobj = SWIG_Py_Void();
35839 return resultobj;
35840 fail:
35841 return NULL;
35842 }
35843
35844
35845 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35846 PyObject *resultobj = 0;
35847 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35848 int result;
35849 void *argp1 = 0 ;
35850 int res1 = 0 ;
35851 PyObject *swig_obj[1] ;
35852
35853 if (!args) SWIG_fail;
35854 swig_obj[0] = args;
35855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35856 if (!SWIG_IsOK(res1)) {
35857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35858 }
35859 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35860 {
35861 PyThreadState* __tstate = wxPyBeginAllowThreads();
35862 result = (int)(arg1)->GetLen();
35863 wxPyEndAllowThreads(__tstate);
35864 if (PyErr_Occurred()) SWIG_fail;
35865 }
35866 resultobj = SWIG_From_int(static_cast< int >(result));
35867 return resultobj;
35868 fail:
35869 return NULL;
35870 }
35871
35872
35873 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35874 PyObject *resultobj = 0;
35875 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35876 int arg2 ;
35877 void *argp1 = 0 ;
35878 int res1 = 0 ;
35879 int val2 ;
35880 int ecode2 = 0 ;
35881 PyObject * obj0 = 0 ;
35882 PyObject * obj1 = 0 ;
35883 char * kwnames[] = {
35884 (char *) "self",(char *) "id", NULL
35885 };
35886
35887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35889 if (!SWIG_IsOK(res1)) {
35890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35891 }
35892 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35893 ecode2 = SWIG_AsVal_int(obj1, &val2);
35894 if (!SWIG_IsOK(ecode2)) {
35895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35896 }
35897 arg2 = static_cast< int >(val2);
35898 {
35899 PyThreadState* __tstate = wxPyBeginAllowThreads();
35900 (arg1)->SetId(arg2);
35901 wxPyEndAllowThreads(__tstate);
35902 if (PyErr_Occurred()) SWIG_fail;
35903 }
35904 resultobj = SWIG_Py_Void();
35905 return resultobj;
35906 fail:
35907 return NULL;
35908 }
35909
35910
35911 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35912 PyObject *resultobj = 0;
35913 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35914 int arg2 ;
35915 void *argp1 = 0 ;
35916 int res1 = 0 ;
35917 int val2 ;
35918 int ecode2 = 0 ;
35919 PyObject * obj0 = 0 ;
35920 PyObject * obj1 = 0 ;
35921 char * kwnames[] = {
35922 (char *) "self",(char *) "id", NULL
35923 };
35924
35925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35927 if (!SWIG_IsOK(res1)) {
35928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35929 }
35930 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35931 ecode2 = SWIG_AsVal_int(obj1, &val2);
35932 if (!SWIG_IsOK(ecode2)) {
35933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35934 }
35935 arg2 = static_cast< int >(val2);
35936 {
35937 PyThreadState* __tstate = wxPyBeginAllowThreads();
35938 (arg1)->ClearId(arg2);
35939 wxPyEndAllowThreads(__tstate);
35940 if (PyErr_Occurred()) SWIG_fail;
35941 }
35942 resultobj = SWIG_Py_Void();
35943 return resultobj;
35944 fail:
35945 return NULL;
35946 }
35947
35948
35949 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35950 PyObject *resultobj = 0;
35951 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35952 int arg2 ;
35953 void *argp1 = 0 ;
35954 int res1 = 0 ;
35955 int val2 ;
35956 int ecode2 = 0 ;
35957 PyObject * obj0 = 0 ;
35958 PyObject * obj1 = 0 ;
35959 char * kwnames[] = {
35960 (char *) "self",(char *) "id", NULL
35961 };
35962
35963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35965 if (!SWIG_IsOK(res1)) {
35966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35967 }
35968 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35969 ecode2 = SWIG_AsVal_int(obj1, &val2);
35970 if (!SWIG_IsOK(ecode2)) {
35971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35972 }
35973 arg2 = static_cast< int >(val2);
35974 {
35975 PyThreadState* __tstate = wxPyBeginAllowThreads();
35976 (arg1)->RemoveId(arg2);
35977 wxPyEndAllowThreads(__tstate);
35978 if (PyErr_Occurred()) SWIG_fail;
35979 }
35980 resultobj = SWIG_Py_Void();
35981 return resultobj;
35982 fail:
35983 return NULL;
35984 }
35985
35986
35987 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35988 PyObject *resultobj = 0;
35989 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35990 int arg2 ;
35991 int arg3 ;
35992 int arg4 ;
35993 void *argp1 = 0 ;
35994 int res1 = 0 ;
35995 int val2 ;
35996 int ecode2 = 0 ;
35997 int val3 ;
35998 int ecode3 = 0 ;
35999 int val4 ;
36000 int ecode4 = 0 ;
36001 PyObject * obj0 = 0 ;
36002 PyObject * obj1 = 0 ;
36003 PyObject * obj2 = 0 ;
36004 PyObject * obj3 = 0 ;
36005 char * kwnames[] = {
36006 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
36007 };
36008
36009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36011 if (!SWIG_IsOK(res1)) {
36012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36013 }
36014 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36015 ecode2 = SWIG_AsVal_int(obj1, &val2);
36016 if (!SWIG_IsOK(ecode2)) {
36017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
36018 }
36019 arg2 = static_cast< int >(val2);
36020 ecode3 = SWIG_AsVal_int(obj2, &val3);
36021 if (!SWIG_IsOK(ecode3)) {
36022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
36023 }
36024 arg3 = static_cast< int >(val3);
36025 ecode4 = SWIG_AsVal_int(obj3, &val4);
36026 if (!SWIG_IsOK(ecode4)) {
36027 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
36028 }
36029 arg4 = static_cast< int >(val4);
36030 {
36031 PyThreadState* __tstate = wxPyBeginAllowThreads();
36032 (arg1)->TranslateId(arg2,arg3,arg4);
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_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36044 PyObject *resultobj = 0;
36045 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36046 int arg2 ;
36047 bool arg3 = (bool) true ;
36048 void *argp1 = 0 ;
36049 int res1 = 0 ;
36050 int val2 ;
36051 int ecode2 = 0 ;
36052 bool val3 ;
36053 int ecode3 = 0 ;
36054 PyObject * obj0 = 0 ;
36055 PyObject * obj1 = 0 ;
36056 PyObject * obj2 = 0 ;
36057 char * kwnames[] = {
36058 (char *) "self",(char *) "id",(char *) "greyout", NULL
36059 };
36060
36061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36063 if (!SWIG_IsOK(res1)) {
36064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36065 }
36066 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36067 ecode2 = SWIG_AsVal_int(obj1, &val2);
36068 if (!SWIG_IsOK(ecode2)) {
36069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36070 }
36071 arg2 = static_cast< int >(val2);
36072 if (obj2) {
36073 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36074 if (!SWIG_IsOK(ecode3)) {
36075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
36076 }
36077 arg3 = static_cast< bool >(val3);
36078 }
36079 {
36080 PyThreadState* __tstate = wxPyBeginAllowThreads();
36081 (arg1)->SetIdGreyedOut(arg2,arg3);
36082 wxPyEndAllowThreads(__tstate);
36083 if (PyErr_Occurred()) SWIG_fail;
36084 }
36085 resultobj = SWIG_Py_Void();
36086 return resultobj;
36087 fail:
36088 return NULL;
36089 }
36090
36091
36092 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36093 PyObject *resultobj = 0;
36094 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36095 int arg2 ;
36096 bool result;
36097 void *argp1 = 0 ;
36098 int res1 = 0 ;
36099 int val2 ;
36100 int ecode2 = 0 ;
36101 PyObject * obj0 = 0 ;
36102 PyObject * obj1 = 0 ;
36103 char * kwnames[] = {
36104 (char *) "self",(char *) "id", NULL
36105 };
36106
36107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
36108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36109 if (!SWIG_IsOK(res1)) {
36110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36111 }
36112 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36113 ecode2 = SWIG_AsVal_int(obj1, &val2);
36114 if (!SWIG_IsOK(ecode2)) {
36115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36116 }
36117 arg2 = static_cast< int >(val2);
36118 {
36119 PyThreadState* __tstate = wxPyBeginAllowThreads();
36120 result = (bool)(arg1)->GetIdGreyedOut(arg2);
36121 wxPyEndAllowThreads(__tstate);
36122 if (PyErr_Occurred()) SWIG_fail;
36123 }
36124 {
36125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36126 }
36127 return resultobj;
36128 fail:
36129 return NULL;
36130 }
36131
36132
36133 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36134 PyObject *resultobj = 0;
36135 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36136 int arg2 ;
36137 int arg3 ;
36138 int arg4 = (int) 1 ;
36139 wxColor const &arg5_defvalue = *wxWHITE ;
36140 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
36141 PyObject *result = 0 ;
36142 void *argp1 = 0 ;
36143 int res1 = 0 ;
36144 int val2 ;
36145 int ecode2 = 0 ;
36146 int val3 ;
36147 int ecode3 = 0 ;
36148 int val4 ;
36149 int ecode4 = 0 ;
36150 void *argp5 = 0 ;
36151 int res5 = 0 ;
36152 PyObject * obj0 = 0 ;
36153 PyObject * obj1 = 0 ;
36154 PyObject * obj2 = 0 ;
36155 PyObject * obj3 = 0 ;
36156 PyObject * obj4 = 0 ;
36157 char * kwnames[] = {
36158 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
36159 };
36160
36161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36163 if (!SWIG_IsOK(res1)) {
36164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36165 }
36166 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36167 ecode2 = SWIG_AsVal_int(obj1, &val2);
36168 if (!SWIG_IsOK(ecode2)) {
36169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
36170 }
36171 arg2 = static_cast< int >(val2);
36172 ecode3 = SWIG_AsVal_int(obj2, &val3);
36173 if (!SWIG_IsOK(ecode3)) {
36174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
36175 }
36176 arg3 = static_cast< int >(val3);
36177 if (obj3) {
36178 ecode4 = SWIG_AsVal_int(obj3, &val4);
36179 if (!SWIG_IsOK(ecode4)) {
36180 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
36181 }
36182 arg4 = static_cast< int >(val4);
36183 }
36184 if (obj4) {
36185 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
36186 if (!SWIG_IsOK(res5)) {
36187 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
36188 }
36189 if (!argp5) {
36190 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
36191 }
36192 arg5 = reinterpret_cast< wxColor * >(argp5);
36193 }
36194 {
36195 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
36196 if (PyErr_Occurred()) SWIG_fail;
36197 }
36198 resultobj = result;
36199 return resultobj;
36200 fail:
36201 return NULL;
36202 }
36203
36204
36205 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36206 PyObject *resultobj = 0;
36207 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36208 int arg2 ;
36209 int arg3 ;
36210 PyObject *result = 0 ;
36211 void *argp1 = 0 ;
36212 int res1 = 0 ;
36213 int val2 ;
36214 int ecode2 = 0 ;
36215 int val3 ;
36216 int ecode3 = 0 ;
36217 PyObject * obj0 = 0 ;
36218 PyObject * obj1 = 0 ;
36219 PyObject * obj2 = 0 ;
36220 char * kwnames[] = {
36221 (char *) "self",(char *) "x",(char *) "y", NULL
36222 };
36223
36224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36226 if (!SWIG_IsOK(res1)) {
36227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36228 }
36229 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36230 ecode2 = SWIG_AsVal_int(obj1, &val2);
36231 if (!SWIG_IsOK(ecode2)) {
36232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
36233 }
36234 arg2 = static_cast< int >(val2);
36235 ecode3 = SWIG_AsVal_int(obj2, &val3);
36236 if (!SWIG_IsOK(ecode3)) {
36237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
36238 }
36239 arg3 = static_cast< int >(val3);
36240 {
36241 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
36242 if (PyErr_Occurred()) SWIG_fail;
36243 }
36244 resultobj = result;
36245 return resultobj;
36246 fail:
36247 return NULL;
36248 }
36249
36250
36251 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36252 PyObject *resultobj = 0;
36253 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36254 int arg2 ;
36255 wxDC *arg3 = (wxDC *) 0 ;
36256 void *argp1 = 0 ;
36257 int res1 = 0 ;
36258 int val2 ;
36259 int ecode2 = 0 ;
36260 void *argp3 = 0 ;
36261 int res3 = 0 ;
36262 PyObject * obj0 = 0 ;
36263 PyObject * obj1 = 0 ;
36264 PyObject * obj2 = 0 ;
36265 char * kwnames[] = {
36266 (char *) "self",(char *) "id",(char *) "dc", NULL
36267 };
36268
36269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36271 if (!SWIG_IsOK(res1)) {
36272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36273 }
36274 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36275 ecode2 = SWIG_AsVal_int(obj1, &val2);
36276 if (!SWIG_IsOK(ecode2)) {
36277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
36278 }
36279 arg2 = static_cast< int >(val2);
36280 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
36281 if (!SWIG_IsOK(res3)) {
36282 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
36283 }
36284 arg3 = reinterpret_cast< wxDC * >(argp3);
36285 {
36286 PyThreadState* __tstate = wxPyBeginAllowThreads();
36287 (arg1)->DrawIdToDC(arg2,arg3);
36288 wxPyEndAllowThreads(__tstate);
36289 if (PyErr_Occurred()) SWIG_fail;
36290 }
36291 resultobj = SWIG_Py_Void();
36292 return resultobj;
36293 fail:
36294 return NULL;
36295 }
36296
36297
36298 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36299 PyObject *resultobj = 0;
36300 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36301 int arg2 ;
36302 wxRect *arg3 = 0 ;
36303 void *argp1 = 0 ;
36304 int res1 = 0 ;
36305 int val2 ;
36306 int ecode2 = 0 ;
36307 wxRect temp3 ;
36308 PyObject * obj0 = 0 ;
36309 PyObject * obj1 = 0 ;
36310 PyObject * obj2 = 0 ;
36311 char * kwnames[] = {
36312 (char *) "self",(char *) "id",(char *) "rect", NULL
36313 };
36314
36315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36317 if (!SWIG_IsOK(res1)) {
36318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36319 }
36320 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36321 ecode2 = SWIG_AsVal_int(obj1, &val2);
36322 if (!SWIG_IsOK(ecode2)) {
36323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
36324 }
36325 arg2 = static_cast< int >(val2);
36326 {
36327 arg3 = &temp3;
36328 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36329 }
36330 {
36331 PyThreadState* __tstate = wxPyBeginAllowThreads();
36332 (arg1)->SetIdBounds(arg2,*arg3);
36333 wxPyEndAllowThreads(__tstate);
36334 if (PyErr_Occurred()) SWIG_fail;
36335 }
36336 resultobj = SWIG_Py_Void();
36337 return resultobj;
36338 fail:
36339 return NULL;
36340 }
36341
36342
36343 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36344 PyObject *resultobj = 0;
36345 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36346 int arg2 ;
36347 wxRect result;
36348 void *argp1 = 0 ;
36349 int res1 = 0 ;
36350 int val2 ;
36351 int ecode2 = 0 ;
36352 PyObject * obj0 = 0 ;
36353 PyObject * obj1 = 0 ;
36354 char * kwnames[] = {
36355 (char *) "self",(char *) "id", NULL
36356 };
36357
36358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
36359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36360 if (!SWIG_IsOK(res1)) {
36361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36362 }
36363 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36364 ecode2 = SWIG_AsVal_int(obj1, &val2);
36365 if (!SWIG_IsOK(ecode2)) {
36366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
36367 }
36368 arg2 = static_cast< int >(val2);
36369 {
36370 PyThreadState* __tstate = wxPyBeginAllowThreads();
36371 result = wxPseudoDC_GetIdBounds(arg1,arg2);
36372 wxPyEndAllowThreads(__tstate);
36373 if (PyErr_Occurred()) SWIG_fail;
36374 }
36375 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36376 return resultobj;
36377 fail:
36378 return NULL;
36379 }
36380
36381
36382 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36383 PyObject *resultobj = 0;
36384 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36385 wxDC *arg2 = (wxDC *) 0 ;
36386 wxRect *arg3 = 0 ;
36387 void *argp1 = 0 ;
36388 int res1 = 0 ;
36389 void *argp2 = 0 ;
36390 int res2 = 0 ;
36391 wxRect temp3 ;
36392 PyObject * obj0 = 0 ;
36393 PyObject * obj1 = 0 ;
36394 PyObject * obj2 = 0 ;
36395 char * kwnames[] = {
36396 (char *) "self",(char *) "dc",(char *) "rect", NULL
36397 };
36398
36399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36401 if (!SWIG_IsOK(res1)) {
36402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36403 }
36404 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36405 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36406 if (!SWIG_IsOK(res2)) {
36407 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36408 }
36409 arg2 = reinterpret_cast< wxDC * >(argp2);
36410 {
36411 arg3 = &temp3;
36412 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36413 }
36414 {
36415 PyThreadState* __tstate = wxPyBeginAllowThreads();
36416 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36417 wxPyEndAllowThreads(__tstate);
36418 if (PyErr_Occurred()) SWIG_fail;
36419 }
36420 resultobj = SWIG_Py_Void();
36421 return resultobj;
36422 fail:
36423 return NULL;
36424 }
36425
36426
36427 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36428 PyObject *resultobj = 0;
36429 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36430 wxDC *arg2 = (wxDC *) 0 ;
36431 wxRegion *arg3 = 0 ;
36432 void *argp1 = 0 ;
36433 int res1 = 0 ;
36434 void *argp2 = 0 ;
36435 int res2 = 0 ;
36436 void *argp3 = 0 ;
36437 int res3 = 0 ;
36438 PyObject * obj0 = 0 ;
36439 PyObject * obj1 = 0 ;
36440 PyObject * obj2 = 0 ;
36441 char * kwnames[] = {
36442 (char *) "self",(char *) "dc",(char *) "region", NULL
36443 };
36444
36445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36447 if (!SWIG_IsOK(res1)) {
36448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36449 }
36450 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36451 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36452 if (!SWIG_IsOK(res2)) {
36453 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36454 }
36455 arg2 = reinterpret_cast< wxDC * >(argp2);
36456 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36457 if (!SWIG_IsOK(res3)) {
36458 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36459 }
36460 if (!argp3) {
36461 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36462 }
36463 arg3 = reinterpret_cast< wxRegion * >(argp3);
36464 {
36465 PyThreadState* __tstate = wxPyBeginAllowThreads();
36466 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36467 wxPyEndAllowThreads(__tstate);
36468 if (PyErr_Occurred()) SWIG_fail;
36469 }
36470 resultobj = SWIG_Py_Void();
36471 return resultobj;
36472 fail:
36473 return NULL;
36474 }
36475
36476
36477 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36478 PyObject *resultobj = 0;
36479 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36480 wxDC *arg2 = (wxDC *) 0 ;
36481 void *argp1 = 0 ;
36482 int res1 = 0 ;
36483 void *argp2 = 0 ;
36484 int res2 = 0 ;
36485 PyObject * obj0 = 0 ;
36486 PyObject * obj1 = 0 ;
36487 char * kwnames[] = {
36488 (char *) "self",(char *) "dc", NULL
36489 };
36490
36491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36493 if (!SWIG_IsOK(res1)) {
36494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36495 }
36496 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36497 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36498 if (!SWIG_IsOK(res2)) {
36499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36500 }
36501 arg2 = reinterpret_cast< wxDC * >(argp2);
36502 {
36503 PyThreadState* __tstate = wxPyBeginAllowThreads();
36504 (arg1)->DrawToDC(arg2);
36505 wxPyEndAllowThreads(__tstate);
36506 if (PyErr_Occurred()) SWIG_fail;
36507 }
36508 resultobj = SWIG_Py_Void();
36509 return resultobj;
36510 fail:
36511 return NULL;
36512 }
36513
36514
36515 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36516 PyObject *resultobj = 0;
36517 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36518 int arg2 ;
36519 int arg3 ;
36520 wxColour *arg4 = 0 ;
36521 int arg5 = (int) wxFLOOD_SURFACE ;
36522 void *argp1 = 0 ;
36523 int res1 = 0 ;
36524 int val2 ;
36525 int ecode2 = 0 ;
36526 int val3 ;
36527 int ecode3 = 0 ;
36528 wxColour temp4 ;
36529 int val5 ;
36530 int ecode5 = 0 ;
36531 PyObject * obj0 = 0 ;
36532 PyObject * obj1 = 0 ;
36533 PyObject * obj2 = 0 ;
36534 PyObject * obj3 = 0 ;
36535 PyObject * obj4 = 0 ;
36536 char * kwnames[] = {
36537 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36538 };
36539
36540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36542 if (!SWIG_IsOK(res1)) {
36543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36544 }
36545 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36546 ecode2 = SWIG_AsVal_int(obj1, &val2);
36547 if (!SWIG_IsOK(ecode2)) {
36548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36549 }
36550 arg2 = static_cast< int >(val2);
36551 ecode3 = SWIG_AsVal_int(obj2, &val3);
36552 if (!SWIG_IsOK(ecode3)) {
36553 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36554 }
36555 arg3 = static_cast< int >(val3);
36556 {
36557 arg4 = &temp4;
36558 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36559 }
36560 if (obj4) {
36561 ecode5 = SWIG_AsVal_int(obj4, &val5);
36562 if (!SWIG_IsOK(ecode5)) {
36563 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36564 }
36565 arg5 = static_cast< int >(val5);
36566 }
36567 {
36568 PyThreadState* __tstate = wxPyBeginAllowThreads();
36569 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36570 wxPyEndAllowThreads(__tstate);
36571 if (PyErr_Occurred()) SWIG_fail;
36572 }
36573 resultobj = SWIG_Py_Void();
36574 return resultobj;
36575 fail:
36576 return NULL;
36577 }
36578
36579
36580 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36581 PyObject *resultobj = 0;
36582 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36583 wxPoint *arg2 = 0 ;
36584 wxColour *arg3 = 0 ;
36585 int arg4 = (int) wxFLOOD_SURFACE ;
36586 void *argp1 = 0 ;
36587 int res1 = 0 ;
36588 wxPoint temp2 ;
36589 wxColour temp3 ;
36590 int val4 ;
36591 int ecode4 = 0 ;
36592 PyObject * obj0 = 0 ;
36593 PyObject * obj1 = 0 ;
36594 PyObject * obj2 = 0 ;
36595 PyObject * obj3 = 0 ;
36596 char * kwnames[] = {
36597 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36598 };
36599
36600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36602 if (!SWIG_IsOK(res1)) {
36603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36604 }
36605 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36606 {
36607 arg2 = &temp2;
36608 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36609 }
36610 {
36611 arg3 = &temp3;
36612 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36613 }
36614 if (obj3) {
36615 ecode4 = SWIG_AsVal_int(obj3, &val4);
36616 if (!SWIG_IsOK(ecode4)) {
36617 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36618 }
36619 arg4 = static_cast< int >(val4);
36620 }
36621 {
36622 PyThreadState* __tstate = wxPyBeginAllowThreads();
36623 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36624 wxPyEndAllowThreads(__tstate);
36625 if (PyErr_Occurred()) SWIG_fail;
36626 }
36627 resultobj = SWIG_Py_Void();
36628 return resultobj;
36629 fail:
36630 return NULL;
36631 }
36632
36633
36634 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36635 PyObject *resultobj = 0;
36636 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36637 int arg2 ;
36638 int arg3 ;
36639 int arg4 ;
36640 int arg5 ;
36641 void *argp1 = 0 ;
36642 int res1 = 0 ;
36643 int val2 ;
36644 int ecode2 = 0 ;
36645 int val3 ;
36646 int ecode3 = 0 ;
36647 int val4 ;
36648 int ecode4 = 0 ;
36649 int val5 ;
36650 int ecode5 = 0 ;
36651 PyObject * obj0 = 0 ;
36652 PyObject * obj1 = 0 ;
36653 PyObject * obj2 = 0 ;
36654 PyObject * obj3 = 0 ;
36655 PyObject * obj4 = 0 ;
36656 char * kwnames[] = {
36657 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36658 };
36659
36660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36662 if (!SWIG_IsOK(res1)) {
36663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36664 }
36665 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36666 ecode2 = SWIG_AsVal_int(obj1, &val2);
36667 if (!SWIG_IsOK(ecode2)) {
36668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36669 }
36670 arg2 = static_cast< int >(val2);
36671 ecode3 = SWIG_AsVal_int(obj2, &val3);
36672 if (!SWIG_IsOK(ecode3)) {
36673 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36674 }
36675 arg3 = static_cast< int >(val3);
36676 ecode4 = SWIG_AsVal_int(obj3, &val4);
36677 if (!SWIG_IsOK(ecode4)) {
36678 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36679 }
36680 arg4 = static_cast< int >(val4);
36681 ecode5 = SWIG_AsVal_int(obj4, &val5);
36682 if (!SWIG_IsOK(ecode5)) {
36683 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36684 }
36685 arg5 = static_cast< int >(val5);
36686 {
36687 PyThreadState* __tstate = wxPyBeginAllowThreads();
36688 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36689 wxPyEndAllowThreads(__tstate);
36690 if (PyErr_Occurred()) SWIG_fail;
36691 }
36692 resultobj = SWIG_Py_Void();
36693 return resultobj;
36694 fail:
36695 return NULL;
36696 }
36697
36698
36699 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36700 PyObject *resultobj = 0;
36701 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36702 wxPoint *arg2 = 0 ;
36703 wxPoint *arg3 = 0 ;
36704 void *argp1 = 0 ;
36705 int res1 = 0 ;
36706 wxPoint temp2 ;
36707 wxPoint temp3 ;
36708 PyObject * obj0 = 0 ;
36709 PyObject * obj1 = 0 ;
36710 PyObject * obj2 = 0 ;
36711 char * kwnames[] = {
36712 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36713 };
36714
36715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36717 if (!SWIG_IsOK(res1)) {
36718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36719 }
36720 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36721 {
36722 arg2 = &temp2;
36723 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36724 }
36725 {
36726 arg3 = &temp3;
36727 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36728 }
36729 {
36730 PyThreadState* __tstate = wxPyBeginAllowThreads();
36731 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36732 wxPyEndAllowThreads(__tstate);
36733 if (PyErr_Occurred()) SWIG_fail;
36734 }
36735 resultobj = SWIG_Py_Void();
36736 return resultobj;
36737 fail:
36738 return NULL;
36739 }
36740
36741
36742 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36743 PyObject *resultobj = 0;
36744 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36745 int arg2 ;
36746 int arg3 ;
36747 void *argp1 = 0 ;
36748 int res1 = 0 ;
36749 int val2 ;
36750 int ecode2 = 0 ;
36751 int val3 ;
36752 int ecode3 = 0 ;
36753 PyObject * obj0 = 0 ;
36754 PyObject * obj1 = 0 ;
36755 PyObject * obj2 = 0 ;
36756 char * kwnames[] = {
36757 (char *) "self",(char *) "x",(char *) "y", NULL
36758 };
36759
36760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36762 if (!SWIG_IsOK(res1)) {
36763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36764 }
36765 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36766 ecode2 = SWIG_AsVal_int(obj1, &val2);
36767 if (!SWIG_IsOK(ecode2)) {
36768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36769 }
36770 arg2 = static_cast< int >(val2);
36771 ecode3 = SWIG_AsVal_int(obj2, &val3);
36772 if (!SWIG_IsOK(ecode3)) {
36773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36774 }
36775 arg3 = static_cast< int >(val3);
36776 {
36777 PyThreadState* __tstate = wxPyBeginAllowThreads();
36778 (arg1)->CrossHair(arg2,arg3);
36779 wxPyEndAllowThreads(__tstate);
36780 if (PyErr_Occurred()) SWIG_fail;
36781 }
36782 resultobj = SWIG_Py_Void();
36783 return resultobj;
36784 fail:
36785 return NULL;
36786 }
36787
36788
36789 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36790 PyObject *resultobj = 0;
36791 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36792 wxPoint *arg2 = 0 ;
36793 void *argp1 = 0 ;
36794 int res1 = 0 ;
36795 wxPoint temp2 ;
36796 PyObject * obj0 = 0 ;
36797 PyObject * obj1 = 0 ;
36798 char * kwnames[] = {
36799 (char *) "self",(char *) "pt", NULL
36800 };
36801
36802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36804 if (!SWIG_IsOK(res1)) {
36805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36806 }
36807 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36808 {
36809 arg2 = &temp2;
36810 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36811 }
36812 {
36813 PyThreadState* __tstate = wxPyBeginAllowThreads();
36814 (arg1)->CrossHair((wxPoint const &)*arg2);
36815 wxPyEndAllowThreads(__tstate);
36816 if (PyErr_Occurred()) SWIG_fail;
36817 }
36818 resultobj = SWIG_Py_Void();
36819 return resultobj;
36820 fail:
36821 return NULL;
36822 }
36823
36824
36825 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36826 PyObject *resultobj = 0;
36827 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36828 int arg2 ;
36829 int arg3 ;
36830 int arg4 ;
36831 int arg5 ;
36832 int arg6 ;
36833 int arg7 ;
36834 void *argp1 = 0 ;
36835 int res1 = 0 ;
36836 int val2 ;
36837 int ecode2 = 0 ;
36838 int val3 ;
36839 int ecode3 = 0 ;
36840 int val4 ;
36841 int ecode4 = 0 ;
36842 int val5 ;
36843 int ecode5 = 0 ;
36844 int val6 ;
36845 int ecode6 = 0 ;
36846 int val7 ;
36847 int ecode7 = 0 ;
36848 PyObject * obj0 = 0 ;
36849 PyObject * obj1 = 0 ;
36850 PyObject * obj2 = 0 ;
36851 PyObject * obj3 = 0 ;
36852 PyObject * obj4 = 0 ;
36853 PyObject * obj5 = 0 ;
36854 PyObject * obj6 = 0 ;
36855 char * kwnames[] = {
36856 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36857 };
36858
36859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36861 if (!SWIG_IsOK(res1)) {
36862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36863 }
36864 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36865 ecode2 = SWIG_AsVal_int(obj1, &val2);
36866 if (!SWIG_IsOK(ecode2)) {
36867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36868 }
36869 arg2 = static_cast< int >(val2);
36870 ecode3 = SWIG_AsVal_int(obj2, &val3);
36871 if (!SWIG_IsOK(ecode3)) {
36872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36873 }
36874 arg3 = static_cast< int >(val3);
36875 ecode4 = SWIG_AsVal_int(obj3, &val4);
36876 if (!SWIG_IsOK(ecode4)) {
36877 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36878 }
36879 arg4 = static_cast< int >(val4);
36880 ecode5 = SWIG_AsVal_int(obj4, &val5);
36881 if (!SWIG_IsOK(ecode5)) {
36882 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36883 }
36884 arg5 = static_cast< int >(val5);
36885 ecode6 = SWIG_AsVal_int(obj5, &val6);
36886 if (!SWIG_IsOK(ecode6)) {
36887 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36888 }
36889 arg6 = static_cast< int >(val6);
36890 ecode7 = SWIG_AsVal_int(obj6, &val7);
36891 if (!SWIG_IsOK(ecode7)) {
36892 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36893 }
36894 arg7 = static_cast< int >(val7);
36895 {
36896 PyThreadState* __tstate = wxPyBeginAllowThreads();
36897 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36898 wxPyEndAllowThreads(__tstate);
36899 if (PyErr_Occurred()) SWIG_fail;
36900 }
36901 resultobj = SWIG_Py_Void();
36902 return resultobj;
36903 fail:
36904 return NULL;
36905 }
36906
36907
36908 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36909 PyObject *resultobj = 0;
36910 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36911 wxPoint *arg2 = 0 ;
36912 wxPoint *arg3 = 0 ;
36913 wxPoint *arg4 = 0 ;
36914 void *argp1 = 0 ;
36915 int res1 = 0 ;
36916 wxPoint temp2 ;
36917 wxPoint temp3 ;
36918 wxPoint temp4 ;
36919 PyObject * obj0 = 0 ;
36920 PyObject * obj1 = 0 ;
36921 PyObject * obj2 = 0 ;
36922 PyObject * obj3 = 0 ;
36923 char * kwnames[] = {
36924 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36925 };
36926
36927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36929 if (!SWIG_IsOK(res1)) {
36930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36931 }
36932 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36933 {
36934 arg2 = &temp2;
36935 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36936 }
36937 {
36938 arg3 = &temp3;
36939 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36940 }
36941 {
36942 arg4 = &temp4;
36943 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36944 }
36945 {
36946 PyThreadState* __tstate = wxPyBeginAllowThreads();
36947 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36948 wxPyEndAllowThreads(__tstate);
36949 if (PyErr_Occurred()) SWIG_fail;
36950 }
36951 resultobj = SWIG_Py_Void();
36952 return resultobj;
36953 fail:
36954 return NULL;
36955 }
36956
36957
36958 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36959 PyObject *resultobj = 0;
36960 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36961 int arg2 ;
36962 int arg3 ;
36963 int arg4 ;
36964 int arg5 ;
36965 void *argp1 = 0 ;
36966 int res1 = 0 ;
36967 int val2 ;
36968 int ecode2 = 0 ;
36969 int val3 ;
36970 int ecode3 = 0 ;
36971 int val4 ;
36972 int ecode4 = 0 ;
36973 int val5 ;
36974 int ecode5 = 0 ;
36975 PyObject * obj0 = 0 ;
36976 PyObject * obj1 = 0 ;
36977 PyObject * obj2 = 0 ;
36978 PyObject * obj3 = 0 ;
36979 PyObject * obj4 = 0 ;
36980 char * kwnames[] = {
36981 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36982 };
36983
36984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36986 if (!SWIG_IsOK(res1)) {
36987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36988 }
36989 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36990 ecode2 = SWIG_AsVal_int(obj1, &val2);
36991 if (!SWIG_IsOK(ecode2)) {
36992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36993 }
36994 arg2 = static_cast< int >(val2);
36995 ecode3 = SWIG_AsVal_int(obj2, &val3);
36996 if (!SWIG_IsOK(ecode3)) {
36997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36998 }
36999 arg3 = static_cast< int >(val3);
37000 ecode4 = SWIG_AsVal_int(obj3, &val4);
37001 if (!SWIG_IsOK(ecode4)) {
37002 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
37003 }
37004 arg4 = static_cast< int >(val4);
37005 ecode5 = SWIG_AsVal_int(obj4, &val5);
37006 if (!SWIG_IsOK(ecode5)) {
37007 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
37008 }
37009 arg5 = static_cast< int >(val5);
37010 {
37011 PyThreadState* __tstate = wxPyBeginAllowThreads();
37012 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
37013 wxPyEndAllowThreads(__tstate);
37014 if (PyErr_Occurred()) SWIG_fail;
37015 }
37016 resultobj = SWIG_Py_Void();
37017 return resultobj;
37018 fail:
37019 return NULL;
37020 }
37021
37022
37023 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37024 PyObject *resultobj = 0;
37025 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37026 wxRect *arg2 = 0 ;
37027 void *argp1 = 0 ;
37028 int res1 = 0 ;
37029 wxRect temp2 ;
37030 PyObject * obj0 = 0 ;
37031 PyObject * obj1 = 0 ;
37032 char * kwnames[] = {
37033 (char *) "self",(char *) "rect", NULL
37034 };
37035
37036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
37037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37038 if (!SWIG_IsOK(res1)) {
37039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37040 }
37041 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37042 {
37043 arg2 = &temp2;
37044 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37045 }
37046 {
37047 PyThreadState* __tstate = wxPyBeginAllowThreads();
37048 (arg1)->DrawCheckMark((wxRect const &)*arg2);
37049 wxPyEndAllowThreads(__tstate);
37050 if (PyErr_Occurred()) SWIG_fail;
37051 }
37052 resultobj = SWIG_Py_Void();
37053 return resultobj;
37054 fail:
37055 return NULL;
37056 }
37057
37058
37059 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37060 PyObject *resultobj = 0;
37061 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37062 int arg2 ;
37063 int arg3 ;
37064 int arg4 ;
37065 int arg5 ;
37066 double arg6 ;
37067 double arg7 ;
37068 void *argp1 = 0 ;
37069 int res1 = 0 ;
37070 int val2 ;
37071 int ecode2 = 0 ;
37072 int val3 ;
37073 int ecode3 = 0 ;
37074 int val4 ;
37075 int ecode4 = 0 ;
37076 int val5 ;
37077 int ecode5 = 0 ;
37078 double val6 ;
37079 int ecode6 = 0 ;
37080 double val7 ;
37081 int ecode7 = 0 ;
37082 PyObject * obj0 = 0 ;
37083 PyObject * obj1 = 0 ;
37084 PyObject * obj2 = 0 ;
37085 PyObject * obj3 = 0 ;
37086 PyObject * obj4 = 0 ;
37087 PyObject * obj5 = 0 ;
37088 PyObject * obj6 = 0 ;
37089 char * kwnames[] = {
37090 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
37091 };
37092
37093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37095 if (!SWIG_IsOK(res1)) {
37096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37097 }
37098 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37099 ecode2 = SWIG_AsVal_int(obj1, &val2);
37100 if (!SWIG_IsOK(ecode2)) {
37101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
37102 }
37103 arg2 = static_cast< int >(val2);
37104 ecode3 = SWIG_AsVal_int(obj2, &val3);
37105 if (!SWIG_IsOK(ecode3)) {
37106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
37107 }
37108 arg3 = static_cast< int >(val3);
37109 ecode4 = SWIG_AsVal_int(obj3, &val4);
37110 if (!SWIG_IsOK(ecode4)) {
37111 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
37112 }
37113 arg4 = static_cast< int >(val4);
37114 ecode5 = SWIG_AsVal_int(obj4, &val5);
37115 if (!SWIG_IsOK(ecode5)) {
37116 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
37117 }
37118 arg5 = static_cast< int >(val5);
37119 ecode6 = SWIG_AsVal_double(obj5, &val6);
37120 if (!SWIG_IsOK(ecode6)) {
37121 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
37122 }
37123 arg6 = static_cast< double >(val6);
37124 ecode7 = SWIG_AsVal_double(obj6, &val7);
37125 if (!SWIG_IsOK(ecode7)) {
37126 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
37127 }
37128 arg7 = static_cast< double >(val7);
37129 {
37130 PyThreadState* __tstate = wxPyBeginAllowThreads();
37131 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
37132 wxPyEndAllowThreads(__tstate);
37133 if (PyErr_Occurred()) SWIG_fail;
37134 }
37135 resultobj = SWIG_Py_Void();
37136 return resultobj;
37137 fail:
37138 return NULL;
37139 }
37140
37141
37142 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37143 PyObject *resultobj = 0;
37144 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37145 wxPoint *arg2 = 0 ;
37146 wxSize *arg3 = 0 ;
37147 double arg4 ;
37148 double arg5 ;
37149 void *argp1 = 0 ;
37150 int res1 = 0 ;
37151 wxPoint temp2 ;
37152 wxSize temp3 ;
37153 double val4 ;
37154 int ecode4 = 0 ;
37155 double val5 ;
37156 int ecode5 = 0 ;
37157 PyObject * obj0 = 0 ;
37158 PyObject * obj1 = 0 ;
37159 PyObject * obj2 = 0 ;
37160 PyObject * obj3 = 0 ;
37161 PyObject * obj4 = 0 ;
37162 char * kwnames[] = {
37163 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
37164 };
37165
37166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37168 if (!SWIG_IsOK(res1)) {
37169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37170 }
37171 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37172 {
37173 arg2 = &temp2;
37174 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37175 }
37176 {
37177 arg3 = &temp3;
37178 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37179 }
37180 ecode4 = SWIG_AsVal_double(obj3, &val4);
37181 if (!SWIG_IsOK(ecode4)) {
37182 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
37183 }
37184 arg4 = static_cast< double >(val4);
37185 ecode5 = SWIG_AsVal_double(obj4, &val5);
37186 if (!SWIG_IsOK(ecode5)) {
37187 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
37188 }
37189 arg5 = static_cast< double >(val5);
37190 {
37191 PyThreadState* __tstate = wxPyBeginAllowThreads();
37192 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
37193 wxPyEndAllowThreads(__tstate);
37194 if (PyErr_Occurred()) SWIG_fail;
37195 }
37196 resultobj = SWIG_Py_Void();
37197 return resultobj;
37198 fail:
37199 return NULL;
37200 }
37201
37202
37203 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37204 PyObject *resultobj = 0;
37205 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37206 int arg2 ;
37207 int arg3 ;
37208 void *argp1 = 0 ;
37209 int res1 = 0 ;
37210 int val2 ;
37211 int ecode2 = 0 ;
37212 int val3 ;
37213 int ecode3 = 0 ;
37214 PyObject * obj0 = 0 ;
37215 PyObject * obj1 = 0 ;
37216 PyObject * obj2 = 0 ;
37217 char * kwnames[] = {
37218 (char *) "self",(char *) "x",(char *) "y", NULL
37219 };
37220
37221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37223 if (!SWIG_IsOK(res1)) {
37224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37225 }
37226 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37227 ecode2 = SWIG_AsVal_int(obj1, &val2);
37228 if (!SWIG_IsOK(ecode2)) {
37229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
37230 }
37231 arg2 = static_cast< int >(val2);
37232 ecode3 = SWIG_AsVal_int(obj2, &val3);
37233 if (!SWIG_IsOK(ecode3)) {
37234 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
37235 }
37236 arg3 = static_cast< int >(val3);
37237 {
37238 PyThreadState* __tstate = wxPyBeginAllowThreads();
37239 (arg1)->DrawPoint(arg2,arg3);
37240 wxPyEndAllowThreads(__tstate);
37241 if (PyErr_Occurred()) SWIG_fail;
37242 }
37243 resultobj = SWIG_Py_Void();
37244 return resultobj;
37245 fail:
37246 return NULL;
37247 }
37248
37249
37250 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37251 PyObject *resultobj = 0;
37252 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37253 wxPoint *arg2 = 0 ;
37254 void *argp1 = 0 ;
37255 int res1 = 0 ;
37256 wxPoint temp2 ;
37257 PyObject * obj0 = 0 ;
37258 PyObject * obj1 = 0 ;
37259 char * kwnames[] = {
37260 (char *) "self",(char *) "pt", NULL
37261 };
37262
37263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37265 if (!SWIG_IsOK(res1)) {
37266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37267 }
37268 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37269 {
37270 arg2 = &temp2;
37271 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37272 }
37273 {
37274 PyThreadState* __tstate = wxPyBeginAllowThreads();
37275 (arg1)->DrawPoint((wxPoint const &)*arg2);
37276 wxPyEndAllowThreads(__tstate);
37277 if (PyErr_Occurred()) SWIG_fail;
37278 }
37279 resultobj = SWIG_Py_Void();
37280 return resultobj;
37281 fail:
37282 return NULL;
37283 }
37284
37285
37286 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37287 PyObject *resultobj = 0;
37288 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37289 int arg2 ;
37290 int arg3 ;
37291 int arg4 ;
37292 int arg5 ;
37293 void *argp1 = 0 ;
37294 int res1 = 0 ;
37295 int val2 ;
37296 int ecode2 = 0 ;
37297 int val3 ;
37298 int ecode3 = 0 ;
37299 int val4 ;
37300 int ecode4 = 0 ;
37301 int val5 ;
37302 int ecode5 = 0 ;
37303 PyObject * obj0 = 0 ;
37304 PyObject * obj1 = 0 ;
37305 PyObject * obj2 = 0 ;
37306 PyObject * obj3 = 0 ;
37307 PyObject * obj4 = 0 ;
37308 char * kwnames[] = {
37309 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37310 };
37311
37312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37314 if (!SWIG_IsOK(res1)) {
37315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37316 }
37317 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37318 ecode2 = SWIG_AsVal_int(obj1, &val2);
37319 if (!SWIG_IsOK(ecode2)) {
37320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
37321 }
37322 arg2 = static_cast< int >(val2);
37323 ecode3 = SWIG_AsVal_int(obj2, &val3);
37324 if (!SWIG_IsOK(ecode3)) {
37325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
37326 }
37327 arg3 = static_cast< int >(val3);
37328 ecode4 = SWIG_AsVal_int(obj3, &val4);
37329 if (!SWIG_IsOK(ecode4)) {
37330 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
37331 }
37332 arg4 = static_cast< int >(val4);
37333 ecode5 = SWIG_AsVal_int(obj4, &val5);
37334 if (!SWIG_IsOK(ecode5)) {
37335 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
37336 }
37337 arg5 = static_cast< int >(val5);
37338 {
37339 PyThreadState* __tstate = wxPyBeginAllowThreads();
37340 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
37341 wxPyEndAllowThreads(__tstate);
37342 if (PyErr_Occurred()) SWIG_fail;
37343 }
37344 resultobj = SWIG_Py_Void();
37345 return resultobj;
37346 fail:
37347 return NULL;
37348 }
37349
37350
37351 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37352 PyObject *resultobj = 0;
37353 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37354 wxRect *arg2 = 0 ;
37355 void *argp1 = 0 ;
37356 int res1 = 0 ;
37357 wxRect temp2 ;
37358 PyObject * obj0 = 0 ;
37359 PyObject * obj1 = 0 ;
37360 char * kwnames[] = {
37361 (char *) "self",(char *) "rect", NULL
37362 };
37363
37364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
37365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37366 if (!SWIG_IsOK(res1)) {
37367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37368 }
37369 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37370 {
37371 arg2 = &temp2;
37372 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37373 }
37374 {
37375 PyThreadState* __tstate = wxPyBeginAllowThreads();
37376 (arg1)->DrawRectangle((wxRect const &)*arg2);
37377 wxPyEndAllowThreads(__tstate);
37378 if (PyErr_Occurred()) SWIG_fail;
37379 }
37380 resultobj = SWIG_Py_Void();
37381 return resultobj;
37382 fail:
37383 return NULL;
37384 }
37385
37386
37387 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37388 PyObject *resultobj = 0;
37389 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37390 wxPoint *arg2 = 0 ;
37391 wxSize *arg3 = 0 ;
37392 void *argp1 = 0 ;
37393 int res1 = 0 ;
37394 wxPoint temp2 ;
37395 wxSize temp3 ;
37396 PyObject * obj0 = 0 ;
37397 PyObject * obj1 = 0 ;
37398 PyObject * obj2 = 0 ;
37399 char * kwnames[] = {
37400 (char *) "self",(char *) "pt",(char *) "sz", NULL
37401 };
37402
37403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37405 if (!SWIG_IsOK(res1)) {
37406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37407 }
37408 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37409 {
37410 arg2 = &temp2;
37411 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37412 }
37413 {
37414 arg3 = &temp3;
37415 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37416 }
37417 {
37418 PyThreadState* __tstate = wxPyBeginAllowThreads();
37419 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37420 wxPyEndAllowThreads(__tstate);
37421 if (PyErr_Occurred()) SWIG_fail;
37422 }
37423 resultobj = SWIG_Py_Void();
37424 return resultobj;
37425 fail:
37426 return NULL;
37427 }
37428
37429
37430 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37431 PyObject *resultobj = 0;
37432 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37433 int arg2 ;
37434 int arg3 ;
37435 int arg4 ;
37436 int arg5 ;
37437 double arg6 ;
37438 void *argp1 = 0 ;
37439 int res1 = 0 ;
37440 int val2 ;
37441 int ecode2 = 0 ;
37442 int val3 ;
37443 int ecode3 = 0 ;
37444 int val4 ;
37445 int ecode4 = 0 ;
37446 int val5 ;
37447 int ecode5 = 0 ;
37448 double val6 ;
37449 int ecode6 = 0 ;
37450 PyObject * obj0 = 0 ;
37451 PyObject * obj1 = 0 ;
37452 PyObject * obj2 = 0 ;
37453 PyObject * obj3 = 0 ;
37454 PyObject * obj4 = 0 ;
37455 PyObject * obj5 = 0 ;
37456 char * kwnames[] = {
37457 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37458 };
37459
37460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37462 if (!SWIG_IsOK(res1)) {
37463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37464 }
37465 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37466 ecode2 = SWIG_AsVal_int(obj1, &val2);
37467 if (!SWIG_IsOK(ecode2)) {
37468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37469 }
37470 arg2 = static_cast< int >(val2);
37471 ecode3 = SWIG_AsVal_int(obj2, &val3);
37472 if (!SWIG_IsOK(ecode3)) {
37473 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37474 }
37475 arg3 = static_cast< int >(val3);
37476 ecode4 = SWIG_AsVal_int(obj3, &val4);
37477 if (!SWIG_IsOK(ecode4)) {
37478 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37479 }
37480 arg4 = static_cast< int >(val4);
37481 ecode5 = SWIG_AsVal_int(obj4, &val5);
37482 if (!SWIG_IsOK(ecode5)) {
37483 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37484 }
37485 arg5 = static_cast< int >(val5);
37486 ecode6 = SWIG_AsVal_double(obj5, &val6);
37487 if (!SWIG_IsOK(ecode6)) {
37488 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37489 }
37490 arg6 = static_cast< double >(val6);
37491 {
37492 PyThreadState* __tstate = wxPyBeginAllowThreads();
37493 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37494 wxPyEndAllowThreads(__tstate);
37495 if (PyErr_Occurred()) SWIG_fail;
37496 }
37497 resultobj = SWIG_Py_Void();
37498 return resultobj;
37499 fail:
37500 return NULL;
37501 }
37502
37503
37504 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37505 PyObject *resultobj = 0;
37506 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37507 wxRect *arg2 = 0 ;
37508 double arg3 ;
37509 void *argp1 = 0 ;
37510 int res1 = 0 ;
37511 wxRect temp2 ;
37512 double val3 ;
37513 int ecode3 = 0 ;
37514 PyObject * obj0 = 0 ;
37515 PyObject * obj1 = 0 ;
37516 PyObject * obj2 = 0 ;
37517 char * kwnames[] = {
37518 (char *) "self",(char *) "r",(char *) "radius", NULL
37519 };
37520
37521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37523 if (!SWIG_IsOK(res1)) {
37524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37525 }
37526 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37527 {
37528 arg2 = &temp2;
37529 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37530 }
37531 ecode3 = SWIG_AsVal_double(obj2, &val3);
37532 if (!SWIG_IsOK(ecode3)) {
37533 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37534 }
37535 arg3 = static_cast< double >(val3);
37536 {
37537 PyThreadState* __tstate = wxPyBeginAllowThreads();
37538 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37539 wxPyEndAllowThreads(__tstate);
37540 if (PyErr_Occurred()) SWIG_fail;
37541 }
37542 resultobj = SWIG_Py_Void();
37543 return resultobj;
37544 fail:
37545 return NULL;
37546 }
37547
37548
37549 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37550 PyObject *resultobj = 0;
37551 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37552 wxPoint *arg2 = 0 ;
37553 wxSize *arg3 = 0 ;
37554 double arg4 ;
37555 void *argp1 = 0 ;
37556 int res1 = 0 ;
37557 wxPoint temp2 ;
37558 wxSize temp3 ;
37559 double val4 ;
37560 int ecode4 = 0 ;
37561 PyObject * obj0 = 0 ;
37562 PyObject * obj1 = 0 ;
37563 PyObject * obj2 = 0 ;
37564 PyObject * obj3 = 0 ;
37565 char * kwnames[] = {
37566 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37567 };
37568
37569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37571 if (!SWIG_IsOK(res1)) {
37572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37573 }
37574 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37575 {
37576 arg2 = &temp2;
37577 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37578 }
37579 {
37580 arg3 = &temp3;
37581 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37582 }
37583 ecode4 = SWIG_AsVal_double(obj3, &val4);
37584 if (!SWIG_IsOK(ecode4)) {
37585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37586 }
37587 arg4 = static_cast< double >(val4);
37588 {
37589 PyThreadState* __tstate = wxPyBeginAllowThreads();
37590 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37591 wxPyEndAllowThreads(__tstate);
37592 if (PyErr_Occurred()) SWIG_fail;
37593 }
37594 resultobj = SWIG_Py_Void();
37595 return resultobj;
37596 fail:
37597 return NULL;
37598 }
37599
37600
37601 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37602 PyObject *resultobj = 0;
37603 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37604 int arg2 ;
37605 int arg3 ;
37606 int arg4 ;
37607 void *argp1 = 0 ;
37608 int res1 = 0 ;
37609 int val2 ;
37610 int ecode2 = 0 ;
37611 int val3 ;
37612 int ecode3 = 0 ;
37613 int val4 ;
37614 int ecode4 = 0 ;
37615 PyObject * obj0 = 0 ;
37616 PyObject * obj1 = 0 ;
37617 PyObject * obj2 = 0 ;
37618 PyObject * obj3 = 0 ;
37619 char * kwnames[] = {
37620 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37621 };
37622
37623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37625 if (!SWIG_IsOK(res1)) {
37626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37627 }
37628 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37629 ecode2 = SWIG_AsVal_int(obj1, &val2);
37630 if (!SWIG_IsOK(ecode2)) {
37631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37632 }
37633 arg2 = static_cast< int >(val2);
37634 ecode3 = SWIG_AsVal_int(obj2, &val3);
37635 if (!SWIG_IsOK(ecode3)) {
37636 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37637 }
37638 arg3 = static_cast< int >(val3);
37639 ecode4 = SWIG_AsVal_int(obj3, &val4);
37640 if (!SWIG_IsOK(ecode4)) {
37641 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37642 }
37643 arg4 = static_cast< int >(val4);
37644 {
37645 PyThreadState* __tstate = wxPyBeginAllowThreads();
37646 (arg1)->DrawCircle(arg2,arg3,arg4);
37647 wxPyEndAllowThreads(__tstate);
37648 if (PyErr_Occurred()) SWIG_fail;
37649 }
37650 resultobj = SWIG_Py_Void();
37651 return resultobj;
37652 fail:
37653 return NULL;
37654 }
37655
37656
37657 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37658 PyObject *resultobj = 0;
37659 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37660 wxPoint *arg2 = 0 ;
37661 int arg3 ;
37662 void *argp1 = 0 ;
37663 int res1 = 0 ;
37664 wxPoint temp2 ;
37665 int val3 ;
37666 int ecode3 = 0 ;
37667 PyObject * obj0 = 0 ;
37668 PyObject * obj1 = 0 ;
37669 PyObject * obj2 = 0 ;
37670 char * kwnames[] = {
37671 (char *) "self",(char *) "pt",(char *) "radius", NULL
37672 };
37673
37674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37676 if (!SWIG_IsOK(res1)) {
37677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37678 }
37679 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37680 {
37681 arg2 = &temp2;
37682 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37683 }
37684 ecode3 = SWIG_AsVal_int(obj2, &val3);
37685 if (!SWIG_IsOK(ecode3)) {
37686 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37687 }
37688 arg3 = static_cast< int >(val3);
37689 {
37690 PyThreadState* __tstate = wxPyBeginAllowThreads();
37691 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37692 wxPyEndAllowThreads(__tstate);
37693 if (PyErr_Occurred()) SWIG_fail;
37694 }
37695 resultobj = SWIG_Py_Void();
37696 return resultobj;
37697 fail:
37698 return NULL;
37699 }
37700
37701
37702 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37703 PyObject *resultobj = 0;
37704 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37705 int arg2 ;
37706 int arg3 ;
37707 int arg4 ;
37708 int arg5 ;
37709 void *argp1 = 0 ;
37710 int res1 = 0 ;
37711 int val2 ;
37712 int ecode2 = 0 ;
37713 int val3 ;
37714 int ecode3 = 0 ;
37715 int val4 ;
37716 int ecode4 = 0 ;
37717 int val5 ;
37718 int ecode5 = 0 ;
37719 PyObject * obj0 = 0 ;
37720 PyObject * obj1 = 0 ;
37721 PyObject * obj2 = 0 ;
37722 PyObject * obj3 = 0 ;
37723 PyObject * obj4 = 0 ;
37724 char * kwnames[] = {
37725 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37726 };
37727
37728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37730 if (!SWIG_IsOK(res1)) {
37731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37732 }
37733 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37734 ecode2 = SWIG_AsVal_int(obj1, &val2);
37735 if (!SWIG_IsOK(ecode2)) {
37736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37737 }
37738 arg2 = static_cast< int >(val2);
37739 ecode3 = SWIG_AsVal_int(obj2, &val3);
37740 if (!SWIG_IsOK(ecode3)) {
37741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37742 }
37743 arg3 = static_cast< int >(val3);
37744 ecode4 = SWIG_AsVal_int(obj3, &val4);
37745 if (!SWIG_IsOK(ecode4)) {
37746 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37747 }
37748 arg4 = static_cast< int >(val4);
37749 ecode5 = SWIG_AsVal_int(obj4, &val5);
37750 if (!SWIG_IsOK(ecode5)) {
37751 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37752 }
37753 arg5 = static_cast< int >(val5);
37754 {
37755 PyThreadState* __tstate = wxPyBeginAllowThreads();
37756 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37757 wxPyEndAllowThreads(__tstate);
37758 if (PyErr_Occurred()) SWIG_fail;
37759 }
37760 resultobj = SWIG_Py_Void();
37761 return resultobj;
37762 fail:
37763 return NULL;
37764 }
37765
37766
37767 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37768 PyObject *resultobj = 0;
37769 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37770 wxRect *arg2 = 0 ;
37771 void *argp1 = 0 ;
37772 int res1 = 0 ;
37773 wxRect temp2 ;
37774 PyObject * obj0 = 0 ;
37775 PyObject * obj1 = 0 ;
37776 char * kwnames[] = {
37777 (char *) "self",(char *) "rect", NULL
37778 };
37779
37780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37782 if (!SWIG_IsOK(res1)) {
37783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37784 }
37785 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37786 {
37787 arg2 = &temp2;
37788 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37789 }
37790 {
37791 PyThreadState* __tstate = wxPyBeginAllowThreads();
37792 (arg1)->DrawEllipse((wxRect const &)*arg2);
37793 wxPyEndAllowThreads(__tstate);
37794 if (PyErr_Occurred()) SWIG_fail;
37795 }
37796 resultobj = SWIG_Py_Void();
37797 return resultobj;
37798 fail:
37799 return NULL;
37800 }
37801
37802
37803 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37804 PyObject *resultobj = 0;
37805 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37806 wxPoint *arg2 = 0 ;
37807 wxSize *arg3 = 0 ;
37808 void *argp1 = 0 ;
37809 int res1 = 0 ;
37810 wxPoint temp2 ;
37811 wxSize temp3 ;
37812 PyObject * obj0 = 0 ;
37813 PyObject * obj1 = 0 ;
37814 PyObject * obj2 = 0 ;
37815 char * kwnames[] = {
37816 (char *) "self",(char *) "pt",(char *) "sz", NULL
37817 };
37818
37819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37821 if (!SWIG_IsOK(res1)) {
37822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37823 }
37824 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37825 {
37826 arg2 = &temp2;
37827 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37828 }
37829 {
37830 arg3 = &temp3;
37831 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37832 }
37833 {
37834 PyThreadState* __tstate = wxPyBeginAllowThreads();
37835 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37836 wxPyEndAllowThreads(__tstate);
37837 if (PyErr_Occurred()) SWIG_fail;
37838 }
37839 resultobj = SWIG_Py_Void();
37840 return resultobj;
37841 fail:
37842 return NULL;
37843 }
37844
37845
37846 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37847 PyObject *resultobj = 0;
37848 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37849 wxIcon *arg2 = 0 ;
37850 int arg3 ;
37851 int arg4 ;
37852 void *argp1 = 0 ;
37853 int res1 = 0 ;
37854 void *argp2 = 0 ;
37855 int res2 = 0 ;
37856 int val3 ;
37857 int ecode3 = 0 ;
37858 int val4 ;
37859 int ecode4 = 0 ;
37860 PyObject * obj0 = 0 ;
37861 PyObject * obj1 = 0 ;
37862 PyObject * obj2 = 0 ;
37863 PyObject * obj3 = 0 ;
37864 char * kwnames[] = {
37865 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37866 };
37867
37868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37870 if (!SWIG_IsOK(res1)) {
37871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37872 }
37873 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37874 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37875 if (!SWIG_IsOK(res2)) {
37876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37877 }
37878 if (!argp2) {
37879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37880 }
37881 arg2 = reinterpret_cast< wxIcon * >(argp2);
37882 ecode3 = SWIG_AsVal_int(obj2, &val3);
37883 if (!SWIG_IsOK(ecode3)) {
37884 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37885 }
37886 arg3 = static_cast< int >(val3);
37887 ecode4 = SWIG_AsVal_int(obj3, &val4);
37888 if (!SWIG_IsOK(ecode4)) {
37889 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37890 }
37891 arg4 = static_cast< int >(val4);
37892 {
37893 PyThreadState* __tstate = wxPyBeginAllowThreads();
37894 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37895 wxPyEndAllowThreads(__tstate);
37896 if (PyErr_Occurred()) SWIG_fail;
37897 }
37898 resultobj = SWIG_Py_Void();
37899 return resultobj;
37900 fail:
37901 return NULL;
37902 }
37903
37904
37905 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37906 PyObject *resultobj = 0;
37907 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37908 wxIcon *arg2 = 0 ;
37909 wxPoint *arg3 = 0 ;
37910 void *argp1 = 0 ;
37911 int res1 = 0 ;
37912 void *argp2 = 0 ;
37913 int res2 = 0 ;
37914 wxPoint temp3 ;
37915 PyObject * obj0 = 0 ;
37916 PyObject * obj1 = 0 ;
37917 PyObject * obj2 = 0 ;
37918 char * kwnames[] = {
37919 (char *) "self",(char *) "icon",(char *) "pt", NULL
37920 };
37921
37922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37924 if (!SWIG_IsOK(res1)) {
37925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37926 }
37927 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37928 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37929 if (!SWIG_IsOK(res2)) {
37930 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37931 }
37932 if (!argp2) {
37933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37934 }
37935 arg2 = reinterpret_cast< wxIcon * >(argp2);
37936 {
37937 arg3 = &temp3;
37938 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37939 }
37940 {
37941 PyThreadState* __tstate = wxPyBeginAllowThreads();
37942 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37943 wxPyEndAllowThreads(__tstate);
37944 if (PyErr_Occurred()) SWIG_fail;
37945 }
37946 resultobj = SWIG_Py_Void();
37947 return resultobj;
37948 fail:
37949 return NULL;
37950 }
37951
37952
37953 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37954 PyObject *resultobj = 0;
37955 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37956 wxBitmap *arg2 = 0 ;
37957 int arg3 ;
37958 int arg4 ;
37959 bool arg5 = (bool) false ;
37960 void *argp1 = 0 ;
37961 int res1 = 0 ;
37962 void *argp2 = 0 ;
37963 int res2 = 0 ;
37964 int val3 ;
37965 int ecode3 = 0 ;
37966 int val4 ;
37967 int ecode4 = 0 ;
37968 bool val5 ;
37969 int ecode5 = 0 ;
37970 PyObject * obj0 = 0 ;
37971 PyObject * obj1 = 0 ;
37972 PyObject * obj2 = 0 ;
37973 PyObject * obj3 = 0 ;
37974 PyObject * obj4 = 0 ;
37975 char * kwnames[] = {
37976 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37977 };
37978
37979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37981 if (!SWIG_IsOK(res1)) {
37982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37983 }
37984 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37985 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37986 if (!SWIG_IsOK(res2)) {
37987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37988 }
37989 if (!argp2) {
37990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37991 }
37992 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37993 ecode3 = SWIG_AsVal_int(obj2, &val3);
37994 if (!SWIG_IsOK(ecode3)) {
37995 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37996 }
37997 arg3 = static_cast< int >(val3);
37998 ecode4 = SWIG_AsVal_int(obj3, &val4);
37999 if (!SWIG_IsOK(ecode4)) {
38000 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
38001 }
38002 arg4 = static_cast< int >(val4);
38003 if (obj4) {
38004 ecode5 = SWIG_AsVal_bool(obj4, &val5);
38005 if (!SWIG_IsOK(ecode5)) {
38006 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
38007 }
38008 arg5 = static_cast< bool >(val5);
38009 }
38010 {
38011 PyThreadState* __tstate = wxPyBeginAllowThreads();
38012 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
38013 wxPyEndAllowThreads(__tstate);
38014 if (PyErr_Occurred()) SWIG_fail;
38015 }
38016 resultobj = SWIG_Py_Void();
38017 return resultobj;
38018 fail:
38019 return NULL;
38020 }
38021
38022
38023 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38024 PyObject *resultobj = 0;
38025 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38026 wxBitmap *arg2 = 0 ;
38027 wxPoint *arg3 = 0 ;
38028 bool arg4 = (bool) false ;
38029 void *argp1 = 0 ;
38030 int res1 = 0 ;
38031 void *argp2 = 0 ;
38032 int res2 = 0 ;
38033 wxPoint temp3 ;
38034 bool val4 ;
38035 int ecode4 = 0 ;
38036 PyObject * obj0 = 0 ;
38037 PyObject * obj1 = 0 ;
38038 PyObject * obj2 = 0 ;
38039 PyObject * obj3 = 0 ;
38040 char * kwnames[] = {
38041 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
38042 };
38043
38044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38046 if (!SWIG_IsOK(res1)) {
38047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38048 }
38049 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38050 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38051 if (!SWIG_IsOK(res2)) {
38052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38053 }
38054 if (!argp2) {
38055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38056 }
38057 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38058 {
38059 arg3 = &temp3;
38060 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38061 }
38062 if (obj3) {
38063 ecode4 = SWIG_AsVal_bool(obj3, &val4);
38064 if (!SWIG_IsOK(ecode4)) {
38065 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
38066 }
38067 arg4 = static_cast< bool >(val4);
38068 }
38069 {
38070 PyThreadState* __tstate = wxPyBeginAllowThreads();
38071 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
38072 wxPyEndAllowThreads(__tstate);
38073 if (PyErr_Occurred()) SWIG_fail;
38074 }
38075 resultobj = SWIG_Py_Void();
38076 return resultobj;
38077 fail:
38078 return NULL;
38079 }
38080
38081
38082 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38083 PyObject *resultobj = 0;
38084 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38085 wxString *arg2 = 0 ;
38086 int arg3 ;
38087 int arg4 ;
38088 void *argp1 = 0 ;
38089 int res1 = 0 ;
38090 bool temp2 = false ;
38091 int val3 ;
38092 int ecode3 = 0 ;
38093 int val4 ;
38094 int ecode4 = 0 ;
38095 PyObject * obj0 = 0 ;
38096 PyObject * obj1 = 0 ;
38097 PyObject * obj2 = 0 ;
38098 PyObject * obj3 = 0 ;
38099 char * kwnames[] = {
38100 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
38101 };
38102
38103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38105 if (!SWIG_IsOK(res1)) {
38106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38107 }
38108 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38109 {
38110 arg2 = wxString_in_helper(obj1);
38111 if (arg2 == NULL) SWIG_fail;
38112 temp2 = true;
38113 }
38114 ecode3 = SWIG_AsVal_int(obj2, &val3);
38115 if (!SWIG_IsOK(ecode3)) {
38116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
38117 }
38118 arg3 = static_cast< int >(val3);
38119 ecode4 = SWIG_AsVal_int(obj3, &val4);
38120 if (!SWIG_IsOK(ecode4)) {
38121 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
38122 }
38123 arg4 = static_cast< int >(val4);
38124 {
38125 PyThreadState* __tstate = wxPyBeginAllowThreads();
38126 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
38127 wxPyEndAllowThreads(__tstate);
38128 if (PyErr_Occurred()) SWIG_fail;
38129 }
38130 resultobj = SWIG_Py_Void();
38131 {
38132 if (temp2)
38133 delete arg2;
38134 }
38135 return resultobj;
38136 fail:
38137 {
38138 if (temp2)
38139 delete arg2;
38140 }
38141 return NULL;
38142 }
38143
38144
38145 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38146 PyObject *resultobj = 0;
38147 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38148 wxString *arg2 = 0 ;
38149 wxPoint *arg3 = 0 ;
38150 void *argp1 = 0 ;
38151 int res1 = 0 ;
38152 bool temp2 = false ;
38153 wxPoint temp3 ;
38154 PyObject * obj0 = 0 ;
38155 PyObject * obj1 = 0 ;
38156 PyObject * obj2 = 0 ;
38157 char * kwnames[] = {
38158 (char *) "self",(char *) "text",(char *) "pt", NULL
38159 };
38160
38161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38163 if (!SWIG_IsOK(res1)) {
38164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38165 }
38166 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38167 {
38168 arg2 = wxString_in_helper(obj1);
38169 if (arg2 == NULL) SWIG_fail;
38170 temp2 = true;
38171 }
38172 {
38173 arg3 = &temp3;
38174 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38175 }
38176 {
38177 PyThreadState* __tstate = wxPyBeginAllowThreads();
38178 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
38179 wxPyEndAllowThreads(__tstate);
38180 if (PyErr_Occurred()) SWIG_fail;
38181 }
38182 resultobj = SWIG_Py_Void();
38183 {
38184 if (temp2)
38185 delete arg2;
38186 }
38187 return resultobj;
38188 fail:
38189 {
38190 if (temp2)
38191 delete arg2;
38192 }
38193 return NULL;
38194 }
38195
38196
38197 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38198 PyObject *resultobj = 0;
38199 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38200 wxString *arg2 = 0 ;
38201 int arg3 ;
38202 int arg4 ;
38203 double arg5 ;
38204 void *argp1 = 0 ;
38205 int res1 = 0 ;
38206 bool temp2 = false ;
38207 int val3 ;
38208 int ecode3 = 0 ;
38209 int val4 ;
38210 int ecode4 = 0 ;
38211 double val5 ;
38212 int ecode5 = 0 ;
38213 PyObject * obj0 = 0 ;
38214 PyObject * obj1 = 0 ;
38215 PyObject * obj2 = 0 ;
38216 PyObject * obj3 = 0 ;
38217 PyObject * obj4 = 0 ;
38218 char * kwnames[] = {
38219 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
38220 };
38221
38222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38224 if (!SWIG_IsOK(res1)) {
38225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38226 }
38227 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38228 {
38229 arg2 = wxString_in_helper(obj1);
38230 if (arg2 == NULL) SWIG_fail;
38231 temp2 = true;
38232 }
38233 ecode3 = SWIG_AsVal_int(obj2, &val3);
38234 if (!SWIG_IsOK(ecode3)) {
38235 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
38236 }
38237 arg3 = static_cast< int >(val3);
38238 ecode4 = SWIG_AsVal_int(obj3, &val4);
38239 if (!SWIG_IsOK(ecode4)) {
38240 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
38241 }
38242 arg4 = static_cast< int >(val4);
38243 ecode5 = SWIG_AsVal_double(obj4, &val5);
38244 if (!SWIG_IsOK(ecode5)) {
38245 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
38246 }
38247 arg5 = static_cast< double >(val5);
38248 {
38249 PyThreadState* __tstate = wxPyBeginAllowThreads();
38250 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
38251 wxPyEndAllowThreads(__tstate);
38252 if (PyErr_Occurred()) SWIG_fail;
38253 }
38254 resultobj = SWIG_Py_Void();
38255 {
38256 if (temp2)
38257 delete arg2;
38258 }
38259 return resultobj;
38260 fail:
38261 {
38262 if (temp2)
38263 delete arg2;
38264 }
38265 return NULL;
38266 }
38267
38268
38269 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38270 PyObject *resultobj = 0;
38271 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38272 wxString *arg2 = 0 ;
38273 wxPoint *arg3 = 0 ;
38274 double arg4 ;
38275 void *argp1 = 0 ;
38276 int res1 = 0 ;
38277 bool temp2 = false ;
38278 wxPoint temp3 ;
38279 double val4 ;
38280 int ecode4 = 0 ;
38281 PyObject * obj0 = 0 ;
38282 PyObject * obj1 = 0 ;
38283 PyObject * obj2 = 0 ;
38284 PyObject * obj3 = 0 ;
38285 char * kwnames[] = {
38286 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
38287 };
38288
38289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38291 if (!SWIG_IsOK(res1)) {
38292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38293 }
38294 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38295 {
38296 arg2 = wxString_in_helper(obj1);
38297 if (arg2 == NULL) SWIG_fail;
38298 temp2 = true;
38299 }
38300 {
38301 arg3 = &temp3;
38302 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38303 }
38304 ecode4 = SWIG_AsVal_double(obj3, &val4);
38305 if (!SWIG_IsOK(ecode4)) {
38306 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
38307 }
38308 arg4 = static_cast< double >(val4);
38309 {
38310 PyThreadState* __tstate = wxPyBeginAllowThreads();
38311 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
38312 wxPyEndAllowThreads(__tstate);
38313 if (PyErr_Occurred()) SWIG_fail;
38314 }
38315 resultobj = SWIG_Py_Void();
38316 {
38317 if (temp2)
38318 delete arg2;
38319 }
38320 return resultobj;
38321 fail:
38322 {
38323 if (temp2)
38324 delete arg2;
38325 }
38326 return NULL;
38327 }
38328
38329
38330 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38331 PyObject *resultobj = 0;
38332 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38333 int arg2 ;
38334 wxPoint *arg3 = (wxPoint *) 0 ;
38335 int arg4 = (int) 0 ;
38336 int arg5 = (int) 0 ;
38337 void *argp1 = 0 ;
38338 int res1 = 0 ;
38339 int val4 ;
38340 int ecode4 = 0 ;
38341 int val5 ;
38342 int ecode5 = 0 ;
38343 PyObject * obj0 = 0 ;
38344 PyObject * obj1 = 0 ;
38345 PyObject * obj2 = 0 ;
38346 PyObject * obj3 = 0 ;
38347 char * kwnames[] = {
38348 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
38349 };
38350
38351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38353 if (!SWIG_IsOK(res1)) {
38354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38355 }
38356 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38357 {
38358 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38359 if (arg3 == NULL) SWIG_fail;
38360 }
38361 if (obj2) {
38362 ecode4 = SWIG_AsVal_int(obj2, &val4);
38363 if (!SWIG_IsOK(ecode4)) {
38364 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
38365 }
38366 arg4 = static_cast< int >(val4);
38367 }
38368 if (obj3) {
38369 ecode5 = SWIG_AsVal_int(obj3, &val5);
38370 if (!SWIG_IsOK(ecode5)) {
38371 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
38372 }
38373 arg5 = static_cast< int >(val5);
38374 }
38375 {
38376 PyThreadState* __tstate = wxPyBeginAllowThreads();
38377 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
38378 wxPyEndAllowThreads(__tstate);
38379 if (PyErr_Occurred()) SWIG_fail;
38380 }
38381 resultobj = SWIG_Py_Void();
38382 {
38383 if (arg3) delete [] arg3;
38384 }
38385 return resultobj;
38386 fail:
38387 {
38388 if (arg3) delete [] arg3;
38389 }
38390 return NULL;
38391 }
38392
38393
38394 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38395 PyObject *resultobj = 0;
38396 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38397 int arg2 ;
38398 wxPoint *arg3 = (wxPoint *) 0 ;
38399 int arg4 = (int) 0 ;
38400 int arg5 = (int) 0 ;
38401 int arg6 = (int) wxODDEVEN_RULE ;
38402 void *argp1 = 0 ;
38403 int res1 = 0 ;
38404 int val4 ;
38405 int ecode4 = 0 ;
38406 int val5 ;
38407 int ecode5 = 0 ;
38408 int val6 ;
38409 int ecode6 = 0 ;
38410 PyObject * obj0 = 0 ;
38411 PyObject * obj1 = 0 ;
38412 PyObject * obj2 = 0 ;
38413 PyObject * obj3 = 0 ;
38414 PyObject * obj4 = 0 ;
38415 char * kwnames[] = {
38416 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38417 };
38418
38419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38421 if (!SWIG_IsOK(res1)) {
38422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38423 }
38424 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38425 {
38426 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38427 if (arg3 == NULL) SWIG_fail;
38428 }
38429 if (obj2) {
38430 ecode4 = SWIG_AsVal_int(obj2, &val4);
38431 if (!SWIG_IsOK(ecode4)) {
38432 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38433 }
38434 arg4 = static_cast< int >(val4);
38435 }
38436 if (obj3) {
38437 ecode5 = SWIG_AsVal_int(obj3, &val5);
38438 if (!SWIG_IsOK(ecode5)) {
38439 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38440 }
38441 arg5 = static_cast< int >(val5);
38442 }
38443 if (obj4) {
38444 ecode6 = SWIG_AsVal_int(obj4, &val6);
38445 if (!SWIG_IsOK(ecode6)) {
38446 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38447 }
38448 arg6 = static_cast< int >(val6);
38449 }
38450 {
38451 PyThreadState* __tstate = wxPyBeginAllowThreads();
38452 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38453 wxPyEndAllowThreads(__tstate);
38454 if (PyErr_Occurred()) SWIG_fail;
38455 }
38456 resultobj = SWIG_Py_Void();
38457 {
38458 if (arg3) delete [] arg3;
38459 }
38460 return resultobj;
38461 fail:
38462 {
38463 if (arg3) delete [] arg3;
38464 }
38465 return NULL;
38466 }
38467
38468
38469 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38470 PyObject *resultobj = 0;
38471 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38472 wxString *arg2 = 0 ;
38473 wxRect *arg3 = 0 ;
38474 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38475 int arg5 = (int) -1 ;
38476 void *argp1 = 0 ;
38477 int res1 = 0 ;
38478 bool temp2 = false ;
38479 wxRect temp3 ;
38480 int val4 ;
38481 int ecode4 = 0 ;
38482 int val5 ;
38483 int ecode5 = 0 ;
38484 PyObject * obj0 = 0 ;
38485 PyObject * obj1 = 0 ;
38486 PyObject * obj2 = 0 ;
38487 PyObject * obj3 = 0 ;
38488 PyObject * obj4 = 0 ;
38489 char * kwnames[] = {
38490 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38491 };
38492
38493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38495 if (!SWIG_IsOK(res1)) {
38496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38497 }
38498 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38499 {
38500 arg2 = wxString_in_helper(obj1);
38501 if (arg2 == NULL) SWIG_fail;
38502 temp2 = true;
38503 }
38504 {
38505 arg3 = &temp3;
38506 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38507 }
38508 if (obj3) {
38509 ecode4 = SWIG_AsVal_int(obj3, &val4);
38510 if (!SWIG_IsOK(ecode4)) {
38511 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38512 }
38513 arg4 = static_cast< int >(val4);
38514 }
38515 if (obj4) {
38516 ecode5 = SWIG_AsVal_int(obj4, &val5);
38517 if (!SWIG_IsOK(ecode5)) {
38518 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38519 }
38520 arg5 = static_cast< int >(val5);
38521 }
38522 {
38523 PyThreadState* __tstate = wxPyBeginAllowThreads();
38524 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38525 wxPyEndAllowThreads(__tstate);
38526 if (PyErr_Occurred()) SWIG_fail;
38527 }
38528 resultobj = SWIG_Py_Void();
38529 {
38530 if (temp2)
38531 delete arg2;
38532 }
38533 return resultobj;
38534 fail:
38535 {
38536 if (temp2)
38537 delete arg2;
38538 }
38539 return NULL;
38540 }
38541
38542
38543 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38544 PyObject *resultobj = 0;
38545 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38546 wxString *arg2 = 0 ;
38547 wxBitmap *arg3 = 0 ;
38548 wxRect *arg4 = 0 ;
38549 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38550 int arg6 = (int) -1 ;
38551 void *argp1 = 0 ;
38552 int res1 = 0 ;
38553 bool temp2 = false ;
38554 void *argp3 = 0 ;
38555 int res3 = 0 ;
38556 wxRect temp4 ;
38557 int val5 ;
38558 int ecode5 = 0 ;
38559 int val6 ;
38560 int ecode6 = 0 ;
38561 PyObject * obj0 = 0 ;
38562 PyObject * obj1 = 0 ;
38563 PyObject * obj2 = 0 ;
38564 PyObject * obj3 = 0 ;
38565 PyObject * obj4 = 0 ;
38566 PyObject * obj5 = 0 ;
38567 char * kwnames[] = {
38568 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38569 };
38570
38571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38573 if (!SWIG_IsOK(res1)) {
38574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38575 }
38576 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38577 {
38578 arg2 = wxString_in_helper(obj1);
38579 if (arg2 == NULL) SWIG_fail;
38580 temp2 = true;
38581 }
38582 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38583 if (!SWIG_IsOK(res3)) {
38584 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38585 }
38586 if (!argp3) {
38587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38588 }
38589 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38590 {
38591 arg4 = &temp4;
38592 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38593 }
38594 if (obj4) {
38595 ecode5 = SWIG_AsVal_int(obj4, &val5);
38596 if (!SWIG_IsOK(ecode5)) {
38597 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38598 }
38599 arg5 = static_cast< int >(val5);
38600 }
38601 if (obj5) {
38602 ecode6 = SWIG_AsVal_int(obj5, &val6);
38603 if (!SWIG_IsOK(ecode6)) {
38604 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38605 }
38606 arg6 = static_cast< int >(val6);
38607 }
38608 {
38609 PyThreadState* __tstate = wxPyBeginAllowThreads();
38610 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38611 wxPyEndAllowThreads(__tstate);
38612 if (PyErr_Occurred()) SWIG_fail;
38613 }
38614 resultobj = SWIG_Py_Void();
38615 {
38616 if (temp2)
38617 delete arg2;
38618 }
38619 return resultobj;
38620 fail:
38621 {
38622 if (temp2)
38623 delete arg2;
38624 }
38625 return NULL;
38626 }
38627
38628
38629 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38630 PyObject *resultobj = 0;
38631 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38632 int arg2 ;
38633 wxPoint *arg3 = (wxPoint *) 0 ;
38634 void *argp1 = 0 ;
38635 int res1 = 0 ;
38636 PyObject * obj0 = 0 ;
38637 PyObject * obj1 = 0 ;
38638 char * kwnames[] = {
38639 (char *) "self",(char *) "points", NULL
38640 };
38641
38642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38644 if (!SWIG_IsOK(res1)) {
38645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38646 }
38647 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38648 {
38649 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38650 if (arg3 == NULL) SWIG_fail;
38651 }
38652 {
38653 PyThreadState* __tstate = wxPyBeginAllowThreads();
38654 (arg1)->DrawSpline(arg2,arg3);
38655 wxPyEndAllowThreads(__tstate);
38656 if (PyErr_Occurred()) SWIG_fail;
38657 }
38658 resultobj = SWIG_Py_Void();
38659 {
38660 if (arg3) delete [] arg3;
38661 }
38662 return resultobj;
38663 fail:
38664 {
38665 if (arg3) delete [] arg3;
38666 }
38667 return NULL;
38668 }
38669
38670
38671 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38672 PyObject *resultobj = 0;
38673 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38674 void *argp1 = 0 ;
38675 int res1 = 0 ;
38676 PyObject *swig_obj[1] ;
38677
38678 if (!args) SWIG_fail;
38679 swig_obj[0] = args;
38680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38681 if (!SWIG_IsOK(res1)) {
38682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38683 }
38684 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38685 {
38686 PyThreadState* __tstate = wxPyBeginAllowThreads();
38687 (arg1)->Clear();
38688 wxPyEndAllowThreads(__tstate);
38689 if (PyErr_Occurred()) SWIG_fail;
38690 }
38691 resultobj = SWIG_Py_Void();
38692 return resultobj;
38693 fail:
38694 return NULL;
38695 }
38696
38697
38698 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38699 PyObject *resultobj = 0;
38700 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38701 wxFont *arg2 = 0 ;
38702 void *argp1 = 0 ;
38703 int res1 = 0 ;
38704 void *argp2 = 0 ;
38705 int res2 = 0 ;
38706 PyObject * obj0 = 0 ;
38707 PyObject * obj1 = 0 ;
38708 char * kwnames[] = {
38709 (char *) "self",(char *) "font", NULL
38710 };
38711
38712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38714 if (!SWIG_IsOK(res1)) {
38715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38716 }
38717 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38718 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38719 if (!SWIG_IsOK(res2)) {
38720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38721 }
38722 if (!argp2) {
38723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38724 }
38725 arg2 = reinterpret_cast< wxFont * >(argp2);
38726 {
38727 PyThreadState* __tstate = wxPyBeginAllowThreads();
38728 (arg1)->SetFont((wxFont const &)*arg2);
38729 wxPyEndAllowThreads(__tstate);
38730 if (PyErr_Occurred()) SWIG_fail;
38731 }
38732 resultobj = SWIG_Py_Void();
38733 return resultobj;
38734 fail:
38735 return NULL;
38736 }
38737
38738
38739 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38740 PyObject *resultobj = 0;
38741 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38742 wxPen *arg2 = 0 ;
38743 void *argp1 = 0 ;
38744 int res1 = 0 ;
38745 void *argp2 = 0 ;
38746 int res2 = 0 ;
38747 PyObject * obj0 = 0 ;
38748 PyObject * obj1 = 0 ;
38749 char * kwnames[] = {
38750 (char *) "self",(char *) "pen", NULL
38751 };
38752
38753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38755 if (!SWIG_IsOK(res1)) {
38756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38757 }
38758 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38759 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38760 if (!SWIG_IsOK(res2)) {
38761 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38762 }
38763 if (!argp2) {
38764 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38765 }
38766 arg2 = reinterpret_cast< wxPen * >(argp2);
38767 {
38768 PyThreadState* __tstate = wxPyBeginAllowThreads();
38769 (arg1)->SetPen((wxPen const &)*arg2);
38770 wxPyEndAllowThreads(__tstate);
38771 if (PyErr_Occurred()) SWIG_fail;
38772 }
38773 resultobj = SWIG_Py_Void();
38774 return resultobj;
38775 fail:
38776 return NULL;
38777 }
38778
38779
38780 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38781 PyObject *resultobj = 0;
38782 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38783 wxBrush *arg2 = 0 ;
38784 void *argp1 = 0 ;
38785 int res1 = 0 ;
38786 void *argp2 = 0 ;
38787 int res2 = 0 ;
38788 PyObject * obj0 = 0 ;
38789 PyObject * obj1 = 0 ;
38790 char * kwnames[] = {
38791 (char *) "self",(char *) "brush", NULL
38792 };
38793
38794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38796 if (!SWIG_IsOK(res1)) {
38797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38798 }
38799 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38800 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38801 if (!SWIG_IsOK(res2)) {
38802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38803 }
38804 if (!argp2) {
38805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38806 }
38807 arg2 = reinterpret_cast< wxBrush * >(argp2);
38808 {
38809 PyThreadState* __tstate = wxPyBeginAllowThreads();
38810 (arg1)->SetBrush((wxBrush const &)*arg2);
38811 wxPyEndAllowThreads(__tstate);
38812 if (PyErr_Occurred()) SWIG_fail;
38813 }
38814 resultobj = SWIG_Py_Void();
38815 return resultobj;
38816 fail:
38817 return NULL;
38818 }
38819
38820
38821 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38822 PyObject *resultobj = 0;
38823 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38824 wxBrush *arg2 = 0 ;
38825 void *argp1 = 0 ;
38826 int res1 = 0 ;
38827 void *argp2 = 0 ;
38828 int res2 = 0 ;
38829 PyObject * obj0 = 0 ;
38830 PyObject * obj1 = 0 ;
38831 char * kwnames[] = {
38832 (char *) "self",(char *) "brush", NULL
38833 };
38834
38835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38837 if (!SWIG_IsOK(res1)) {
38838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38839 }
38840 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38841 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38842 if (!SWIG_IsOK(res2)) {
38843 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38844 }
38845 if (!argp2) {
38846 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38847 }
38848 arg2 = reinterpret_cast< wxBrush * >(argp2);
38849 {
38850 PyThreadState* __tstate = wxPyBeginAllowThreads();
38851 (arg1)->SetBackground((wxBrush const &)*arg2);
38852 wxPyEndAllowThreads(__tstate);
38853 if (PyErr_Occurred()) SWIG_fail;
38854 }
38855 resultobj = SWIG_Py_Void();
38856 return resultobj;
38857 fail:
38858 return NULL;
38859 }
38860
38861
38862 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38863 PyObject *resultobj = 0;
38864 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38865 int arg2 ;
38866 void *argp1 = 0 ;
38867 int res1 = 0 ;
38868 int val2 ;
38869 int ecode2 = 0 ;
38870 PyObject * obj0 = 0 ;
38871 PyObject * obj1 = 0 ;
38872 char * kwnames[] = {
38873 (char *) "self",(char *) "mode", NULL
38874 };
38875
38876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38878 if (!SWIG_IsOK(res1)) {
38879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38880 }
38881 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38882 ecode2 = SWIG_AsVal_int(obj1, &val2);
38883 if (!SWIG_IsOK(ecode2)) {
38884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38885 }
38886 arg2 = static_cast< int >(val2);
38887 {
38888 PyThreadState* __tstate = wxPyBeginAllowThreads();
38889 (arg1)->SetBackgroundMode(arg2);
38890 wxPyEndAllowThreads(__tstate);
38891 if (PyErr_Occurred()) SWIG_fail;
38892 }
38893 resultobj = SWIG_Py_Void();
38894 return resultobj;
38895 fail:
38896 return NULL;
38897 }
38898
38899
38900 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38901 PyObject *resultobj = 0;
38902 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38903 wxPalette *arg2 = 0 ;
38904 void *argp1 = 0 ;
38905 int res1 = 0 ;
38906 void *argp2 = 0 ;
38907 int res2 = 0 ;
38908 PyObject * obj0 = 0 ;
38909 PyObject * obj1 = 0 ;
38910 char * kwnames[] = {
38911 (char *) "self",(char *) "palette", NULL
38912 };
38913
38914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38916 if (!SWIG_IsOK(res1)) {
38917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38918 }
38919 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38920 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38921 if (!SWIG_IsOK(res2)) {
38922 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38923 }
38924 if (!argp2) {
38925 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38926 }
38927 arg2 = reinterpret_cast< wxPalette * >(argp2);
38928 {
38929 PyThreadState* __tstate = wxPyBeginAllowThreads();
38930 (arg1)->SetPalette((wxPalette const &)*arg2);
38931 wxPyEndAllowThreads(__tstate);
38932 if (PyErr_Occurred()) SWIG_fail;
38933 }
38934 resultobj = SWIG_Py_Void();
38935 return resultobj;
38936 fail:
38937 return NULL;
38938 }
38939
38940
38941 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38942 PyObject *resultobj = 0;
38943 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38944 wxColour *arg2 = 0 ;
38945 void *argp1 = 0 ;
38946 int res1 = 0 ;
38947 wxColour temp2 ;
38948 PyObject * obj0 = 0 ;
38949 PyObject * obj1 = 0 ;
38950 char * kwnames[] = {
38951 (char *) "self",(char *) "colour", NULL
38952 };
38953
38954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38956 if (!SWIG_IsOK(res1)) {
38957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38958 }
38959 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38960 {
38961 arg2 = &temp2;
38962 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38963 }
38964 {
38965 PyThreadState* __tstate = wxPyBeginAllowThreads();
38966 (arg1)->SetTextForeground((wxColour const &)*arg2);
38967 wxPyEndAllowThreads(__tstate);
38968 if (PyErr_Occurred()) SWIG_fail;
38969 }
38970 resultobj = SWIG_Py_Void();
38971 return resultobj;
38972 fail:
38973 return NULL;
38974 }
38975
38976
38977 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38978 PyObject *resultobj = 0;
38979 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38980 wxColour *arg2 = 0 ;
38981 void *argp1 = 0 ;
38982 int res1 = 0 ;
38983 wxColour temp2 ;
38984 PyObject * obj0 = 0 ;
38985 PyObject * obj1 = 0 ;
38986 char * kwnames[] = {
38987 (char *) "self",(char *) "colour", NULL
38988 };
38989
38990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38992 if (!SWIG_IsOK(res1)) {
38993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38994 }
38995 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38996 {
38997 arg2 = &temp2;
38998 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38999 }
39000 {
39001 PyThreadState* __tstate = wxPyBeginAllowThreads();
39002 (arg1)->SetTextBackground((wxColour const &)*arg2);
39003 wxPyEndAllowThreads(__tstate);
39004 if (PyErr_Occurred()) SWIG_fail;
39005 }
39006 resultobj = SWIG_Py_Void();
39007 return resultobj;
39008 fail:
39009 return NULL;
39010 }
39011
39012
39013 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39014 PyObject *resultobj = 0;
39015 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39016 int arg2 ;
39017 void *argp1 = 0 ;
39018 int res1 = 0 ;
39019 int val2 ;
39020 int ecode2 = 0 ;
39021 PyObject * obj0 = 0 ;
39022 PyObject * obj1 = 0 ;
39023 char * kwnames[] = {
39024 (char *) "self",(char *) "function", NULL
39025 };
39026
39027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
39028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39029 if (!SWIG_IsOK(res1)) {
39030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39031 }
39032 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39033 ecode2 = SWIG_AsVal_int(obj1, &val2);
39034 if (!SWIG_IsOK(ecode2)) {
39035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
39036 }
39037 arg2 = static_cast< int >(val2);
39038 {
39039 PyThreadState* __tstate = wxPyBeginAllowThreads();
39040 (arg1)->SetLogicalFunction(arg2);
39041 wxPyEndAllowThreads(__tstate);
39042 if (PyErr_Occurred()) SWIG_fail;
39043 }
39044 resultobj = SWIG_Py_Void();
39045 return resultobj;
39046 fail:
39047 return NULL;
39048 }
39049
39050
39051 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39052 PyObject *obj;
39053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39054 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
39055 return SWIG_Py_Void();
39056 }
39057
39058 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39059 return SWIG_Python_InitShadowInstance(args);
39060 }
39061
39062 static PyMethodDef SwigMethods[] = {
39063 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
39064 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
39065 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
39066 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
39067 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
39068 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
39072 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
39073 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
39074 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
39075 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
39076 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
39077 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39078 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39079 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39080 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
39081 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
39082 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39083 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39084 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
39085 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
39086 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
39087 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
39088 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
39089 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
39090 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39091 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
39093 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
39094 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
39095 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
39096 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
39097 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
39098 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
39099 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
39100 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
39101 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
39102 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
39103 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
39104 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
39105 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39106 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
39107 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39108 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39109 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39110 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
39111 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39112 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
39113 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
39114 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39115 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39116 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39117 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
39118 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
39119 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
39120 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39121 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
39122 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39123 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39124 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39125 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
39126 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
39127 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
39128 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
39129 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
39130 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
39131 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
39132 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39133 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
39134 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39135 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39137 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39138 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
39140 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39141 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
39142 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
39143 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
39144 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
39145 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
39146 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
39147 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
39148 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
39149 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
39150 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39151 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
39152 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39153 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
39154 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39155 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39156 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39157 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39158 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39159 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39160 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39161 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39162 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
39166 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
39167 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
39168 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39169 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39170 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
39171 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
39172 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
39173 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
39174 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
39175 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
39176 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
39177 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
39178 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
39179 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
39180 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
39181 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
39182 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
39183 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
39184 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
39185 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39186 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
39187 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
39188 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39189 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39190 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39191 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39192 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39193 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
39194 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
39195 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
39196 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
39197 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
39198 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
39199 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
39200 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
39201 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
39202 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
39203 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
39204 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
39205 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
39207 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
39208 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39209 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39210 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39211 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39212 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39213 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
39214 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
39215 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
39216 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
39217 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
39218 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
39219 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
39220 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
39221 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
39222 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
39223 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39224 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39225 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39226 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39227 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
39228 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39229 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
39230 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
39231 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
39232 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
39233 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39234 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39235 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39236 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39237 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39238 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
39239 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
39240 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39241 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
39242 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
39243 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
39244 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
39245 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39246 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
39247 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
39248 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
39249 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
39250 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39251 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39252 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
39253 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39254 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39255 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39256 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
39257 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
39258 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
39259 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
39260 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39261 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39262 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
39263 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39264 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
39265 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
39266 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
39267 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
39268 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39269 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39270 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39271 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39272 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
39273 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
39274 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
39275 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39276 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39277 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
39278 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
39279 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
39280 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39281 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
39282 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39283 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
39284 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
39285 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
39286 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
39287 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
39288 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39289 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
39290 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39291 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
39292 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39293 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39294 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39295 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
39296 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39297 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
39298 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
39299 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39300 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
39301 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39302 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39303 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
39304 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
39305 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
39306 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
39307 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
39308 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
39309 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
39310 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
39311 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
39312 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
39313 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
39314 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
39315 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
39316 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
39317 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
39318 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
39319 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
39320 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
39321 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
39322 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
39323 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
39324 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
39325 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
39326 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
39327 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
39328 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
39329 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
39330 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
39331 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
39332 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39333 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39334 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39335 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39336 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39337 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39338 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39339 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39340 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39341 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
39342 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
39343 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
39344 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
39345 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
39346 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
39347 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
39348 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
39349 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
39350 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
39351 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
39352 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
39353 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39354 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
39355 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
39356 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
39357 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39358 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39359 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
39360 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
39361 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
39362 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39363 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39364 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
39365 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39366 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
39367 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
39368 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39369 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
39370 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
39371 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39372 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39373 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
39374 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
39375 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
39376 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
39377 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
39378 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
39379 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39380 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
39381 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
39382 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39383 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39384 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
39385 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39386 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39387 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
39388 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
39389 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
39390 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
39391 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
39392 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
39393 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
39394 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
39395 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
39396 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
39397 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
39398 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
39399 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
39400 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39401 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39402 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39403 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39404 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39405 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39406 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39407 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39408 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39409 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
39410 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39411 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39412 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39413 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39414 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39415 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39416 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39417 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39418 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39419 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39420 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39421 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39422 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39423 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39424 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
39425 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39426 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39427 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
39428 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39429 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39430 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39431 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39432 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39433 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39434 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39435 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39436 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39437 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39438 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39439 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39440 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39441 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39442 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39443 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39444 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39445 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39446 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39447 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39448 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39449 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39450 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
39451 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39452 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39453 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39454 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39455 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39456 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39457 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39458 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39459 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39460 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
39461 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39462 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39463 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39464 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39465 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39466 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39467 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
39468 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39469 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39470 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39471 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39472 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39473 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39474 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39475 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39476 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39477 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39478 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39479 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39480 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39481 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39482 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39483 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39484 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39485 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39486 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39487 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39488 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39489 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39490 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39491 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39492 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39493 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39494 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39495 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39496 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39497 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39498 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39499 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39500 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39501 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39502 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39503 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39504 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39505 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39506 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39507 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39508 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39509 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39510 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39511 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39512 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39513 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39514 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39515 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39516 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39517 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39518 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39519 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39520 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39521 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39522 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39523 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39524 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39525 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39526 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39527 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39528 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39529 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39530 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39531 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39532 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39533 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39534 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39535 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39536 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39537 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39538 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39539 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39540 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39541 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39542 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39543 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39544 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39545 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39546 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39547 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39548 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39549 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39550 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39551 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39552 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39553 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39554 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39555 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39556 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39557 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39558 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39559 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39560 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39561 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39562 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39563 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39564 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
39565 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
39566 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39567 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39568 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39569 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39570 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39571 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39572 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39573 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39574 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39575 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39576 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39577 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39578 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39579 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39580 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39581 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39582 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39583 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39584 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39585 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39586 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39587 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39588 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39589 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39590 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39591 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39592 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39593 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39594 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39595 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39596 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39597 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39598 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39599 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39600 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
39601 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39602 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
39603 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
39604 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39605 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39606 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39607 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39608 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39609 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39610 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
39611 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39612 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39613 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39614 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39615 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39616 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39617 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39618 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39619 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39620 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39621 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39622 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39623 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39624 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39625 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39626 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
39627 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39628 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39629 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39630 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39631 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39632 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
39633 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39634 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39635 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
39636 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39637 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39638 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39639 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39640 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39641 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
39642 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39643 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39644 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39645 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39646 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39647 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
39648 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39649 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39650 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
39651 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39652 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
39653 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39654 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39655 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39656 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39657 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39658 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39659 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39660 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
39661 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
39662 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39663 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39664 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39665 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39666 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39667 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39668 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39669 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39670 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39671 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39672 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39673 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
39674 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
39675 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39676 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39677 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39678 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39679 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
39680 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39681 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39682 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39683 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39684 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39685 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39686 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39687 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39688 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
39689 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39690 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39691 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39692 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39693 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39694 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39695 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39696 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39697 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39698 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39699 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39700 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39701 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39702 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39703 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39704 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39705 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39706 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
39707 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
39708 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39709 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
39710 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39711 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39712 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39713 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39714 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39715 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39716 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39717 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39718 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39719 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39720 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
39721 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
39722 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
39723 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
39724 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39725 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39726 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39727 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
39728 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39729 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
39730 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
39731 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39732 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39733 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39734 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39735 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39736 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39737 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39738 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39739 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39740 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39741 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
39742 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
39743 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
39744 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
39745 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
39746 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
39747 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39748 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
39749 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39750 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39751 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39752 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39753 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39754 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39755 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39756 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
39757 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39758 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
39759 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39760 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
39761 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39762 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39763 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39764 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39765 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39766 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
39767 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39768 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39769 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
39770 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39771 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39772 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
39773 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39774 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39775 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39776 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39777 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39778 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39779 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39780 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
39781 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
39782 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
39783 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39784 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39785 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39786 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39787 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
39788 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
39789 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39790 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39791 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39792 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39793 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39794 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39795 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39796 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39797 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39798 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39799 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39800 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39801 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
39802 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
39803 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
39804 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39805 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
39806 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39807 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
39808 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39809 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39810 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39811 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39812 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39813 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39814 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39815 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39816 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39817 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
39818 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39819 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39820 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39821 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39822 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39823 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39824 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39825 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39826 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39827 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39828 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39829 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39830 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39831 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39832 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
39833 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39834 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39835 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39836 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39837 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39838 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39839 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39840 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39841 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39842 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39843 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39844 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39845 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39846 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39847 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
39848 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39849 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
39850 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
39851 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
39852 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39853 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39854 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39855 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
39856 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39857 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39858 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39859 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
39860 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39861 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39862 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39863 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39864 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39865 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39866 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39867 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
39868 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39869 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39870 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39871 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
39872 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39873 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39874 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39875 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39876 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39877 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39878 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39879 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39880 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39881 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39882 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39883 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39884 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39885 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39886 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39887 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39888 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39889 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39890 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39891 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39892 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39893 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39894 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
39895 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39896 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39897 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39898 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39899 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39900 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39901 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39902 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39903 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39904 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39905 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39906 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39907 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39908 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39909 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39910 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39911 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39912 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
39913 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39914 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39915 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39916 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39917 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39918 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39919 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39920 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
39921 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39922 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39923 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39924 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39925 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39926 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39927 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
39928 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39929 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39930 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39931 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39932 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39933 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39934 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39935 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39936 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39937 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
39938 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39939 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39940 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39941 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39942 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39943 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39944 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39945 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39946 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39947 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
39948 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39949 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39950 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39951 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
39952 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39953 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39954 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39955 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39956 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39957 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39958 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39959 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39960 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39961 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39962 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39963 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39964 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39965 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39966 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39967 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39968 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39969 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39970 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39971 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39972 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39973 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39974 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39975 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39976 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39977 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39978 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39979 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39980 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39981 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39982 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39983 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39984 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39985 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39986 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39987 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39988 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39989 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39990 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39991 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39992 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39993 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39994 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39995 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39996 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39997 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39998 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39999 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40000 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40001 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
40002 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
40003 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
40004 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40005 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
40006 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
40007 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
40008 { NULL, NULL, 0, NULL }
40009 };
40010
40011
40012 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
40013
40014 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
40015 return (void *)((wxClientDC *) ((wxPaintDC *) x));
40016 }
40017 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
40018 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
40019 }
40020 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
40021 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
40022 }
40023 static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
40024 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
40025 }
40026 static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
40027 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
40028 }
40029 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
40030 return (void *)((wxWindowDC *) ((wxClientDC *) x));
40031 }
40032 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
40033 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
40034 }
40035 static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
40036 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40037 }
40038 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
40039 return (void *)((wxLocale *) ((wxPyLocale *) x));
40040 }
40041 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
40042 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
40043 }
40044 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
40045 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
40046 }
40047 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
40048 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40049 }
40050 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
40051 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
40052 }
40053 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
40054 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
40055 }
40056 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
40057 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
40058 }
40059 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
40060 return (void *)((wxGDIObject *) ((wxIcon *) x));
40061 }
40062 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
40063 return (void *)((wxGDIObject *) ((wxPalette *) x));
40064 }
40065 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
40066 return (void *)((wxGDIObject *) ((wxPen *) x));
40067 }
40068 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
40069 return (void *)((wxGDIObject *) ((wxFont *) x));
40070 }
40071 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
40072 return (void *)((wxGDIObject *) ((wxCursor *) x));
40073 }
40074 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
40075 return (void *)((wxGDIObject *) ((wxBitmap *) x));
40076 }
40077 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
40078 return (void *)((wxGDIObject *) ((wxRegion *) x));
40079 }
40080 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
40081 return (void *)((wxGDIObject *) ((wxBrush *) x));
40082 }
40083 static void *_p_wxGCDCTo_p_wxDC(void *x) {
40084 return (void *)((wxDC *) ((wxGCDC *) x));
40085 }
40086 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
40087 return (void *)((wxDC *) ((wxScreenDC *) x));
40088 }
40089 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
40090 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
40091 }
40092 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
40093 return (void *)((wxDC *) ((wxMirrorDC *) x));
40094 }
40095 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
40096 return (void *)((wxDC *) ((wxWindowDC *) x));
40097 }
40098 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
40099 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
40100 }
40101 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
40102 return (void *)((wxDC *) ((wxMetaFileDC *) x));
40103 }
40104 static void *_p_wxClientDCTo_p_wxDC(void *x) {
40105 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
40106 }
40107 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
40108 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40109 }
40110 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
40111 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40112 }
40113 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
40114 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
40115 }
40116 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
40117 return (void *)((wxDC *) ((wxPostScriptDC *) x));
40118 }
40119 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
40120 return (void *)((wxDC *) ((wxPrinterDC *) x));
40121 }
40122 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
40123 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
40124 }
40125 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
40126 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
40127 }
40128 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
40129 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
40130 }
40131 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
40132 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
40133 }
40134 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
40135 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
40136 }
40137 static void *_p_wxPenTo_p_wxObject(void *x) {
40138 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
40139 }
40140 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
40141 return (void *)((wxObject *) ((wxRegionIterator *) x));
40142 }
40143 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
40144 return (void *)((wxObject *) ((wxSizerItem *) x));
40145 }
40146 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
40147 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
40148 }
40149 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
40150 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
40151 }
40152 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
40153 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
40154 }
40155 static void *_p_wxIconTo_p_wxObject(void *x) {
40156 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
40157 }
40158 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
40159 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
40160 }
40161 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
40162 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
40163 }
40164 static void *_p_wxSizerTo_p_wxObject(void *x) {
40165 return (void *)((wxObject *) ((wxSizer *) x));
40166 }
40167 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
40168 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
40169 }
40170 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
40171 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
40172 }
40173 static void *_p_wxEventTo_p_wxObject(void *x) {
40174 return (void *)((wxObject *) ((wxEvent *) x));
40175 }
40176 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
40177 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
40178 }
40179 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
40180 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
40181 }
40182 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
40183 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
40184 }
40185 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
40186 return (void *)((wxObject *) ((wxPseudoDC *) x));
40187 }
40188 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
40189 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
40190 }
40191 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
40192 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
40193 }
40194 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
40195 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
40196 }
40197 static void *_p_wxDCTo_p_wxObject(void *x) {
40198 return (void *)((wxObject *) ((wxDC *) x));
40199 }
40200 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
40201 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
40202 }
40203 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40204 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40205 }
40206 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40207 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40208 }
40209 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40210 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40211 }
40212 static void *_p_wxControlTo_p_wxObject(void *x) {
40213 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
40214 }
40215 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
40216 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
40217 }
40218 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
40219 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
40220 }
40221 static void *_p_wxClientDCTo_p_wxObject(void *x) {
40222 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
40223 }
40224 static void *_p_wxFSFileTo_p_wxObject(void *x) {
40225 return (void *)((wxObject *) ((wxFSFile *) x));
40226 }
40227 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
40228 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
40229 }
40230 static void *_p_wxRegionTo_p_wxObject(void *x) {
40231 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
40232 }
40233 static void *_p_wxPySizerTo_p_wxObject(void *x) {
40234 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40235 }
40236 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
40237 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
40238 }
40239 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
40240 return (void *)((wxObject *) ((wxGDIObject *) x));
40241 }
40242 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
40243 return (void *)((wxObject *) ((wxGraphicsObject *) x));
40244 }
40245 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
40246 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
40247 }
40248 static void *_p_wxEffectsTo_p_wxObject(void *x) {
40249 return (void *)((wxObject *) ((wxEffects *) x));
40250 }
40251 static void *_p_wxPyEventTo_p_wxObject(void *x) {
40252 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
40253 }
40254 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
40255 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
40256 }
40257 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
40258 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
40259 }
40260 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
40261 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
40262 }
40263 static void *_p_wxShowEventTo_p_wxObject(void *x) {
40264 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40265 }
40266 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40267 return (void *)((wxObject *) ((wxMenuItem *) x));
40268 }
40269 static void *_p_wxDateEventTo_p_wxObject(void *x) {
40270 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
40271 }
40272 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
40273 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
40274 }
40275 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
40276 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
40277 }
40278 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
40279 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
40280 }
40281 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
40282 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
40283 }
40284 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
40285 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
40286 }
40287 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
40288 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
40289 }
40290 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
40291 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
40292 }
40293 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
40294 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
40295 }
40296 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40297 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40298 }
40299 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40300 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40301 }
40302 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40303 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40304 }
40305 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40306 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40307 }
40308 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40309 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40310 }
40311 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40312 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40313 }
40314 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40315 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40316 }
40317 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40318 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40319 }
40320 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40321 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40322 }
40323 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
40324 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
40325 }
40326 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40327 return (void *)((wxObject *) ((wxImageHandler *) x));
40328 }
40329 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40330 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40331 }
40332 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40333 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40334 }
40335 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
40336 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
40337 }
40338 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40339 return (void *)((wxObject *) ((wxEvtHandler *) x));
40340 }
40341 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
40342 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
40343 }
40344 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
40345 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40346 }
40347 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
40348 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40349 }
40350 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
40351 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
40352 }
40353 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
40354 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
40355 }
40356 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
40357 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
40358 }
40359 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40360 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40361 }
40362 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
40363 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
40364 }
40365 static void *_p_wxImageTo_p_wxObject(void *x) {
40366 return (void *)((wxObject *) ((wxImage *) x));
40367 }
40368 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40369 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40370 }
40371 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
40372 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
40373 }
40374 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
40375 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
40376 }
40377 static void *_p_wxPaletteTo_p_wxObject(void *x) {
40378 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
40379 }
40380 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
40381 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
40382 }
40383 static void *_p_wxImageListTo_p_wxObject(void *x) {
40384 return (void *)((wxObject *) ((wxImageList *) x));
40385 }
40386 static void *_p_wxGCDCTo_p_wxObject(void *x) {
40387 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
40388 }
40389 static void *_p_wxCursorTo_p_wxObject(void *x) {
40390 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
40391 }
40392 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
40393 return (void *)((wxObject *) ((wxEncodingConverter *) x));
40394 }
40395 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
40396 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
40397 }
40398 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
40399 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
40400 }
40401 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40402 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40403 }
40404 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40405 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40406 }
40407 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40408 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40409 }
40410 static void *_p_wxWindowTo_p_wxObject(void *x) {
40411 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40412 }
40413 static void *_p_wxMenuTo_p_wxObject(void *x) {
40414 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40415 }
40416 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40417 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40418 }
40419 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40420 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40421 }
40422 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40423 return (void *)((wxObject *) ((wxFileSystem *) x));
40424 }
40425 static void *_p_wxBitmapTo_p_wxObject(void *x) {
40426 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40427 }
40428 static void *_p_wxMaskTo_p_wxObject(void *x) {
40429 return (void *)((wxObject *) ((wxMask *) x));
40430 }
40431 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40432 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40433 }
40434 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40435 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40436 }
40437 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40438 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40439 }
40440 static void *_p_wxPyAppTo_p_wxObject(void *x) {
40441 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40442 }
40443 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40444 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40445 }
40446 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40447 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40448 }
40449 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40450 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40451 }
40452 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40453 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40454 }
40455 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40456 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40457 }
40458 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40459 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40460 }
40461 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40462 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40463 }
40464 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40465 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40466 }
40467 static void *_p_wxFontTo_p_wxObject(void *x) {
40468 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40469 }
40470 static void *_p_wxBrushTo_p_wxObject(void *x) {
40471 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40472 }
40473 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40474 return (void *)((wxObject *) ((wxMetaFile *) x));
40475 }
40476 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40477 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40478 }
40479 static void *_p_wxColourTo_p_wxObject(void *x) {
40480 return (void *)((wxObject *) ((wxColour *) x));
40481 }
40482 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40483 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40484 }
40485 static void *_p_wxValidatorTo_p_wxObject(void *x) {
40486 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40487 }
40488 static void *_p_wxControlTo_p_wxWindow(void *x) {
40489 return (void *)((wxWindow *) ((wxControl *) x));
40490 }
40491 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40492 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40493 }
40494 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40495 return (void *)((wxWindow *) ((wxMenuBar *) x));
40496 }
40497 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40498 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40499 }
40500 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40501 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40502 }
40503 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
40504 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
40505 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
40506 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};
40507 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40508 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40509 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40510 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
40511 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
40512 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40513 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
40514 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
40515 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40516 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40517 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40518 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40519 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
40520 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
40521 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
40522 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
40523 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40524 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40525 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40526 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
40527 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40528 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
40529 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
40530 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40531 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
40532 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40533 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40534 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40535 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40536 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40537 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40538 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
40539 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
40540 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
40541 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
40542 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
40543 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
40544 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40545 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40546 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
40547 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
40548 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40549 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
40550 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
40551 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40552 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40553 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40554 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40555 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40556 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40557 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40558 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40559 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40560 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40561 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40562 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40563 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40564 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
40565 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40566 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
40567 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40568 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
40569 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
40570 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
40571 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40572 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40573 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40574 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40575 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40576 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40577 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40578 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40579 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
40580 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40581 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40582 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
40583 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
40584 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40585 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40586 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40587 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40588 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40589 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40590 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40591 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40592 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40593 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40594 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40595 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40596 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40597 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40598 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40599 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40600 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40601 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40602 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40603 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40604 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40605 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40606 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
40607 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
40608 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
40609 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40610 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40611 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40612 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40613 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40614 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
40615 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
40616 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
40617 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
40618 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
40619 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40620 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40621 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
40622 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
40623 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
40624 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
40625 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40626 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40627 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40628 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40629 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40630 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40631 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40632 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40633 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40634 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40635 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40636 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40637 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40638 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40639 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40640 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40641 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40642 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40643 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40644 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
40645 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
40646 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40647 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40648 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40649 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40650 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
40651 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
40652 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
40653 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
40654 static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
40655 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40656 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40657 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
40658 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
40659 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
40660 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
40661 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
40662 static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
40663 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40664 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40665 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40666 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40667 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40668 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40669 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
40670 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
40671 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40672 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40673 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40674
40675 static swig_type_info *swig_type_initial[] = {
40676 &_swigt__p_buffer,
40677 &_swigt__p_char,
40678 &_swigt__p_double,
40679 &_swigt__p_form_ops_t,
40680 &_swigt__p_int,
40681 &_swigt__p_unsigned_char,
40682 &_swigt__p_unsigned_int,
40683 &_swigt__p_unsigned_long,
40684 &_swigt__p_void,
40685 &_swigt__p_wxANIHandler,
40686 &_swigt__p_wxAcceleratorTable,
40687 &_swigt__p_wxActivateEvent,
40688 &_swigt__p_wxAlphaPixelData,
40689 &_swigt__p_wxAlphaPixelData_Accessor,
40690 &_swigt__p_wxAutoBufferedPaintDC,
40691 &_swigt__p_wxBMPHandler,
40692 &_swigt__p_wxBitmap,
40693 &_swigt__p_wxBoxSizer,
40694 &_swigt__p_wxBrush,
40695 &_swigt__p_wxBrushList,
40696 &_swigt__p_wxBufferedDC,
40697 &_swigt__p_wxBufferedPaintDC,
40698 &_swigt__p_wxCURHandler,
40699 &_swigt__p_wxChar,
40700 &_swigt__p_wxChildFocusEvent,
40701 &_swigt__p_wxClientDC,
40702 &_swigt__p_wxClipboardTextEvent,
40703 &_swigt__p_wxCloseEvent,
40704 &_swigt__p_wxColor,
40705 &_swigt__p_wxColour,
40706 &_swigt__p_wxColourDatabase,
40707 &_swigt__p_wxCommandEvent,
40708 &_swigt__p_wxContextMenuEvent,
40709 &_swigt__p_wxControl,
40710 &_swigt__p_wxControlWithItems,
40711 &_swigt__p_wxCursor,
40712 &_swigt__p_wxDC,
40713 &_swigt__p_wxDCBrushChanger,
40714 &_swigt__p_wxDCClipper,
40715 &_swigt__p_wxDCOverlay,
40716 &_swigt__p_wxDCPenChanger,
40717 &_swigt__p_wxDCTextColourChanger,
40718 &_swigt__p_wxDash,
40719 &_swigt__p_wxDateEvent,
40720 &_swigt__p_wxDisplayChangedEvent,
40721 &_swigt__p_wxDropFilesEvent,
40722 &_swigt__p_wxDuplexMode,
40723 &_swigt__p_wxEffects,
40724 &_swigt__p_wxEncodingConverter,
40725 &_swigt__p_wxEraseEvent,
40726 &_swigt__p_wxEvent,
40727 &_swigt__p_wxEvtHandler,
40728 &_swigt__p_wxFSFile,
40729 &_swigt__p_wxFileSystem,
40730 &_swigt__p_wxFlexGridSizer,
40731 &_swigt__p_wxFocusEvent,
40732 &_swigt__p_wxFont,
40733 &_swigt__p_wxFontList,
40734 &_swigt__p_wxFontMapper,
40735 &_swigt__p_wxGBSizerItem,
40736 &_swigt__p_wxGCDC,
40737 &_swigt__p_wxGDIObjListBase,
40738 &_swigt__p_wxGDIObject,
40739 &_swigt__p_wxGIFHandler,
40740 &_swigt__p_wxGraphicsBrush,
40741 &_swigt__p_wxGraphicsContext,
40742 &_swigt__p_wxGraphicsFont,
40743 &_swigt__p_wxGraphicsMatrix,
40744 &_swigt__p_wxGraphicsObject,
40745 &_swigt__p_wxGraphicsPath,
40746 &_swigt__p_wxGraphicsPen,
40747 &_swigt__p_wxGraphicsRenderer,
40748 &_swigt__p_wxGridBagSizer,
40749 &_swigt__p_wxGridSizer,
40750 &_swigt__p_wxHeaderButtonParams,
40751 &_swigt__p_wxICOHandler,
40752 &_swigt__p_wxIcon,
40753 &_swigt__p_wxIconBundle,
40754 &_swigt__p_wxIconLocation,
40755 &_swigt__p_wxIconizeEvent,
40756 &_swigt__p_wxIdleEvent,
40757 &_swigt__p_wxImage,
40758 &_swigt__p_wxImageHandler,
40759 &_swigt__p_wxImageList,
40760 &_swigt__p_wxIndividualLayoutConstraint,
40761 &_swigt__p_wxInitDialogEvent,
40762 &_swigt__p_wxJPEGHandler,
40763 &_swigt__p_wxKeyEvent,
40764 &_swigt__p_wxLanguageInfo,
40765 &_swigt__p_wxLayoutConstraints,
40766 &_swigt__p_wxLocale,
40767 &_swigt__p_wxMask,
40768 &_swigt__p_wxMaximizeEvent,
40769 &_swigt__p_wxMemoryDC,
40770 &_swigt__p_wxMenu,
40771 &_swigt__p_wxMenuBar,
40772 &_swigt__p_wxMenuEvent,
40773 &_swigt__p_wxMenuItem,
40774 &_swigt__p_wxMetaFile,
40775 &_swigt__p_wxMetaFileDC,
40776 &_swigt__p_wxMirrorDC,
40777 &_swigt__p_wxMouseCaptureChangedEvent,
40778 &_swigt__p_wxMouseCaptureLostEvent,
40779 &_swigt__p_wxMouseEvent,
40780 &_swigt__p_wxMoveEvent,
40781 &_swigt__p_wxNativeEncodingInfo,
40782 &_swigt__p_wxNativeFontInfo,
40783 &_swigt__p_wxNativePixelData,
40784 &_swigt__p_wxNativePixelData_Accessor,
40785 &_swigt__p_wxNavigationKeyEvent,
40786 &_swigt__p_wxNcPaintEvent,
40787 &_swigt__p_wxNotifyEvent,
40788 &_swigt__p_wxObject,
40789 &_swigt__p_wxOverlay,
40790 &_swigt__p_wxPCXHandler,
40791 &_swigt__p_wxPNGHandler,
40792 &_swigt__p_wxPNMHandler,
40793 &_swigt__p_wxPaintDC,
40794 &_swigt__p_wxPaintEvent,
40795 &_swigt__p_wxPalette,
40796 &_swigt__p_wxPaletteChangedEvent,
40797 &_swigt__p_wxPaperSize,
40798 &_swigt__p_wxPen,
40799 &_swigt__p_wxPenList,
40800 &_swigt__p_wxPixelDataBase,
40801 &_swigt__p_wxPoint,
40802 &_swigt__p_wxPoint2D,
40803 &_swigt__p_wxPoint2DDouble,
40804 &_swigt__p_wxPostScriptDC,
40805 &_swigt__p_wxPrintData,
40806 &_swigt__p_wxPrinterDC,
40807 &_swigt__p_wxPseudoDC,
40808 &_swigt__p_wxPyApp,
40809 &_swigt__p_wxPyCommandEvent,
40810 &_swigt__p_wxPyEvent,
40811 &_swigt__p_wxPyFontEnumerator,
40812 &_swigt__p_wxPyImageHandler,
40813 &_swigt__p_wxPyLocale,
40814 &_swigt__p_wxPySizer,
40815 &_swigt__p_wxPyValidator,
40816 &_swigt__p_wxQueryNewPaletteEvent,
40817 &_swigt__p_wxRect,
40818 &_swigt__p_wxRect2DDouble,
40819 &_swigt__p_wxRegion,
40820 &_swigt__p_wxRegionIterator,
40821 &_swigt__p_wxRendererNative,
40822 &_swigt__p_wxRendererVersion,
40823 &_swigt__p_wxScreenDC,
40824 &_swigt__p_wxScrollEvent,
40825 &_swigt__p_wxScrollWinEvent,
40826 &_swigt__p_wxSetCursorEvent,
40827 &_swigt__p_wxShowEvent,
40828 &_swigt__p_wxSize,
40829 &_swigt__p_wxSizeEvent,
40830 &_swigt__p_wxSizer,
40831 &_swigt__p_wxSizerItem,
40832 &_swigt__p_wxSplitterRenderParams,
40833 &_swigt__p_wxStaticBoxSizer,
40834 &_swigt__p_wxStdDialogButtonSizer,
40835 &_swigt__p_wxStockGDI,
40836 &_swigt__p_wxString,
40837 &_swigt__p_wxSysColourChangedEvent,
40838 &_swigt__p_wxTGAHandler,
40839 &_swigt__p_wxTIFFHandler,
40840 &_swigt__p_wxUpdateUIEvent,
40841 &_swigt__p_wxValidator,
40842 &_swigt__p_wxWindow,
40843 &_swigt__p_wxWindowCreateEvent,
40844 &_swigt__p_wxWindowDC,
40845 &_swigt__p_wxWindowDestroyEvent,
40846 &_swigt__p_wxXPMHandler,
40847 };
40848
40849 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
40850 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40851 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40852 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40853 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40854 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40855 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40856 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
40857 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
40858 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40859 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40860 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40861 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40862 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40863 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40864 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}};
40865 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40866 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
40867 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}};
40868 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
40869 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40870 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40871 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
40872 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}};
40873 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40874 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
40875 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
40876 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40877 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
40878 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40879 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40880 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40881 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40882 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40883 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40884 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
40885 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
40886 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}};
40887 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}};
40888 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
40889 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
40890 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40891 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40892 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}};
40893 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
40894 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40895 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
40896 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
40897 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40898 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40899 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40900 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40901 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40902 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
40903 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}};
40904 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
40905 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}};
40906 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40907 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40908 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40909 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40910 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
40911 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40912 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40913 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
40914 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40915 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40916 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40917 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40918 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40919 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40920 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40921 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40922 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40923 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40924 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40925 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40926 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40927 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
40928 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
40929 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40930 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40931 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40932 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40933 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40934 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40935 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40936 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40937 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40938 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40939 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40940 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40941 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40942 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40943 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40944 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40945 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40946 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40947 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40948 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40949 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40950 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40951 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
40952 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
40953 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
40954 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40955 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40956 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40957 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40958 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40959 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
40960 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
40961 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
40962 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
40963 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
40964 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40965 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40966 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
40967 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
40968 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
40969 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
40970 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40971 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40972 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40973 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40974 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40975 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40976 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40977 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40978 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40979 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40980 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40981 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40982 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40983 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40984 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40985 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40986 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40987 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40988 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40989 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
40990 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}};
40991 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
40992 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40993 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40994 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40995 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40996 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
40997 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}};
40998 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
40999 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
41000 static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
41001 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
41002 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
41003 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
41004 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
41005 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
41006 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
41007 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
41008 static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
41009 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
41010 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
41011 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
41012 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
41013 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
41014 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
41015 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
41016 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
41017 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
41018 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}};
41019 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}};
41020
41021 static swig_cast_info *swig_cast_initial[] = {
41022 _swigc__p_buffer,
41023 _swigc__p_char,
41024 _swigc__p_double,
41025 _swigc__p_form_ops_t,
41026 _swigc__p_int,
41027 _swigc__p_unsigned_char,
41028 _swigc__p_unsigned_int,
41029 _swigc__p_unsigned_long,
41030 _swigc__p_void,
41031 _swigc__p_wxANIHandler,
41032 _swigc__p_wxAcceleratorTable,
41033 _swigc__p_wxActivateEvent,
41034 _swigc__p_wxAlphaPixelData,
41035 _swigc__p_wxAlphaPixelData_Accessor,
41036 _swigc__p_wxAutoBufferedPaintDC,
41037 _swigc__p_wxBMPHandler,
41038 _swigc__p_wxBitmap,
41039 _swigc__p_wxBoxSizer,
41040 _swigc__p_wxBrush,
41041 _swigc__p_wxBrushList,
41042 _swigc__p_wxBufferedDC,
41043 _swigc__p_wxBufferedPaintDC,
41044 _swigc__p_wxCURHandler,
41045 _swigc__p_wxChar,
41046 _swigc__p_wxChildFocusEvent,
41047 _swigc__p_wxClientDC,
41048 _swigc__p_wxClipboardTextEvent,
41049 _swigc__p_wxCloseEvent,
41050 _swigc__p_wxColor,
41051 _swigc__p_wxColour,
41052 _swigc__p_wxColourDatabase,
41053 _swigc__p_wxCommandEvent,
41054 _swigc__p_wxContextMenuEvent,
41055 _swigc__p_wxControl,
41056 _swigc__p_wxControlWithItems,
41057 _swigc__p_wxCursor,
41058 _swigc__p_wxDC,
41059 _swigc__p_wxDCBrushChanger,
41060 _swigc__p_wxDCClipper,
41061 _swigc__p_wxDCOverlay,
41062 _swigc__p_wxDCPenChanger,
41063 _swigc__p_wxDCTextColourChanger,
41064 _swigc__p_wxDash,
41065 _swigc__p_wxDateEvent,
41066 _swigc__p_wxDisplayChangedEvent,
41067 _swigc__p_wxDropFilesEvent,
41068 _swigc__p_wxDuplexMode,
41069 _swigc__p_wxEffects,
41070 _swigc__p_wxEncodingConverter,
41071 _swigc__p_wxEraseEvent,
41072 _swigc__p_wxEvent,
41073 _swigc__p_wxEvtHandler,
41074 _swigc__p_wxFSFile,
41075 _swigc__p_wxFileSystem,
41076 _swigc__p_wxFlexGridSizer,
41077 _swigc__p_wxFocusEvent,
41078 _swigc__p_wxFont,
41079 _swigc__p_wxFontList,
41080 _swigc__p_wxFontMapper,
41081 _swigc__p_wxGBSizerItem,
41082 _swigc__p_wxGCDC,
41083 _swigc__p_wxGDIObjListBase,
41084 _swigc__p_wxGDIObject,
41085 _swigc__p_wxGIFHandler,
41086 _swigc__p_wxGraphicsBrush,
41087 _swigc__p_wxGraphicsContext,
41088 _swigc__p_wxGraphicsFont,
41089 _swigc__p_wxGraphicsMatrix,
41090 _swigc__p_wxGraphicsObject,
41091 _swigc__p_wxGraphicsPath,
41092 _swigc__p_wxGraphicsPen,
41093 _swigc__p_wxGraphicsRenderer,
41094 _swigc__p_wxGridBagSizer,
41095 _swigc__p_wxGridSizer,
41096 _swigc__p_wxHeaderButtonParams,
41097 _swigc__p_wxICOHandler,
41098 _swigc__p_wxIcon,
41099 _swigc__p_wxIconBundle,
41100 _swigc__p_wxIconLocation,
41101 _swigc__p_wxIconizeEvent,
41102 _swigc__p_wxIdleEvent,
41103 _swigc__p_wxImage,
41104 _swigc__p_wxImageHandler,
41105 _swigc__p_wxImageList,
41106 _swigc__p_wxIndividualLayoutConstraint,
41107 _swigc__p_wxInitDialogEvent,
41108 _swigc__p_wxJPEGHandler,
41109 _swigc__p_wxKeyEvent,
41110 _swigc__p_wxLanguageInfo,
41111 _swigc__p_wxLayoutConstraints,
41112 _swigc__p_wxLocale,
41113 _swigc__p_wxMask,
41114 _swigc__p_wxMaximizeEvent,
41115 _swigc__p_wxMemoryDC,
41116 _swigc__p_wxMenu,
41117 _swigc__p_wxMenuBar,
41118 _swigc__p_wxMenuEvent,
41119 _swigc__p_wxMenuItem,
41120 _swigc__p_wxMetaFile,
41121 _swigc__p_wxMetaFileDC,
41122 _swigc__p_wxMirrorDC,
41123 _swigc__p_wxMouseCaptureChangedEvent,
41124 _swigc__p_wxMouseCaptureLostEvent,
41125 _swigc__p_wxMouseEvent,
41126 _swigc__p_wxMoveEvent,
41127 _swigc__p_wxNativeEncodingInfo,
41128 _swigc__p_wxNativeFontInfo,
41129 _swigc__p_wxNativePixelData,
41130 _swigc__p_wxNativePixelData_Accessor,
41131 _swigc__p_wxNavigationKeyEvent,
41132 _swigc__p_wxNcPaintEvent,
41133 _swigc__p_wxNotifyEvent,
41134 _swigc__p_wxObject,
41135 _swigc__p_wxOverlay,
41136 _swigc__p_wxPCXHandler,
41137 _swigc__p_wxPNGHandler,
41138 _swigc__p_wxPNMHandler,
41139 _swigc__p_wxPaintDC,
41140 _swigc__p_wxPaintEvent,
41141 _swigc__p_wxPalette,
41142 _swigc__p_wxPaletteChangedEvent,
41143 _swigc__p_wxPaperSize,
41144 _swigc__p_wxPen,
41145 _swigc__p_wxPenList,
41146 _swigc__p_wxPixelDataBase,
41147 _swigc__p_wxPoint,
41148 _swigc__p_wxPoint2D,
41149 _swigc__p_wxPoint2DDouble,
41150 _swigc__p_wxPostScriptDC,
41151 _swigc__p_wxPrintData,
41152 _swigc__p_wxPrinterDC,
41153 _swigc__p_wxPseudoDC,
41154 _swigc__p_wxPyApp,
41155 _swigc__p_wxPyCommandEvent,
41156 _swigc__p_wxPyEvent,
41157 _swigc__p_wxPyFontEnumerator,
41158 _swigc__p_wxPyImageHandler,
41159 _swigc__p_wxPyLocale,
41160 _swigc__p_wxPySizer,
41161 _swigc__p_wxPyValidator,
41162 _swigc__p_wxQueryNewPaletteEvent,
41163 _swigc__p_wxRect,
41164 _swigc__p_wxRect2DDouble,
41165 _swigc__p_wxRegion,
41166 _swigc__p_wxRegionIterator,
41167 _swigc__p_wxRendererNative,
41168 _swigc__p_wxRendererVersion,
41169 _swigc__p_wxScreenDC,
41170 _swigc__p_wxScrollEvent,
41171 _swigc__p_wxScrollWinEvent,
41172 _swigc__p_wxSetCursorEvent,
41173 _swigc__p_wxShowEvent,
41174 _swigc__p_wxSize,
41175 _swigc__p_wxSizeEvent,
41176 _swigc__p_wxSizer,
41177 _swigc__p_wxSizerItem,
41178 _swigc__p_wxSplitterRenderParams,
41179 _swigc__p_wxStaticBoxSizer,
41180 _swigc__p_wxStdDialogButtonSizer,
41181 _swigc__p_wxStockGDI,
41182 _swigc__p_wxString,
41183 _swigc__p_wxSysColourChangedEvent,
41184 _swigc__p_wxTGAHandler,
41185 _swigc__p_wxTIFFHandler,
41186 _swigc__p_wxUpdateUIEvent,
41187 _swigc__p_wxValidator,
41188 _swigc__p_wxWindow,
41189 _swigc__p_wxWindowCreateEvent,
41190 _swigc__p_wxWindowDC,
41191 _swigc__p_wxWindowDestroyEvent,
41192 _swigc__p_wxXPMHandler,
41193 };
41194
41195
41196 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
41197
41198 static swig_const_info swig_const_table[] = {
41199 {0, 0, 0, 0.0, 0, 0}};
41200
41201 #ifdef __cplusplus
41202 }
41203 #endif
41204 /* -----------------------------------------------------------------------------
41205 * Type initialization:
41206 * This problem is tough by the requirement that no dynamic
41207 * memory is used. Also, since swig_type_info structures store pointers to
41208 * swig_cast_info structures and swig_cast_info structures store pointers back
41209 * to swig_type_info structures, we need some lookup code at initialization.
41210 * The idea is that swig generates all the structures that are needed.
41211 * The runtime then collects these partially filled structures.
41212 * The SWIG_InitializeModule function takes these initial arrays out of
41213 * swig_module, and does all the lookup, filling in the swig_module.types
41214 * array with the correct data and linking the correct swig_cast_info
41215 * structures together.
41216 *
41217 * The generated swig_type_info structures are assigned staticly to an initial
41218 * array. We just loop though that array, and handle each type individually.
41219 * First we lookup if this type has been already loaded, and if so, use the
41220 * loaded structure instead of the generated one. Then we have to fill in the
41221 * cast linked list. The cast data is initially stored in something like a
41222 * two-dimensional array. Each row corresponds to a type (there are the same
41223 * number of rows as there are in the swig_type_initial array). Each entry in
41224 * a column is one of the swig_cast_info structures for that type.
41225 * The cast_initial array is actually an array of arrays, because each row has
41226 * a variable number of columns. So to actually build the cast linked list,
41227 * we find the array of casts associated with the type, and loop through it
41228 * adding the casts to the list. The one last trick we need to do is making
41229 * sure the type pointer in the swig_cast_info struct is correct.
41230 *
41231 * First off, we lookup the cast->type name to see if it is already loaded.
41232 * There are three cases to handle:
41233 * 1) If the cast->type has already been loaded AND the type we are adding
41234 * casting info to has not been loaded (it is in this module), THEN we
41235 * replace the cast->type pointer with the type pointer that has already
41236 * been loaded.
41237 * 2) If BOTH types (the one we are adding casting info to, and the
41238 * cast->type) are loaded, THEN the cast info has already been loaded by
41239 * the previous module so we just ignore it.
41240 * 3) Finally, if cast->type has not already been loaded, then we add that
41241 * swig_cast_info to the linked list (because the cast->type) pointer will
41242 * be correct.
41243 * ----------------------------------------------------------------------------- */
41244
41245 #ifdef __cplusplus
41246 extern "C" {
41247 #if 0
41248 } /* c-mode */
41249 #endif
41250 #endif
41251
41252 #if 0
41253 #define SWIGRUNTIME_DEBUG
41254 #endif
41255
41256 SWIGRUNTIME void
41257 SWIG_InitializeModule(void *clientdata) {
41258 size_t i;
41259 swig_module_info *module_head;
41260 static int init_run = 0;
41261
41262 clientdata = clientdata;
41263
41264 if (init_run) return;
41265 init_run = 1;
41266
41267 /* Initialize the swig_module */
41268 swig_module.type_initial = swig_type_initial;
41269 swig_module.cast_initial = swig_cast_initial;
41270
41271 /* Try and load any already created modules */
41272 module_head = SWIG_GetModule(clientdata);
41273 if (module_head) {
41274 swig_module.next = module_head->next;
41275 module_head->next = &swig_module;
41276 } else {
41277 /* This is the first module loaded */
41278 swig_module.next = &swig_module;
41279 SWIG_SetModule(clientdata, &swig_module);
41280 }
41281
41282 /* Now work on filling in swig_module.types */
41283 #ifdef SWIGRUNTIME_DEBUG
41284 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
41285 #endif
41286 for (i = 0; i < swig_module.size; ++i) {
41287 swig_type_info *type = 0;
41288 swig_type_info *ret;
41289 swig_cast_info *cast;
41290
41291 #ifdef SWIGRUNTIME_DEBUG
41292 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41293 #endif
41294
41295 /* if there is another module already loaded */
41296 if (swig_module.next != &swig_module) {
41297 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
41298 }
41299 if (type) {
41300 /* Overwrite clientdata field */
41301 #ifdef SWIGRUNTIME_DEBUG
41302 printf("SWIG_InitializeModule: found type %s\n", type->name);
41303 #endif
41304 if (swig_module.type_initial[i]->clientdata) {
41305 type->clientdata = swig_module.type_initial[i]->clientdata;
41306 #ifdef SWIGRUNTIME_DEBUG
41307 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
41308 #endif
41309 }
41310 } else {
41311 type = swig_module.type_initial[i];
41312 }
41313
41314 /* Insert casting types */
41315 cast = swig_module.cast_initial[i];
41316 while (cast->type) {
41317 /* Don't need to add information already in the list */
41318 ret = 0;
41319 #ifdef SWIGRUNTIME_DEBUG
41320 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
41321 #endif
41322 if (swig_module.next != &swig_module) {
41323 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
41324 #ifdef SWIGRUNTIME_DEBUG
41325 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
41326 #endif
41327 }
41328 if (ret) {
41329 if (type == swig_module.type_initial[i]) {
41330 #ifdef SWIGRUNTIME_DEBUG
41331 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
41332 #endif
41333 cast->type = ret;
41334 ret = 0;
41335 } else {
41336 /* Check for casting already in the list */
41337 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
41338 #ifdef SWIGRUNTIME_DEBUG
41339 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
41340 #endif
41341 if (!ocast) ret = 0;
41342 }
41343 }
41344
41345 if (!ret) {
41346 #ifdef SWIGRUNTIME_DEBUG
41347 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
41348 #endif
41349 if (type->cast) {
41350 type->cast->prev = cast;
41351 cast->next = type->cast;
41352 }
41353 type->cast = cast;
41354 }
41355 cast++;
41356 }
41357 /* Set entry in modules->types array equal to the type */
41358 swig_module.types[i] = type;
41359 }
41360 swig_module.types[i] = 0;
41361
41362 #ifdef SWIGRUNTIME_DEBUG
41363 printf("**** SWIG_InitializeModule: Cast List ******\n");
41364 for (i = 0; i < swig_module.size; ++i) {
41365 int j = 0;
41366 swig_cast_info *cast = swig_module.cast_initial[i];
41367 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41368 while (cast->type) {
41369 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
41370 cast++;
41371 ++j;
41372 }
41373 printf("---- Total casts: %d\n",j);
41374 }
41375 printf("**** SWIG_InitializeModule: Cast List ******\n");
41376 #endif
41377 }
41378
41379 /* This function will propagate the clientdata field of type to
41380 * any new swig_type_info structures that have been added into the list
41381 * of equivalent types. It is like calling
41382 * SWIG_TypeClientData(type, clientdata) a second time.
41383 */
41384 SWIGRUNTIME void
41385 SWIG_PropagateClientData(void) {
41386 size_t i;
41387 swig_cast_info *equiv;
41388 static int init_run = 0;
41389
41390 if (init_run) return;
41391 init_run = 1;
41392
41393 for (i = 0; i < swig_module.size; i++) {
41394 if (swig_module.types[i]->clientdata) {
41395 equiv = swig_module.types[i]->cast;
41396 while (equiv) {
41397 if (!equiv->converter) {
41398 if (equiv->type && !equiv->type->clientdata)
41399 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41400 }
41401 equiv = equiv->next;
41402 }
41403 }
41404 }
41405 }
41406
41407 #ifdef __cplusplus
41408 #if 0
41409 {
41410 /* c-mode */
41411 #endif
41412 }
41413 #endif
41414
41415
41416
41417 #ifdef __cplusplus
41418 extern "C" {
41419 #endif
41420
41421 /* Python-specific SWIG API */
41422 #define SWIG_newvarlink() SWIG_Python_newvarlink()
41423 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41424 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41425
41426 /* -----------------------------------------------------------------------------
41427 * global variable support code.
41428 * ----------------------------------------------------------------------------- */
41429
41430 typedef struct swig_globalvar {
41431 char *name; /* Name of global variable */
41432 PyObject *(*get_attr)(void); /* Return the current value */
41433 int (*set_attr)(PyObject *); /* Set the value */
41434 struct swig_globalvar *next;
41435 } swig_globalvar;
41436
41437 typedef struct swig_varlinkobject {
41438 PyObject_HEAD
41439 swig_globalvar *vars;
41440 } swig_varlinkobject;
41441
41442 SWIGINTERN PyObject *
41443 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41444 return PyString_FromString("<Swig global variables>");
41445 }
41446
41447 SWIGINTERN PyObject *
41448 swig_varlink_str(swig_varlinkobject *v) {
41449 PyObject *str = PyString_FromString("(");
41450 swig_globalvar *var;
41451 for (var = v->vars; var; var=var->next) {
41452 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41453 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41454 }
41455 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41456 return str;
41457 }
41458
41459 SWIGINTERN int
41460 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41461 PyObject *str = swig_varlink_str(v);
41462 fprintf(fp,"Swig global variables ");
41463 fprintf(fp,"%s\n", PyString_AsString(str));
41464 Py_DECREF(str);
41465 return 0;
41466 }
41467
41468 SWIGINTERN void
41469 swig_varlink_dealloc(swig_varlinkobject *v) {
41470 swig_globalvar *var = v->vars;
41471 while (var) {
41472 swig_globalvar *n = var->next;
41473 free(var->name);
41474 free(var);
41475 var = n;
41476 }
41477 }
41478
41479 SWIGINTERN PyObject *
41480 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41481 PyObject *res = NULL;
41482 swig_globalvar *var = v->vars;
41483 while (var) {
41484 if (strcmp(var->name,n) == 0) {
41485 res = (*var->get_attr)();
41486 break;
41487 }
41488 var = var->next;
41489 }
41490 if (res == NULL && !PyErr_Occurred()) {
41491 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41492 }
41493 return res;
41494 }
41495
41496 SWIGINTERN int
41497 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41498 int res = 1;
41499 swig_globalvar *var = v->vars;
41500 while (var) {
41501 if (strcmp(var->name,n) == 0) {
41502 res = (*var->set_attr)(p);
41503 break;
41504 }
41505 var = var->next;
41506 }
41507 if (res == 1 && !PyErr_Occurred()) {
41508 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41509 }
41510 return res;
41511 }
41512
41513 SWIGINTERN PyTypeObject*
41514 swig_varlink_type(void) {
41515 static char varlink__doc__[] = "Swig var link object";
41516 static PyTypeObject varlink_type;
41517 static int type_init = 0;
41518 if (!type_init) {
41519 const PyTypeObject tmp
41520 = {
41521 PyObject_HEAD_INIT(NULL)
41522 0, /* Number of items in variable part (ob_size) */
41523 (char *)"swigvarlink", /* Type name (tp_name) */
41524 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41525 0, /* Itemsize (tp_itemsize) */
41526 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41527 (printfunc) swig_varlink_print, /* Print (tp_print) */
41528 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41529 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41530 0, /* tp_compare */
41531 (reprfunc) swig_varlink_repr, /* tp_repr */
41532 0, /* tp_as_number */
41533 0, /* tp_as_sequence */
41534 0, /* tp_as_mapping */
41535 0, /* tp_hash */
41536 0, /* tp_call */
41537 (reprfunc)swig_varlink_str, /* tp_str */
41538 0, /* tp_getattro */
41539 0, /* tp_setattro */
41540 0, /* tp_as_buffer */
41541 0, /* tp_flags */
41542 varlink__doc__, /* tp_doc */
41543 0, /* tp_traverse */
41544 0, /* tp_clear */
41545 0, /* tp_richcompare */
41546 0, /* tp_weaklistoffset */
41547 #if PY_VERSION_HEX >= 0x02020000
41548 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41549 #endif
41550 #if PY_VERSION_HEX >= 0x02030000
41551 0, /* tp_del */
41552 #endif
41553 #ifdef COUNT_ALLOCS
41554 0,0,0,0 /* tp_alloc -> tp_next */
41555 #endif
41556 };
41557 varlink_type = tmp;
41558 varlink_type.ob_type = &PyType_Type;
41559 type_init = 1;
41560 }
41561 return &varlink_type;
41562 }
41563
41564 /* Create a variable linking object for use later */
41565 SWIGINTERN PyObject *
41566 SWIG_Python_newvarlink(void) {
41567 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41568 if (result) {
41569 result->vars = 0;
41570 }
41571 return ((PyObject*) result);
41572 }
41573
41574 SWIGINTERN void
41575 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41576 swig_varlinkobject *v = (swig_varlinkobject *) p;
41577 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41578 if (gv) {
41579 size_t size = strlen(name)+1;
41580 gv->name = (char *)malloc(size);
41581 if (gv->name) {
41582 strncpy(gv->name,name,size);
41583 gv->get_attr = get_attr;
41584 gv->set_attr = set_attr;
41585 gv->next = v->vars;
41586 }
41587 }
41588 v->vars = gv;
41589 }
41590
41591 SWIGINTERN PyObject *
41592 SWIG_globals() {
41593 static PyObject *_SWIG_globals = 0;
41594 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41595 return _SWIG_globals;
41596 }
41597
41598 /* -----------------------------------------------------------------------------
41599 * constants/methods manipulation
41600 * ----------------------------------------------------------------------------- */
41601
41602 /* Install Constants */
41603 SWIGINTERN void
41604 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41605 PyObject *obj = 0;
41606 size_t i;
41607 for (i = 0; constants[i].type; ++i) {
41608 switch(constants[i].type) {
41609 case SWIG_PY_POINTER:
41610 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41611 break;
41612 case SWIG_PY_BINARY:
41613 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41614 break;
41615 default:
41616 obj = 0;
41617 break;
41618 }
41619 if (obj) {
41620 PyDict_SetItemString(d, constants[i].name, obj);
41621 Py_DECREF(obj);
41622 }
41623 }
41624 }
41625
41626 /* -----------------------------------------------------------------------------*/
41627 /* Fix SwigMethods to carry the callback ptrs when needed */
41628 /* -----------------------------------------------------------------------------*/
41629
41630 SWIGINTERN void
41631 SWIG_Python_FixMethods(PyMethodDef *methods,
41632 swig_const_info *const_table,
41633 swig_type_info **types,
41634 swig_type_info **types_initial) {
41635 size_t i;
41636 for (i = 0; methods[i].ml_name; ++i) {
41637 const char *c = methods[i].ml_doc;
41638 if (c && (c = strstr(c, "swig_ptr: "))) {
41639 int j;
41640 swig_const_info *ci = 0;
41641 const char *name = c + 10;
41642 for (j = 0; const_table[j].type; ++j) {
41643 if (strncmp(const_table[j].name, name,
41644 strlen(const_table[j].name)) == 0) {
41645 ci = &(const_table[j]);
41646 break;
41647 }
41648 }
41649 if (ci) {
41650 size_t shift = (ci->ptype) - types;
41651 swig_type_info *ty = types_initial[shift];
41652 size_t ldoc = (c - methods[i].ml_doc);
41653 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41654 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41655 if (ndoc) {
41656 char *buff = ndoc;
41657 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41658 if (ptr) {
41659 strncpy(buff, methods[i].ml_doc, ldoc);
41660 buff += ldoc;
41661 strncpy(buff, "swig_ptr: ", 10);
41662 buff += 10;
41663 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41664 methods[i].ml_doc = ndoc;
41665 }
41666 }
41667 }
41668 }
41669 }
41670 }
41671
41672 #ifdef __cplusplus
41673 }
41674 #endif
41675
41676 /* -----------------------------------------------------------------------------*
41677 * Partial Init method
41678 * -----------------------------------------------------------------------------*/
41679
41680 #ifdef __cplusplus
41681 extern "C"
41682 #endif
41683 SWIGEXPORT void SWIG_init(void) {
41684 PyObject *m, *d;
41685
41686 /* Fix SwigMethods to carry the callback ptrs when needed */
41687 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41688
41689 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41690 d = PyModule_GetDict(m);
41691
41692 SWIG_InitializeModule(0);
41693 SWIG_InstallConstants(d,swig_const_table);
41694
41695
41696 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41697 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41698 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
41699 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41700 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
41701 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41702 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41703 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41704 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41705 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41706 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41707 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41708 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41709 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41710 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41711 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41712 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41713 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41714 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41715 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41716 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41717 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41718 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41719 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41720 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41721 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41722 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41723 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41724 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41725 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41726 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41727 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41728 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41729 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41730 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41731 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41732 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41733 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41734 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41735 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41736 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41737 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41738 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41739 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41740 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41741 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41742 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41743 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41744 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41745 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41746 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41747 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41748 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41749 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41750 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41751 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41752 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41753 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41754 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41755 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41756 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41757 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41758 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41759 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41760 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41761 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41762 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41763 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41764 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41765 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41766 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41767 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41768 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41769 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41770 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41771 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41772 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41773 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41774 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41775 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41776 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41777 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41778 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41779 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41780 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41781 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41782 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41783 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41784 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41785 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41786 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41787 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41788 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41789 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41790 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41791 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41792 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41793 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41794 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41795 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41796 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41797 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41798 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41799 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41800 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41801 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41802 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41803 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41804 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41805 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41806 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41807 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41808 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41809 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41810 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41811 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41812 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41813 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41814 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41815 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41816 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41817 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41818 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41819 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41820 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41821 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41822 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41823 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41824 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41825 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41826 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41827 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41828
41829 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41830
41831 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41832 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41833 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41834 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41835 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41836 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41837 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41838 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41839 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41840 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41841 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41842 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41843 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41844 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41845 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41846 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41847 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41848 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41849 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41850 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41851 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41852 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41853 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41854 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41855 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41856 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41857 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41858 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41859 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41860 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41861 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41862 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41863 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41864 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41865 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41866 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41867 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41868 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41869 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41870 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41871 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41872 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41873 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41874 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41875 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41876 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41877 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41878 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41879 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41880 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41881 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41882 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41883 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41884 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41885 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41886 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41887 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41888 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41889 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41890 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41891 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41892 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41893 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41894 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41895 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41896 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41897 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41898 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41899 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41900 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41901 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41902 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41903 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41904 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41905 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41906 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41907 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41908 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41909 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41910 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41911 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41912 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41913 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41914 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41915 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41916 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41917 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41918 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41919 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41920 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41921 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41922 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41923 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41924 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41925 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41926 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41927 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41928 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41929 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41930 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41931 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41932 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41933 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41934 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41935 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41936 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41937 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41938 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41939 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41940 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41941 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41942 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41943 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41944 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41945 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41946 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41947 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41948 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41949 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41950 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41951 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41952 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41953 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41954 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41955 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41956 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41957 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41958 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41959 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41960 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41961 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41962 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41963 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41964 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41965 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41966 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41967 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41968 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41969 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41970 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41971 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41972 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41973 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41974 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41975 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41976 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41977 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41978 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41979 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41980 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41981 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41982 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41983 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41984 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41985 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41986 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41987 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41988 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41989 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41990 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41991 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41992 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41993 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41994 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41995 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41996 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41997 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41998 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41999 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
42000 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
42001 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
42002 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
42003 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
42004 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
42005 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
42006 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
42007 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
42008 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
42009 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
42010 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
42011 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
42012 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
42013 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
42014 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
42015 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
42016 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
42017 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
42018 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
42019 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
42020 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
42021 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
42022 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
42023 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
42024 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
42025 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
42026 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
42027 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
42028 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
42029 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
42030 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
42031 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
42032 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
42033 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
42034 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
42035 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
42036 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
42037 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
42038 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
42039 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
42040 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
42041 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
42042 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
42043 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
42044 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
42045 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
42046 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
42047 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
42048 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
42049 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
42050 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
42051 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
42052 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
42053 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
42054 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
42055 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
42056 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
42057 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
42058 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
42059 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
42060 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
42061 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
42062 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
42063 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
42064 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
42065 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
42066 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
42067 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
42068 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
42069 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
42070 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
42071 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
42072 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
42073 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
42074 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
42075 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
42076 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
42077 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
42078 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
42079 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
42080 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
42081 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
42082 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
42083 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
42084 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
42085 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
42086 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
42087 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
42088 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
42089 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
42090 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
42091 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
42092 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
42093 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
42094 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
42095 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
42096 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
42097 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
42098 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
42099 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
42100 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
42101 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
42102 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
42103 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
42104 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
42105 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
42106 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
42107 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
42108 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
42109 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
42110 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
42111 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
42112 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
42113 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
42114 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
42115 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
42116 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
42117 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
42118 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
42119 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
42120 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
42121 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
42122 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
42123 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
42124 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
42125 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
42126 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
42127 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
42128 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
42129 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
42130 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
42131 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
42132 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
42133 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
42134 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
42135 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
42136 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
42137 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
42138 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
42139 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
42140 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
42141 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
42142 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
42143 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
42144 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
42145 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
42146 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
42147 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
42148 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
42149 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
42150 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
42151 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
42152 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
42153 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
42154 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
42155
42156 // Work around a chicken/egg problem in drawlist.cpp
42157 wxPyDrawList_SetAPIPtr();
42158
42159 }
42160