]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
fixing non core graphcis build
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_wxChildFocusEvent swig_types[23]
2490 #define SWIGTYPE_p_wxClientDC swig_types[24]
2491 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[25]
2492 #define SWIGTYPE_p_wxCloseEvent swig_types[26]
2493 #define SWIGTYPE_p_wxColour swig_types[27]
2494 #define SWIGTYPE_p_wxColourDatabase swig_types[28]
2495 #define SWIGTYPE_p_wxCommandEvent swig_types[29]
2496 #define SWIGTYPE_p_wxContextMenuEvent swig_types[30]
2497 #define SWIGTYPE_p_wxControl swig_types[31]
2498 #define SWIGTYPE_p_wxControlWithItems swig_types[32]
2499 #define SWIGTYPE_p_wxCursor swig_types[33]
2500 #define SWIGTYPE_p_wxDC swig_types[34]
2501 #define SWIGTYPE_p_wxDCBrushChanger swig_types[35]
2502 #define SWIGTYPE_p_wxDCClipper swig_types[36]
2503 #define SWIGTYPE_p_wxDCOverlay swig_types[37]
2504 #define SWIGTYPE_p_wxDCPenChanger swig_types[38]
2505 #define SWIGTYPE_p_wxDCTextColourChanger swig_types[39]
2506 #define SWIGTYPE_p_wxDash swig_types[40]
2507 #define SWIGTYPE_p_wxDateEvent swig_types[41]
2508 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[42]
2509 #define SWIGTYPE_p_wxDropFilesEvent swig_types[43]
2510 #define SWIGTYPE_p_wxDuplexMode swig_types[44]
2511 #define SWIGTYPE_p_wxEffects swig_types[45]
2512 #define SWIGTYPE_p_wxEncodingConverter swig_types[46]
2513 #define SWIGTYPE_p_wxEraseEvent swig_types[47]
2514 #define SWIGTYPE_p_wxEvent swig_types[48]
2515 #define SWIGTYPE_p_wxEventBlocker swig_types[49]
2516 #define SWIGTYPE_p_wxEvtHandler swig_types[50]
2517 #define SWIGTYPE_p_wxFSFile swig_types[51]
2518 #define SWIGTYPE_p_wxFileSystem swig_types[52]
2519 #define SWIGTYPE_p_wxFlexGridSizer swig_types[53]
2520 #define SWIGTYPE_p_wxFocusEvent swig_types[54]
2521 #define SWIGTYPE_p_wxFont swig_types[55]
2522 #define SWIGTYPE_p_wxFontList swig_types[56]
2523 #define SWIGTYPE_p_wxFontMapper swig_types[57]
2524 #define SWIGTYPE_p_wxGBSizerItem swig_types[58]
2525 #define SWIGTYPE_p_wxGCDC swig_types[59]
2526 #define SWIGTYPE_p_wxGDIObjListBase swig_types[60]
2527 #define SWIGTYPE_p_wxGDIObject swig_types[61]
2528 #define SWIGTYPE_p_wxGIFHandler swig_types[62]
2529 #define SWIGTYPE_p_wxGraphicsBrush swig_types[63]
2530 #define SWIGTYPE_p_wxGraphicsContext swig_types[64]
2531 #define SWIGTYPE_p_wxGraphicsFont swig_types[65]
2532 #define SWIGTYPE_p_wxGraphicsMatrix swig_types[66]
2533 #define SWIGTYPE_p_wxGraphicsObject swig_types[67]
2534 #define SWIGTYPE_p_wxGraphicsPath swig_types[68]
2535 #define SWIGTYPE_p_wxGraphicsPen swig_types[69]
2536 #define SWIGTYPE_p_wxGraphicsRenderer swig_types[70]
2537 #define SWIGTYPE_p_wxGridBagSizer swig_types[71]
2538 #define SWIGTYPE_p_wxGridSizer swig_types[72]
2539 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[73]
2540 #define SWIGTYPE_p_wxICOHandler swig_types[74]
2541 #define SWIGTYPE_p_wxIcon swig_types[75]
2542 #define SWIGTYPE_p_wxIconBundle swig_types[76]
2543 #define SWIGTYPE_p_wxIconLocation swig_types[77]
2544 #define SWIGTYPE_p_wxIconizeEvent swig_types[78]
2545 #define SWIGTYPE_p_wxIdleEvent swig_types[79]
2546 #define SWIGTYPE_p_wxImage swig_types[80]
2547 #define SWIGTYPE_p_wxImageHandler swig_types[81]
2548 #define SWIGTYPE_p_wxImageList swig_types[82]
2549 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83]
2550 #define SWIGTYPE_p_wxInitDialogEvent swig_types[84]
2551 #define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552 #define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553 #define SWIGTYPE_p_wxLanguageInfo swig_types[87]
2554 #define SWIGTYPE_p_wxLayoutConstraints swig_types[88]
2555 #define SWIGTYPE_p_wxLocale swig_types[89]
2556 #define SWIGTYPE_p_wxMask swig_types[90]
2557 #define SWIGTYPE_p_wxMaximizeEvent swig_types[91]
2558 #define SWIGTYPE_p_wxMemoryDC swig_types[92]
2559 #define SWIGTYPE_p_wxMenu swig_types[93]
2560 #define SWIGTYPE_p_wxMenuBar swig_types[94]
2561 #define SWIGTYPE_p_wxMenuEvent swig_types[95]
2562 #define SWIGTYPE_p_wxMenuItem swig_types[96]
2563 #define SWIGTYPE_p_wxMetaFile swig_types[97]
2564 #define SWIGTYPE_p_wxMetaFileDC swig_types[98]
2565 #define SWIGTYPE_p_wxMirrorDC swig_types[99]
2566 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMoveEvent swig_types[103]
2570 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[104]
2571 #define SWIGTYPE_p_wxNativeFontInfo swig_types[105]
2572 #define SWIGTYPE_p_wxNativePixelData swig_types[106]
2573 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[107]
2574 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[108]
2575 #define SWIGTYPE_p_wxNcPaintEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNotifyEvent swig_types[110]
2577 #define SWIGTYPE_p_wxObject swig_types[111]
2578 #define SWIGTYPE_p_wxOverlay swig_types[112]
2579 #define SWIGTYPE_p_wxPCXHandler swig_types[113]
2580 #define SWIGTYPE_p_wxPNGHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPNMHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPaintDC swig_types[116]
2583 #define SWIGTYPE_p_wxPaintEvent swig_types[117]
2584 #define SWIGTYPE_p_wxPalette swig_types[118]
2585 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[119]
2586 #define SWIGTYPE_p_wxPaperSize swig_types[120]
2587 #define SWIGTYPE_p_wxPen swig_types[121]
2588 #define SWIGTYPE_p_wxPenList swig_types[122]
2589 #define SWIGTYPE_p_wxPixelDataBase swig_types[123]
2590 #define SWIGTYPE_p_wxPoint swig_types[124]
2591 #define SWIGTYPE_p_wxPoint2D swig_types[125]
2592 #define SWIGTYPE_p_wxPostScriptDC swig_types[126]
2593 #define SWIGTYPE_p_wxPrintData swig_types[127]
2594 #define SWIGTYPE_p_wxPrinterDC swig_types[128]
2595 #define SWIGTYPE_p_wxPseudoDC swig_types[129]
2596 #define SWIGTYPE_p_wxPyApp swig_types[130]
2597 #define SWIGTYPE_p_wxPyCommandEvent swig_types[131]
2598 #define SWIGTYPE_p_wxPyEvent swig_types[132]
2599 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[133]
2600 #define SWIGTYPE_p_wxPyImageHandler swig_types[134]
2601 #define SWIGTYPE_p_wxPyLocale swig_types[135]
2602 #define SWIGTYPE_p_wxPySizer swig_types[136]
2603 #define SWIGTYPE_p_wxPyValidator swig_types[137]
2604 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[138]
2605 #define SWIGTYPE_p_wxRect swig_types[139]
2606 #define SWIGTYPE_p_wxRect2D swig_types[140]
2607 #define SWIGTYPE_p_wxRegion swig_types[141]
2608 #define SWIGTYPE_p_wxRegionIterator swig_types[142]
2609 #define SWIGTYPE_p_wxRendererNative swig_types[143]
2610 #define SWIGTYPE_p_wxRendererVersion swig_types[144]
2611 #define SWIGTYPE_p_wxScreenDC swig_types[145]
2612 #define SWIGTYPE_p_wxScrollEvent swig_types[146]
2613 #define SWIGTYPE_p_wxScrollWinEvent swig_types[147]
2614 #define SWIGTYPE_p_wxSetCursorEvent swig_types[148]
2615 #define SWIGTYPE_p_wxShowEvent swig_types[149]
2616 #define SWIGTYPE_p_wxSize swig_types[150]
2617 #define SWIGTYPE_p_wxSizeEvent swig_types[151]
2618 #define SWIGTYPE_p_wxSizer swig_types[152]
2619 #define SWIGTYPE_p_wxSizerItem swig_types[153]
2620 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[154]
2621 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[155]
2622 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[156]
2623 #define SWIGTYPE_p_wxStockGDI swig_types[157]
2624 #define SWIGTYPE_p_wxString swig_types[158]
2625 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[159]
2626 #define SWIGTYPE_p_wxTGAHandler swig_types[160]
2627 #define SWIGTYPE_p_wxTIFFHandler swig_types[161]
2628 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[162]
2629 #define SWIGTYPE_p_wxValidator swig_types[163]
2630 #define SWIGTYPE_p_wxWindow swig_types[164]
2631 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[165]
2632 #define SWIGTYPE_p_wxWindowDC swig_types[166]
2633 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[167]
2634 #define SWIGTYPE_p_wxXPMHandler swig_types[168]
2635 static swig_type_info *swig_types[170];
2636 static swig_module_info swig_module = {swig_types, 169, 0, 0, 0, 0};
2637 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2638 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2639
2640 /* -------- TYPES TABLE (END) -------- */
2641
2642 #if (PY_VERSION_HEX <= 0x02000000)
2643 # if !defined(SWIG_PYTHON_CLASSIC)
2644 # error "This python version requires to use swig with the '-classic' option"
2645 # endif
2646 #endif
2647 #if (PY_VERSION_HEX <= 0x02020000)
2648 # error "This python version requires to use swig with the '-nomodern' option"
2649 #endif
2650 #if (PY_VERSION_HEX <= 0x02020000)
2651 # error "This python version requires to use swig with the '-nomodernargs' option"
2652 #endif
2653 #ifndef METH_O
2654 # error "This python version requires to use swig with the '-nofastunpack' option"
2655 #endif
2656
2657 /*-----------------------------------------------
2658 @(target):= _gdi_.so
2659 ------------------------------------------------*/
2660 #define SWIG_init init_gdi_
2661
2662 #define SWIG_name "_gdi_"
2663
2664 #define SWIGVERSION 0x010329
2665
2666
2667 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2668 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2669
2670
2671 #include <stdexcept>
2672
2673
2674 namespace swig {
2675 class PyObject_ptr {
2676 protected:
2677 PyObject *_obj;
2678
2679 public:
2680 PyObject_ptr() :_obj(0)
2681 {
2682 }
2683
2684 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2685 {
2686 Py_XINCREF(_obj);
2687 }
2688
2689 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2690 {
2691 if (initial_ref) Py_XINCREF(_obj);
2692 }
2693
2694 PyObject_ptr & operator=(const PyObject_ptr& item)
2695 {
2696 Py_XINCREF(item._obj);
2697 Py_XDECREF(_obj);
2698 _obj = item._obj;
2699 return *this;
2700 }
2701
2702 ~PyObject_ptr()
2703 {
2704 Py_XDECREF(_obj);
2705 }
2706
2707 operator PyObject *() const
2708 {
2709 return _obj;
2710 }
2711
2712 PyObject *operator->() const
2713 {
2714 return _obj;
2715 }
2716 };
2717 }
2718
2719
2720 namespace swig {
2721 struct PyObject_var : PyObject_ptr {
2722 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2723
2724 PyObject_var & operator = (PyObject* obj)
2725 {
2726 Py_XDECREF(_obj);
2727 _obj = obj;
2728 return *this;
2729 }
2730 };
2731 }
2732
2733
2734 #include "wx/wxPython/wxPython.h"
2735 #include "wx/wxPython/pyclasses.h"
2736
2737
2738 static const wxString wxPyEmptyString(wxEmptyString);
2739
2740 #define SWIG_From_long PyInt_FromLong
2741
2742
2743 SWIGINTERNINLINE PyObject *
2744 SWIG_From_int (int value)
2745 {
2746 return SWIG_From_long (value);
2747 }
2748
2749
2750 #include <limits.h>
2751 #ifndef LLONG_MIN
2752 # define LLONG_MIN LONG_LONG_MIN
2753 #endif
2754 #ifndef LLONG_MAX
2755 # define LLONG_MAX LONG_LONG_MAX
2756 #endif
2757 #ifndef ULLONG_MAX
2758 # define ULLONG_MAX ULONG_LONG_MAX
2759 #endif
2760
2761
2762 SWIGINTERN int
2763 SWIG_AsVal_long (PyObject* obj, long* val)
2764 {
2765 if (PyNumber_Check(obj)) {
2766 if (val) *val = PyInt_AsLong(obj);
2767 return SWIG_OK;
2768 }
2769 return SWIG_TypeError;
2770 }
2771
2772
2773 SWIGINTERN int
2774 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2775 {
2776 long v = 0;
2777 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2778 return SWIG_TypeError;
2779 }
2780 else if (val)
2781 *val = (unsigned long)v;
2782 return SWIG_OK;
2783 }
2784
2785
2786 SWIGINTERN int
2787 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2788 {
2789 unsigned long v;
2790 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2791 if (SWIG_IsOK(res)) {
2792 if ((v > UCHAR_MAX)) {
2793 return SWIG_OverflowError;
2794 } else {
2795 if (val) *val = static_cast< unsigned char >(v);
2796 }
2797 }
2798 return res;
2799 }
2800
2801
2802 SWIGINTERNINLINE PyObject*
2803 SWIG_From_unsigned_SS_long (unsigned long value)
2804 {
2805 return (value > LONG_MAX) ?
2806 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2807 }
2808
2809
2810 SWIGINTERNINLINE PyObject *
2811 SWIG_From_unsigned_SS_char (unsigned char value)
2812 {
2813 return SWIG_From_unsigned_SS_long (value);
2814 }
2815
2816 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2817 wxColour temp, *obj = &temp;
2818 if ( other == Py_None ) return false;
2819 if ( ! wxColour_helper(other, &obj) ) {
2820 PyErr_Clear();
2821 return false;
2822 }
2823 return self->operator==(*obj);
2824 }
2825 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2826 wxColour temp, *obj = &temp;
2827 if ( other == Py_None ) return true;
2828 if ( ! wxColour_helper(other, &obj)) {
2829 PyErr_Clear();
2830 return true;
2831 }
2832 return self->operator!=(*obj);
2833 }
2834
2835 SWIGINTERN int
2836 SWIG_AsVal_bool (PyObject *obj, bool *val)
2837 {
2838 if (obj == Py_True) {
2839 if (val) *val = true;
2840 return SWIG_OK;
2841 } else if (obj == Py_False) {
2842 if (val) *val = false;
2843 return SWIG_OK;
2844 } else {
2845 long v = 0;
2846 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2847 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2848 return res;
2849 }
2850 }
2851
2852 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2853 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2854 int red = -1;
2855 int green = -1;
2856 int blue = -1;
2857 int alpha = wxALPHA_OPAQUE;
2858 if (self->IsOk()) {
2859 red = self->Red();
2860 green = self->Green();
2861 blue = self->Blue();
2862 alpha = self->Alpha();
2863 }
2864 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2865 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2866 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2867 if (includeAlpha)
2868 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2869 return rv;
2870 }
2871 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2872 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2873 }
2874
2875 SWIGINTERN int
2876 SWIG_AsVal_int (PyObject * obj, int *val)
2877 {
2878 long v;
2879 int res = SWIG_AsVal_long (obj, &v);
2880 if (SWIG_IsOK(res)) {
2881 if ((v < INT_MIN || v > INT_MAX)) {
2882 return SWIG_OverflowError;
2883 } else {
2884 if (val) *val = static_cast< int >(v);
2885 }
2886 }
2887 return res;
2888 }
2889
2890 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2891 wxDash* dashes;
2892 int count = self->GetDashes(&dashes);
2893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2894 PyObject* retval = PyList_New(0);
2895 for (int x=0; x<count; x++) {
2896 PyObject* pyint = PyInt_FromLong(dashes[x]);
2897 PyList_Append(retval, pyint);
2898 Py_DECREF(pyint);
2899 }
2900 wxPyEndBlockThreads(blocked);
2901 return retval;
2902 }
2903 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2904 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2905 int size = PyList_Size(pyDashes);
2906 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2907
2908 // black magic warning! The array of wxDashes needs to exist as
2909 // long as the pen does because wxPen does not copy the array. So
2910 // stick a copy in a Python string object and attach it to _self,
2911 // and then call SetDashes with a pointer to that array. Then
2912 // when the Python pen object is destroyed the array will be
2913 // cleaned up too.
2914 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2915 PyObject_SetAttrString(_self, "_dashes", strDashes);
2916
2917 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2918 delete [] dashes;
2919 Py_DECREF(strDashes);
2920 wxPyEndBlockThreads(blocked);
2921 }
2922 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2923 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2924
2925 #include <wx/rawbmp.h>
2926
2927
2928 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2929 // appears to me that the other platforms are already doing it, so I'll just
2930 // automatically do it for wxMSW here.
2931 #ifdef __WXMSW__
2932 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2933 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2934 #else
2935 #define wxPy_premultiply(p, a) (p)
2936 #define wxPy_unpremultiply(p, a) (p)
2937 #endif
2938
2939
2940 #include <wx/image.h>
2941
2942 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2943 char** cArray = NULL;
2944 int count;
2945
2946 if (!PyList_Check(listOfStrings)) {
2947 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2948 return NULL;
2949 }
2950 count = PyList_Size(listOfStrings);
2951 cArray = new char*[count];
2952
2953 for(int x=0; x<count; x++) {
2954 // TODO: Need some validation and error checking here
2955 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2956 }
2957 return cArray;
2958 }
2959
2960
2961 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2962 char** cArray = NULL;
2963 wxBitmap* bmp;
2964
2965 cArray = ConvertListOfStrings(listOfStrings);
2966 if (! cArray)
2967 return NULL;
2968 bmp = new wxBitmap(cArray);
2969 delete [] cArray;
2970 return bmp;
2971 }
2972 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2973 char* buf;
2974 Py_ssize_t length;
2975 PyString_AsStringAndSize(bits, &buf, &length);
2976 return new wxBitmap(buf, width, height, depth);
2977 }
2978 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2979 wxSize size(self->GetWidth(), self->GetHeight());
2980 return size;
2981 }
2982 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2983 wxMask *mask = new wxMask(*self, colour);
2984 self->SetMask(mask);
2985 }
2986 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2987 self->SetWidth(size.x);
2988 self->SetHeight(size.y);
2989 }
2990 SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2991 int height=self->GetHeight();
2992 int width=self->GetWidth();
2993
2994 if (DATASIZE != width * height * 3) {
2995 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2996 }
2997 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
2998 if (! pixData) {
2999 // raise an exception...
3000 wxPyErr_SetString(PyExc_RuntimeError,
3001 "Failed to gain raw access to bitmap data.");
3002 return;
3003 }
3004
3005 wxNativePixelData::Iterator p(pixData);
3006 for (int y=0; y<height; y++) {
3007 wxNativePixelData::Iterator rowStart = p;
3008 for (int x=0; x<width; x++) {
3009 p.Red() = *(data++);
3010 p.Green() = *(data++);
3011 p.Blue() = *(data++);
3012 ++p;
3013 }
3014 p = rowStart;
3015 p.OffsetY(pixData, 1);
3016 }
3017 }
3018 SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3019 int height=self->GetHeight();
3020 int width=self->GetWidth();
3021
3022 if (DATASIZE != width * height * 4) {
3023 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3024 }
3025 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3026 if (! pixData) {
3027 // raise an exception...
3028 wxPyErr_SetString(PyExc_RuntimeError,
3029 "Failed to gain raw access to bitmap data.");
3030 return;
3031 }
3032
3033 pixData.UseAlpha();
3034 wxAlphaPixelData::Iterator p(pixData);
3035 for (int y=0; y<height; y++) {
3036 wxAlphaPixelData::Iterator rowStart = p;
3037 for (int x=0; x<width; x++) {
3038 byte a = data[3];
3039 p.Red() = wxPy_premultiply(*(data++), a);
3040 p.Green() = wxPy_premultiply(*(data++), a);
3041 p.Blue() = wxPy_premultiply(*(data++), a);
3042 p.Alpha() = a; data++;
3043 ++p;
3044 }
3045 p = rowStart;
3046 p.OffsetY(pixData, 1);
3047 }
3048 }
3049 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3050 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
3051
3052 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3053 buffer data, int DATASIZE,
3054 buffer alpha, int ALPHASIZE)
3055 {
3056 if (DATASIZE != width*height*3) {
3057 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3058 return NULL;
3059 }
3060
3061 if (ALPHASIZE != width*height) {
3062 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3063 return NULL;
3064 }
3065
3066 wxBitmap* bmp = new wxBitmap(width, height, 32);
3067 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3068 if (! pixData) {
3069 // raise an exception...
3070 wxPyErr_SetString(PyExc_RuntimeError,
3071 "Failed to gain raw access to bitmap data.");
3072 return NULL;
3073 }
3074
3075 pixData.UseAlpha();
3076 wxAlphaPixelData::Iterator p(pixData);
3077 for (int y=0; y<height; y++) {
3078 wxAlphaPixelData::Iterator rowStart = p;
3079 for (int x=0; x<width; x++) {
3080 byte a = *(alpha++);
3081 p.Red() = wxPy_premultiply(*(data++), a);
3082 p.Green() = wxPy_premultiply(*(data++), a);
3083 p.Blue() = wxPy_premultiply(*(data++), a);
3084 p.Alpha() = a;
3085 ++p;
3086 }
3087 p = rowStart;
3088 p.OffsetY(pixData, 1);
3089 }
3090 return bmp;
3091 }
3092
3093 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3094 {
3095 if (DATASIZE != width*height*3) {
3096 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3097 return NULL;
3098 }
3099
3100 wxBitmap* bmp = new wxBitmap(width, height, 24);
3101 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3102 if (! pixData) {
3103 // raise an exception...
3104 wxPyErr_SetString(PyExc_RuntimeError,
3105 "Failed to gain raw access to bitmap data.");
3106 return NULL;
3107 }
3108
3109 wxNativePixelData::Iterator p(pixData);
3110 for (int y=0; y<height; y++) {
3111 wxNativePixelData::Iterator rowStart = p;
3112 for (int x=0; x<width; x++) {
3113 p.Red() = *(data++);
3114 p.Green() = *(data++);
3115 p.Blue() = *(data++);
3116 ++p;
3117 }
3118 p = rowStart;
3119 p.OffsetY(pixData, 1);
3120 }
3121 return bmp;
3122 }
3123
3124
3125 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3126 {
3127 if (DATASIZE != width*height*4) {
3128 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3129 return NULL;
3130 }
3131
3132 wxBitmap* bmp = new wxBitmap(width, height, 32);
3133 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3134 if (! pixData) {
3135 // raise an exception...
3136 wxPyErr_SetString(PyExc_RuntimeError,
3137 "Failed to gain raw access to bitmap data.");
3138 return NULL;
3139 }
3140
3141 pixData.UseAlpha();
3142 wxAlphaPixelData::Iterator p(pixData);
3143 for (int y=0; y<height; y++) {
3144 wxAlphaPixelData::Iterator rowStart = p;
3145 for (int x=0; x<width; x++) {
3146 byte a = data[3];
3147 p.Red() = wxPy_premultiply(*(data++), a);
3148 p.Green() = wxPy_premultiply(*(data++), a);
3149 p.Blue() = wxPy_premultiply(*(data++), a);
3150 p.Alpha() = a; data++;
3151 ++p;
3152 }
3153 p = rowStart;
3154 p.OffsetY(pixData, 1);
3155 }
3156 return bmp;
3157 }
3158
3159
3160 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3161
3162 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3163 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3164 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3165 self->Red() = red;
3166 self->Green() = green;
3167 self->Blue() = blue;
3168 }
3169 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3170 PyObject* rv = PyTuple_New(3);
3171 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3172 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3173 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3174 return rv;
3175 }
3176
3177 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3178
3179 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3180 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3181 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3182 self->Red() = wxPy_premultiply(red, alpha);
3183 self->Green() = wxPy_premultiply(green, alpha);
3184 self->Blue() = wxPy_premultiply(blue, alpha);
3185 self->Alpha() = alpha;
3186 }
3187 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3188 PyObject* rv = PyTuple_New(4);
3189 int red = self->Red();
3190 int green = self->Green();
3191 int blue = self->Blue();
3192 int alpha = self->Alpha();
3193
3194 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3195 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3196 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3197 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3198 return rv;
3199 }
3200 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3201 if ( !colour.IsOk() )
3202 return new wxMask(bitmap, *wxBLACK);
3203 else
3204 return new wxMask(bitmap, colour);
3205 }
3206
3207 #include <wx/iconbndl.h>
3208
3209 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3210 wxIcon* icon = new wxIcon();
3211 icon->CopyFromBitmap(bmp);
3212 return icon;
3213 }
3214 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3215 char** cArray = NULL;
3216 wxIcon* icon;
3217
3218 cArray = ConvertListOfStrings(listOfStrings);
3219 if (! cArray)
3220 return NULL;
3221 icon = new wxIcon(cArray);
3222 delete [] cArray;
3223 return icon;
3224 }
3225 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3226
3227
3228
3229 return new wxIconLocation(*filename);
3230
3231 }
3232 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3233
3234
3235
3236 // do nothing
3237
3238 }
3239 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3240
3241
3242
3243 return -1;
3244
3245 }
3246
3247 SWIGINTERNINLINE PyObject *
3248 SWIG_From_size_t (size_t value)
3249 {
3250 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3251 }
3252
3253
3254 SWIGINTERNINLINE int
3255 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3256 {
3257 unsigned long v;
3258 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3259 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3260 return res;
3261 }
3262
3263 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3264 #ifdef __WXGTK__
3265 wxImage img(cursorName, type);
3266 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3267 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3268 return new wxCursor(img);
3269 #else
3270 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3271 #endif
3272 }
3273
3274
3275 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3276 (*self) ++;
3277 }
3278 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3279 return self->operator bool();
3280 }
3281
3282 #include <wx/fontutil.h>
3283 #include <wx/fontmap.h>
3284 #include <wx/fontenum.h>
3285
3286 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3287 return self->ToString();
3288 }
3289
3290 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3291 static wxNativeEncodingInfo info;
3292 if ( wxGetNativeFontEncoding(encoding, &info) )
3293 return &info;
3294 else
3295 return NULL;
3296 }
3297
3298 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3299 wxFontEncoding alt_enc;
3300 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3301 return PyInt_FromLong(alt_enc);
3302 else {
3303 Py_INCREF(Py_None);
3304 return Py_None;
3305 }
3306 }
3307 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3308 wxNativeFontInfo nfi;
3309 nfi.FromString(info);
3310 return new wxFont(nfi);
3311 }
3312 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3313 return wxFont::New(pointSize, family, flags, face, encoding);
3314 }
3315 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3316 return wxFontBase::New(pixelSize, family,
3317 style, weight, underlined,
3318 face, encoding);
3319 }
3320 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3321 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3322 }
3323 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3324 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3325
3326 class wxPyFontEnumerator : public wxFontEnumerator {
3327 public:
3328 wxPyFontEnumerator() {}
3329 ~wxPyFontEnumerator() {}
3330
3331 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3332 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3333
3334 PYPRIVATE;
3335 };
3336
3337 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3338 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3339
3340
3341 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3342 PyObject* ret;
3343 wxArrayString arr = wxFontEnumerator::GetEncodings();
3344 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3345 ret = wxArrayString2PyList_helper(arr);
3346 wxPyEndBlockThreads(blocked);
3347 return ret;
3348 }
3349 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3350 PyObject* ret;
3351 wxArrayString arr = wxFontEnumerator::GetFacenames();
3352 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3353 ret = wxArrayString2PyList_helper(arr);
3354 wxPyEndBlockThreads(blocked);
3355 return ret;
3356 }
3357
3358 #include <locale.h>
3359
3360 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3361 wxLocale* loc;
3362 if (language == -1)
3363 loc = new wxLocale();
3364 else
3365 loc = new wxLocale(language, flags);
3366 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3367 // for the floating point conversions and such to work right.
3368 #if PY_VERSION_HEX < 0x02040000
3369 setlocale(LC_NUMERIC, "C");
3370 #endif
3371 return loc;
3372 }
3373 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &name,wxString const &shortName=wxPyEmptyString,wxString const &locale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3374 bool rc = self->Init(name, shortName, locale, bLoadDefault, bConvertEncoding);
3375 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3376 // for the floating point conversions and such to work right.
3377 #if PY_VERSION_HEX < 0x02040000
3378 setlocale(LC_NUMERIC, "C");
3379 #endif
3380 return rc;
3381 }
3382 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3383 bool rc = self->Init(language, flags);
3384 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3385 // for the floating point conversions and such to work right.
3386 #if PY_VERSION_HEX < 0x02040000
3387 setlocale(LC_NUMERIC, "C");
3388 #endif
3389 return rc;
3390 }
3391
3392 class wxPyLocale : public wxLocale
3393 {
3394 public:
3395 wxPyLocale();
3396
3397 wxPyLocale(const wxString& name, // name (for messages)
3398 const wxString& shortName = wxPyEmptyString, // dir prefix (for msg files)
3399 const wxString& locale = wxPyEmptyString, // locale (for setlocale)
3400 bool bLoadDefault = true, // preload wxstd.mo?
3401 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3402
3403 wxPyLocale(int language, // wxLanguage id or custom language
3404 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3405
3406 ~wxPyLocale();
3407
3408 virtual const wxString& GetString(const wxString& origString,
3409 const wxString& domain = wxPyEmptyString) const;
3410 virtual const wxString& GetString(const wxString& origString,
3411 const wxString& origString2,
3412 size_t n,
3413 const wxString& domain = wxPyEmptyString) const;
3414
3415 virtual const wxString& GetSingularString(const wxString& origString,
3416 const wxString& domain = wxPyEmptyString) const;
3417 virtual const wxString& GetPluralString(const wxString& origString,
3418 const wxString& origString2,
3419 size_t n,
3420 const wxString& domain = wxPyEmptyString) const;
3421
3422
3423 PYPRIVATE;
3424 private:
3425 DECLARE_NO_COPY_CLASS(wxPyLocale)
3426 };
3427
3428 wxPyLocale::wxPyLocale() : wxLocale()
3429 {
3430 }
3431
3432 wxPyLocale::wxPyLocale(const wxString& name, // name (for messages)
3433 const wxString& shortName, // dir prefix (for msg files)
3434 const wxString& locale, // locale (for setlocale)
3435 bool bLoadDefault, // preload wxstd.mo?
3436 bool bConvertEncoding) // convert Win<->Unix if necessary?
3437 : wxLocale(name, shortName, locale, 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 wxString& wxPyLocale::GetString(const wxString& origString,
3451 const wxString& domain) const
3452 {
3453 return GetSingularString(origString, domain);
3454 }
3455
3456 const wxString& wxPyLocale::GetString(const wxString& origString,
3457 const wxString& origString2,
3458 size_t n,
3459 const wxString& domain) const
3460 {
3461 return GetPluralString(origString, origString2, n, domain);
3462 }
3463
3464 const wxString& wxPyLocale::GetSingularString(const wxString& origString,
3465 const wxString& domain) const
3466 {
3467 bool found;
3468 wxString str( _T("error in translation"));
3469 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3470 if ((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3471 PyObject* param1 = wx2PyString(origString);
3472 PyObject* param2 = wx2PyString(domain);
3473 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3474 Py_DECREF(param1);
3475 Py_DECREF(param2);
3476 if (ret) {
3477 str = Py2wxString(ret);
3478 Py_DECREF(ret);
3479 }
3480 }
3481 wxPyEndBlockThreads(blocked);
3482 return (found ? str : wxLocale::GetString(origString, domain));
3483 }
3484
3485 const wxString& wxPyLocale::GetPluralString(const wxString& origString,
3486 const wxString& origString2, size_t n,
3487 const wxString& domain) const
3488 {
3489 bool found;
3490 wxString str( _T("error in translation"));
3491 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3492 if ((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3493 PyObject* param1 = wx2PyString(origString);
3494 PyObject* param2 = wx2PyString(origString2);
3495 PyObject* param4 = wx2PyString(domain);
3496 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst,
3497 Py_BuildValue("(OOiO)",
3498 param1, param2,
3499 (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 ? str : wxLocale::GetString(origString, origString2, n, domain) );
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 class wxMetaFile : public wxObject {
3610 public:
3611 wxMetaFile(const wxString&)
3612 { wxPyRaiseNotImplemented(); }
3613 };
3614
3615 class wxMetaFileDC : public wxClientDC {
3616 public:
3617 wxMetaFileDC(const wxString&, int, int, const wxString&)
3618 { wxPyRaiseNotImplemented(); }
3619 };
3620
3621
3622
3623 class wxPrinterDC : public wxClientDC {
3624 public:
3625 wxPrinterDC(const wxPrintData&)
3626 { wxPyRaiseNotImplemented(); }
3627
3628 };
3629
3630
3631 #include <wx/graphics.h>
3632
3633
3634 #if !wxUSE_GRAPHICS_CONTEXT
3635 // C++ stub classes for platforms or build configurations that don't have
3636 // wxGraphicsContext yet.
3637
3638 class wxGraphicsRenderer;
3639 class wxGraphicsMatrix;
3640
3641
3642 class wxGraphicsObject : public wxObject
3643 {
3644 public :
3645 wxGraphicsObject() {}
3646 wxGraphicsObject( wxGraphicsRenderer* ) {
3647 PyErr_SetString(PyExc_NotImplementedError,
3648 "wx.GraphicsObject is not available on this platform.");
3649 }
3650 wxGraphicsObject( const wxGraphicsObject& ) {}
3651 virtual ~wxGraphicsObject() {}
3652 bool IsNull() const { return false; }
3653 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3654 } ;
3655
3656
3657
3658 class wxGraphicsPen : public wxGraphicsObject
3659 {
3660 public:
3661 wxGraphicsPen() {}
3662 virtual ~wxGraphicsPen() {}
3663 } ;
3664 wxGraphicsPen wxNullGraphicsPen;
3665
3666
3667
3668 class wxGraphicsBrush : public wxGraphicsObject
3669 {
3670 public :
3671 wxGraphicsBrush() {}
3672 virtual ~wxGraphicsBrush() {}
3673 } ;
3674 wxGraphicsBrush wxNullGraphicsBrush;
3675
3676
3677
3678 class wxGraphicsFont : public wxGraphicsObject
3679 {
3680 public :
3681 wxGraphicsFont() {}
3682 virtual ~wxGraphicsFont() {}
3683 } ;
3684 wxGraphicsFont wxNullGraphicsFont;
3685
3686
3687
3688 class wxGraphicsPath : public wxGraphicsObject
3689 {
3690 public :
3691 wxGraphicsPath() { }
3692 wxGraphicsPath(wxGraphicsRenderer* ) {
3693 PyErr_SetString(PyExc_NotImplementedError,
3694 "wx.GraphicsPath is not available on this platform.");
3695 }
3696 virtual ~wxGraphicsPath() {}
3697
3698 void MoveToPoint( wxDouble, wxDouble ) {}
3699 void MoveToPoint( const wxPoint2DDouble& ) {}
3700 void AddLineToPoint( wxDouble, wxDouble ) {}
3701 void AddLineToPoint( const wxPoint2DDouble& ) {}
3702 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3703 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3704 void AddPath( const wxGraphicsPath& ) {}
3705 void CloseSubpath() {}
3706 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3707 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
3708 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3709 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3710
3711 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3712 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3713 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3714 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3715
3716 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3717 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3718 void * GetNativePath() const { return NULL; }
3719 void UnGetNativePath(void *) const {}
3720 void Transform( const wxGraphicsMatrix& ) {}
3721 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3722 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
3723
3724 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3725 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
3726 };
3727 wxGraphicsPath wxNullGraphicsPath;
3728
3729
3730 class wxGraphicsMatrix : public wxGraphicsObject
3731 {
3732 public :
3733 wxGraphicsMatrix() { }
3734 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3735 PyErr_SetString(PyExc_NotImplementedError,
3736 "wx.GraphicsMatrix is not available on this platform.");
3737 }
3738 virtual ~wxGraphicsMatrix() {}
3739 virtual void Concat( const wxGraphicsMatrix & ) {}
3740 virtual void Copy( const wxGraphicsMatrix & ) {}
3741 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3742 wxDouble , wxDouble ) {}
3743 virtual void Get(wxDouble*, wxDouble*, wxDouble*,
3744 wxDouble*, wxDouble*, wxDouble*) {}
3745 virtual void Invert() {}
3746 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3747 virtual bool IsIdentity() const { return false; }
3748 virtual void Translate( wxDouble , wxDouble ) {}
3749 virtual void Scale( wxDouble , wxDouble ) {}
3750 virtual void Rotate( wxDouble ) {}
3751 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3752 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
3753 virtual void * GetNativeMatrix() const { return NULL; }
3754 };
3755 wxGraphicsMatrix wxNullGraphicsMatrix;
3756
3757
3758 class wxGraphicsContext : public wxGraphicsObject
3759 {
3760 public:
3761
3762 wxGraphicsContext(wxGraphicsRenderer* ) {
3763 PyErr_SetString(PyExc_NotImplementedError,
3764 "wx.GraphicsContext is not available on this platform.");
3765 }
3766
3767 virtual ~wxGraphicsContext() {}
3768
3769 static wxGraphicsContext* Create() {
3770 PyErr_SetString(PyExc_NotImplementedError,
3771 "wx.GraphicsContext is not available on this platform.");
3772 return NULL;
3773 }
3774 static wxGraphicsContext* Create( const wxWindowDC& ) {
3775 PyErr_SetString(PyExc_NotImplementedError,
3776 "wx.GraphicsContext is not available on this platform.");
3777 return NULL;
3778 }
3779
3780 static wxGraphicsContext* CreateFromNative( void * ) {
3781 PyErr_SetString(PyExc_NotImplementedError,
3782 "wx.GraphicsContext is not available on this platform.");
3783 return NULL;
3784 }
3785
3786 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3787 PyErr_SetString(PyExc_NotImplementedError,
3788 "wx.GraphicsContext is not available on this platform.");
3789 return NULL;
3790 }
3791
3792 static wxGraphicsContext* Create( wxWindow* ) {
3793 PyErr_SetString(PyExc_NotImplementedError,
3794 "wx.GraphicsContext is not available on this platform.");
3795 return NULL;
3796 }
3797
3798 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3799
3800 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3801
3802 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3803
3804 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3805 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3806
3807 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3808 wxDouble xc, wxDouble yc, wxDouble radius,
3809 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
3810
3811 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
3812
3813 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3814 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
3815
3816 virtual void PushState() {}
3817 virtual void PopState() {}
3818 virtual void Clip( const wxRegion & ) {}
3819 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3820 virtual void ResetClip() {}
3821 virtual void * GetNativeContext() { return NULL; }
3822 virtual int GetLogicalFunction() const { return 0; }
3823 virtual bool SetLogicalFunction(int ) {}
3824 virtual void Translate( wxDouble , wxDouble ) {}
3825 virtual void Scale( wxDouble , wxDouble ) {}
3826 virtual void Rotate( wxDouble ) {}
3827 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3828 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3829 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
3830
3831 virtual void SetPen( const wxGraphicsPen& ) {}
3832 void SetPen( const wxPen& ) {}
3833
3834 virtual void SetBrush( const wxGraphicsBrush& ) {}
3835 void SetBrush( const wxBrush& ) {}
3836
3837 virtual void SetFont( const wxGraphicsFont& ) {}
3838 void SetFont( const wxFont&, const wxColour& ) {}
3839
3840 virtual void StrokePath( const wxGraphicsPath & ) {}
3841 virtual void FillPath( const wxGraphicsPath &, int ) {}
3842 virtual void DrawPath( const wxGraphicsPath &, int ) {}
3843
3844 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3845 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3846 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3847 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
3848 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3849 wxDouble *, wxDouble * ) const {}
3850 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3851
3852 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3853 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3854
3855 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3856 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3857 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3858 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3859 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3860 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3861 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3862 virtual bool ShouldOffset() const { return false; }
3863 };
3864
3865
3866 class wxGraphicsRenderer : public wxObject
3867 {
3868 public :
3869 wxGraphicsRenderer() {
3870 PyErr_SetString(PyExc_NotImplementedError,
3871 "wx.GraphicsRenderer is not available on this platform.");
3872 }
3873
3874 virtual ~wxGraphicsRenderer() {}
3875
3876 static wxGraphicsRenderer* GetDefaultRenderer() {
3877 PyErr_SetString(PyExc_NotImplementedError,
3878 "wx.GraphicsRenderer is not available on this platform.");
3879 return NULL;
3880 }
3881
3882 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3883 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3884 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3885 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3886 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
3887
3888 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3889
3890 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3891 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
3892
3893 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3894 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3895 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3896 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3897 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3898 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3899 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
3900 };
3901
3902
3903
3904 class wxGCDC: public wxWindowDC
3905 {
3906 public:
3907 wxGCDC(const wxWindowDC&) {
3908 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3909 PyErr_SetString(PyExc_NotImplementedError,
3910 "wxGCDC is not available on this platform.");
3911 wxPyEndBlockThreads(blocked);
3912 }
3913
3914 wxGCDC(const wxWindow*) {
3915 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3916 PyErr_SetString(PyExc_NotImplementedError,
3917 "wxGCDC is not available on this platform.");
3918 wxPyEndBlockThreads(blocked);
3919 }
3920
3921 wxGCDC() {
3922 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3923 PyErr_SetString(PyExc_NotImplementedError,
3924 "wxGCDC is not available on this platform.");
3925 wxPyEndBlockThreads(blocked);
3926 }
3927
3928 virtual ~wxGCDC() {}
3929
3930 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3931 void SetGraphicsContext( wxGraphicsContext* ) {}
3932 };
3933
3934 #endif
3935
3936 SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3937 if ( !backgroundBrush.IsNull() )
3938 self->DrawText(str, x, y, backgroundBrush);
3939 else
3940 self->DrawText(str, x, y);
3941 }
3942 SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3943 if ( !backgroundBrush.IsNull() )
3944 self->DrawText(str, x, y, angle, backgroundBrush);
3945 else
3946 self->DrawText(str, x, y, angle);
3947 }
3948 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3949 wxDouble width = 0.0,
3950 height = 0.0;
3951 self->GetTextExtent(text, &width, &height, NULL, NULL);
3952 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3953 PyObject* rv = PyTuple_New(2);
3954 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3955 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3956 return rv;
3957 }
3958 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3959 wxArrayDouble widths;
3960 self->GetPartialTextExtents(text, widths);
3961 return widths;
3962 }
3963 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3964 size_t c1, c2, count;
3965 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3966 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3967
3968 if ( beginP != NULL && endP != NULL )
3969 {
3970 count = wxMin(c1, c2);
3971 self->StrokeLines(count, beginP, endP);
3972 }
3973 delete [] beginP;
3974 delete [] endP;
3975 }
3976
3977 #include "wx/dcgraph.h"
3978
3979
3980 #include <wx/overlay.h>
3981
3982
3983
3984 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3985 self->AddColour(name, wxColour(red, green, blue));
3986 }
3987
3988 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3989 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3990 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3991 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3992
3993
3994 #include <wx/effects.h>
3995
3996
3997 #include "wx/renderer.h"
3998
3999
4000 SWIGINTERNINLINE PyObject*
4001 SWIG_From_bool (bool value)
4002 {
4003 return PyBool_FromLong(value ? 1 : 0);
4004 }
4005
4006
4007 #include "wx/wxPython/pseudodc.h"
4008
4009 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
4010 wxRect rect;
4011 self->GetIdBounds(id, rect);
4012 return rect;
4013 }
4014 #ifdef __cplusplus
4015 extern "C" {
4016 #endif
4017 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4018 PyObject *resultobj = 0;
4019 wxGDIObject *result = 0 ;
4020
4021 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4022 {
4023 if (!wxPyCheckForApp()) SWIG_fail;
4024 PyThreadState* __tstate = wxPyBeginAllowThreads();
4025 result = (wxGDIObject *)new wxGDIObject();
4026 wxPyEndAllowThreads(__tstate);
4027 if (PyErr_Occurred()) SWIG_fail;
4028 }
4029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4030 return resultobj;
4031 fail:
4032 return NULL;
4033 }
4034
4035
4036 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4037 PyObject *resultobj = 0;
4038 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4039 void *argp1 = 0 ;
4040 int res1 = 0 ;
4041 PyObject *swig_obj[1] ;
4042
4043 if (!args) SWIG_fail;
4044 swig_obj[0] = args;
4045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4046 if (!SWIG_IsOK(res1)) {
4047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4048 }
4049 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4050 {
4051 PyThreadState* __tstate = wxPyBeginAllowThreads();
4052 delete arg1;
4053
4054 wxPyEndAllowThreads(__tstate);
4055 if (PyErr_Occurred()) SWIG_fail;
4056 }
4057 resultobj = SWIG_Py_Void();
4058 return resultobj;
4059 fail:
4060 return NULL;
4061 }
4062
4063
4064 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4065 PyObject *resultobj = 0;
4066 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4067 bool result;
4068 void *argp1 = 0 ;
4069 int res1 = 0 ;
4070 PyObject *swig_obj[1] ;
4071
4072 if (!args) SWIG_fail;
4073 swig_obj[0] = args;
4074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4075 if (!SWIG_IsOK(res1)) {
4076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4077 }
4078 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4079 {
4080 PyThreadState* __tstate = wxPyBeginAllowThreads();
4081 result = (bool)(arg1)->IsNull();
4082 wxPyEndAllowThreads(__tstate);
4083 if (PyErr_Occurred()) SWIG_fail;
4084 }
4085 {
4086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4087 }
4088 return resultobj;
4089 fail:
4090 return NULL;
4091 }
4092
4093
4094 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4095 PyObject *obj;
4096 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4097 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4098 return SWIG_Py_Void();
4099 }
4100
4101 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4102 return SWIG_Python_InitShadowInstance(args);
4103 }
4104
4105 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4106 PyObject *resultobj = 0;
4107 byte arg1 = (byte) 0 ;
4108 byte arg2 = (byte) 0 ;
4109 byte arg3 = (byte) 0 ;
4110 byte arg4 = (byte) wxALPHA_OPAQUE ;
4111 wxColour *result = 0 ;
4112 unsigned char val1 ;
4113 int ecode1 = 0 ;
4114 unsigned char val2 ;
4115 int ecode2 = 0 ;
4116 unsigned char val3 ;
4117 int ecode3 = 0 ;
4118 unsigned char val4 ;
4119 int ecode4 = 0 ;
4120 PyObject * obj0 = 0 ;
4121 PyObject * obj1 = 0 ;
4122 PyObject * obj2 = 0 ;
4123 PyObject * obj3 = 0 ;
4124 char * kwnames[] = {
4125 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4126 };
4127
4128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4129 if (obj0) {
4130 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4131 if (!SWIG_IsOK(ecode1)) {
4132 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4133 }
4134 arg1 = static_cast< byte >(val1);
4135 }
4136 if (obj1) {
4137 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4138 if (!SWIG_IsOK(ecode2)) {
4139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4140 }
4141 arg2 = static_cast< byte >(val2);
4142 }
4143 if (obj2) {
4144 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4145 if (!SWIG_IsOK(ecode3)) {
4146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4147 }
4148 arg3 = static_cast< byte >(val3);
4149 }
4150 if (obj3) {
4151 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4152 if (!SWIG_IsOK(ecode4)) {
4153 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4154 }
4155 arg4 = static_cast< byte >(val4);
4156 }
4157 {
4158 PyThreadState* __tstate = wxPyBeginAllowThreads();
4159 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4160 wxPyEndAllowThreads(__tstate);
4161 if (PyErr_Occurred()) SWIG_fail;
4162 }
4163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4164 return resultobj;
4165 fail:
4166 return NULL;
4167 }
4168
4169
4170 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4171 PyObject *resultobj = 0;
4172 wxString *arg1 = 0 ;
4173 wxColour *result = 0 ;
4174 bool temp1 = false ;
4175 PyObject * obj0 = 0 ;
4176 char * kwnames[] = {
4177 (char *) "colorName", NULL
4178 };
4179
4180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4181 {
4182 arg1 = wxString_in_helper(obj0);
4183 if (arg1 == NULL) SWIG_fail;
4184 temp1 = true;
4185 }
4186 {
4187 if (!wxPyCheckForApp()) SWIG_fail;
4188 PyThreadState* __tstate = wxPyBeginAllowThreads();
4189 result = (wxColour *)new wxColour((wxString const &)*arg1);
4190 wxPyEndAllowThreads(__tstate);
4191 if (PyErr_Occurred()) SWIG_fail;
4192 }
4193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4194 {
4195 if (temp1)
4196 delete arg1;
4197 }
4198 return resultobj;
4199 fail:
4200 {
4201 if (temp1)
4202 delete arg1;
4203 }
4204 return NULL;
4205 }
4206
4207
4208 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4209 PyObject *resultobj = 0;
4210 unsigned long arg1 ;
4211 wxColour *result = 0 ;
4212 unsigned long val1 ;
4213 int ecode1 = 0 ;
4214 PyObject * obj0 = 0 ;
4215 char * kwnames[] = {
4216 (char *) "colRGB", NULL
4217 };
4218
4219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4220 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4221 if (!SWIG_IsOK(ecode1)) {
4222 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4223 }
4224 arg1 = static_cast< unsigned long >(val1);
4225 {
4226 PyThreadState* __tstate = wxPyBeginAllowThreads();
4227 result = (wxColour *)new wxColour(arg1);
4228 wxPyEndAllowThreads(__tstate);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4232 return resultobj;
4233 fail:
4234 return NULL;
4235 }
4236
4237
4238 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4239 PyObject *resultobj = 0;
4240 wxColour *arg1 = (wxColour *) 0 ;
4241 void *argp1 = 0 ;
4242 int res1 = 0 ;
4243 PyObject *swig_obj[1] ;
4244
4245 if (!args) SWIG_fail;
4246 swig_obj[0] = args;
4247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4248 if (!SWIG_IsOK(res1)) {
4249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4250 }
4251 arg1 = reinterpret_cast< wxColour * >(argp1);
4252 {
4253 PyThreadState* __tstate = wxPyBeginAllowThreads();
4254 delete arg1;
4255
4256 wxPyEndAllowThreads(__tstate);
4257 if (PyErr_Occurred()) SWIG_fail;
4258 }
4259 resultobj = SWIG_Py_Void();
4260 return resultobj;
4261 fail:
4262 return NULL;
4263 }
4264
4265
4266 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4267 PyObject *resultobj = 0;
4268 wxColour *arg1 = (wxColour *) 0 ;
4269 byte result;
4270 void *argp1 = 0 ;
4271 int res1 = 0 ;
4272 PyObject *swig_obj[1] ;
4273
4274 if (!args) SWIG_fail;
4275 swig_obj[0] = args;
4276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4277 if (!SWIG_IsOK(res1)) {
4278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4279 }
4280 arg1 = reinterpret_cast< wxColour * >(argp1);
4281 {
4282 PyThreadState* __tstate = wxPyBeginAllowThreads();
4283 result = (byte)(arg1)->Red();
4284 wxPyEndAllowThreads(__tstate);
4285 if (PyErr_Occurred()) SWIG_fail;
4286 }
4287 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4288 return resultobj;
4289 fail:
4290 return NULL;
4291 }
4292
4293
4294 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4295 PyObject *resultobj = 0;
4296 wxColour *arg1 = (wxColour *) 0 ;
4297 byte result;
4298 void *argp1 = 0 ;
4299 int res1 = 0 ;
4300 PyObject *swig_obj[1] ;
4301
4302 if (!args) SWIG_fail;
4303 swig_obj[0] = args;
4304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4305 if (!SWIG_IsOK(res1)) {
4306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4307 }
4308 arg1 = reinterpret_cast< wxColour * >(argp1);
4309 {
4310 PyThreadState* __tstate = wxPyBeginAllowThreads();
4311 result = (byte)(arg1)->Green();
4312 wxPyEndAllowThreads(__tstate);
4313 if (PyErr_Occurred()) SWIG_fail;
4314 }
4315 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4316 return resultobj;
4317 fail:
4318 return NULL;
4319 }
4320
4321
4322 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4323 PyObject *resultobj = 0;
4324 wxColour *arg1 = (wxColour *) 0 ;
4325 byte result;
4326 void *argp1 = 0 ;
4327 int res1 = 0 ;
4328 PyObject *swig_obj[1] ;
4329
4330 if (!args) SWIG_fail;
4331 swig_obj[0] = args;
4332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4333 if (!SWIG_IsOK(res1)) {
4334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4335 }
4336 arg1 = reinterpret_cast< wxColour * >(argp1);
4337 {
4338 PyThreadState* __tstate = wxPyBeginAllowThreads();
4339 result = (byte)(arg1)->Blue();
4340 wxPyEndAllowThreads(__tstate);
4341 if (PyErr_Occurred()) SWIG_fail;
4342 }
4343 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4344 return resultobj;
4345 fail:
4346 return NULL;
4347 }
4348
4349
4350 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4351 PyObject *resultobj = 0;
4352 wxColour *arg1 = (wxColour *) 0 ;
4353 byte result;
4354 void *argp1 = 0 ;
4355 int res1 = 0 ;
4356 PyObject *swig_obj[1] ;
4357
4358 if (!args) SWIG_fail;
4359 swig_obj[0] = args;
4360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4361 if (!SWIG_IsOK(res1)) {
4362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4363 }
4364 arg1 = reinterpret_cast< wxColour * >(argp1);
4365 {
4366 PyThreadState* __tstate = wxPyBeginAllowThreads();
4367 result = (byte)(arg1)->Alpha();
4368 wxPyEndAllowThreads(__tstate);
4369 if (PyErr_Occurred()) SWIG_fail;
4370 }
4371 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4372 return resultobj;
4373 fail:
4374 return NULL;
4375 }
4376
4377
4378 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4379 PyObject *resultobj = 0;
4380 wxColour *arg1 = (wxColour *) 0 ;
4381 bool result;
4382 void *argp1 = 0 ;
4383 int res1 = 0 ;
4384 PyObject *swig_obj[1] ;
4385
4386 if (!args) SWIG_fail;
4387 swig_obj[0] = args;
4388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4389 if (!SWIG_IsOK(res1)) {
4390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4391 }
4392 arg1 = reinterpret_cast< wxColour * >(argp1);
4393 {
4394 PyThreadState* __tstate = wxPyBeginAllowThreads();
4395 result = (bool)(arg1)->IsOk();
4396 wxPyEndAllowThreads(__tstate);
4397 if (PyErr_Occurred()) SWIG_fail;
4398 }
4399 {
4400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4401 }
4402 return resultobj;
4403 fail:
4404 return NULL;
4405 }
4406
4407
4408 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4409 PyObject *resultobj = 0;
4410 wxColour *arg1 = (wxColour *) 0 ;
4411 byte arg2 ;
4412 byte arg3 ;
4413 byte arg4 ;
4414 byte arg5 = (byte) wxALPHA_OPAQUE ;
4415 void *argp1 = 0 ;
4416 int res1 = 0 ;
4417 unsigned char val2 ;
4418 int ecode2 = 0 ;
4419 unsigned char val3 ;
4420 int ecode3 = 0 ;
4421 unsigned char val4 ;
4422 int ecode4 = 0 ;
4423 unsigned char val5 ;
4424 int ecode5 = 0 ;
4425 PyObject * obj0 = 0 ;
4426 PyObject * obj1 = 0 ;
4427 PyObject * obj2 = 0 ;
4428 PyObject * obj3 = 0 ;
4429 PyObject * obj4 = 0 ;
4430 char * kwnames[] = {
4431 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4432 };
4433
4434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4436 if (!SWIG_IsOK(res1)) {
4437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4438 }
4439 arg1 = reinterpret_cast< wxColour * >(argp1);
4440 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4441 if (!SWIG_IsOK(ecode2)) {
4442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4443 }
4444 arg2 = static_cast< byte >(val2);
4445 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4446 if (!SWIG_IsOK(ecode3)) {
4447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4448 }
4449 arg3 = static_cast< byte >(val3);
4450 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4451 if (!SWIG_IsOK(ecode4)) {
4452 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4453 }
4454 arg4 = static_cast< byte >(val4);
4455 if (obj4) {
4456 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4457 if (!SWIG_IsOK(ecode5)) {
4458 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4459 }
4460 arg5 = static_cast< byte >(val5);
4461 }
4462 {
4463 PyThreadState* __tstate = wxPyBeginAllowThreads();
4464 (arg1)->Set(arg2,arg3,arg4,arg5);
4465 wxPyEndAllowThreads(__tstate);
4466 if (PyErr_Occurred()) SWIG_fail;
4467 }
4468 resultobj = SWIG_Py_Void();
4469 return resultobj;
4470 fail:
4471 return NULL;
4472 }
4473
4474
4475 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4476 PyObject *resultobj = 0;
4477 wxColour *arg1 = (wxColour *) 0 ;
4478 unsigned long arg2 ;
4479 void *argp1 = 0 ;
4480 int res1 = 0 ;
4481 unsigned long val2 ;
4482 int ecode2 = 0 ;
4483 PyObject * obj0 = 0 ;
4484 PyObject * obj1 = 0 ;
4485 char * kwnames[] = {
4486 (char *) "self",(char *) "colRGB", NULL
4487 };
4488
4489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4491 if (!SWIG_IsOK(res1)) {
4492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4493 }
4494 arg1 = reinterpret_cast< wxColour * >(argp1);
4495 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4496 if (!SWIG_IsOK(ecode2)) {
4497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4498 }
4499 arg2 = static_cast< unsigned long >(val2);
4500 {
4501 PyThreadState* __tstate = wxPyBeginAllowThreads();
4502 (arg1)->Set(arg2);
4503 wxPyEndAllowThreads(__tstate);
4504 if (PyErr_Occurred()) SWIG_fail;
4505 }
4506 resultobj = SWIG_Py_Void();
4507 return resultobj;
4508 fail:
4509 return NULL;
4510 }
4511
4512
4513 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4514 PyObject *resultobj = 0;
4515 wxColour *arg1 = (wxColour *) 0 ;
4516 wxString *arg2 = 0 ;
4517 void *argp1 = 0 ;
4518 int res1 = 0 ;
4519 bool temp2 = false ;
4520 PyObject * obj0 = 0 ;
4521 PyObject * obj1 = 0 ;
4522 char * kwnames[] = {
4523 (char *) "self",(char *) "colourName", NULL
4524 };
4525
4526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4528 if (!SWIG_IsOK(res1)) {
4529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4530 }
4531 arg1 = reinterpret_cast< wxColour * >(argp1);
4532 {
4533 arg2 = wxString_in_helper(obj1);
4534 if (arg2 == NULL) SWIG_fail;
4535 temp2 = true;
4536 }
4537 {
4538 PyThreadState* __tstate = wxPyBeginAllowThreads();
4539 (arg1)->Set((wxString const &)*arg2);
4540 wxPyEndAllowThreads(__tstate);
4541 if (PyErr_Occurred()) SWIG_fail;
4542 }
4543 resultobj = SWIG_Py_Void();
4544 {
4545 if (temp2)
4546 delete arg2;
4547 }
4548 return resultobj;
4549 fail:
4550 {
4551 if (temp2)
4552 delete arg2;
4553 }
4554 return NULL;
4555 }
4556
4557
4558 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4559 PyObject *resultobj = 0;
4560 wxColour *arg1 = (wxColour *) 0 ;
4561 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4562 wxString result;
4563 void *argp1 = 0 ;
4564 int res1 = 0 ;
4565 long val2 ;
4566 int ecode2 = 0 ;
4567 PyObject * obj0 = 0 ;
4568 PyObject * obj1 = 0 ;
4569 char * kwnames[] = {
4570 (char *) "self",(char *) "flags", NULL
4571 };
4572
4573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4575 if (!SWIG_IsOK(res1)) {
4576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4577 }
4578 arg1 = reinterpret_cast< wxColour * >(argp1);
4579 if (obj1) {
4580 ecode2 = SWIG_AsVal_long(obj1, &val2);
4581 if (!SWIG_IsOK(ecode2)) {
4582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4583 }
4584 arg2 = static_cast< long >(val2);
4585 }
4586 {
4587 PyThreadState* __tstate = wxPyBeginAllowThreads();
4588 result = ((wxColour const *)arg1)->GetAsString(arg2);
4589 wxPyEndAllowThreads(__tstate);
4590 if (PyErr_Occurred()) SWIG_fail;
4591 }
4592 {
4593 #if wxUSE_UNICODE
4594 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4595 #else
4596 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4597 #endif
4598 }
4599 return resultobj;
4600 fail:
4601 return NULL;
4602 }
4603
4604
4605 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4606 PyObject *resultobj = 0;
4607 wxColour *arg1 = (wxColour *) 0 ;
4608 long result;
4609 void *argp1 = 0 ;
4610 int res1 = 0 ;
4611 PyObject *swig_obj[1] ;
4612
4613 if (!args) SWIG_fail;
4614 swig_obj[0] = args;
4615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4616 if (!SWIG_IsOK(res1)) {
4617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4618 }
4619 arg1 = reinterpret_cast< wxColour * >(argp1);
4620 {
4621 PyThreadState* __tstate = wxPyBeginAllowThreads();
4622 result = (long)((wxColour const *)arg1)->GetPixel();
4623 wxPyEndAllowThreads(__tstate);
4624 if (PyErr_Occurred()) SWIG_fail;
4625 }
4626 resultobj = SWIG_From_long(static_cast< long >(result));
4627 return resultobj;
4628 fail:
4629 return NULL;
4630 }
4631
4632
4633 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4634 PyObject *resultobj = 0;
4635 wxColour *arg1 = (wxColour *) 0 ;
4636 PyObject *arg2 = (PyObject *) 0 ;
4637 bool result;
4638 void *argp1 = 0 ;
4639 int res1 = 0 ;
4640 PyObject * obj0 = 0 ;
4641 PyObject * obj1 = 0 ;
4642 char * kwnames[] = {
4643 (char *) "self",(char *) "other", NULL
4644 };
4645
4646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4648 if (!SWIG_IsOK(res1)) {
4649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4650 }
4651 arg1 = reinterpret_cast< wxColour * >(argp1);
4652 arg2 = obj1;
4653 {
4654 result = (bool)wxColour___eq__(arg1,arg2);
4655 if (PyErr_Occurred()) SWIG_fail;
4656 }
4657 {
4658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4659 }
4660 return resultobj;
4661 fail:
4662 return NULL;
4663 }
4664
4665
4666 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4667 PyObject *resultobj = 0;
4668 wxColour *arg1 = (wxColour *) 0 ;
4669 PyObject *arg2 = (PyObject *) 0 ;
4670 bool result;
4671 void *argp1 = 0 ;
4672 int res1 = 0 ;
4673 PyObject * obj0 = 0 ;
4674 PyObject * obj1 = 0 ;
4675 char * kwnames[] = {
4676 (char *) "self",(char *) "other", NULL
4677 };
4678
4679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4681 if (!SWIG_IsOK(res1)) {
4682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4683 }
4684 arg1 = reinterpret_cast< wxColour * >(argp1);
4685 arg2 = obj1;
4686 {
4687 result = (bool)wxColour___ne__(arg1,arg2);
4688 if (PyErr_Occurred()) SWIG_fail;
4689 }
4690 {
4691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4692 }
4693 return resultobj;
4694 fail:
4695 return NULL;
4696 }
4697
4698
4699 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4700 PyObject *resultobj = 0;
4701 wxColour *arg1 = (wxColour *) 0 ;
4702 bool arg2 = (bool) false ;
4703 PyObject *result = 0 ;
4704 void *argp1 = 0 ;
4705 int res1 = 0 ;
4706 bool val2 ;
4707 int ecode2 = 0 ;
4708 PyObject * obj0 = 0 ;
4709 PyObject * obj1 = 0 ;
4710 char * kwnames[] = {
4711 (char *) "self",(char *) "includeAlpha", NULL
4712 };
4713
4714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4716 if (!SWIG_IsOK(res1)) {
4717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4718 }
4719 arg1 = reinterpret_cast< wxColour * >(argp1);
4720 if (obj1) {
4721 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4722 if (!SWIG_IsOK(ecode2)) {
4723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4724 }
4725 arg2 = static_cast< bool >(val2);
4726 }
4727 {
4728 result = (PyObject *)wxColour_Get(arg1,arg2);
4729 if (PyErr_Occurred()) SWIG_fail;
4730 }
4731 resultobj = result;
4732 return resultobj;
4733 fail:
4734 return NULL;
4735 }
4736
4737
4738 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4739 PyObject *resultobj = 0;
4740 wxColour *arg1 = (wxColour *) 0 ;
4741 unsigned long result;
4742 void *argp1 = 0 ;
4743 int res1 = 0 ;
4744 PyObject *swig_obj[1] ;
4745
4746 if (!args) SWIG_fail;
4747 swig_obj[0] = args;
4748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4749 if (!SWIG_IsOK(res1)) {
4750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4751 }
4752 arg1 = reinterpret_cast< wxColour * >(argp1);
4753 {
4754 result = (unsigned long)wxColour_GetRGB(arg1);
4755 if (PyErr_Occurred()) SWIG_fail;
4756 }
4757 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4758 return resultobj;
4759 fail:
4760 return NULL;
4761 }
4762
4763
4764 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4765 PyObject *obj;
4766 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4767 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4768 return SWIG_Py_Void();
4769 }
4770
4771 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4772 return SWIG_Python_InitShadowInstance(args);
4773 }
4774
4775 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4776 PyObject *resultobj = 0;
4777 int arg1 ;
4778 unsigned char *arg2 = (unsigned char *) 0 ;
4779 unsigned char *arg3 = (unsigned char *) 0 ;
4780 unsigned char *arg4 = (unsigned char *) 0 ;
4781 wxPalette *result = 0 ;
4782 int val1 ;
4783 int ecode1 = 0 ;
4784 void *argp2 = 0 ;
4785 int res2 = 0 ;
4786 void *argp3 = 0 ;
4787 int res3 = 0 ;
4788 void *argp4 = 0 ;
4789 int res4 = 0 ;
4790 PyObject * obj0 = 0 ;
4791 PyObject * obj1 = 0 ;
4792 PyObject * obj2 = 0 ;
4793 PyObject * obj3 = 0 ;
4794 char * kwnames[] = {
4795 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4796 };
4797
4798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4799 ecode1 = SWIG_AsVal_int(obj0, &val1);
4800 if (!SWIG_IsOK(ecode1)) {
4801 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4802 }
4803 arg1 = static_cast< int >(val1);
4804 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4805 if (!SWIG_IsOK(res2)) {
4806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4807 }
4808 arg2 = reinterpret_cast< unsigned char * >(argp2);
4809 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4810 if (!SWIG_IsOK(res3)) {
4811 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4812 }
4813 arg3 = reinterpret_cast< unsigned char * >(argp3);
4814 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4815 if (!SWIG_IsOK(res4)) {
4816 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4817 }
4818 arg4 = reinterpret_cast< unsigned char * >(argp4);
4819 {
4820 if (!wxPyCheckForApp()) SWIG_fail;
4821 PyThreadState* __tstate = wxPyBeginAllowThreads();
4822 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4823 wxPyEndAllowThreads(__tstate);
4824 if (PyErr_Occurred()) SWIG_fail;
4825 }
4826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4827 return resultobj;
4828 fail:
4829 return NULL;
4830 }
4831
4832
4833 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4834 PyObject *resultobj = 0;
4835 wxPalette *arg1 = (wxPalette *) 0 ;
4836 void *argp1 = 0 ;
4837 int res1 = 0 ;
4838 PyObject *swig_obj[1] ;
4839
4840 if (!args) SWIG_fail;
4841 swig_obj[0] = args;
4842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4843 if (!SWIG_IsOK(res1)) {
4844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4845 }
4846 arg1 = reinterpret_cast< wxPalette * >(argp1);
4847 {
4848 PyThreadState* __tstate = wxPyBeginAllowThreads();
4849 delete arg1;
4850
4851 wxPyEndAllowThreads(__tstate);
4852 if (PyErr_Occurred()) SWIG_fail;
4853 }
4854 resultobj = SWIG_Py_Void();
4855 return resultobj;
4856 fail:
4857 return NULL;
4858 }
4859
4860
4861 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj = 0;
4863 wxPalette *arg1 = (wxPalette *) 0 ;
4864 byte arg2 ;
4865 byte arg3 ;
4866 byte arg4 ;
4867 int result;
4868 void *argp1 = 0 ;
4869 int res1 = 0 ;
4870 unsigned char val2 ;
4871 int ecode2 = 0 ;
4872 unsigned char val3 ;
4873 int ecode3 = 0 ;
4874 unsigned char val4 ;
4875 int ecode4 = 0 ;
4876 PyObject * obj0 = 0 ;
4877 PyObject * obj1 = 0 ;
4878 PyObject * obj2 = 0 ;
4879 PyObject * obj3 = 0 ;
4880 char * kwnames[] = {
4881 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4882 };
4883
4884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4886 if (!SWIG_IsOK(res1)) {
4887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4888 }
4889 arg1 = reinterpret_cast< wxPalette * >(argp1);
4890 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4891 if (!SWIG_IsOK(ecode2)) {
4892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4893 }
4894 arg2 = static_cast< byte >(val2);
4895 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4896 if (!SWIG_IsOK(ecode3)) {
4897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4898 }
4899 arg3 = static_cast< byte >(val3);
4900 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4901 if (!SWIG_IsOK(ecode4)) {
4902 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4903 }
4904 arg4 = static_cast< byte >(val4);
4905 {
4906 PyThreadState* __tstate = wxPyBeginAllowThreads();
4907 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4908 wxPyEndAllowThreads(__tstate);
4909 if (PyErr_Occurred()) SWIG_fail;
4910 }
4911 resultobj = SWIG_From_int(static_cast< int >(result));
4912 return resultobj;
4913 fail:
4914 return NULL;
4915 }
4916
4917
4918 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4919 PyObject *resultobj = 0;
4920 wxPalette *arg1 = (wxPalette *) 0 ;
4921 int arg2 ;
4922 byte *arg3 = (byte *) 0 ;
4923 byte *arg4 = (byte *) 0 ;
4924 byte *arg5 = (byte *) 0 ;
4925 bool result;
4926 void *argp1 = 0 ;
4927 int res1 = 0 ;
4928 int val2 ;
4929 int ecode2 = 0 ;
4930 byte temp3 ;
4931 int res3 = SWIG_TMPOBJ ;
4932 byte temp4 ;
4933 int res4 = SWIG_TMPOBJ ;
4934 byte temp5 ;
4935 int res5 = SWIG_TMPOBJ ;
4936 PyObject * obj0 = 0 ;
4937 PyObject * obj1 = 0 ;
4938 char * kwnames[] = {
4939 (char *) "self",(char *) "pixel", NULL
4940 };
4941
4942 arg3 = &temp3;
4943 arg4 = &temp4;
4944 arg5 = &temp5;
4945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4947 if (!SWIG_IsOK(res1)) {
4948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4949 }
4950 arg1 = reinterpret_cast< wxPalette * >(argp1);
4951 ecode2 = SWIG_AsVal_int(obj1, &val2);
4952 if (!SWIG_IsOK(ecode2)) {
4953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4954 }
4955 arg2 = static_cast< int >(val2);
4956 {
4957 PyThreadState* __tstate = wxPyBeginAllowThreads();
4958 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4959 wxPyEndAllowThreads(__tstate);
4960 if (PyErr_Occurred()) SWIG_fail;
4961 }
4962 {
4963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4964 }
4965 if (SWIG_IsTmpObj(res3)) {
4966 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4967 } else {
4968 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4969 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4970 }
4971 if (SWIG_IsTmpObj(res4)) {
4972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4973 } else {
4974 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4975 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4976 }
4977 if (SWIG_IsTmpObj(res5)) {
4978 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4979 } else {
4980 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4981 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4982 }
4983 return resultobj;
4984 fail:
4985 return NULL;
4986 }
4987
4988
4989 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4990 PyObject *resultobj = 0;
4991 wxPalette *arg1 = (wxPalette *) 0 ;
4992 int result;
4993 void *argp1 = 0 ;
4994 int res1 = 0 ;
4995 PyObject *swig_obj[1] ;
4996
4997 if (!args) SWIG_fail;
4998 swig_obj[0] = args;
4999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5000 if (!SWIG_IsOK(res1)) {
5001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
5002 }
5003 arg1 = reinterpret_cast< wxPalette * >(argp1);
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 result = (int)((wxPalette const *)arg1)->GetColoursCount();
5007 wxPyEndAllowThreads(__tstate);
5008 if (PyErr_Occurred()) SWIG_fail;
5009 }
5010 resultobj = SWIG_From_int(static_cast< int >(result));
5011 return resultobj;
5012 fail:
5013 return NULL;
5014 }
5015
5016
5017 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5018 PyObject *resultobj = 0;
5019 wxPalette *arg1 = (wxPalette *) 0 ;
5020 bool result;
5021 void *argp1 = 0 ;
5022 int res1 = 0 ;
5023 PyObject *swig_obj[1] ;
5024
5025 if (!args) SWIG_fail;
5026 swig_obj[0] = args;
5027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5028 if (!SWIG_IsOK(res1)) {
5029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
5030 }
5031 arg1 = reinterpret_cast< wxPalette * >(argp1);
5032 {
5033 PyThreadState* __tstate = wxPyBeginAllowThreads();
5034 result = (bool)(arg1)->IsOk();
5035 wxPyEndAllowThreads(__tstate);
5036 if (PyErr_Occurred()) SWIG_fail;
5037 }
5038 {
5039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5040 }
5041 return resultobj;
5042 fail:
5043 return NULL;
5044 }
5045
5046
5047 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5048 PyObject *obj;
5049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5050 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5051 return SWIG_Py_Void();
5052 }
5053
5054 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5055 return SWIG_Python_InitShadowInstance(args);
5056 }
5057
5058 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5059 PyObject *resultobj = 0;
5060 wxColour *arg1 = 0 ;
5061 int arg2 = (int) 1 ;
5062 int arg3 = (int) wxSOLID ;
5063 wxPen *result = 0 ;
5064 wxColour temp1 ;
5065 int val2 ;
5066 int ecode2 = 0 ;
5067 int val3 ;
5068 int ecode3 = 0 ;
5069 PyObject * obj0 = 0 ;
5070 PyObject * obj1 = 0 ;
5071 PyObject * obj2 = 0 ;
5072 char * kwnames[] = {
5073 (char *) "colour",(char *) "width",(char *) "style", NULL
5074 };
5075
5076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5077 {
5078 arg1 = &temp1;
5079 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5080 }
5081 if (obj1) {
5082 ecode2 = SWIG_AsVal_int(obj1, &val2);
5083 if (!SWIG_IsOK(ecode2)) {
5084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5085 }
5086 arg2 = static_cast< int >(val2);
5087 }
5088 if (obj2) {
5089 ecode3 = SWIG_AsVal_int(obj2, &val3);
5090 if (!SWIG_IsOK(ecode3)) {
5091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5092 }
5093 arg3 = static_cast< int >(val3);
5094 }
5095 {
5096 if (!wxPyCheckForApp()) SWIG_fail;
5097 PyThreadState* __tstate = wxPyBeginAllowThreads();
5098 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5099 wxPyEndAllowThreads(__tstate);
5100 if (PyErr_Occurred()) SWIG_fail;
5101 }
5102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5103 return resultobj;
5104 fail:
5105 return NULL;
5106 }
5107
5108
5109 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5110 PyObject *resultobj = 0;
5111 wxPen *arg1 = (wxPen *) 0 ;
5112 void *argp1 = 0 ;
5113 int res1 = 0 ;
5114 PyObject *swig_obj[1] ;
5115
5116 if (!args) SWIG_fail;
5117 swig_obj[0] = args;
5118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5119 if (!SWIG_IsOK(res1)) {
5120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5121 }
5122 arg1 = reinterpret_cast< wxPen * >(argp1);
5123 {
5124 PyThreadState* __tstate = wxPyBeginAllowThreads();
5125 delete arg1;
5126
5127 wxPyEndAllowThreads(__tstate);
5128 if (PyErr_Occurred()) SWIG_fail;
5129 }
5130 resultobj = SWIG_Py_Void();
5131 return resultobj;
5132 fail:
5133 return NULL;
5134 }
5135
5136
5137 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5138 PyObject *resultobj = 0;
5139 wxPen *arg1 = (wxPen *) 0 ;
5140 int result;
5141 void *argp1 = 0 ;
5142 int res1 = 0 ;
5143 PyObject *swig_obj[1] ;
5144
5145 if (!args) SWIG_fail;
5146 swig_obj[0] = args;
5147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5148 if (!SWIG_IsOK(res1)) {
5149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5150 }
5151 arg1 = reinterpret_cast< wxPen * >(argp1);
5152 {
5153 PyThreadState* __tstate = wxPyBeginAllowThreads();
5154 result = (int)(arg1)->GetCap();
5155 wxPyEndAllowThreads(__tstate);
5156 if (PyErr_Occurred()) SWIG_fail;
5157 }
5158 resultobj = SWIG_From_int(static_cast< int >(result));
5159 return resultobj;
5160 fail:
5161 return NULL;
5162 }
5163
5164
5165 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5166 PyObject *resultobj = 0;
5167 wxPen *arg1 = (wxPen *) 0 ;
5168 wxColour result;
5169 void *argp1 = 0 ;
5170 int res1 = 0 ;
5171 PyObject *swig_obj[1] ;
5172
5173 if (!args) SWIG_fail;
5174 swig_obj[0] = args;
5175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5176 if (!SWIG_IsOK(res1)) {
5177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5178 }
5179 arg1 = reinterpret_cast< wxPen * >(argp1);
5180 {
5181 PyThreadState* __tstate = wxPyBeginAllowThreads();
5182 result = (arg1)->GetColour();
5183 wxPyEndAllowThreads(__tstate);
5184 if (PyErr_Occurred()) SWIG_fail;
5185 }
5186 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5187 return resultobj;
5188 fail:
5189 return NULL;
5190 }
5191
5192
5193 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5194 PyObject *resultobj = 0;
5195 wxPen *arg1 = (wxPen *) 0 ;
5196 int result;
5197 void *argp1 = 0 ;
5198 int res1 = 0 ;
5199 PyObject *swig_obj[1] ;
5200
5201 if (!args) SWIG_fail;
5202 swig_obj[0] = args;
5203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5204 if (!SWIG_IsOK(res1)) {
5205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5206 }
5207 arg1 = reinterpret_cast< wxPen * >(argp1);
5208 {
5209 PyThreadState* __tstate = wxPyBeginAllowThreads();
5210 result = (int)(arg1)->GetJoin();
5211 wxPyEndAllowThreads(__tstate);
5212 if (PyErr_Occurred()) SWIG_fail;
5213 }
5214 resultobj = SWIG_From_int(static_cast< int >(result));
5215 return resultobj;
5216 fail:
5217 return NULL;
5218 }
5219
5220
5221 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5222 PyObject *resultobj = 0;
5223 wxPen *arg1 = (wxPen *) 0 ;
5224 int result;
5225 void *argp1 = 0 ;
5226 int res1 = 0 ;
5227 PyObject *swig_obj[1] ;
5228
5229 if (!args) SWIG_fail;
5230 swig_obj[0] = args;
5231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5232 if (!SWIG_IsOK(res1)) {
5233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5234 }
5235 arg1 = reinterpret_cast< wxPen * >(argp1);
5236 {
5237 PyThreadState* __tstate = wxPyBeginAllowThreads();
5238 result = (int)(arg1)->GetStyle();
5239 wxPyEndAllowThreads(__tstate);
5240 if (PyErr_Occurred()) SWIG_fail;
5241 }
5242 resultobj = SWIG_From_int(static_cast< int >(result));
5243 return resultobj;
5244 fail:
5245 return NULL;
5246 }
5247
5248
5249 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5250 PyObject *resultobj = 0;
5251 wxPen *arg1 = (wxPen *) 0 ;
5252 int result;
5253 void *argp1 = 0 ;
5254 int res1 = 0 ;
5255 PyObject *swig_obj[1] ;
5256
5257 if (!args) SWIG_fail;
5258 swig_obj[0] = args;
5259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5260 if (!SWIG_IsOK(res1)) {
5261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5262 }
5263 arg1 = reinterpret_cast< wxPen * >(argp1);
5264 {
5265 PyThreadState* __tstate = wxPyBeginAllowThreads();
5266 result = (int)(arg1)->GetWidth();
5267 wxPyEndAllowThreads(__tstate);
5268 if (PyErr_Occurred()) SWIG_fail;
5269 }
5270 resultobj = SWIG_From_int(static_cast< int >(result));
5271 return resultobj;
5272 fail:
5273 return NULL;
5274 }
5275
5276
5277 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5278 PyObject *resultobj = 0;
5279 wxPen *arg1 = (wxPen *) 0 ;
5280 bool result;
5281 void *argp1 = 0 ;
5282 int res1 = 0 ;
5283 PyObject *swig_obj[1] ;
5284
5285 if (!args) SWIG_fail;
5286 swig_obj[0] = args;
5287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5288 if (!SWIG_IsOK(res1)) {
5289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5290 }
5291 arg1 = reinterpret_cast< wxPen * >(argp1);
5292 {
5293 PyThreadState* __tstate = wxPyBeginAllowThreads();
5294 result = (bool)(arg1)->IsOk();
5295 wxPyEndAllowThreads(__tstate);
5296 if (PyErr_Occurred()) SWIG_fail;
5297 }
5298 {
5299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5300 }
5301 return resultobj;
5302 fail:
5303 return NULL;
5304 }
5305
5306
5307 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5308 PyObject *resultobj = 0;
5309 wxPen *arg1 = (wxPen *) 0 ;
5310 int arg2 ;
5311 void *argp1 = 0 ;
5312 int res1 = 0 ;
5313 int val2 ;
5314 int ecode2 = 0 ;
5315 PyObject * obj0 = 0 ;
5316 PyObject * obj1 = 0 ;
5317 char * kwnames[] = {
5318 (char *) "self",(char *) "cap_style", NULL
5319 };
5320
5321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5323 if (!SWIG_IsOK(res1)) {
5324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5325 }
5326 arg1 = reinterpret_cast< wxPen * >(argp1);
5327 ecode2 = SWIG_AsVal_int(obj1, &val2);
5328 if (!SWIG_IsOK(ecode2)) {
5329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5330 }
5331 arg2 = static_cast< int >(val2);
5332 {
5333 PyThreadState* __tstate = wxPyBeginAllowThreads();
5334 (arg1)->SetCap(arg2);
5335 wxPyEndAllowThreads(__tstate);
5336 if (PyErr_Occurred()) SWIG_fail;
5337 }
5338 resultobj = SWIG_Py_Void();
5339 return resultobj;
5340 fail:
5341 return NULL;
5342 }
5343
5344
5345 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5346 PyObject *resultobj = 0;
5347 wxPen *arg1 = (wxPen *) 0 ;
5348 wxColour *arg2 = 0 ;
5349 void *argp1 = 0 ;
5350 int res1 = 0 ;
5351 wxColour temp2 ;
5352 PyObject * obj0 = 0 ;
5353 PyObject * obj1 = 0 ;
5354 char * kwnames[] = {
5355 (char *) "self",(char *) "colour", NULL
5356 };
5357
5358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5360 if (!SWIG_IsOK(res1)) {
5361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5362 }
5363 arg1 = reinterpret_cast< wxPen * >(argp1);
5364 {
5365 arg2 = &temp2;
5366 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5367 }
5368 {
5369 PyThreadState* __tstate = wxPyBeginAllowThreads();
5370 (arg1)->SetColour(*arg2);
5371 wxPyEndAllowThreads(__tstate);
5372 if (PyErr_Occurred()) SWIG_fail;
5373 }
5374 resultobj = SWIG_Py_Void();
5375 return resultobj;
5376 fail:
5377 return NULL;
5378 }
5379
5380
5381 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5382 PyObject *resultobj = 0;
5383 wxPen *arg1 = (wxPen *) 0 ;
5384 int arg2 ;
5385 void *argp1 = 0 ;
5386 int res1 = 0 ;
5387 int val2 ;
5388 int ecode2 = 0 ;
5389 PyObject * obj0 = 0 ;
5390 PyObject * obj1 = 0 ;
5391 char * kwnames[] = {
5392 (char *) "self",(char *) "join_style", NULL
5393 };
5394
5395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5397 if (!SWIG_IsOK(res1)) {
5398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5399 }
5400 arg1 = reinterpret_cast< wxPen * >(argp1);
5401 ecode2 = SWIG_AsVal_int(obj1, &val2);
5402 if (!SWIG_IsOK(ecode2)) {
5403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5404 }
5405 arg2 = static_cast< int >(val2);
5406 {
5407 PyThreadState* __tstate = wxPyBeginAllowThreads();
5408 (arg1)->SetJoin(arg2);
5409 wxPyEndAllowThreads(__tstate);
5410 if (PyErr_Occurred()) SWIG_fail;
5411 }
5412 resultobj = SWIG_Py_Void();
5413 return resultobj;
5414 fail:
5415 return NULL;
5416 }
5417
5418
5419 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5420 PyObject *resultobj = 0;
5421 wxPen *arg1 = (wxPen *) 0 ;
5422 int arg2 ;
5423 void *argp1 = 0 ;
5424 int res1 = 0 ;
5425 int val2 ;
5426 int ecode2 = 0 ;
5427 PyObject * obj0 = 0 ;
5428 PyObject * obj1 = 0 ;
5429 char * kwnames[] = {
5430 (char *) "self",(char *) "style", NULL
5431 };
5432
5433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5435 if (!SWIG_IsOK(res1)) {
5436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5437 }
5438 arg1 = reinterpret_cast< wxPen * >(argp1);
5439 ecode2 = SWIG_AsVal_int(obj1, &val2);
5440 if (!SWIG_IsOK(ecode2)) {
5441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5442 }
5443 arg2 = static_cast< int >(val2);
5444 {
5445 PyThreadState* __tstate = wxPyBeginAllowThreads();
5446 (arg1)->SetStyle(arg2);
5447 wxPyEndAllowThreads(__tstate);
5448 if (PyErr_Occurred()) SWIG_fail;
5449 }
5450 resultobj = SWIG_Py_Void();
5451 return resultobj;
5452 fail:
5453 return NULL;
5454 }
5455
5456
5457 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5458 PyObject *resultobj = 0;
5459 wxPen *arg1 = (wxPen *) 0 ;
5460 int arg2 ;
5461 void *argp1 = 0 ;
5462 int res1 = 0 ;
5463 int val2 ;
5464 int ecode2 = 0 ;
5465 PyObject * obj0 = 0 ;
5466 PyObject * obj1 = 0 ;
5467 char * kwnames[] = {
5468 (char *) "self",(char *) "width", NULL
5469 };
5470
5471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5473 if (!SWIG_IsOK(res1)) {
5474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5475 }
5476 arg1 = reinterpret_cast< wxPen * >(argp1);
5477 ecode2 = SWIG_AsVal_int(obj1, &val2);
5478 if (!SWIG_IsOK(ecode2)) {
5479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5480 }
5481 arg2 = static_cast< int >(val2);
5482 {
5483 PyThreadState* __tstate = wxPyBeginAllowThreads();
5484 (arg1)->SetWidth(arg2);
5485 wxPyEndAllowThreads(__tstate);
5486 if (PyErr_Occurred()) SWIG_fail;
5487 }
5488 resultobj = SWIG_Py_Void();
5489 return resultobj;
5490 fail:
5491 return NULL;
5492 }
5493
5494
5495 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5496 PyObject *resultobj = 0;
5497 wxPen *arg1 = (wxPen *) 0 ;
5498 int arg2 ;
5499 wxDash *arg3 = (wxDash *) 0 ;
5500 void *argp1 = 0 ;
5501 int res1 = 0 ;
5502 PyObject * obj0 = 0 ;
5503 PyObject * obj1 = 0 ;
5504 char * kwnames[] = {
5505 (char *) "self",(char *) "dashes", NULL
5506 };
5507
5508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5510 if (!SWIG_IsOK(res1)) {
5511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5512 }
5513 arg1 = reinterpret_cast< wxPen * >(argp1);
5514 {
5515 arg2 = PyList_Size(obj1);
5516 arg3 = (wxDash*)byte_LIST_helper(obj1);
5517 if (arg3 == NULL) SWIG_fail;
5518 }
5519 {
5520 PyThreadState* __tstate = wxPyBeginAllowThreads();
5521 (arg1)->SetDashes(arg2,arg3);
5522 wxPyEndAllowThreads(__tstate);
5523 if (PyErr_Occurred()) SWIG_fail;
5524 }
5525 resultobj = SWIG_Py_Void();
5526 {
5527 if (arg3) delete [] arg3;
5528 }
5529 return resultobj;
5530 fail:
5531 {
5532 if (arg3) delete [] arg3;
5533 }
5534 return NULL;
5535 }
5536
5537
5538 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5539 PyObject *resultobj = 0;
5540 wxPen *arg1 = (wxPen *) 0 ;
5541 PyObject *result = 0 ;
5542 void *argp1 = 0 ;
5543 int res1 = 0 ;
5544 PyObject *swig_obj[1] ;
5545
5546 if (!args) SWIG_fail;
5547 swig_obj[0] = args;
5548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5549 if (!SWIG_IsOK(res1)) {
5550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5551 }
5552 arg1 = reinterpret_cast< wxPen * >(argp1);
5553 {
5554 PyThreadState* __tstate = wxPyBeginAllowThreads();
5555 result = (PyObject *)wxPen_GetDashes(arg1);
5556 wxPyEndAllowThreads(__tstate);
5557 if (PyErr_Occurred()) SWIG_fail;
5558 }
5559 resultobj = result;
5560 return resultobj;
5561 fail:
5562 return NULL;
5563 }
5564
5565
5566 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5567 PyObject *resultobj = 0;
5568 wxPen *arg1 = (wxPen *) 0 ;
5569 PyObject *arg2 = (PyObject *) 0 ;
5570 PyObject *arg3 = (PyObject *) 0 ;
5571 void *argp1 = 0 ;
5572 int res1 = 0 ;
5573 PyObject * obj0 = 0 ;
5574 PyObject * obj1 = 0 ;
5575 PyObject * obj2 = 0 ;
5576 char * kwnames[] = {
5577 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5578 };
5579
5580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5582 if (!SWIG_IsOK(res1)) {
5583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5584 }
5585 arg1 = reinterpret_cast< wxPen * >(argp1);
5586 arg2 = obj1;
5587 arg3 = obj2;
5588 {
5589 PyThreadState* __tstate = wxPyBeginAllowThreads();
5590 wxPen__SetDashes(arg1,arg2,arg3);
5591 wxPyEndAllowThreads(__tstate);
5592 if (PyErr_Occurred()) SWIG_fail;
5593 }
5594 resultobj = SWIG_Py_Void();
5595 return resultobj;
5596 fail:
5597 return NULL;
5598 }
5599
5600
5601 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5602 PyObject *resultobj = 0;
5603 wxPen *arg1 = (wxPen *) 0 ;
5604 int result;
5605 void *argp1 = 0 ;
5606 int res1 = 0 ;
5607 PyObject *swig_obj[1] ;
5608
5609 if (!args) SWIG_fail;
5610 swig_obj[0] = args;
5611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5612 if (!SWIG_IsOK(res1)) {
5613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5614 }
5615 arg1 = reinterpret_cast< wxPen * >(argp1);
5616 {
5617 PyThreadState* __tstate = wxPyBeginAllowThreads();
5618 result = (int)((wxPen const *)arg1)->GetDashCount();
5619 wxPyEndAllowThreads(__tstate);
5620 if (PyErr_Occurred()) SWIG_fail;
5621 }
5622 resultobj = SWIG_From_int(static_cast< int >(result));
5623 return resultobj;
5624 fail:
5625 return NULL;
5626 }
5627
5628
5629 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5630 PyObject *resultobj = 0;
5631 wxPen *arg1 = (wxPen *) 0 ;
5632 wxPen *arg2 = (wxPen *) 0 ;
5633 bool result;
5634 void *argp1 = 0 ;
5635 int res1 = 0 ;
5636 void *argp2 = 0 ;
5637 int res2 = 0 ;
5638 PyObject * obj0 = 0 ;
5639 PyObject * obj1 = 0 ;
5640 char * kwnames[] = {
5641 (char *) "self",(char *) "other", NULL
5642 };
5643
5644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5646 if (!SWIG_IsOK(res1)) {
5647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5648 }
5649 arg1 = reinterpret_cast< wxPen * >(argp1);
5650 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5651 if (!SWIG_IsOK(res2)) {
5652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5653 }
5654 arg2 = reinterpret_cast< wxPen * >(argp2);
5655 {
5656 PyThreadState* __tstate = wxPyBeginAllowThreads();
5657 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5658 wxPyEndAllowThreads(__tstate);
5659 if (PyErr_Occurred()) SWIG_fail;
5660 }
5661 {
5662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5663 }
5664 return resultobj;
5665 fail:
5666 return NULL;
5667 }
5668
5669
5670 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5671 PyObject *resultobj = 0;
5672 wxPen *arg1 = (wxPen *) 0 ;
5673 wxPen *arg2 = (wxPen *) 0 ;
5674 bool result;
5675 void *argp1 = 0 ;
5676 int res1 = 0 ;
5677 void *argp2 = 0 ;
5678 int res2 = 0 ;
5679 PyObject * obj0 = 0 ;
5680 PyObject * obj1 = 0 ;
5681 char * kwnames[] = {
5682 (char *) "self",(char *) "other", NULL
5683 };
5684
5685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5687 if (!SWIG_IsOK(res1)) {
5688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5689 }
5690 arg1 = reinterpret_cast< wxPen * >(argp1);
5691 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5692 if (!SWIG_IsOK(res2)) {
5693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5694 }
5695 arg2 = reinterpret_cast< wxPen * >(argp2);
5696 {
5697 PyThreadState* __tstate = wxPyBeginAllowThreads();
5698 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5699 wxPyEndAllowThreads(__tstate);
5700 if (PyErr_Occurred()) SWIG_fail;
5701 }
5702 {
5703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5704 }
5705 return resultobj;
5706 fail:
5707 return NULL;
5708 }
5709
5710
5711 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5712 PyObject *obj;
5713 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5714 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5715 return SWIG_Py_Void();
5716 }
5717
5718 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5719 return SWIG_Python_InitShadowInstance(args);
5720 }
5721
5722 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5723 PyObject *resultobj = 0;
5724 wxColour *arg1 = 0 ;
5725 int arg2 = (int) wxSOLID ;
5726 wxBrush *result = 0 ;
5727 wxColour temp1 ;
5728 int val2 ;
5729 int ecode2 = 0 ;
5730 PyObject * obj0 = 0 ;
5731 PyObject * obj1 = 0 ;
5732 char * kwnames[] = {
5733 (char *) "colour",(char *) "style", NULL
5734 };
5735
5736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5737 {
5738 arg1 = &temp1;
5739 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5740 }
5741 if (obj1) {
5742 ecode2 = SWIG_AsVal_int(obj1, &val2);
5743 if (!SWIG_IsOK(ecode2)) {
5744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5745 }
5746 arg2 = static_cast< int >(val2);
5747 }
5748 {
5749 if (!wxPyCheckForApp()) SWIG_fail;
5750 PyThreadState* __tstate = wxPyBeginAllowThreads();
5751 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5752 wxPyEndAllowThreads(__tstate);
5753 if (PyErr_Occurred()) SWIG_fail;
5754 }
5755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5756 return resultobj;
5757 fail:
5758 return NULL;
5759 }
5760
5761
5762 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5763 PyObject *resultobj = 0;
5764 wxBitmap *arg1 = 0 ;
5765 wxBrush *result = 0 ;
5766 void *argp1 = 0 ;
5767 int res1 = 0 ;
5768 PyObject * obj0 = 0 ;
5769 char * kwnames[] = {
5770 (char *) "stippleBitmap", NULL
5771 };
5772
5773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5774 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5775 if (!SWIG_IsOK(res1)) {
5776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5777 }
5778 if (!argp1) {
5779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5780 }
5781 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5782 {
5783 if (!wxPyCheckForApp()) SWIG_fail;
5784 PyThreadState* __tstate = wxPyBeginAllowThreads();
5785 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5786 wxPyEndAllowThreads(__tstate);
5787 if (PyErr_Occurred()) SWIG_fail;
5788 }
5789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5790 return resultobj;
5791 fail:
5792 return NULL;
5793 }
5794
5795
5796 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5797 PyObject *resultobj = 0;
5798 wxBrush *arg1 = (wxBrush *) 0 ;
5799 void *argp1 = 0 ;
5800 int res1 = 0 ;
5801 PyObject *swig_obj[1] ;
5802
5803 if (!args) SWIG_fail;
5804 swig_obj[0] = args;
5805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5806 if (!SWIG_IsOK(res1)) {
5807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5808 }
5809 arg1 = reinterpret_cast< wxBrush * >(argp1);
5810 {
5811 PyThreadState* __tstate = wxPyBeginAllowThreads();
5812 delete arg1;
5813
5814 wxPyEndAllowThreads(__tstate);
5815 if (PyErr_Occurred()) SWIG_fail;
5816 }
5817 resultobj = SWIG_Py_Void();
5818 return resultobj;
5819 fail:
5820 return NULL;
5821 }
5822
5823
5824 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5825 PyObject *resultobj = 0;
5826 wxBrush *arg1 = (wxBrush *) 0 ;
5827 wxColour *arg2 = 0 ;
5828 void *argp1 = 0 ;
5829 int res1 = 0 ;
5830 wxColour temp2 ;
5831 PyObject * obj0 = 0 ;
5832 PyObject * obj1 = 0 ;
5833 char * kwnames[] = {
5834 (char *) "self",(char *) "col", NULL
5835 };
5836
5837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5839 if (!SWIG_IsOK(res1)) {
5840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5841 }
5842 arg1 = reinterpret_cast< wxBrush * >(argp1);
5843 {
5844 arg2 = &temp2;
5845 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5846 }
5847 {
5848 PyThreadState* __tstate = wxPyBeginAllowThreads();
5849 (arg1)->SetColour((wxColour const &)*arg2);
5850 wxPyEndAllowThreads(__tstate);
5851 if (PyErr_Occurred()) SWIG_fail;
5852 }
5853 resultobj = SWIG_Py_Void();
5854 return resultobj;
5855 fail:
5856 return NULL;
5857 }
5858
5859
5860 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5861 PyObject *resultobj = 0;
5862 wxBrush *arg1 = (wxBrush *) 0 ;
5863 int arg2 ;
5864 void *argp1 = 0 ;
5865 int res1 = 0 ;
5866 int val2 ;
5867 int ecode2 = 0 ;
5868 PyObject * obj0 = 0 ;
5869 PyObject * obj1 = 0 ;
5870 char * kwnames[] = {
5871 (char *) "self",(char *) "style", NULL
5872 };
5873
5874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5876 if (!SWIG_IsOK(res1)) {
5877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5878 }
5879 arg1 = reinterpret_cast< wxBrush * >(argp1);
5880 ecode2 = SWIG_AsVal_int(obj1, &val2);
5881 if (!SWIG_IsOK(ecode2)) {
5882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5883 }
5884 arg2 = static_cast< int >(val2);
5885 {
5886 PyThreadState* __tstate = wxPyBeginAllowThreads();
5887 (arg1)->SetStyle(arg2);
5888 wxPyEndAllowThreads(__tstate);
5889 if (PyErr_Occurred()) SWIG_fail;
5890 }
5891 resultobj = SWIG_Py_Void();
5892 return resultobj;
5893 fail:
5894 return NULL;
5895 }
5896
5897
5898 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5899 PyObject *resultobj = 0;
5900 wxBrush *arg1 = (wxBrush *) 0 ;
5901 wxBitmap *arg2 = 0 ;
5902 void *argp1 = 0 ;
5903 int res1 = 0 ;
5904 void *argp2 = 0 ;
5905 int res2 = 0 ;
5906 PyObject * obj0 = 0 ;
5907 PyObject * obj1 = 0 ;
5908 char * kwnames[] = {
5909 (char *) "self",(char *) "stipple", NULL
5910 };
5911
5912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5914 if (!SWIG_IsOK(res1)) {
5915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5916 }
5917 arg1 = reinterpret_cast< wxBrush * >(argp1);
5918 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5919 if (!SWIG_IsOK(res2)) {
5920 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5921 }
5922 if (!argp2) {
5923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5924 }
5925 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5926 {
5927 PyThreadState* __tstate = wxPyBeginAllowThreads();
5928 (arg1)->SetStipple((wxBitmap const &)*arg2);
5929 wxPyEndAllowThreads(__tstate);
5930 if (PyErr_Occurred()) SWIG_fail;
5931 }
5932 resultobj = SWIG_Py_Void();
5933 return resultobj;
5934 fail:
5935 return NULL;
5936 }
5937
5938
5939 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5940 PyObject *resultobj = 0;
5941 wxBrush *arg1 = (wxBrush *) 0 ;
5942 wxColour result;
5943 void *argp1 = 0 ;
5944 int res1 = 0 ;
5945 PyObject *swig_obj[1] ;
5946
5947 if (!args) SWIG_fail;
5948 swig_obj[0] = args;
5949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5950 if (!SWIG_IsOK(res1)) {
5951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5952 }
5953 arg1 = reinterpret_cast< wxBrush * >(argp1);
5954 {
5955 PyThreadState* __tstate = wxPyBeginAllowThreads();
5956 result = ((wxBrush const *)arg1)->GetColour();
5957 wxPyEndAllowThreads(__tstate);
5958 if (PyErr_Occurred()) SWIG_fail;
5959 }
5960 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5961 return resultobj;
5962 fail:
5963 return NULL;
5964 }
5965
5966
5967 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5968 PyObject *resultobj = 0;
5969 wxBrush *arg1 = (wxBrush *) 0 ;
5970 int result;
5971 void *argp1 = 0 ;
5972 int res1 = 0 ;
5973 PyObject *swig_obj[1] ;
5974
5975 if (!args) SWIG_fail;
5976 swig_obj[0] = args;
5977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5978 if (!SWIG_IsOK(res1)) {
5979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5980 }
5981 arg1 = reinterpret_cast< wxBrush * >(argp1);
5982 {
5983 PyThreadState* __tstate = wxPyBeginAllowThreads();
5984 result = (int)((wxBrush const *)arg1)->GetStyle();
5985 wxPyEndAllowThreads(__tstate);
5986 if (PyErr_Occurred()) SWIG_fail;
5987 }
5988 resultobj = SWIG_From_int(static_cast< int >(result));
5989 return resultobj;
5990 fail:
5991 return NULL;
5992 }
5993
5994
5995 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5996 PyObject *resultobj = 0;
5997 wxBrush *arg1 = (wxBrush *) 0 ;
5998 wxBitmap *result = 0 ;
5999 void *argp1 = 0 ;
6000 int res1 = 0 ;
6001 PyObject *swig_obj[1] ;
6002
6003 if (!args) SWIG_fail;
6004 swig_obj[0] = args;
6005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6006 if (!SWIG_IsOK(res1)) {
6007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
6008 }
6009 arg1 = reinterpret_cast< wxBrush * >(argp1);
6010 {
6011 PyThreadState* __tstate = wxPyBeginAllowThreads();
6012 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
6013 wxPyEndAllowThreads(__tstate);
6014 if (PyErr_Occurred()) SWIG_fail;
6015 }
6016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
6017 return resultobj;
6018 fail:
6019 return NULL;
6020 }
6021
6022
6023 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6024 PyObject *resultobj = 0;
6025 wxBrush *arg1 = (wxBrush *) 0 ;
6026 bool result;
6027 void *argp1 = 0 ;
6028 int res1 = 0 ;
6029 PyObject *swig_obj[1] ;
6030
6031 if (!args) SWIG_fail;
6032 swig_obj[0] = args;
6033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6034 if (!SWIG_IsOK(res1)) {
6035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6036 }
6037 arg1 = reinterpret_cast< wxBrush * >(argp1);
6038 {
6039 PyThreadState* __tstate = wxPyBeginAllowThreads();
6040 result = (bool)((wxBrush const *)arg1)->IsHatch();
6041 wxPyEndAllowThreads(__tstate);
6042 if (PyErr_Occurred()) SWIG_fail;
6043 }
6044 {
6045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6046 }
6047 return resultobj;
6048 fail:
6049 return NULL;
6050 }
6051
6052
6053 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6054 PyObject *resultobj = 0;
6055 wxBrush *arg1 = (wxBrush *) 0 ;
6056 bool result;
6057 void *argp1 = 0 ;
6058 int res1 = 0 ;
6059 PyObject *swig_obj[1] ;
6060
6061 if (!args) SWIG_fail;
6062 swig_obj[0] = args;
6063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6064 if (!SWIG_IsOK(res1)) {
6065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
6066 }
6067 arg1 = reinterpret_cast< wxBrush * >(argp1);
6068 {
6069 PyThreadState* __tstate = wxPyBeginAllowThreads();
6070 result = (bool)(arg1)->IsOk();
6071 wxPyEndAllowThreads(__tstate);
6072 if (PyErr_Occurred()) SWIG_fail;
6073 }
6074 {
6075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6076 }
6077 return resultobj;
6078 fail:
6079 return NULL;
6080 }
6081
6082
6083 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6084 PyObject *obj;
6085 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6086 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6087 return SWIG_Py_Void();
6088 }
6089
6090 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6091 return SWIG_Python_InitShadowInstance(args);
6092 }
6093
6094 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6095 PyObject *resultobj = 0;
6096 wxString *arg1 = 0 ;
6097 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6098 wxBitmap *result = 0 ;
6099 bool temp1 = false ;
6100 int val2 ;
6101 int ecode2 = 0 ;
6102 PyObject * obj0 = 0 ;
6103 PyObject * obj1 = 0 ;
6104 char * kwnames[] = {
6105 (char *) "name",(char *) "type", NULL
6106 };
6107
6108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6109 {
6110 arg1 = wxString_in_helper(obj0);
6111 if (arg1 == NULL) SWIG_fail;
6112 temp1 = true;
6113 }
6114 if (obj1) {
6115 ecode2 = SWIG_AsVal_int(obj1, &val2);
6116 if (!SWIG_IsOK(ecode2)) {
6117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6118 }
6119 arg2 = static_cast< wxBitmapType >(val2);
6120 }
6121 {
6122 if (!wxPyCheckForApp()) SWIG_fail;
6123 PyThreadState* __tstate = wxPyBeginAllowThreads();
6124 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6125 wxPyEndAllowThreads(__tstate);
6126 if (PyErr_Occurred()) SWIG_fail;
6127 }
6128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6129 {
6130 if (temp1)
6131 delete arg1;
6132 }
6133 return resultobj;
6134 fail:
6135 {
6136 if (temp1)
6137 delete arg1;
6138 }
6139 return NULL;
6140 }
6141
6142
6143 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6144 PyObject *resultobj = 0;
6145 wxBitmap *arg1 = (wxBitmap *) 0 ;
6146 void *argp1 = 0 ;
6147 int res1 = 0 ;
6148 PyObject *swig_obj[1] ;
6149
6150 if (!args) SWIG_fail;
6151 swig_obj[0] = args;
6152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6153 if (!SWIG_IsOK(res1)) {
6154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6155 }
6156 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6157 {
6158 delete arg1;
6159
6160 if (PyErr_Occurred()) SWIG_fail;
6161 }
6162 resultobj = SWIG_Py_Void();
6163 return resultobj;
6164 fail:
6165 return NULL;
6166 }
6167
6168
6169 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6170 PyObject *resultobj = 0;
6171 int arg1 ;
6172 int arg2 ;
6173 int arg3 = (int) -1 ;
6174 wxBitmap *result = 0 ;
6175 int val1 ;
6176 int ecode1 = 0 ;
6177 int val2 ;
6178 int ecode2 = 0 ;
6179 int val3 ;
6180 int ecode3 = 0 ;
6181 PyObject * obj0 = 0 ;
6182 PyObject * obj1 = 0 ;
6183 PyObject * obj2 = 0 ;
6184 char * kwnames[] = {
6185 (char *) "width",(char *) "height",(char *) "depth", NULL
6186 };
6187
6188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6189 ecode1 = SWIG_AsVal_int(obj0, &val1);
6190 if (!SWIG_IsOK(ecode1)) {
6191 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6192 }
6193 arg1 = static_cast< int >(val1);
6194 ecode2 = SWIG_AsVal_int(obj1, &val2);
6195 if (!SWIG_IsOK(ecode2)) {
6196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6197 }
6198 arg2 = static_cast< int >(val2);
6199 if (obj2) {
6200 ecode3 = SWIG_AsVal_int(obj2, &val3);
6201 if (!SWIG_IsOK(ecode3)) {
6202 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6203 }
6204 arg3 = static_cast< int >(val3);
6205 }
6206 {
6207 if (!wxPyCheckForApp()) SWIG_fail;
6208 PyThreadState* __tstate = wxPyBeginAllowThreads();
6209 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6210 wxPyEndAllowThreads(__tstate);
6211 if (PyErr_Occurred()) SWIG_fail;
6212 }
6213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6214 return resultobj;
6215 fail:
6216 return NULL;
6217 }
6218
6219
6220 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6221 PyObject *resultobj = 0;
6222 wxIcon *arg1 = 0 ;
6223 wxBitmap *result = 0 ;
6224 void *argp1 = 0 ;
6225 int res1 = 0 ;
6226 PyObject * obj0 = 0 ;
6227 char * kwnames[] = {
6228 (char *) "icon", NULL
6229 };
6230
6231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6232 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6233 if (!SWIG_IsOK(res1)) {
6234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6235 }
6236 if (!argp1) {
6237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6238 }
6239 arg1 = reinterpret_cast< wxIcon * >(argp1);
6240 {
6241 if (!wxPyCheckForApp()) SWIG_fail;
6242 PyThreadState* __tstate = wxPyBeginAllowThreads();
6243 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6244 wxPyEndAllowThreads(__tstate);
6245 if (PyErr_Occurred()) SWIG_fail;
6246 }
6247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6248 return resultobj;
6249 fail:
6250 return NULL;
6251 }
6252
6253
6254 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6255 PyObject *resultobj = 0;
6256 wxImage *arg1 = 0 ;
6257 int arg2 = (int) -1 ;
6258 wxBitmap *result = 0 ;
6259 void *argp1 = 0 ;
6260 int res1 = 0 ;
6261 int val2 ;
6262 int ecode2 = 0 ;
6263 PyObject * obj0 = 0 ;
6264 PyObject * obj1 = 0 ;
6265 char * kwnames[] = {
6266 (char *) "image",(char *) "depth", NULL
6267 };
6268
6269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6270 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6271 if (!SWIG_IsOK(res1)) {
6272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6273 }
6274 if (!argp1) {
6275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6276 }
6277 arg1 = reinterpret_cast< wxImage * >(argp1);
6278 if (obj1) {
6279 ecode2 = SWIG_AsVal_int(obj1, &val2);
6280 if (!SWIG_IsOK(ecode2)) {
6281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6282 }
6283 arg2 = static_cast< int >(val2);
6284 }
6285 {
6286 if (!wxPyCheckForApp()) SWIG_fail;
6287 PyThreadState* __tstate = wxPyBeginAllowThreads();
6288 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6289 wxPyEndAllowThreads(__tstate);
6290 if (PyErr_Occurred()) SWIG_fail;
6291 }
6292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6293 return resultobj;
6294 fail:
6295 return NULL;
6296 }
6297
6298
6299 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6300 PyObject *resultobj = 0;
6301 PyObject *arg1 = (PyObject *) 0 ;
6302 wxBitmap *result = 0 ;
6303 PyObject * obj0 = 0 ;
6304 char * kwnames[] = {
6305 (char *) "listOfStrings", NULL
6306 };
6307
6308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6309 arg1 = obj0;
6310 {
6311 if (!wxPyCheckForApp()) SWIG_fail;
6312 PyThreadState* __tstate = wxPyBeginAllowThreads();
6313 result = (wxBitmap *)new_wxBitmap(arg1);
6314 wxPyEndAllowThreads(__tstate);
6315 if (PyErr_Occurred()) SWIG_fail;
6316 }
6317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6318 return resultobj;
6319 fail:
6320 return NULL;
6321 }
6322
6323
6324 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6325 PyObject *resultobj = 0;
6326 PyObject *arg1 = (PyObject *) 0 ;
6327 int arg2 ;
6328 int arg3 ;
6329 int arg4 = (int) 1 ;
6330 wxBitmap *result = 0 ;
6331 int val2 ;
6332 int ecode2 = 0 ;
6333 int val3 ;
6334 int ecode3 = 0 ;
6335 int val4 ;
6336 int ecode4 = 0 ;
6337 PyObject * obj0 = 0 ;
6338 PyObject * obj1 = 0 ;
6339 PyObject * obj2 = 0 ;
6340 PyObject * obj3 = 0 ;
6341 char * kwnames[] = {
6342 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6343 };
6344
6345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6346 arg1 = obj0;
6347 ecode2 = SWIG_AsVal_int(obj1, &val2);
6348 if (!SWIG_IsOK(ecode2)) {
6349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6350 }
6351 arg2 = static_cast< int >(val2);
6352 ecode3 = SWIG_AsVal_int(obj2, &val3);
6353 if (!SWIG_IsOK(ecode3)) {
6354 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6355 }
6356 arg3 = static_cast< int >(val3);
6357 if (obj3) {
6358 ecode4 = SWIG_AsVal_int(obj3, &val4);
6359 if (!SWIG_IsOK(ecode4)) {
6360 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6361 }
6362 arg4 = static_cast< int >(val4);
6363 }
6364 {
6365 if (!wxPyCheckForApp()) SWIG_fail;
6366 PyThreadState* __tstate = wxPyBeginAllowThreads();
6367 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6368 wxPyEndAllowThreads(__tstate);
6369 if (PyErr_Occurred()) SWIG_fail;
6370 }
6371 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6372 return resultobj;
6373 fail:
6374 return NULL;
6375 }
6376
6377
6378 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6379 PyObject *resultobj = 0;
6380 wxBitmap *arg1 = (wxBitmap *) 0 ;
6381 bool result;
6382 void *argp1 = 0 ;
6383 int res1 = 0 ;
6384 PyObject *swig_obj[1] ;
6385
6386 if (!args) SWIG_fail;
6387 swig_obj[0] = args;
6388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6389 if (!SWIG_IsOK(res1)) {
6390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6391 }
6392 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6393 {
6394 result = (bool)(arg1)->IsOk();
6395 if (PyErr_Occurred()) SWIG_fail;
6396 }
6397 {
6398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6399 }
6400 return resultobj;
6401 fail:
6402 return NULL;
6403 }
6404
6405
6406 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6407 PyObject *resultobj = 0;
6408 wxBitmap *arg1 = (wxBitmap *) 0 ;
6409 int result;
6410 void *argp1 = 0 ;
6411 int res1 = 0 ;
6412 PyObject *swig_obj[1] ;
6413
6414 if (!args) SWIG_fail;
6415 swig_obj[0] = args;
6416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6417 if (!SWIG_IsOK(res1)) {
6418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6419 }
6420 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6421 {
6422 result = (int)(arg1)->GetWidth();
6423 if (PyErr_Occurred()) SWIG_fail;
6424 }
6425 resultobj = SWIG_From_int(static_cast< int >(result));
6426 return resultobj;
6427 fail:
6428 return NULL;
6429 }
6430
6431
6432 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6433 PyObject *resultobj = 0;
6434 wxBitmap *arg1 = (wxBitmap *) 0 ;
6435 int result;
6436 void *argp1 = 0 ;
6437 int res1 = 0 ;
6438 PyObject *swig_obj[1] ;
6439
6440 if (!args) SWIG_fail;
6441 swig_obj[0] = args;
6442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6443 if (!SWIG_IsOK(res1)) {
6444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6445 }
6446 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6447 {
6448 result = (int)(arg1)->GetHeight();
6449 if (PyErr_Occurred()) SWIG_fail;
6450 }
6451 resultobj = SWIG_From_int(static_cast< int >(result));
6452 return resultobj;
6453 fail:
6454 return NULL;
6455 }
6456
6457
6458 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6459 PyObject *resultobj = 0;
6460 wxBitmap *arg1 = (wxBitmap *) 0 ;
6461 int result;
6462 void *argp1 = 0 ;
6463 int res1 = 0 ;
6464 PyObject *swig_obj[1] ;
6465
6466 if (!args) SWIG_fail;
6467 swig_obj[0] = args;
6468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6469 if (!SWIG_IsOK(res1)) {
6470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6471 }
6472 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6473 {
6474 result = (int)(arg1)->GetDepth();
6475 if (PyErr_Occurred()) SWIG_fail;
6476 }
6477 resultobj = SWIG_From_int(static_cast< int >(result));
6478 return resultobj;
6479 fail:
6480 return NULL;
6481 }
6482
6483
6484 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6485 PyObject *resultobj = 0;
6486 wxBitmap *arg1 = (wxBitmap *) 0 ;
6487 wxSize result;
6488 void *argp1 = 0 ;
6489 int res1 = 0 ;
6490 PyObject *swig_obj[1] ;
6491
6492 if (!args) SWIG_fail;
6493 swig_obj[0] = args;
6494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6495 if (!SWIG_IsOK(res1)) {
6496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6497 }
6498 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6499 {
6500 result = wxBitmap_GetSize(arg1);
6501 if (PyErr_Occurred()) SWIG_fail;
6502 }
6503 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6504 return resultobj;
6505 fail:
6506 return NULL;
6507 }
6508
6509
6510 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6511 PyObject *resultobj = 0;
6512 wxBitmap *arg1 = (wxBitmap *) 0 ;
6513 SwigValueWrapper<wxImage > result;
6514 void *argp1 = 0 ;
6515 int res1 = 0 ;
6516 PyObject *swig_obj[1] ;
6517
6518 if (!args) SWIG_fail;
6519 swig_obj[0] = args;
6520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6521 if (!SWIG_IsOK(res1)) {
6522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6523 }
6524 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6525 {
6526 result = ((wxBitmap const *)arg1)->ConvertToImage();
6527 if (PyErr_Occurred()) SWIG_fail;
6528 }
6529 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6530 return resultobj;
6531 fail:
6532 return NULL;
6533 }
6534
6535
6536 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6537 PyObject *resultobj = 0;
6538 wxBitmap *arg1 = (wxBitmap *) 0 ;
6539 wxMask *result = 0 ;
6540 void *argp1 = 0 ;
6541 int res1 = 0 ;
6542 PyObject *swig_obj[1] ;
6543
6544 if (!args) SWIG_fail;
6545 swig_obj[0] = args;
6546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6547 if (!SWIG_IsOK(res1)) {
6548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6549 }
6550 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6551 {
6552 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6553 if (PyErr_Occurred()) SWIG_fail;
6554 }
6555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6556 return resultobj;
6557 fail:
6558 return NULL;
6559 }
6560
6561
6562 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6563 PyObject *resultobj = 0;
6564 wxBitmap *arg1 = (wxBitmap *) 0 ;
6565 wxMask *arg2 = (wxMask *) 0 ;
6566 void *argp1 = 0 ;
6567 int res1 = 0 ;
6568 int res2 = 0 ;
6569 PyObject * obj0 = 0 ;
6570 PyObject * obj1 = 0 ;
6571 char * kwnames[] = {
6572 (char *) "self",(char *) "mask", NULL
6573 };
6574
6575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6577 if (!SWIG_IsOK(res1)) {
6578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6579 }
6580 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6581 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6582 if (!SWIG_IsOK(res2)) {
6583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6584 }
6585 {
6586 (arg1)->SetMask(arg2);
6587 if (PyErr_Occurred()) SWIG_fail;
6588 }
6589 resultobj = SWIG_Py_Void();
6590 return resultobj;
6591 fail:
6592 return NULL;
6593 }
6594
6595
6596 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6597 PyObject *resultobj = 0;
6598 wxBitmap *arg1 = (wxBitmap *) 0 ;
6599 wxColour *arg2 = 0 ;
6600 void *argp1 = 0 ;
6601 int res1 = 0 ;
6602 wxColour temp2 ;
6603 PyObject * obj0 = 0 ;
6604 PyObject * obj1 = 0 ;
6605 char * kwnames[] = {
6606 (char *) "self",(char *) "colour", NULL
6607 };
6608
6609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6611 if (!SWIG_IsOK(res1)) {
6612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6613 }
6614 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6615 {
6616 arg2 = &temp2;
6617 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6618 }
6619 {
6620 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6621 if (PyErr_Occurred()) SWIG_fail;
6622 }
6623 resultobj = SWIG_Py_Void();
6624 return resultobj;
6625 fail:
6626 return NULL;
6627 }
6628
6629
6630 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6631 PyObject *resultobj = 0;
6632 wxBitmap *arg1 = (wxBitmap *) 0 ;
6633 wxRect *arg2 = 0 ;
6634 SwigValueWrapper<wxBitmap > result;
6635 void *argp1 = 0 ;
6636 int res1 = 0 ;
6637 wxRect temp2 ;
6638 PyObject * obj0 = 0 ;
6639 PyObject * obj1 = 0 ;
6640 char * kwnames[] = {
6641 (char *) "self",(char *) "rect", NULL
6642 };
6643
6644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",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_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6648 }
6649 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6650 {
6651 arg2 = &temp2;
6652 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6653 }
6654 {
6655 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6656 if (PyErr_Occurred()) SWIG_fail;
6657 }
6658 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6659 return resultobj;
6660 fail:
6661 return NULL;
6662 }
6663
6664
6665 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6666 PyObject *resultobj = 0;
6667 wxBitmap *arg1 = (wxBitmap *) 0 ;
6668 wxString *arg2 = 0 ;
6669 wxBitmapType arg3 ;
6670 wxPalette *arg4 = (wxPalette *) NULL ;
6671 bool result;
6672 void *argp1 = 0 ;
6673 int res1 = 0 ;
6674 bool temp2 = false ;
6675 int val3 ;
6676 int ecode3 = 0 ;
6677 void *argp4 = 0 ;
6678 int res4 = 0 ;
6679 PyObject * obj0 = 0 ;
6680 PyObject * obj1 = 0 ;
6681 PyObject * obj2 = 0 ;
6682 PyObject * obj3 = 0 ;
6683 char * kwnames[] = {
6684 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6685 };
6686
6687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6689 if (!SWIG_IsOK(res1)) {
6690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6691 }
6692 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6693 {
6694 arg2 = wxString_in_helper(obj1);
6695 if (arg2 == NULL) SWIG_fail;
6696 temp2 = true;
6697 }
6698 ecode3 = SWIG_AsVal_int(obj2, &val3);
6699 if (!SWIG_IsOK(ecode3)) {
6700 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6701 }
6702 arg3 = static_cast< wxBitmapType >(val3);
6703 if (obj3) {
6704 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6705 if (!SWIG_IsOK(res4)) {
6706 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6707 }
6708 arg4 = reinterpret_cast< wxPalette * >(argp4);
6709 }
6710 {
6711 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6712 if (PyErr_Occurred()) SWIG_fail;
6713 }
6714 {
6715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6716 }
6717 {
6718 if (temp2)
6719 delete arg2;
6720 }
6721 return resultobj;
6722 fail:
6723 {
6724 if (temp2)
6725 delete arg2;
6726 }
6727 return NULL;
6728 }
6729
6730
6731 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6732 PyObject *resultobj = 0;
6733 wxBitmap *arg1 = (wxBitmap *) 0 ;
6734 wxString *arg2 = 0 ;
6735 wxBitmapType arg3 ;
6736 bool result;
6737 void *argp1 = 0 ;
6738 int res1 = 0 ;
6739 bool temp2 = false ;
6740 int val3 ;
6741 int ecode3 = 0 ;
6742 PyObject * obj0 = 0 ;
6743 PyObject * obj1 = 0 ;
6744 PyObject * obj2 = 0 ;
6745 char * kwnames[] = {
6746 (char *) "self",(char *) "name",(char *) "type", NULL
6747 };
6748
6749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6751 if (!SWIG_IsOK(res1)) {
6752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6753 }
6754 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6755 {
6756 arg2 = wxString_in_helper(obj1);
6757 if (arg2 == NULL) SWIG_fail;
6758 temp2 = true;
6759 }
6760 ecode3 = SWIG_AsVal_int(obj2, &val3);
6761 if (!SWIG_IsOK(ecode3)) {
6762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6763 }
6764 arg3 = static_cast< wxBitmapType >(val3);
6765 {
6766 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6767 if (PyErr_Occurred()) SWIG_fail;
6768 }
6769 {
6770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6771 }
6772 {
6773 if (temp2)
6774 delete arg2;
6775 }
6776 return resultobj;
6777 fail:
6778 {
6779 if (temp2)
6780 delete arg2;
6781 }
6782 return NULL;
6783 }
6784
6785
6786 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6787 PyObject *resultobj = 0;
6788 wxBitmap *arg1 = (wxBitmap *) 0 ;
6789 wxPalette *result = 0 ;
6790 void *argp1 = 0 ;
6791 int res1 = 0 ;
6792 PyObject *swig_obj[1] ;
6793
6794 if (!args) SWIG_fail;
6795 swig_obj[0] = args;
6796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6797 if (!SWIG_IsOK(res1)) {
6798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6799 }
6800 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6801 {
6802 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6803 if (PyErr_Occurred()) SWIG_fail;
6804 }
6805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6806 return resultobj;
6807 fail:
6808 return NULL;
6809 }
6810
6811
6812 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6813 PyObject *resultobj = 0;
6814 wxBitmap *arg1 = (wxBitmap *) 0 ;
6815 wxIcon *arg2 = 0 ;
6816 bool result;
6817 void *argp1 = 0 ;
6818 int res1 = 0 ;
6819 void *argp2 = 0 ;
6820 int res2 = 0 ;
6821 PyObject * obj0 = 0 ;
6822 PyObject * obj1 = 0 ;
6823 char * kwnames[] = {
6824 (char *) "self",(char *) "icon", NULL
6825 };
6826
6827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6829 if (!SWIG_IsOK(res1)) {
6830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6831 }
6832 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6833 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6834 if (!SWIG_IsOK(res2)) {
6835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6836 }
6837 if (!argp2) {
6838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6839 }
6840 arg2 = reinterpret_cast< wxIcon * >(argp2);
6841 {
6842 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6843 if (PyErr_Occurred()) SWIG_fail;
6844 }
6845 {
6846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6847 }
6848 return resultobj;
6849 fail:
6850 return NULL;
6851 }
6852
6853
6854 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6855 PyObject *resultobj = 0;
6856 wxBitmap *arg1 = (wxBitmap *) 0 ;
6857 int arg2 ;
6858 void *argp1 = 0 ;
6859 int res1 = 0 ;
6860 int val2 ;
6861 int ecode2 = 0 ;
6862 PyObject * obj0 = 0 ;
6863 PyObject * obj1 = 0 ;
6864 char * kwnames[] = {
6865 (char *) "self",(char *) "height", NULL
6866 };
6867
6868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6870 if (!SWIG_IsOK(res1)) {
6871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6872 }
6873 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6874 ecode2 = SWIG_AsVal_int(obj1, &val2);
6875 if (!SWIG_IsOK(ecode2)) {
6876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6877 }
6878 arg2 = static_cast< int >(val2);
6879 {
6880 (arg1)->SetHeight(arg2);
6881 if (PyErr_Occurred()) SWIG_fail;
6882 }
6883 resultobj = SWIG_Py_Void();
6884 return resultobj;
6885 fail:
6886 return NULL;
6887 }
6888
6889
6890 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6891 PyObject *resultobj = 0;
6892 wxBitmap *arg1 = (wxBitmap *) 0 ;
6893 int arg2 ;
6894 void *argp1 = 0 ;
6895 int res1 = 0 ;
6896 int val2 ;
6897 int ecode2 = 0 ;
6898 PyObject * obj0 = 0 ;
6899 PyObject * obj1 = 0 ;
6900 char * kwnames[] = {
6901 (char *) "self",(char *) "width", NULL
6902 };
6903
6904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6906 if (!SWIG_IsOK(res1)) {
6907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6908 }
6909 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6910 ecode2 = SWIG_AsVal_int(obj1, &val2);
6911 if (!SWIG_IsOK(ecode2)) {
6912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6913 }
6914 arg2 = static_cast< int >(val2);
6915 {
6916 (arg1)->SetWidth(arg2);
6917 if (PyErr_Occurred()) SWIG_fail;
6918 }
6919 resultobj = SWIG_Py_Void();
6920 return resultobj;
6921 fail:
6922 return NULL;
6923 }
6924
6925
6926 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6927 PyObject *resultobj = 0;
6928 wxBitmap *arg1 = (wxBitmap *) 0 ;
6929 int arg2 ;
6930 void *argp1 = 0 ;
6931 int res1 = 0 ;
6932 int val2 ;
6933 int ecode2 = 0 ;
6934 PyObject * obj0 = 0 ;
6935 PyObject * obj1 = 0 ;
6936 char * kwnames[] = {
6937 (char *) "self",(char *) "depth", NULL
6938 };
6939
6940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6942 if (!SWIG_IsOK(res1)) {
6943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6944 }
6945 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6946 ecode2 = SWIG_AsVal_int(obj1, &val2);
6947 if (!SWIG_IsOK(ecode2)) {
6948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6949 }
6950 arg2 = static_cast< int >(val2);
6951 {
6952 (arg1)->SetDepth(arg2);
6953 if (PyErr_Occurred()) SWIG_fail;
6954 }
6955 resultobj = SWIG_Py_Void();
6956 return resultobj;
6957 fail:
6958 return NULL;
6959 }
6960
6961
6962 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6963 PyObject *resultobj = 0;
6964 wxBitmap *arg1 = (wxBitmap *) 0 ;
6965 wxSize *arg2 = 0 ;
6966 void *argp1 = 0 ;
6967 int res1 = 0 ;
6968 wxSize temp2 ;
6969 PyObject * obj0 = 0 ;
6970 PyObject * obj1 = 0 ;
6971 char * kwnames[] = {
6972 (char *) "self",(char *) "size", NULL
6973 };
6974
6975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6977 if (!SWIG_IsOK(res1)) {
6978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6979 }
6980 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6981 {
6982 arg2 = &temp2;
6983 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6984 }
6985 {
6986 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6987 if (PyErr_Occurred()) SWIG_fail;
6988 }
6989 resultobj = SWIG_Py_Void();
6990 return resultobj;
6991 fail:
6992 return NULL;
6993 }
6994
6995
6996 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6997 PyObject *resultobj = 0;
6998 wxBitmap *arg1 = (wxBitmap *) 0 ;
6999 buffer arg2 ;
7000 int arg3 ;
7001 void *argp1 = 0 ;
7002 int res1 = 0 ;
7003 Py_ssize_t temp2 ;
7004 PyObject * obj0 = 0 ;
7005 PyObject * obj1 = 0 ;
7006 char * kwnames[] = {
7007 (char *) "self",(char *) "data", NULL
7008 };
7009
7010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7012 if (!SWIG_IsOK(res1)) {
7013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7014 }
7015 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7016 {
7017 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7018 arg3 = (int)temp2;
7019 }
7020 {
7021 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7022 if (PyErr_Occurred()) SWIG_fail;
7023 }
7024 resultobj = SWIG_Py_Void();
7025 return resultobj;
7026 fail:
7027 return NULL;
7028 }
7029
7030
7031 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7032 PyObject *resultobj = 0;
7033 wxBitmap *arg1 = (wxBitmap *) 0 ;
7034 buffer arg2 ;
7035 int arg3 ;
7036 void *argp1 = 0 ;
7037 int res1 = 0 ;
7038 Py_ssize_t temp2 ;
7039 PyObject * obj0 = 0 ;
7040 PyObject * obj1 = 0 ;
7041 char * kwnames[] = {
7042 (char *) "self",(char *) "data", NULL
7043 };
7044
7045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7047 if (!SWIG_IsOK(res1)) {
7048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7049 }
7050 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7051 {
7052 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7053 arg3 = (int)temp2;
7054 }
7055 {
7056 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7057 if (PyErr_Occurred()) SWIG_fail;
7058 }
7059 resultobj = SWIG_Py_Void();
7060 return resultobj;
7061 fail:
7062 return NULL;
7063 }
7064
7065
7066 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7067 PyObject *resultobj = 0;
7068 wxBitmap *arg1 = (wxBitmap *) 0 ;
7069 wxBitmap *arg2 = (wxBitmap *) 0 ;
7070 bool result;
7071 void *argp1 = 0 ;
7072 int res1 = 0 ;
7073 void *argp2 = 0 ;
7074 int res2 = 0 ;
7075 PyObject * obj0 = 0 ;
7076 PyObject * obj1 = 0 ;
7077 char * kwnames[] = {
7078 (char *) "self",(char *) "other", NULL
7079 };
7080
7081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7083 if (!SWIG_IsOK(res1)) {
7084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7085 }
7086 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7087 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7088 if (!SWIG_IsOK(res2)) {
7089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7090 }
7091 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7092 {
7093 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
7094 if (PyErr_Occurred()) SWIG_fail;
7095 }
7096 {
7097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7098 }
7099 return resultobj;
7100 fail:
7101 return NULL;
7102 }
7103
7104
7105 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7106 PyObject *resultobj = 0;
7107 wxBitmap *arg1 = (wxBitmap *) 0 ;
7108 wxBitmap *arg2 = (wxBitmap *) 0 ;
7109 bool result;
7110 void *argp1 = 0 ;
7111 int res1 = 0 ;
7112 void *argp2 = 0 ;
7113 int res2 = 0 ;
7114 PyObject * obj0 = 0 ;
7115 PyObject * obj1 = 0 ;
7116 char * kwnames[] = {
7117 (char *) "self",(char *) "other", NULL
7118 };
7119
7120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7122 if (!SWIG_IsOK(res1)) {
7123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7124 }
7125 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7126 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7127 if (!SWIG_IsOK(res2)) {
7128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7129 }
7130 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7131 {
7132 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7133 if (PyErr_Occurred()) SWIG_fail;
7134 }
7135 {
7136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7137 }
7138 return resultobj;
7139 fail:
7140 return NULL;
7141 }
7142
7143
7144 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7145 PyObject *obj;
7146 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7147 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7148 return SWIG_Py_Void();
7149 }
7150
7151 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7152 return SWIG_Python_InitShadowInstance(args);
7153 }
7154
7155 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7156 PyObject *resultobj = 0;
7157 int arg1 ;
7158 int arg2 ;
7159 buffer arg3 ;
7160 int arg4 ;
7161 buffer arg5 ;
7162 int arg6 ;
7163 wxBitmap *result = 0 ;
7164 int val1 ;
7165 int ecode1 = 0 ;
7166 int val2 ;
7167 int ecode2 = 0 ;
7168 Py_ssize_t temp3 ;
7169 Py_ssize_t temp5 ;
7170 PyObject * obj0 = 0 ;
7171 PyObject * obj1 = 0 ;
7172 PyObject * obj2 = 0 ;
7173 PyObject * obj3 = 0 ;
7174 char * kwnames[] = {
7175 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7176 };
7177
7178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7179 ecode1 = SWIG_AsVal_int(obj0, &val1);
7180 if (!SWIG_IsOK(ecode1)) {
7181 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7182 }
7183 arg1 = static_cast< int >(val1);
7184 ecode2 = SWIG_AsVal_int(obj1, &val2);
7185 if (!SWIG_IsOK(ecode2)) {
7186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7187 }
7188 arg2 = static_cast< int >(val2);
7189 {
7190 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7191 arg4 = (int)temp3;
7192 }
7193 {
7194 if (obj3 != Py_None) {
7195 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7196 arg6 = (int)temp5;
7197 }
7198 }
7199 {
7200 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7201 if (PyErr_Occurred()) SWIG_fail;
7202 }
7203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7204 return resultobj;
7205 fail:
7206 return NULL;
7207 }
7208
7209
7210 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7211 PyObject *resultobj = 0;
7212 int arg1 ;
7213 int arg2 ;
7214 buffer arg3 ;
7215 int arg4 ;
7216 wxBitmap *result = 0 ;
7217 int val1 ;
7218 int ecode1 = 0 ;
7219 int val2 ;
7220 int ecode2 = 0 ;
7221 Py_ssize_t temp3 ;
7222 PyObject * obj0 = 0 ;
7223 PyObject * obj1 = 0 ;
7224 PyObject * obj2 = 0 ;
7225 char * kwnames[] = {
7226 (char *) "width",(char *) "height",(char *) "data", NULL
7227 };
7228
7229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7230 ecode1 = SWIG_AsVal_int(obj0, &val1);
7231 if (!SWIG_IsOK(ecode1)) {
7232 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7233 }
7234 arg1 = static_cast< int >(val1);
7235 ecode2 = SWIG_AsVal_int(obj1, &val2);
7236 if (!SWIG_IsOK(ecode2)) {
7237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7238 }
7239 arg2 = static_cast< int >(val2);
7240 {
7241 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7242 arg4 = (int)temp3;
7243 }
7244 {
7245 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7246 if (PyErr_Occurred()) SWIG_fail;
7247 }
7248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7249 return resultobj;
7250 fail:
7251 return NULL;
7252 }
7253
7254
7255 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7256 PyObject *resultobj = 0;
7257 int arg1 ;
7258 int arg2 ;
7259 buffer arg3 ;
7260 int arg4 ;
7261 wxBitmap *result = 0 ;
7262 int val1 ;
7263 int ecode1 = 0 ;
7264 int val2 ;
7265 int ecode2 = 0 ;
7266 Py_ssize_t temp3 ;
7267 PyObject * obj0 = 0 ;
7268 PyObject * obj1 = 0 ;
7269 PyObject * obj2 = 0 ;
7270 char * kwnames[] = {
7271 (char *) "width",(char *) "height",(char *) "data", NULL
7272 };
7273
7274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7275 ecode1 = SWIG_AsVal_int(obj0, &val1);
7276 if (!SWIG_IsOK(ecode1)) {
7277 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7278 }
7279 arg1 = static_cast< int >(val1);
7280 ecode2 = SWIG_AsVal_int(obj1, &val2);
7281 if (!SWIG_IsOK(ecode2)) {
7282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7283 }
7284 arg2 = static_cast< int >(val2);
7285 {
7286 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7287 arg4 = (int)temp3;
7288 }
7289 {
7290 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7291 if (PyErr_Occurred()) SWIG_fail;
7292 }
7293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7294 return resultobj;
7295 fail:
7296 return NULL;
7297 }
7298
7299
7300 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7301 PyObject *resultobj = 0;
7302 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7303 wxPoint result;
7304 void *argp1 = 0 ;
7305 int res1 = 0 ;
7306 PyObject *swig_obj[1] ;
7307
7308 if (!args) SWIG_fail;
7309 swig_obj[0] = args;
7310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7311 if (!SWIG_IsOK(res1)) {
7312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7313 }
7314 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7315 {
7316 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7317 if (PyErr_Occurred()) SWIG_fail;
7318 }
7319 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7320 return resultobj;
7321 fail:
7322 return NULL;
7323 }
7324
7325
7326 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7327 PyObject *resultobj = 0;
7328 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7329 int result;
7330 void *argp1 = 0 ;
7331 int res1 = 0 ;
7332 PyObject *swig_obj[1] ;
7333
7334 if (!args) SWIG_fail;
7335 swig_obj[0] = args;
7336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7337 if (!SWIG_IsOK(res1)) {
7338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7339 }
7340 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7341 {
7342 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7343 if (PyErr_Occurred()) SWIG_fail;
7344 }
7345 resultobj = SWIG_From_int(static_cast< int >(result));
7346 return resultobj;
7347 fail:
7348 return NULL;
7349 }
7350
7351
7352 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7353 PyObject *resultobj = 0;
7354 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7355 int result;
7356 void *argp1 = 0 ;
7357 int res1 = 0 ;
7358 PyObject *swig_obj[1] ;
7359
7360 if (!args) SWIG_fail;
7361 swig_obj[0] = args;
7362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7363 if (!SWIG_IsOK(res1)) {
7364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7365 }
7366 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7367 {
7368 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7369 if (PyErr_Occurred()) SWIG_fail;
7370 }
7371 resultobj = SWIG_From_int(static_cast< int >(result));
7372 return resultobj;
7373 fail:
7374 return NULL;
7375 }
7376
7377
7378 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7379 PyObject *resultobj = 0;
7380 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7381 wxSize result;
7382 void *argp1 = 0 ;
7383 int res1 = 0 ;
7384 PyObject *swig_obj[1] ;
7385
7386 if (!args) SWIG_fail;
7387 swig_obj[0] = args;
7388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7389 if (!SWIG_IsOK(res1)) {
7390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7391 }
7392 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7393 {
7394 result = ((wxPixelDataBase const *)arg1)->GetSize();
7395 if (PyErr_Occurred()) SWIG_fail;
7396 }
7397 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7398 return resultobj;
7399 fail:
7400 return NULL;
7401 }
7402
7403
7404 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7405 PyObject *resultobj = 0;
7406 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7407 int result;
7408 void *argp1 = 0 ;
7409 int res1 = 0 ;
7410 PyObject *swig_obj[1] ;
7411
7412 if (!args) SWIG_fail;
7413 swig_obj[0] = args;
7414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7415 if (!SWIG_IsOK(res1)) {
7416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7417 }
7418 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7419 {
7420 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7421 if (PyErr_Occurred()) SWIG_fail;
7422 }
7423 resultobj = SWIG_From_int(static_cast< int >(result));
7424 return resultobj;
7425 fail:
7426 return NULL;
7427 }
7428
7429
7430 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7431 PyObject *obj;
7432 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7433 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7434 return SWIG_Py_Void();
7435 }
7436
7437 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7438 PyObject *resultobj = 0;
7439 wxBitmap *arg1 = 0 ;
7440 wxNativePixelData *result = 0 ;
7441 void *argp1 = 0 ;
7442 int res1 = 0 ;
7443
7444 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7446 if (!SWIG_IsOK(res1)) {
7447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7448 }
7449 if (!argp1) {
7450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7451 }
7452 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7453 {
7454 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7455 if (PyErr_Occurred()) SWIG_fail;
7456 }
7457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7458 return resultobj;
7459 fail:
7460 return NULL;
7461 }
7462
7463
7464 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7465 PyObject *resultobj = 0;
7466 wxBitmap *arg1 = 0 ;
7467 wxRect *arg2 = 0 ;
7468 wxNativePixelData *result = 0 ;
7469 void *argp1 = 0 ;
7470 int res1 = 0 ;
7471 wxRect temp2 ;
7472
7473 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7475 if (!SWIG_IsOK(res1)) {
7476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7477 }
7478 if (!argp1) {
7479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7480 }
7481 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7482 {
7483 arg2 = &temp2;
7484 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7485 }
7486 {
7487 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7488 if (PyErr_Occurred()) SWIG_fail;
7489 }
7490 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7491 return resultobj;
7492 fail:
7493 return NULL;
7494 }
7495
7496
7497 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7498 PyObject *resultobj = 0;
7499 wxBitmap *arg1 = 0 ;
7500 wxPoint *arg2 = 0 ;
7501 wxSize *arg3 = 0 ;
7502 wxNativePixelData *result = 0 ;
7503 void *argp1 = 0 ;
7504 int res1 = 0 ;
7505 wxPoint temp2 ;
7506 wxSize temp3 ;
7507
7508 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7510 if (!SWIG_IsOK(res1)) {
7511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7512 }
7513 if (!argp1) {
7514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7515 }
7516 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7517 {
7518 arg2 = &temp2;
7519 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7520 }
7521 {
7522 arg3 = &temp3;
7523 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7524 }
7525 {
7526 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7527 if (PyErr_Occurred()) SWIG_fail;
7528 }
7529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7530 return resultobj;
7531 fail:
7532 return NULL;
7533 }
7534
7535
7536 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7537 int argc;
7538 PyObject *argv[4];
7539
7540 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7541 --argc;
7542 if (argc == 1) {
7543 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7544 }
7545 if (argc == 2) {
7546 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7547 }
7548 if (argc == 3) {
7549 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7550 }
7551
7552 fail:
7553 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7554 return NULL;
7555 }
7556
7557
7558 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7559 PyObject *resultobj = 0;
7560 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7561 void *argp1 = 0 ;
7562 int res1 = 0 ;
7563 PyObject *swig_obj[1] ;
7564
7565 if (!args) SWIG_fail;
7566 swig_obj[0] = args;
7567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7568 if (!SWIG_IsOK(res1)) {
7569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7570 }
7571 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7572 {
7573 delete arg1;
7574
7575 if (PyErr_Occurred()) SWIG_fail;
7576 }
7577 resultobj = SWIG_Py_Void();
7578 return resultobj;
7579 fail:
7580 return NULL;
7581 }
7582
7583
7584 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7585 PyObject *resultobj = 0;
7586 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7587 wxNativePixelData_Accessor result;
7588 void *argp1 = 0 ;
7589 int res1 = 0 ;
7590 PyObject *swig_obj[1] ;
7591
7592 if (!args) SWIG_fail;
7593 swig_obj[0] = args;
7594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7595 if (!SWIG_IsOK(res1)) {
7596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7597 }
7598 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7599 {
7600 result = ((wxNativePixelData const *)arg1)->GetPixels();
7601 if (PyErr_Occurred()) SWIG_fail;
7602 }
7603 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7604 return resultobj;
7605 fail:
7606 return NULL;
7607 }
7608
7609
7610 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7611 PyObject *resultobj = 0;
7612 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7613 void *argp1 = 0 ;
7614 int res1 = 0 ;
7615 PyObject *swig_obj[1] ;
7616
7617 if (!args) SWIG_fail;
7618 swig_obj[0] = args;
7619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7620 if (!SWIG_IsOK(res1)) {
7621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7622 }
7623 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7624 {
7625 (arg1)->UseAlpha();
7626 if (PyErr_Occurred()) SWIG_fail;
7627 }
7628 resultobj = SWIG_Py_Void();
7629 return resultobj;
7630 fail:
7631 return NULL;
7632 }
7633
7634
7635 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7636 PyObject *resultobj = 0;
7637 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7638 bool result;
7639 void *argp1 = 0 ;
7640 int res1 = 0 ;
7641 PyObject *swig_obj[1] ;
7642
7643 if (!args) SWIG_fail;
7644 swig_obj[0] = args;
7645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7646 if (!SWIG_IsOK(res1)) {
7647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7648 }
7649 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7650 {
7651 result = (bool)wxNativePixelData___nonzero__(arg1);
7652 if (PyErr_Occurred()) SWIG_fail;
7653 }
7654 {
7655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7656 }
7657 return resultobj;
7658 fail:
7659 return NULL;
7660 }
7661
7662
7663 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7664 PyObject *obj;
7665 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7666 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7667 return SWIG_Py_Void();
7668 }
7669
7670 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7671 return SWIG_Python_InitShadowInstance(args);
7672 }
7673
7674 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7675 PyObject *resultobj = 0;
7676 wxNativePixelData *arg1 = 0 ;
7677 wxNativePixelData_Accessor *result = 0 ;
7678 void *argp1 = 0 ;
7679 int res1 = 0 ;
7680
7681 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7683 if (!SWIG_IsOK(res1)) {
7684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7685 }
7686 if (!argp1) {
7687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7688 }
7689 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7690 {
7691 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7692 if (PyErr_Occurred()) SWIG_fail;
7693 }
7694 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7695 return resultobj;
7696 fail:
7697 return NULL;
7698 }
7699
7700
7701 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7702 PyObject *resultobj = 0;
7703 wxBitmap *arg1 = 0 ;
7704 wxNativePixelData *arg2 = 0 ;
7705 wxNativePixelData_Accessor *result = 0 ;
7706 void *argp1 = 0 ;
7707 int res1 = 0 ;
7708 void *argp2 = 0 ;
7709 int res2 = 0 ;
7710
7711 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7713 if (!SWIG_IsOK(res1)) {
7714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7715 }
7716 if (!argp1) {
7717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7718 }
7719 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7720 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7721 if (!SWIG_IsOK(res2)) {
7722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7723 }
7724 if (!argp2) {
7725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7726 }
7727 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7728 {
7729 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7730 if (PyErr_Occurred()) SWIG_fail;
7731 }
7732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7733 return resultobj;
7734 fail:
7735 return NULL;
7736 }
7737
7738
7739 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7740 PyObject *resultobj = 0;
7741 wxNativePixelData_Accessor *result = 0 ;
7742
7743 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7744 {
7745 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7746 if (PyErr_Occurred()) SWIG_fail;
7747 }
7748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7749 return resultobj;
7750 fail:
7751 return NULL;
7752 }
7753
7754
7755 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7756 int argc;
7757 PyObject *argv[3];
7758
7759 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7760 --argc;
7761 if (argc == 0) {
7762 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7763 }
7764 if (argc == 1) {
7765 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7766 }
7767 if (argc == 2) {
7768 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7769 }
7770
7771 fail:
7772 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7773 return NULL;
7774 }
7775
7776
7777 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7778 PyObject *resultobj = 0;
7779 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7780 void *argp1 = 0 ;
7781 int res1 = 0 ;
7782 PyObject *swig_obj[1] ;
7783
7784 if (!args) SWIG_fail;
7785 swig_obj[0] = args;
7786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7787 if (!SWIG_IsOK(res1)) {
7788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7789 }
7790 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7791 {
7792 delete arg1;
7793
7794 if (PyErr_Occurred()) SWIG_fail;
7795 }
7796 resultobj = SWIG_Py_Void();
7797 return resultobj;
7798 fail:
7799 return NULL;
7800 }
7801
7802
7803 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7804 PyObject *resultobj = 0;
7805 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7806 wxNativePixelData *arg2 = 0 ;
7807 void *argp1 = 0 ;
7808 int res1 = 0 ;
7809 void *argp2 = 0 ;
7810 int res2 = 0 ;
7811 PyObject * obj0 = 0 ;
7812 PyObject * obj1 = 0 ;
7813 char * kwnames[] = {
7814 (char *) "self",(char *) "data", NULL
7815 };
7816
7817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7819 if (!SWIG_IsOK(res1)) {
7820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7821 }
7822 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7823 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7824 if (!SWIG_IsOK(res2)) {
7825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7826 }
7827 if (!argp2) {
7828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7829 }
7830 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7831 {
7832 (arg1)->Reset((wxNativePixelData const &)*arg2);
7833 if (PyErr_Occurred()) SWIG_fail;
7834 }
7835 resultobj = SWIG_Py_Void();
7836 return resultobj;
7837 fail:
7838 return NULL;
7839 }
7840
7841
7842 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7843 PyObject *resultobj = 0;
7844 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7845 bool result;
7846 void *argp1 = 0 ;
7847 int res1 = 0 ;
7848 PyObject *swig_obj[1] ;
7849
7850 if (!args) SWIG_fail;
7851 swig_obj[0] = args;
7852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7853 if (!SWIG_IsOK(res1)) {
7854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7855 }
7856 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7857 {
7858 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7859 if (PyErr_Occurred()) SWIG_fail;
7860 }
7861 {
7862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7863 }
7864 return resultobj;
7865 fail:
7866 return NULL;
7867 }
7868
7869
7870 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7871 PyObject *resultobj = 0;
7872 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7873 void *argp1 = 0 ;
7874 int res1 = 0 ;
7875 PyObject *swig_obj[1] ;
7876
7877 if (!args) SWIG_fail;
7878 swig_obj[0] = args;
7879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7880 if (!SWIG_IsOK(res1)) {
7881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7882 }
7883 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7884 {
7885 wxNativePixelData_Accessor_nextPixel(arg1);
7886 if (PyErr_Occurred()) SWIG_fail;
7887 }
7888 resultobj = SWIG_Py_Void();
7889 return resultobj;
7890 fail:
7891 return NULL;
7892 }
7893
7894
7895 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7896 PyObject *resultobj = 0;
7897 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7898 wxNativePixelData *arg2 = 0 ;
7899 int arg3 ;
7900 int arg4 ;
7901 void *argp1 = 0 ;
7902 int res1 = 0 ;
7903 void *argp2 = 0 ;
7904 int res2 = 0 ;
7905 int val3 ;
7906 int ecode3 = 0 ;
7907 int val4 ;
7908 int ecode4 = 0 ;
7909 PyObject * obj0 = 0 ;
7910 PyObject * obj1 = 0 ;
7911 PyObject * obj2 = 0 ;
7912 PyObject * obj3 = 0 ;
7913 char * kwnames[] = {
7914 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7915 };
7916
7917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7919 if (!SWIG_IsOK(res1)) {
7920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7921 }
7922 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7923 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7924 if (!SWIG_IsOK(res2)) {
7925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7926 }
7927 if (!argp2) {
7928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7929 }
7930 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7931 ecode3 = SWIG_AsVal_int(obj2, &val3);
7932 if (!SWIG_IsOK(ecode3)) {
7933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7934 }
7935 arg3 = static_cast< int >(val3);
7936 ecode4 = SWIG_AsVal_int(obj3, &val4);
7937 if (!SWIG_IsOK(ecode4)) {
7938 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7939 }
7940 arg4 = static_cast< int >(val4);
7941 {
7942 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7943 if (PyErr_Occurred()) SWIG_fail;
7944 }
7945 resultobj = SWIG_Py_Void();
7946 return resultobj;
7947 fail:
7948 return NULL;
7949 }
7950
7951
7952 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7953 PyObject *resultobj = 0;
7954 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7955 wxNativePixelData *arg2 = 0 ;
7956 int arg3 ;
7957 void *argp1 = 0 ;
7958 int res1 = 0 ;
7959 void *argp2 = 0 ;
7960 int res2 = 0 ;
7961 int val3 ;
7962 int ecode3 = 0 ;
7963 PyObject * obj0 = 0 ;
7964 PyObject * obj1 = 0 ;
7965 PyObject * obj2 = 0 ;
7966 char * kwnames[] = {
7967 (char *) "self",(char *) "data",(char *) "x", NULL
7968 };
7969
7970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7972 if (!SWIG_IsOK(res1)) {
7973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7974 }
7975 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7976 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7977 if (!SWIG_IsOK(res2)) {
7978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7979 }
7980 if (!argp2) {
7981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7982 }
7983 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7984 ecode3 = SWIG_AsVal_int(obj2, &val3);
7985 if (!SWIG_IsOK(ecode3)) {
7986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7987 }
7988 arg3 = static_cast< int >(val3);
7989 {
7990 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7991 if (PyErr_Occurred()) SWIG_fail;
7992 }
7993 resultobj = SWIG_Py_Void();
7994 return resultobj;
7995 fail:
7996 return NULL;
7997 }
7998
7999
8000 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8001 PyObject *resultobj = 0;
8002 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8003 wxNativePixelData *arg2 = 0 ;
8004 int arg3 ;
8005 void *argp1 = 0 ;
8006 int res1 = 0 ;
8007 void *argp2 = 0 ;
8008 int res2 = 0 ;
8009 int val3 ;
8010 int ecode3 = 0 ;
8011 PyObject * obj0 = 0 ;
8012 PyObject * obj1 = 0 ;
8013 PyObject * obj2 = 0 ;
8014 char * kwnames[] = {
8015 (char *) "self",(char *) "data",(char *) "y", NULL
8016 };
8017
8018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8020 if (!SWIG_IsOK(res1)) {
8021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8022 }
8023 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8024 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8025 if (!SWIG_IsOK(res2)) {
8026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8027 }
8028 if (!argp2) {
8029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8030 }
8031 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8032 ecode3 = SWIG_AsVal_int(obj2, &val3);
8033 if (!SWIG_IsOK(ecode3)) {
8034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8035 }
8036 arg3 = static_cast< int >(val3);
8037 {
8038 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8039 if (PyErr_Occurred()) SWIG_fail;
8040 }
8041 resultobj = SWIG_Py_Void();
8042 return resultobj;
8043 fail:
8044 return NULL;
8045 }
8046
8047
8048 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8049 PyObject *resultobj = 0;
8050 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8051 wxNativePixelData *arg2 = 0 ;
8052 int arg3 ;
8053 int arg4 ;
8054 void *argp1 = 0 ;
8055 int res1 = 0 ;
8056 void *argp2 = 0 ;
8057 int res2 = 0 ;
8058 int val3 ;
8059 int ecode3 = 0 ;
8060 int val4 ;
8061 int ecode4 = 0 ;
8062 PyObject * obj0 = 0 ;
8063 PyObject * obj1 = 0 ;
8064 PyObject * obj2 = 0 ;
8065 PyObject * obj3 = 0 ;
8066 char * kwnames[] = {
8067 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8068 };
8069
8070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8072 if (!SWIG_IsOK(res1)) {
8073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8074 }
8075 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8076 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8077 if (!SWIG_IsOK(res2)) {
8078 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8079 }
8080 if (!argp2) {
8081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8082 }
8083 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8084 ecode3 = SWIG_AsVal_int(obj2, &val3);
8085 if (!SWIG_IsOK(ecode3)) {
8086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8087 }
8088 arg3 = static_cast< int >(val3);
8089 ecode4 = SWIG_AsVal_int(obj3, &val4);
8090 if (!SWIG_IsOK(ecode4)) {
8091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8092 }
8093 arg4 = static_cast< int >(val4);
8094 {
8095 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8096 if (PyErr_Occurred()) SWIG_fail;
8097 }
8098 resultobj = SWIG_Py_Void();
8099 return resultobj;
8100 fail:
8101 return NULL;
8102 }
8103
8104
8105 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8106 PyObject *resultobj = 0;
8107 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8108 byte arg2 ;
8109 byte arg3 ;
8110 byte arg4 ;
8111 void *argp1 = 0 ;
8112 int res1 = 0 ;
8113 unsigned char val2 ;
8114 int ecode2 = 0 ;
8115 unsigned char val3 ;
8116 int ecode3 = 0 ;
8117 unsigned char val4 ;
8118 int ecode4 = 0 ;
8119 PyObject * obj0 = 0 ;
8120 PyObject * obj1 = 0 ;
8121 PyObject * obj2 = 0 ;
8122 PyObject * obj3 = 0 ;
8123 char * kwnames[] = {
8124 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8125 };
8126
8127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8129 if (!SWIG_IsOK(res1)) {
8130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8131 }
8132 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8133 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8134 if (!SWIG_IsOK(ecode2)) {
8135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8136 }
8137 arg2 = static_cast< byte >(val2);
8138 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8139 if (!SWIG_IsOK(ecode3)) {
8140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8141 }
8142 arg3 = static_cast< byte >(val3);
8143 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8144 if (!SWIG_IsOK(ecode4)) {
8145 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8146 }
8147 arg4 = static_cast< byte >(val4);
8148 {
8149 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8150 if (PyErr_Occurred()) SWIG_fail;
8151 }
8152 resultobj = SWIG_Py_Void();
8153 return resultobj;
8154 fail:
8155 return NULL;
8156 }
8157
8158
8159 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8160 PyObject *resultobj = 0;
8161 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8162 PyObject *result = 0 ;
8163 void *argp1 = 0 ;
8164 int res1 = 0 ;
8165 PyObject *swig_obj[1] ;
8166
8167 if (!args) SWIG_fail;
8168 swig_obj[0] = args;
8169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8170 if (!SWIG_IsOK(res1)) {
8171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8172 }
8173 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8174 {
8175 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8176 if (PyErr_Occurred()) SWIG_fail;
8177 }
8178 resultobj = result;
8179 return resultobj;
8180 fail:
8181 return NULL;
8182 }
8183
8184
8185 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8186 PyObject *obj;
8187 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8188 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8189 return SWIG_Py_Void();
8190 }
8191
8192 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8193 return SWIG_Python_InitShadowInstance(args);
8194 }
8195
8196 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8197 PyObject *resultobj = 0;
8198 wxBitmap *arg1 = 0 ;
8199 wxAlphaPixelData *result = 0 ;
8200 void *argp1 = 0 ;
8201 int res1 = 0 ;
8202
8203 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8205 if (!SWIG_IsOK(res1)) {
8206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8207 }
8208 if (!argp1) {
8209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8210 }
8211 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8212 {
8213 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8214 if (PyErr_Occurred()) SWIG_fail;
8215 }
8216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8217 return resultobj;
8218 fail:
8219 return NULL;
8220 }
8221
8222
8223 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8224 PyObject *resultobj = 0;
8225 wxBitmap *arg1 = 0 ;
8226 wxRect *arg2 = 0 ;
8227 wxAlphaPixelData *result = 0 ;
8228 void *argp1 = 0 ;
8229 int res1 = 0 ;
8230 wxRect temp2 ;
8231
8232 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8234 if (!SWIG_IsOK(res1)) {
8235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8236 }
8237 if (!argp1) {
8238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8239 }
8240 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8241 {
8242 arg2 = &temp2;
8243 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8244 }
8245 {
8246 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8247 if (PyErr_Occurred()) SWIG_fail;
8248 }
8249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8250 return resultobj;
8251 fail:
8252 return NULL;
8253 }
8254
8255
8256 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8257 PyObject *resultobj = 0;
8258 wxBitmap *arg1 = 0 ;
8259 wxPoint *arg2 = 0 ;
8260 wxSize *arg3 = 0 ;
8261 wxAlphaPixelData *result = 0 ;
8262 void *argp1 = 0 ;
8263 int res1 = 0 ;
8264 wxPoint temp2 ;
8265 wxSize temp3 ;
8266
8267 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8269 if (!SWIG_IsOK(res1)) {
8270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8271 }
8272 if (!argp1) {
8273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8274 }
8275 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8276 {
8277 arg2 = &temp2;
8278 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8279 }
8280 {
8281 arg3 = &temp3;
8282 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8283 }
8284 {
8285 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8286 if (PyErr_Occurred()) SWIG_fail;
8287 }
8288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8289 return resultobj;
8290 fail:
8291 return NULL;
8292 }
8293
8294
8295 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8296 int argc;
8297 PyObject *argv[4];
8298
8299 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8300 --argc;
8301 if (argc == 1) {
8302 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8303 }
8304 if (argc == 2) {
8305 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8306 }
8307 if (argc == 3) {
8308 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8309 }
8310
8311 fail:
8312 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8313 return NULL;
8314 }
8315
8316
8317 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8318 PyObject *resultobj = 0;
8319 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8320 void *argp1 = 0 ;
8321 int res1 = 0 ;
8322 PyObject *swig_obj[1] ;
8323
8324 if (!args) SWIG_fail;
8325 swig_obj[0] = args;
8326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8327 if (!SWIG_IsOK(res1)) {
8328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8329 }
8330 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8331 {
8332 delete arg1;
8333
8334 if (PyErr_Occurred()) SWIG_fail;
8335 }
8336 resultobj = SWIG_Py_Void();
8337 return resultobj;
8338 fail:
8339 return NULL;
8340 }
8341
8342
8343 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8344 PyObject *resultobj = 0;
8345 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8346 wxAlphaPixelData_Accessor result;
8347 void *argp1 = 0 ;
8348 int res1 = 0 ;
8349 PyObject *swig_obj[1] ;
8350
8351 if (!args) SWIG_fail;
8352 swig_obj[0] = args;
8353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8354 if (!SWIG_IsOK(res1)) {
8355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8356 }
8357 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8358 {
8359 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8360 if (PyErr_Occurred()) SWIG_fail;
8361 }
8362 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8363 return resultobj;
8364 fail:
8365 return NULL;
8366 }
8367
8368
8369 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8370 PyObject *resultobj = 0;
8371 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8372 void *argp1 = 0 ;
8373 int res1 = 0 ;
8374 PyObject *swig_obj[1] ;
8375
8376 if (!args) SWIG_fail;
8377 swig_obj[0] = args;
8378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8379 if (!SWIG_IsOK(res1)) {
8380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8381 }
8382 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8383 {
8384 (arg1)->UseAlpha();
8385 if (PyErr_Occurred()) SWIG_fail;
8386 }
8387 resultobj = SWIG_Py_Void();
8388 return resultobj;
8389 fail:
8390 return NULL;
8391 }
8392
8393
8394 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8395 PyObject *resultobj = 0;
8396 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8397 bool result;
8398 void *argp1 = 0 ;
8399 int res1 = 0 ;
8400 PyObject *swig_obj[1] ;
8401
8402 if (!args) SWIG_fail;
8403 swig_obj[0] = args;
8404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8405 if (!SWIG_IsOK(res1)) {
8406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8407 }
8408 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8409 {
8410 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8411 if (PyErr_Occurred()) SWIG_fail;
8412 }
8413 {
8414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8415 }
8416 return resultobj;
8417 fail:
8418 return NULL;
8419 }
8420
8421
8422 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8423 PyObject *obj;
8424 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8425 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8426 return SWIG_Py_Void();
8427 }
8428
8429 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8430 return SWIG_Python_InitShadowInstance(args);
8431 }
8432
8433 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8434 PyObject *resultobj = 0;
8435 wxAlphaPixelData *arg1 = 0 ;
8436 wxAlphaPixelData_Accessor *result = 0 ;
8437 void *argp1 = 0 ;
8438 int res1 = 0 ;
8439
8440 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8442 if (!SWIG_IsOK(res1)) {
8443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8444 }
8445 if (!argp1) {
8446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8447 }
8448 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8449 {
8450 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8451 if (PyErr_Occurred()) SWIG_fail;
8452 }
8453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8454 return resultobj;
8455 fail:
8456 return NULL;
8457 }
8458
8459
8460 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8461 PyObject *resultobj = 0;
8462 wxBitmap *arg1 = 0 ;
8463 wxAlphaPixelData *arg2 = 0 ;
8464 wxAlphaPixelData_Accessor *result = 0 ;
8465 void *argp1 = 0 ;
8466 int res1 = 0 ;
8467 void *argp2 = 0 ;
8468 int res2 = 0 ;
8469
8470 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8472 if (!SWIG_IsOK(res1)) {
8473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8474 }
8475 if (!argp1) {
8476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8477 }
8478 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8479 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8480 if (!SWIG_IsOK(res2)) {
8481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8482 }
8483 if (!argp2) {
8484 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8485 }
8486 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8487 {
8488 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8489 if (PyErr_Occurred()) SWIG_fail;
8490 }
8491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8492 return resultobj;
8493 fail:
8494 return NULL;
8495 }
8496
8497
8498 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8499 PyObject *resultobj = 0;
8500 wxAlphaPixelData_Accessor *result = 0 ;
8501
8502 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8503 {
8504 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8505 if (PyErr_Occurred()) SWIG_fail;
8506 }
8507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8508 return resultobj;
8509 fail:
8510 return NULL;
8511 }
8512
8513
8514 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8515 int argc;
8516 PyObject *argv[3];
8517
8518 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8519 --argc;
8520 if (argc == 0) {
8521 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8522 }
8523 if (argc == 1) {
8524 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8525 }
8526 if (argc == 2) {
8527 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8528 }
8529
8530 fail:
8531 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8532 return NULL;
8533 }
8534
8535
8536 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8537 PyObject *resultobj = 0;
8538 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8539 void *argp1 = 0 ;
8540 int res1 = 0 ;
8541 PyObject *swig_obj[1] ;
8542
8543 if (!args) SWIG_fail;
8544 swig_obj[0] = args;
8545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8546 if (!SWIG_IsOK(res1)) {
8547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8548 }
8549 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8550 {
8551 delete arg1;
8552
8553 if (PyErr_Occurred()) SWIG_fail;
8554 }
8555 resultobj = SWIG_Py_Void();
8556 return resultobj;
8557 fail:
8558 return NULL;
8559 }
8560
8561
8562 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8563 PyObject *resultobj = 0;
8564 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8565 wxAlphaPixelData *arg2 = 0 ;
8566 void *argp1 = 0 ;
8567 int res1 = 0 ;
8568 void *argp2 = 0 ;
8569 int res2 = 0 ;
8570 PyObject * obj0 = 0 ;
8571 PyObject * obj1 = 0 ;
8572 char * kwnames[] = {
8573 (char *) "self",(char *) "data", NULL
8574 };
8575
8576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8578 if (!SWIG_IsOK(res1)) {
8579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8580 }
8581 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8582 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8583 if (!SWIG_IsOK(res2)) {
8584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8585 }
8586 if (!argp2) {
8587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8588 }
8589 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8590 {
8591 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8592 if (PyErr_Occurred()) SWIG_fail;
8593 }
8594 resultobj = SWIG_Py_Void();
8595 return resultobj;
8596 fail:
8597 return NULL;
8598 }
8599
8600
8601 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8602 PyObject *resultobj = 0;
8603 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8604 bool result;
8605 void *argp1 = 0 ;
8606 int res1 = 0 ;
8607 PyObject *swig_obj[1] ;
8608
8609 if (!args) SWIG_fail;
8610 swig_obj[0] = args;
8611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8612 if (!SWIG_IsOK(res1)) {
8613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8614 }
8615 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8616 {
8617 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8618 if (PyErr_Occurred()) SWIG_fail;
8619 }
8620 {
8621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8622 }
8623 return resultobj;
8624 fail:
8625 return NULL;
8626 }
8627
8628
8629 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8630 PyObject *resultobj = 0;
8631 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8632 void *argp1 = 0 ;
8633 int res1 = 0 ;
8634 PyObject *swig_obj[1] ;
8635
8636 if (!args) SWIG_fail;
8637 swig_obj[0] = args;
8638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8639 if (!SWIG_IsOK(res1)) {
8640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8641 }
8642 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8643 {
8644 wxAlphaPixelData_Accessor_nextPixel(arg1);
8645 if (PyErr_Occurred()) SWIG_fail;
8646 }
8647 resultobj = SWIG_Py_Void();
8648 return resultobj;
8649 fail:
8650 return NULL;
8651 }
8652
8653
8654 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8655 PyObject *resultobj = 0;
8656 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8657 wxAlphaPixelData *arg2 = 0 ;
8658 int arg3 ;
8659 int arg4 ;
8660 void *argp1 = 0 ;
8661 int res1 = 0 ;
8662 void *argp2 = 0 ;
8663 int res2 = 0 ;
8664 int val3 ;
8665 int ecode3 = 0 ;
8666 int val4 ;
8667 int ecode4 = 0 ;
8668 PyObject * obj0 = 0 ;
8669 PyObject * obj1 = 0 ;
8670 PyObject * obj2 = 0 ;
8671 PyObject * obj3 = 0 ;
8672 char * kwnames[] = {
8673 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8674 };
8675
8676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8678 if (!SWIG_IsOK(res1)) {
8679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8680 }
8681 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8682 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8683 if (!SWIG_IsOK(res2)) {
8684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8685 }
8686 if (!argp2) {
8687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8688 }
8689 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8690 ecode3 = SWIG_AsVal_int(obj2, &val3);
8691 if (!SWIG_IsOK(ecode3)) {
8692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8693 }
8694 arg3 = static_cast< int >(val3);
8695 ecode4 = SWIG_AsVal_int(obj3, &val4);
8696 if (!SWIG_IsOK(ecode4)) {
8697 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8698 }
8699 arg4 = static_cast< int >(val4);
8700 {
8701 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8702 if (PyErr_Occurred()) SWIG_fail;
8703 }
8704 resultobj = SWIG_Py_Void();
8705 return resultobj;
8706 fail:
8707 return NULL;
8708 }
8709
8710
8711 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8712 PyObject *resultobj = 0;
8713 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8714 wxAlphaPixelData *arg2 = 0 ;
8715 int arg3 ;
8716 void *argp1 = 0 ;
8717 int res1 = 0 ;
8718 void *argp2 = 0 ;
8719 int res2 = 0 ;
8720 int val3 ;
8721 int ecode3 = 0 ;
8722 PyObject * obj0 = 0 ;
8723 PyObject * obj1 = 0 ;
8724 PyObject * obj2 = 0 ;
8725 char * kwnames[] = {
8726 (char *) "self",(char *) "data",(char *) "x", NULL
8727 };
8728
8729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8731 if (!SWIG_IsOK(res1)) {
8732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8733 }
8734 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8735 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8736 if (!SWIG_IsOK(res2)) {
8737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8738 }
8739 if (!argp2) {
8740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8741 }
8742 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8743 ecode3 = SWIG_AsVal_int(obj2, &val3);
8744 if (!SWIG_IsOK(ecode3)) {
8745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8746 }
8747 arg3 = static_cast< int >(val3);
8748 {
8749 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8750 if (PyErr_Occurred()) SWIG_fail;
8751 }
8752 resultobj = SWIG_Py_Void();
8753 return resultobj;
8754 fail:
8755 return NULL;
8756 }
8757
8758
8759 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8760 PyObject *resultobj = 0;
8761 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8762 wxAlphaPixelData *arg2 = 0 ;
8763 int arg3 ;
8764 void *argp1 = 0 ;
8765 int res1 = 0 ;
8766 void *argp2 = 0 ;
8767 int res2 = 0 ;
8768 int val3 ;
8769 int ecode3 = 0 ;
8770 PyObject * obj0 = 0 ;
8771 PyObject * obj1 = 0 ;
8772 PyObject * obj2 = 0 ;
8773 char * kwnames[] = {
8774 (char *) "self",(char *) "data",(char *) "y", NULL
8775 };
8776
8777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8779 if (!SWIG_IsOK(res1)) {
8780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8781 }
8782 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8783 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8784 if (!SWIG_IsOK(res2)) {
8785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8786 }
8787 if (!argp2) {
8788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8789 }
8790 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8791 ecode3 = SWIG_AsVal_int(obj2, &val3);
8792 if (!SWIG_IsOK(ecode3)) {
8793 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8794 }
8795 arg3 = static_cast< int >(val3);
8796 {
8797 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8798 if (PyErr_Occurred()) SWIG_fail;
8799 }
8800 resultobj = SWIG_Py_Void();
8801 return resultobj;
8802 fail:
8803 return NULL;
8804 }
8805
8806
8807 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8808 PyObject *resultobj = 0;
8809 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8810 wxAlphaPixelData *arg2 = 0 ;
8811 int arg3 ;
8812 int arg4 ;
8813 void *argp1 = 0 ;
8814 int res1 = 0 ;
8815 void *argp2 = 0 ;
8816 int res2 = 0 ;
8817 int val3 ;
8818 int ecode3 = 0 ;
8819 int val4 ;
8820 int ecode4 = 0 ;
8821 PyObject * obj0 = 0 ;
8822 PyObject * obj1 = 0 ;
8823 PyObject * obj2 = 0 ;
8824 PyObject * obj3 = 0 ;
8825 char * kwnames[] = {
8826 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8827 };
8828
8829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8831 if (!SWIG_IsOK(res1)) {
8832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8833 }
8834 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8835 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8836 if (!SWIG_IsOK(res2)) {
8837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8838 }
8839 if (!argp2) {
8840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8841 }
8842 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8843 ecode3 = SWIG_AsVal_int(obj2, &val3);
8844 if (!SWIG_IsOK(ecode3)) {
8845 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8846 }
8847 arg3 = static_cast< int >(val3);
8848 ecode4 = SWIG_AsVal_int(obj3, &val4);
8849 if (!SWIG_IsOK(ecode4)) {
8850 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8851 }
8852 arg4 = static_cast< int >(val4);
8853 {
8854 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8855 if (PyErr_Occurred()) SWIG_fail;
8856 }
8857 resultobj = SWIG_Py_Void();
8858 return resultobj;
8859 fail:
8860 return NULL;
8861 }
8862
8863
8864 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8865 PyObject *resultobj = 0;
8866 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8867 byte arg2 ;
8868 byte arg3 ;
8869 byte arg4 ;
8870 byte arg5 ;
8871 void *argp1 = 0 ;
8872 int res1 = 0 ;
8873 unsigned char val2 ;
8874 int ecode2 = 0 ;
8875 unsigned char val3 ;
8876 int ecode3 = 0 ;
8877 unsigned char val4 ;
8878 int ecode4 = 0 ;
8879 unsigned char val5 ;
8880 int ecode5 = 0 ;
8881 PyObject * obj0 = 0 ;
8882 PyObject * obj1 = 0 ;
8883 PyObject * obj2 = 0 ;
8884 PyObject * obj3 = 0 ;
8885 PyObject * obj4 = 0 ;
8886 char * kwnames[] = {
8887 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8888 };
8889
8890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8892 if (!SWIG_IsOK(res1)) {
8893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8894 }
8895 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8896 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8897 if (!SWIG_IsOK(ecode2)) {
8898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8899 }
8900 arg2 = static_cast< byte >(val2);
8901 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8902 if (!SWIG_IsOK(ecode3)) {
8903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8904 }
8905 arg3 = static_cast< byte >(val3);
8906 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8907 if (!SWIG_IsOK(ecode4)) {
8908 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8909 }
8910 arg4 = static_cast< byte >(val4);
8911 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8912 if (!SWIG_IsOK(ecode5)) {
8913 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8914 }
8915 arg5 = static_cast< byte >(val5);
8916 {
8917 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8918 if (PyErr_Occurred()) SWIG_fail;
8919 }
8920 resultobj = SWIG_Py_Void();
8921 return resultobj;
8922 fail:
8923 return NULL;
8924 }
8925
8926
8927 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8928 PyObject *resultobj = 0;
8929 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8930 PyObject *result = 0 ;
8931 void *argp1 = 0 ;
8932 int res1 = 0 ;
8933 PyObject *swig_obj[1] ;
8934
8935 if (!args) SWIG_fail;
8936 swig_obj[0] = args;
8937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8938 if (!SWIG_IsOK(res1)) {
8939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8940 }
8941 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8942 {
8943 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8944 if (PyErr_Occurred()) SWIG_fail;
8945 }
8946 resultobj = result;
8947 return resultobj;
8948 fail:
8949 return NULL;
8950 }
8951
8952
8953 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8954 PyObject *obj;
8955 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8956 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8957 return SWIG_Py_Void();
8958 }
8959
8960 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8961 return SWIG_Python_InitShadowInstance(args);
8962 }
8963
8964 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8965 PyObject *resultobj = 0;
8966 wxBitmap *arg1 = 0 ;
8967 wxColour const &arg2_defvalue = wxNullColour ;
8968 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8969 wxMask *result = 0 ;
8970 void *argp1 = 0 ;
8971 int res1 = 0 ;
8972 wxColour temp2 ;
8973 PyObject * obj0 = 0 ;
8974 PyObject * obj1 = 0 ;
8975 char * kwnames[] = {
8976 (char *) "bitmap",(char *) "colour", NULL
8977 };
8978
8979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8980 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8981 if (!SWIG_IsOK(res1)) {
8982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8983 }
8984 if (!argp1) {
8985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8986 }
8987 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8988 if (obj1) {
8989 {
8990 arg2 = &temp2;
8991 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8992 }
8993 }
8994 {
8995 if (!wxPyCheckForApp()) SWIG_fail;
8996 PyThreadState* __tstate = wxPyBeginAllowThreads();
8997 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8998 wxPyEndAllowThreads(__tstate);
8999 if (PyErr_Occurred()) SWIG_fail;
9000 }
9001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9002 return resultobj;
9003 fail:
9004 return NULL;
9005 }
9006
9007
9008 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9009 PyObject *resultobj = 0;
9010 wxMask *arg1 = (wxMask *) 0 ;
9011 void *argp1 = 0 ;
9012 int res1 = 0 ;
9013 PyObject *swig_obj[1] ;
9014
9015 if (!args) SWIG_fail;
9016 swig_obj[0] = args;
9017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9018 if (!SWIG_IsOK(res1)) {
9019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9020 }
9021 arg1 = reinterpret_cast< wxMask * >(argp1);
9022 {
9023 delete arg1;
9024
9025 if (PyErr_Occurred()) SWIG_fail;
9026 }
9027 resultobj = SWIG_Py_Void();
9028 return resultobj;
9029 fail:
9030 return NULL;
9031 }
9032
9033
9034 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9035 PyObject *obj;
9036 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9037 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9038 return SWIG_Py_Void();
9039 }
9040
9041 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9042 return SWIG_Python_InitShadowInstance(args);
9043 }
9044
9045 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9046 PyObject *resultobj = 0;
9047 wxString *arg1 = 0 ;
9048 wxBitmapType arg2 ;
9049 int arg3 = (int) -1 ;
9050 int arg4 = (int) -1 ;
9051 wxIcon *result = 0 ;
9052 bool temp1 = false ;
9053 int val2 ;
9054 int ecode2 = 0 ;
9055 int val3 ;
9056 int ecode3 = 0 ;
9057 int val4 ;
9058 int ecode4 = 0 ;
9059 PyObject * obj0 = 0 ;
9060 PyObject * obj1 = 0 ;
9061 PyObject * obj2 = 0 ;
9062 PyObject * obj3 = 0 ;
9063 char * kwnames[] = {
9064 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9065 };
9066
9067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9068 {
9069 arg1 = wxString_in_helper(obj0);
9070 if (arg1 == NULL) SWIG_fail;
9071 temp1 = true;
9072 }
9073 ecode2 = SWIG_AsVal_int(obj1, &val2);
9074 if (!SWIG_IsOK(ecode2)) {
9075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9076 }
9077 arg2 = static_cast< wxBitmapType >(val2);
9078 if (obj2) {
9079 ecode3 = SWIG_AsVal_int(obj2, &val3);
9080 if (!SWIG_IsOK(ecode3)) {
9081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9082 }
9083 arg3 = static_cast< int >(val3);
9084 }
9085 if (obj3) {
9086 ecode4 = SWIG_AsVal_int(obj3, &val4);
9087 if (!SWIG_IsOK(ecode4)) {
9088 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9089 }
9090 arg4 = static_cast< int >(val4);
9091 }
9092 {
9093 if (!wxPyCheckForApp()) SWIG_fail;
9094 PyThreadState* __tstate = wxPyBeginAllowThreads();
9095 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9096 wxPyEndAllowThreads(__tstate);
9097 if (PyErr_Occurred()) SWIG_fail;
9098 }
9099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9100 {
9101 if (temp1)
9102 delete arg1;
9103 }
9104 return resultobj;
9105 fail:
9106 {
9107 if (temp1)
9108 delete arg1;
9109 }
9110 return NULL;
9111 }
9112
9113
9114 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9115 PyObject *resultobj = 0;
9116 wxIcon *arg1 = (wxIcon *) 0 ;
9117 void *argp1 = 0 ;
9118 int res1 = 0 ;
9119 PyObject *swig_obj[1] ;
9120
9121 if (!args) SWIG_fail;
9122 swig_obj[0] = args;
9123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9124 if (!SWIG_IsOK(res1)) {
9125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9126 }
9127 arg1 = reinterpret_cast< wxIcon * >(argp1);
9128 {
9129 PyThreadState* __tstate = wxPyBeginAllowThreads();
9130 delete arg1;
9131
9132 wxPyEndAllowThreads(__tstate);
9133 if (PyErr_Occurred()) SWIG_fail;
9134 }
9135 resultobj = SWIG_Py_Void();
9136 return resultobj;
9137 fail:
9138 return NULL;
9139 }
9140
9141
9142 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9143 PyObject *resultobj = 0;
9144 wxIcon *result = 0 ;
9145
9146 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9147 {
9148 if (!wxPyCheckForApp()) SWIG_fail;
9149 PyThreadState* __tstate = wxPyBeginAllowThreads();
9150 result = (wxIcon *)new wxIcon();
9151 wxPyEndAllowThreads(__tstate);
9152 if (PyErr_Occurred()) SWIG_fail;
9153 }
9154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9155 return resultobj;
9156 fail:
9157 return NULL;
9158 }
9159
9160
9161 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9162 PyObject *resultobj = 0;
9163 wxIconLocation *arg1 = 0 ;
9164 wxIcon *result = 0 ;
9165 void *argp1 = 0 ;
9166 int res1 = 0 ;
9167 PyObject * obj0 = 0 ;
9168 char * kwnames[] = {
9169 (char *) "loc", NULL
9170 };
9171
9172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9173 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9174 if (!SWIG_IsOK(res1)) {
9175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9176 }
9177 if (!argp1) {
9178 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9179 }
9180 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9181 {
9182 if (!wxPyCheckForApp()) SWIG_fail;
9183 PyThreadState* __tstate = wxPyBeginAllowThreads();
9184 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9185 wxPyEndAllowThreads(__tstate);
9186 if (PyErr_Occurred()) SWIG_fail;
9187 }
9188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9189 return resultobj;
9190 fail:
9191 return NULL;
9192 }
9193
9194
9195 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9196 PyObject *resultobj = 0;
9197 wxBitmap *arg1 = 0 ;
9198 wxIcon *result = 0 ;
9199 void *argp1 = 0 ;
9200 int res1 = 0 ;
9201 PyObject * obj0 = 0 ;
9202 char * kwnames[] = {
9203 (char *) "bmp", NULL
9204 };
9205
9206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9207 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9208 if (!SWIG_IsOK(res1)) {
9209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9210 }
9211 if (!argp1) {
9212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9213 }
9214 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9215 {
9216 if (!wxPyCheckForApp()) SWIG_fail;
9217 PyThreadState* __tstate = wxPyBeginAllowThreads();
9218 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9219 wxPyEndAllowThreads(__tstate);
9220 if (PyErr_Occurred()) SWIG_fail;
9221 }
9222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9223 return resultobj;
9224 fail:
9225 return NULL;
9226 }
9227
9228
9229 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9230 PyObject *resultobj = 0;
9231 PyObject *arg1 = (PyObject *) 0 ;
9232 wxIcon *result = 0 ;
9233 PyObject * obj0 = 0 ;
9234 char * kwnames[] = {
9235 (char *) "listOfStrings", NULL
9236 };
9237
9238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9239 arg1 = obj0;
9240 {
9241 if (!wxPyCheckForApp()) SWIG_fail;
9242 PyThreadState* __tstate = wxPyBeginAllowThreads();
9243 result = (wxIcon *)new_wxIcon(arg1);
9244 wxPyEndAllowThreads(__tstate);
9245 if (PyErr_Occurred()) SWIG_fail;
9246 }
9247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9248 return resultobj;
9249 fail:
9250 return NULL;
9251 }
9252
9253
9254 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9255 PyObject *resultobj = 0;
9256 wxIcon *arg1 = (wxIcon *) 0 ;
9257 wxString *arg2 = 0 ;
9258 wxBitmapType arg3 ;
9259 bool result;
9260 void *argp1 = 0 ;
9261 int res1 = 0 ;
9262 bool temp2 = false ;
9263 int val3 ;
9264 int ecode3 = 0 ;
9265 PyObject * obj0 = 0 ;
9266 PyObject * obj1 = 0 ;
9267 PyObject * obj2 = 0 ;
9268 char * kwnames[] = {
9269 (char *) "self",(char *) "name",(char *) "type", NULL
9270 };
9271
9272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9274 if (!SWIG_IsOK(res1)) {
9275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9276 }
9277 arg1 = reinterpret_cast< wxIcon * >(argp1);
9278 {
9279 arg2 = wxString_in_helper(obj1);
9280 if (arg2 == NULL) SWIG_fail;
9281 temp2 = true;
9282 }
9283 ecode3 = SWIG_AsVal_int(obj2, &val3);
9284 if (!SWIG_IsOK(ecode3)) {
9285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9286 }
9287 arg3 = static_cast< wxBitmapType >(val3);
9288 {
9289 PyThreadState* __tstate = wxPyBeginAllowThreads();
9290 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9291 wxPyEndAllowThreads(__tstate);
9292 if (PyErr_Occurred()) SWIG_fail;
9293 }
9294 {
9295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9296 }
9297 {
9298 if (temp2)
9299 delete arg2;
9300 }
9301 return resultobj;
9302 fail:
9303 {
9304 if (temp2)
9305 delete arg2;
9306 }
9307 return NULL;
9308 }
9309
9310
9311 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9312 PyObject *resultobj = 0;
9313 wxIcon *arg1 = (wxIcon *) 0 ;
9314 bool result;
9315 void *argp1 = 0 ;
9316 int res1 = 0 ;
9317 PyObject *swig_obj[1] ;
9318
9319 if (!args) SWIG_fail;
9320 swig_obj[0] = args;
9321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9322 if (!SWIG_IsOK(res1)) {
9323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9324 }
9325 arg1 = reinterpret_cast< wxIcon * >(argp1);
9326 {
9327 PyThreadState* __tstate = wxPyBeginAllowThreads();
9328 result = (bool)(arg1)->IsOk();
9329 wxPyEndAllowThreads(__tstate);
9330 if (PyErr_Occurred()) SWIG_fail;
9331 }
9332 {
9333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9334 }
9335 return resultobj;
9336 fail:
9337 return NULL;
9338 }
9339
9340
9341 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9342 PyObject *resultobj = 0;
9343 wxIcon *arg1 = (wxIcon *) 0 ;
9344 int result;
9345 void *argp1 = 0 ;
9346 int res1 = 0 ;
9347 PyObject *swig_obj[1] ;
9348
9349 if (!args) SWIG_fail;
9350 swig_obj[0] = args;
9351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9352 if (!SWIG_IsOK(res1)) {
9353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9354 }
9355 arg1 = reinterpret_cast< wxIcon * >(argp1);
9356 {
9357 PyThreadState* __tstate = wxPyBeginAllowThreads();
9358 result = (int)(arg1)->GetWidth();
9359 wxPyEndAllowThreads(__tstate);
9360 if (PyErr_Occurred()) SWIG_fail;
9361 }
9362 resultobj = SWIG_From_int(static_cast< int >(result));
9363 return resultobj;
9364 fail:
9365 return NULL;
9366 }
9367
9368
9369 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9370 PyObject *resultobj = 0;
9371 wxIcon *arg1 = (wxIcon *) 0 ;
9372 int result;
9373 void *argp1 = 0 ;
9374 int res1 = 0 ;
9375 PyObject *swig_obj[1] ;
9376
9377 if (!args) SWIG_fail;
9378 swig_obj[0] = args;
9379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9380 if (!SWIG_IsOK(res1)) {
9381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9382 }
9383 arg1 = reinterpret_cast< wxIcon * >(argp1);
9384 {
9385 PyThreadState* __tstate = wxPyBeginAllowThreads();
9386 result = (int)(arg1)->GetHeight();
9387 wxPyEndAllowThreads(__tstate);
9388 if (PyErr_Occurred()) SWIG_fail;
9389 }
9390 resultobj = SWIG_From_int(static_cast< int >(result));
9391 return resultobj;
9392 fail:
9393 return NULL;
9394 }
9395
9396
9397 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9398 PyObject *resultobj = 0;
9399 wxIcon *arg1 = (wxIcon *) 0 ;
9400 int result;
9401 void *argp1 = 0 ;
9402 int res1 = 0 ;
9403 PyObject *swig_obj[1] ;
9404
9405 if (!args) SWIG_fail;
9406 swig_obj[0] = args;
9407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9408 if (!SWIG_IsOK(res1)) {
9409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9410 }
9411 arg1 = reinterpret_cast< wxIcon * >(argp1);
9412 {
9413 PyThreadState* __tstate = wxPyBeginAllowThreads();
9414 result = (int)(arg1)->GetDepth();
9415 wxPyEndAllowThreads(__tstate);
9416 if (PyErr_Occurred()) SWIG_fail;
9417 }
9418 resultobj = SWIG_From_int(static_cast< int >(result));
9419 return resultobj;
9420 fail:
9421 return NULL;
9422 }
9423
9424
9425 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9426 PyObject *resultobj = 0;
9427 wxIcon *arg1 = (wxIcon *) 0 ;
9428 int arg2 ;
9429 void *argp1 = 0 ;
9430 int res1 = 0 ;
9431 int val2 ;
9432 int ecode2 = 0 ;
9433 PyObject * obj0 = 0 ;
9434 PyObject * obj1 = 0 ;
9435 char * kwnames[] = {
9436 (char *) "self",(char *) "w", NULL
9437 };
9438
9439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9441 if (!SWIG_IsOK(res1)) {
9442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9443 }
9444 arg1 = reinterpret_cast< wxIcon * >(argp1);
9445 ecode2 = SWIG_AsVal_int(obj1, &val2);
9446 if (!SWIG_IsOK(ecode2)) {
9447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9448 }
9449 arg2 = static_cast< int >(val2);
9450 {
9451 PyThreadState* __tstate = wxPyBeginAllowThreads();
9452 (arg1)->SetWidth(arg2);
9453 wxPyEndAllowThreads(__tstate);
9454 if (PyErr_Occurred()) SWIG_fail;
9455 }
9456 resultobj = SWIG_Py_Void();
9457 return resultobj;
9458 fail:
9459 return NULL;
9460 }
9461
9462
9463 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9464 PyObject *resultobj = 0;
9465 wxIcon *arg1 = (wxIcon *) 0 ;
9466 int arg2 ;
9467 void *argp1 = 0 ;
9468 int res1 = 0 ;
9469 int val2 ;
9470 int ecode2 = 0 ;
9471 PyObject * obj0 = 0 ;
9472 PyObject * obj1 = 0 ;
9473 char * kwnames[] = {
9474 (char *) "self",(char *) "h", NULL
9475 };
9476
9477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9479 if (!SWIG_IsOK(res1)) {
9480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9481 }
9482 arg1 = reinterpret_cast< wxIcon * >(argp1);
9483 ecode2 = SWIG_AsVal_int(obj1, &val2);
9484 if (!SWIG_IsOK(ecode2)) {
9485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9486 }
9487 arg2 = static_cast< int >(val2);
9488 {
9489 PyThreadState* __tstate = wxPyBeginAllowThreads();
9490 (arg1)->SetHeight(arg2);
9491 wxPyEndAllowThreads(__tstate);
9492 if (PyErr_Occurred()) SWIG_fail;
9493 }
9494 resultobj = SWIG_Py_Void();
9495 return resultobj;
9496 fail:
9497 return NULL;
9498 }
9499
9500
9501 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9502 PyObject *resultobj = 0;
9503 wxIcon *arg1 = (wxIcon *) 0 ;
9504 int arg2 ;
9505 void *argp1 = 0 ;
9506 int res1 = 0 ;
9507 int val2 ;
9508 int ecode2 = 0 ;
9509 PyObject * obj0 = 0 ;
9510 PyObject * obj1 = 0 ;
9511 char * kwnames[] = {
9512 (char *) "self",(char *) "d", NULL
9513 };
9514
9515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9517 if (!SWIG_IsOK(res1)) {
9518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9519 }
9520 arg1 = reinterpret_cast< wxIcon * >(argp1);
9521 ecode2 = SWIG_AsVal_int(obj1, &val2);
9522 if (!SWIG_IsOK(ecode2)) {
9523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9524 }
9525 arg2 = static_cast< int >(val2);
9526 {
9527 PyThreadState* __tstate = wxPyBeginAllowThreads();
9528 (arg1)->SetDepth(arg2);
9529 wxPyEndAllowThreads(__tstate);
9530 if (PyErr_Occurred()) SWIG_fail;
9531 }
9532 resultobj = SWIG_Py_Void();
9533 return resultobj;
9534 fail:
9535 return NULL;
9536 }
9537
9538
9539 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9540 PyObject *resultobj = 0;
9541 wxIcon *arg1 = (wxIcon *) 0 ;
9542 wxBitmap *arg2 = 0 ;
9543 void *argp1 = 0 ;
9544 int res1 = 0 ;
9545 void *argp2 = 0 ;
9546 int res2 = 0 ;
9547 PyObject * obj0 = 0 ;
9548 PyObject * obj1 = 0 ;
9549 char * kwnames[] = {
9550 (char *) "self",(char *) "bmp", NULL
9551 };
9552
9553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9555 if (!SWIG_IsOK(res1)) {
9556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9557 }
9558 arg1 = reinterpret_cast< wxIcon * >(argp1);
9559 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9560 if (!SWIG_IsOK(res2)) {
9561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9562 }
9563 if (!argp2) {
9564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9565 }
9566 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9567 {
9568 PyThreadState* __tstate = wxPyBeginAllowThreads();
9569 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9570 wxPyEndAllowThreads(__tstate);
9571 if (PyErr_Occurred()) SWIG_fail;
9572 }
9573 resultobj = SWIG_Py_Void();
9574 return resultobj;
9575 fail:
9576 return NULL;
9577 }
9578
9579
9580 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9581 PyObject *obj;
9582 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9583 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9584 return SWIG_Py_Void();
9585 }
9586
9587 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9588 return SWIG_Python_InitShadowInstance(args);
9589 }
9590
9591 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9592 PyObject *resultobj = 0;
9593 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9594 int arg2 = (int) 0 ;
9595 wxIconLocation *result = 0 ;
9596 bool temp1 = false ;
9597 int val2 ;
9598 int ecode2 = 0 ;
9599 PyObject * obj0 = 0 ;
9600 PyObject * obj1 = 0 ;
9601 char * kwnames[] = {
9602 (char *) "filename",(char *) "num", NULL
9603 };
9604
9605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9606 if (obj0) {
9607 {
9608 arg1 = wxString_in_helper(obj0);
9609 if (arg1 == NULL) SWIG_fail;
9610 temp1 = true;
9611 }
9612 }
9613 if (obj1) {
9614 ecode2 = SWIG_AsVal_int(obj1, &val2);
9615 if (!SWIG_IsOK(ecode2)) {
9616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9617 }
9618 arg2 = static_cast< int >(val2);
9619 }
9620 {
9621 PyThreadState* __tstate = wxPyBeginAllowThreads();
9622 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9623 wxPyEndAllowThreads(__tstate);
9624 if (PyErr_Occurred()) SWIG_fail;
9625 }
9626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9627 {
9628 if (temp1)
9629 delete arg1;
9630 }
9631 return resultobj;
9632 fail:
9633 {
9634 if (temp1)
9635 delete arg1;
9636 }
9637 return NULL;
9638 }
9639
9640
9641 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9642 PyObject *resultobj = 0;
9643 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9644 void *argp1 = 0 ;
9645 int res1 = 0 ;
9646 PyObject *swig_obj[1] ;
9647
9648 if (!args) SWIG_fail;
9649 swig_obj[0] = args;
9650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9651 if (!SWIG_IsOK(res1)) {
9652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9653 }
9654 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9655 {
9656 PyThreadState* __tstate = wxPyBeginAllowThreads();
9657 delete arg1;
9658
9659 wxPyEndAllowThreads(__tstate);
9660 if (PyErr_Occurred()) SWIG_fail;
9661 }
9662 resultobj = SWIG_Py_Void();
9663 return resultobj;
9664 fail:
9665 return NULL;
9666 }
9667
9668
9669 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9670 PyObject *resultobj = 0;
9671 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9672 bool result;
9673 void *argp1 = 0 ;
9674 int res1 = 0 ;
9675 PyObject *swig_obj[1] ;
9676
9677 if (!args) SWIG_fail;
9678 swig_obj[0] = args;
9679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9680 if (!SWIG_IsOK(res1)) {
9681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9682 }
9683 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9684 {
9685 PyThreadState* __tstate = wxPyBeginAllowThreads();
9686 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9687 wxPyEndAllowThreads(__tstate);
9688 if (PyErr_Occurred()) SWIG_fail;
9689 }
9690 {
9691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9692 }
9693 return resultobj;
9694 fail:
9695 return NULL;
9696 }
9697
9698
9699 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9700 PyObject *resultobj = 0;
9701 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9702 wxString *arg2 = 0 ;
9703 void *argp1 = 0 ;
9704 int res1 = 0 ;
9705 bool temp2 = false ;
9706 PyObject * obj0 = 0 ;
9707 PyObject * obj1 = 0 ;
9708 char * kwnames[] = {
9709 (char *) "self",(char *) "filename", NULL
9710 };
9711
9712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9714 if (!SWIG_IsOK(res1)) {
9715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9716 }
9717 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9718 {
9719 arg2 = wxString_in_helper(obj1);
9720 if (arg2 == NULL) SWIG_fail;
9721 temp2 = true;
9722 }
9723 {
9724 PyThreadState* __tstate = wxPyBeginAllowThreads();
9725 (arg1)->SetFileName((wxString const &)*arg2);
9726 wxPyEndAllowThreads(__tstate);
9727 if (PyErr_Occurred()) SWIG_fail;
9728 }
9729 resultobj = SWIG_Py_Void();
9730 {
9731 if (temp2)
9732 delete arg2;
9733 }
9734 return resultobj;
9735 fail:
9736 {
9737 if (temp2)
9738 delete arg2;
9739 }
9740 return NULL;
9741 }
9742
9743
9744 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9745 PyObject *resultobj = 0;
9746 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9747 wxString *result = 0 ;
9748 void *argp1 = 0 ;
9749 int res1 = 0 ;
9750 PyObject *swig_obj[1] ;
9751
9752 if (!args) SWIG_fail;
9753 swig_obj[0] = args;
9754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9755 if (!SWIG_IsOK(res1)) {
9756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9757 }
9758 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9759 {
9760 PyThreadState* __tstate = wxPyBeginAllowThreads();
9761 {
9762 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9763 result = (wxString *) &_result_ref;
9764 }
9765 wxPyEndAllowThreads(__tstate);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 }
9768 {
9769 #if wxUSE_UNICODE
9770 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9771 #else
9772 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9773 #endif
9774 }
9775 return resultobj;
9776 fail:
9777 return NULL;
9778 }
9779
9780
9781 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9782 PyObject *resultobj = 0;
9783 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9784 int arg2 ;
9785 void *argp1 = 0 ;
9786 int res1 = 0 ;
9787 int val2 ;
9788 int ecode2 = 0 ;
9789 PyObject * obj0 = 0 ;
9790 PyObject * obj1 = 0 ;
9791 char * kwnames[] = {
9792 (char *) "self",(char *) "num", NULL
9793 };
9794
9795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9797 if (!SWIG_IsOK(res1)) {
9798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9799 }
9800 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9801 ecode2 = SWIG_AsVal_int(obj1, &val2);
9802 if (!SWIG_IsOK(ecode2)) {
9803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9804 }
9805 arg2 = static_cast< int >(val2);
9806 {
9807 PyThreadState* __tstate = wxPyBeginAllowThreads();
9808 wxIconLocation_SetIndex(arg1,arg2);
9809 wxPyEndAllowThreads(__tstate);
9810 if (PyErr_Occurred()) SWIG_fail;
9811 }
9812 resultobj = SWIG_Py_Void();
9813 return resultobj;
9814 fail:
9815 return NULL;
9816 }
9817
9818
9819 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9820 PyObject *resultobj = 0;
9821 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9822 int result;
9823 void *argp1 = 0 ;
9824 int res1 = 0 ;
9825 PyObject *swig_obj[1] ;
9826
9827 if (!args) SWIG_fail;
9828 swig_obj[0] = args;
9829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9830 if (!SWIG_IsOK(res1)) {
9831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9832 }
9833 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9834 {
9835 PyThreadState* __tstate = wxPyBeginAllowThreads();
9836 result = (int)wxIconLocation_GetIndex(arg1);
9837 wxPyEndAllowThreads(__tstate);
9838 if (PyErr_Occurred()) SWIG_fail;
9839 }
9840 resultobj = SWIG_From_int(static_cast< int >(result));
9841 return resultobj;
9842 fail:
9843 return NULL;
9844 }
9845
9846
9847 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9848 PyObject *obj;
9849 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9850 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9851 return SWIG_Py_Void();
9852 }
9853
9854 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9855 return SWIG_Python_InitShadowInstance(args);
9856 }
9857
9858 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9859 PyObject *resultobj = 0;
9860 wxIconBundle *result = 0 ;
9861
9862 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9863 {
9864 PyThreadState* __tstate = wxPyBeginAllowThreads();
9865 result = (wxIconBundle *)new wxIconBundle();
9866 wxPyEndAllowThreads(__tstate);
9867 if (PyErr_Occurred()) SWIG_fail;
9868 }
9869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9870 return resultobj;
9871 fail:
9872 return NULL;
9873 }
9874
9875
9876 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9877 PyObject *resultobj = 0;
9878 wxString *arg1 = 0 ;
9879 long arg2 ;
9880 wxIconBundle *result = 0 ;
9881 bool temp1 = false ;
9882 long val2 ;
9883 int ecode2 = 0 ;
9884 PyObject * obj0 = 0 ;
9885 PyObject * obj1 = 0 ;
9886 char * kwnames[] = {
9887 (char *) "file",(char *) "type", NULL
9888 };
9889
9890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9891 {
9892 arg1 = wxString_in_helper(obj0);
9893 if (arg1 == NULL) SWIG_fail;
9894 temp1 = true;
9895 }
9896 ecode2 = SWIG_AsVal_long(obj1, &val2);
9897 if (!SWIG_IsOK(ecode2)) {
9898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9899 }
9900 arg2 = static_cast< long >(val2);
9901 {
9902 PyThreadState* __tstate = wxPyBeginAllowThreads();
9903 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9904 wxPyEndAllowThreads(__tstate);
9905 if (PyErr_Occurred()) SWIG_fail;
9906 }
9907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9908 {
9909 if (temp1)
9910 delete arg1;
9911 }
9912 return resultobj;
9913 fail:
9914 {
9915 if (temp1)
9916 delete arg1;
9917 }
9918 return NULL;
9919 }
9920
9921
9922 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9923 PyObject *resultobj = 0;
9924 wxIcon *arg1 = 0 ;
9925 wxIconBundle *result = 0 ;
9926 void *argp1 = 0 ;
9927 int res1 = 0 ;
9928 PyObject * obj0 = 0 ;
9929 char * kwnames[] = {
9930 (char *) "icon", NULL
9931 };
9932
9933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9934 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9935 if (!SWIG_IsOK(res1)) {
9936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9937 }
9938 if (!argp1) {
9939 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9940 }
9941 arg1 = reinterpret_cast< wxIcon * >(argp1);
9942 {
9943 PyThreadState* __tstate = wxPyBeginAllowThreads();
9944 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9945 wxPyEndAllowThreads(__tstate);
9946 if (PyErr_Occurred()) SWIG_fail;
9947 }
9948 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9949 return resultobj;
9950 fail:
9951 return NULL;
9952 }
9953
9954
9955 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9956 PyObject *resultobj = 0;
9957 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9958 void *argp1 = 0 ;
9959 int res1 = 0 ;
9960 PyObject *swig_obj[1] ;
9961
9962 if (!args) SWIG_fail;
9963 swig_obj[0] = args;
9964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9965 if (!SWIG_IsOK(res1)) {
9966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9967 }
9968 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9969 {
9970 PyThreadState* __tstate = wxPyBeginAllowThreads();
9971 delete arg1;
9972
9973 wxPyEndAllowThreads(__tstate);
9974 if (PyErr_Occurred()) SWIG_fail;
9975 }
9976 resultobj = SWIG_Py_Void();
9977 return resultobj;
9978 fail:
9979 return NULL;
9980 }
9981
9982
9983 SWIGINTERN PyObject *_wrap_IconBundle_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9984 PyObject *resultobj = 0;
9985 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9986 bool result;
9987 void *argp1 = 0 ;
9988 int res1 = 0 ;
9989 PyObject *swig_obj[1] ;
9990
9991 if (!args) SWIG_fail;
9992 swig_obj[0] = args;
9993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9994 if (!SWIG_IsOK(res1)) {
9995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_IsOk" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9996 }
9997 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9998 {
9999 PyThreadState* __tstate = wxPyBeginAllowThreads();
10000 result = (bool)((wxIconBundle const *)arg1)->IsOk();
10001 wxPyEndAllowThreads(__tstate);
10002 if (PyErr_Occurred()) SWIG_fail;
10003 }
10004 {
10005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10006 }
10007 return resultobj;
10008 fail:
10009 return NULL;
10010 }
10011
10012
10013 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10014 PyObject *resultobj = 0;
10015 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10016 wxIcon *arg2 = 0 ;
10017 void *argp1 = 0 ;
10018 int res1 = 0 ;
10019 void *argp2 = 0 ;
10020 int res2 = 0 ;
10021 PyObject * obj0 = 0 ;
10022 PyObject * obj1 = 0 ;
10023 char * kwnames[] = {
10024 (char *) "self",(char *) "icon", NULL
10025 };
10026
10027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10029 if (!SWIG_IsOK(res1)) {
10030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10031 }
10032 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10033 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10034 if (!SWIG_IsOK(res2)) {
10035 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10036 }
10037 if (!argp2) {
10038 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10039 }
10040 arg2 = reinterpret_cast< wxIcon * >(argp2);
10041 {
10042 PyThreadState* __tstate = wxPyBeginAllowThreads();
10043 (arg1)->AddIcon((wxIcon const &)*arg2);
10044 wxPyEndAllowThreads(__tstate);
10045 if (PyErr_Occurred()) SWIG_fail;
10046 }
10047 resultobj = SWIG_Py_Void();
10048 return resultobj;
10049 fail:
10050 return NULL;
10051 }
10052
10053
10054 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10055 PyObject *resultobj = 0;
10056 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10057 wxString *arg2 = 0 ;
10058 long arg3 ;
10059 void *argp1 = 0 ;
10060 int res1 = 0 ;
10061 bool temp2 = false ;
10062 long val3 ;
10063 int ecode3 = 0 ;
10064 PyObject * obj0 = 0 ;
10065 PyObject * obj1 = 0 ;
10066 PyObject * obj2 = 0 ;
10067 char * kwnames[] = {
10068 (char *) "self",(char *) "file",(char *) "type", NULL
10069 };
10070
10071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10073 if (!SWIG_IsOK(res1)) {
10074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10075 }
10076 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10077 {
10078 arg2 = wxString_in_helper(obj1);
10079 if (arg2 == NULL) SWIG_fail;
10080 temp2 = true;
10081 }
10082 ecode3 = SWIG_AsVal_long(obj2, &val3);
10083 if (!SWIG_IsOK(ecode3)) {
10084 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10085 }
10086 arg3 = static_cast< long >(val3);
10087 {
10088 PyThreadState* __tstate = wxPyBeginAllowThreads();
10089 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10090 wxPyEndAllowThreads(__tstate);
10091 if (PyErr_Occurred()) SWIG_fail;
10092 }
10093 resultobj = SWIG_Py_Void();
10094 {
10095 if (temp2)
10096 delete arg2;
10097 }
10098 return resultobj;
10099 fail:
10100 {
10101 if (temp2)
10102 delete arg2;
10103 }
10104 return NULL;
10105 }
10106
10107
10108 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10109 PyObject *resultobj = 0;
10110 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10111 wxSize *arg2 = 0 ;
10112 wxIcon *result = 0 ;
10113 void *argp1 = 0 ;
10114 int res1 = 0 ;
10115 wxSize temp2 ;
10116 PyObject * obj0 = 0 ;
10117 PyObject * obj1 = 0 ;
10118 char * kwnames[] = {
10119 (char *) "self",(char *) "size", NULL
10120 };
10121
10122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10124 if (!SWIG_IsOK(res1)) {
10125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10126 }
10127 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10128 {
10129 arg2 = &temp2;
10130 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10131 }
10132 {
10133 PyThreadState* __tstate = wxPyBeginAllowThreads();
10134 {
10135 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10136 result = (wxIcon *) &_result_ref;
10137 }
10138 wxPyEndAllowThreads(__tstate);
10139 if (PyErr_Occurred()) SWIG_fail;
10140 }
10141 {
10142 wxIcon* resultptr = new wxIcon(*result);
10143 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10144 }
10145 return resultobj;
10146 fail:
10147 return NULL;
10148 }
10149
10150
10151 SWIGINTERN PyObject *_wrap_IconBundle_GetIconOfExactSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10152 PyObject *resultobj = 0;
10153 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10154 wxSize *arg2 = 0 ;
10155 wxIcon result;
10156 void *argp1 = 0 ;
10157 int res1 = 0 ;
10158 wxSize temp2 ;
10159 PyObject * obj0 = 0 ;
10160 PyObject * obj1 = 0 ;
10161 char * kwnames[] = {
10162 (char *) "self",(char *) "size", NULL
10163 };
10164
10165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIconOfExactSize",kwnames,&obj0,&obj1)) SWIG_fail;
10166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10167 if (!SWIG_IsOK(res1)) {
10168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconOfExactSize" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10169 }
10170 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10171 {
10172 arg2 = &temp2;
10173 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10174 }
10175 {
10176 PyThreadState* __tstate = wxPyBeginAllowThreads();
10177 result = ((wxIconBundle const *)arg1)->GetIconOfExactSize((wxSize const &)*arg2);
10178 wxPyEndAllowThreads(__tstate);
10179 if (PyErr_Occurred()) SWIG_fail;
10180 }
10181 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
10182 return resultobj;
10183 fail:
10184 return NULL;
10185 }
10186
10187
10188 SWIGINTERN PyObject *_wrap_IconBundle_GetIconCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10189 PyObject *resultobj = 0;
10190 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10191 size_t result;
10192 void *argp1 = 0 ;
10193 int res1 = 0 ;
10194 PyObject *swig_obj[1] ;
10195
10196 if (!args) SWIG_fail;
10197 swig_obj[0] = args;
10198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10199 if (!SWIG_IsOK(res1)) {
10200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconCount" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10201 }
10202 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10203 {
10204 PyThreadState* __tstate = wxPyBeginAllowThreads();
10205 result = (size_t)((wxIconBundle const *)arg1)->GetIconCount();
10206 wxPyEndAllowThreads(__tstate);
10207 if (PyErr_Occurred()) SWIG_fail;
10208 }
10209 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
10210 return resultobj;
10211 fail:
10212 return NULL;
10213 }
10214
10215
10216 SWIGINTERN PyObject *_wrap_IconBundle_GetIconByIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10217 PyObject *resultobj = 0;
10218 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10219 size_t arg2 ;
10220 wxIcon result;
10221 void *argp1 = 0 ;
10222 int res1 = 0 ;
10223 size_t val2 ;
10224 int ecode2 = 0 ;
10225 PyObject * obj0 = 0 ;
10226 PyObject * obj1 = 0 ;
10227 char * kwnames[] = {
10228 (char *) "self",(char *) "n", NULL
10229 };
10230
10231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIconByIndex",kwnames,&obj0,&obj1)) SWIG_fail;
10232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10233 if (!SWIG_IsOK(res1)) {
10234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconByIndex" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10235 }
10236 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10237 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
10238 if (!SWIG_IsOK(ecode2)) {
10239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconBundle_GetIconByIndex" "', expected argument " "2"" of type '" "size_t""'");
10240 }
10241 arg2 = static_cast< size_t >(val2);
10242 {
10243 PyThreadState* __tstate = wxPyBeginAllowThreads();
10244 result = ((wxIconBundle const *)arg1)->GetIconByIndex(arg2);
10245 wxPyEndAllowThreads(__tstate);
10246 if (PyErr_Occurred()) SWIG_fail;
10247 }
10248 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
10249 return resultobj;
10250 fail:
10251 return NULL;
10252 }
10253
10254
10255 SWIGINTERN PyObject *_wrap_IconBundle_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10256 PyObject *resultobj = 0;
10257 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10258 bool result;
10259 void *argp1 = 0 ;
10260 int res1 = 0 ;
10261 PyObject *swig_obj[1] ;
10262
10263 if (!args) SWIG_fail;
10264 swig_obj[0] = args;
10265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10266 if (!SWIG_IsOK(res1)) {
10267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_IsEmpty" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10268 }
10269 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10270 {
10271 PyThreadState* __tstate = wxPyBeginAllowThreads();
10272 result = (bool)((wxIconBundle const *)arg1)->IsEmpty();
10273 wxPyEndAllowThreads(__tstate);
10274 if (PyErr_Occurred()) SWIG_fail;
10275 }
10276 {
10277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10278 }
10279 return resultobj;
10280 fail:
10281 return NULL;
10282 }
10283
10284
10285 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10286 PyObject *obj;
10287 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10288 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10289 return SWIG_Py_Void();
10290 }
10291
10292 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10293 return SWIG_Python_InitShadowInstance(args);
10294 }
10295
10296 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10297 PyObject *resultobj = 0;
10298 wxString *arg1 = 0 ;
10299 long arg2 ;
10300 int arg3 = (int) 0 ;
10301 int arg4 = (int) 0 ;
10302 wxCursor *result = 0 ;
10303 bool temp1 = false ;
10304 long val2 ;
10305 int ecode2 = 0 ;
10306 int val3 ;
10307 int ecode3 = 0 ;
10308 int val4 ;
10309 int ecode4 = 0 ;
10310 PyObject * obj0 = 0 ;
10311 PyObject * obj1 = 0 ;
10312 PyObject * obj2 = 0 ;
10313 PyObject * obj3 = 0 ;
10314 char * kwnames[] = {
10315 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10316 };
10317
10318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10319 {
10320 arg1 = wxString_in_helper(obj0);
10321 if (arg1 == NULL) SWIG_fail;
10322 temp1 = true;
10323 }
10324 ecode2 = SWIG_AsVal_long(obj1, &val2);
10325 if (!SWIG_IsOK(ecode2)) {
10326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10327 }
10328 arg2 = static_cast< long >(val2);
10329 if (obj2) {
10330 ecode3 = SWIG_AsVal_int(obj2, &val3);
10331 if (!SWIG_IsOK(ecode3)) {
10332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10333 }
10334 arg3 = static_cast< int >(val3);
10335 }
10336 if (obj3) {
10337 ecode4 = SWIG_AsVal_int(obj3, &val4);
10338 if (!SWIG_IsOK(ecode4)) {
10339 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10340 }
10341 arg4 = static_cast< int >(val4);
10342 }
10343 {
10344 if (!wxPyCheckForApp()) SWIG_fail;
10345 PyThreadState* __tstate = wxPyBeginAllowThreads();
10346 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10347 wxPyEndAllowThreads(__tstate);
10348 if (PyErr_Occurred()) SWIG_fail;
10349 }
10350 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10351 {
10352 if (temp1)
10353 delete arg1;
10354 }
10355 return resultobj;
10356 fail:
10357 {
10358 if (temp1)
10359 delete arg1;
10360 }
10361 return NULL;
10362 }
10363
10364
10365 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10366 PyObject *resultobj = 0;
10367 wxCursor *arg1 = (wxCursor *) 0 ;
10368 void *argp1 = 0 ;
10369 int res1 = 0 ;
10370 PyObject *swig_obj[1] ;
10371
10372 if (!args) SWIG_fail;
10373 swig_obj[0] = args;
10374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10375 if (!SWIG_IsOK(res1)) {
10376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10377 }
10378 arg1 = reinterpret_cast< wxCursor * >(argp1);
10379 {
10380 PyThreadState* __tstate = wxPyBeginAllowThreads();
10381 delete arg1;
10382
10383 wxPyEndAllowThreads(__tstate);
10384 if (PyErr_Occurred()) SWIG_fail;
10385 }
10386 resultobj = SWIG_Py_Void();
10387 return resultobj;
10388 fail:
10389 return NULL;
10390 }
10391
10392
10393 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10394 PyObject *resultobj = 0;
10395 int arg1 ;
10396 wxCursor *result = 0 ;
10397 int val1 ;
10398 int ecode1 = 0 ;
10399 PyObject * obj0 = 0 ;
10400 char * kwnames[] = {
10401 (char *) "id", NULL
10402 };
10403
10404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10405 ecode1 = SWIG_AsVal_int(obj0, &val1);
10406 if (!SWIG_IsOK(ecode1)) {
10407 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10408 }
10409 arg1 = static_cast< int >(val1);
10410 {
10411 if (!wxPyCheckForApp()) SWIG_fail;
10412 PyThreadState* __tstate = wxPyBeginAllowThreads();
10413 result = (wxCursor *)new wxCursor(arg1);
10414 wxPyEndAllowThreads(__tstate);
10415 if (PyErr_Occurred()) SWIG_fail;
10416 }
10417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10418 return resultobj;
10419 fail:
10420 return NULL;
10421 }
10422
10423
10424 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10425 PyObject *resultobj = 0;
10426 wxImage *arg1 = 0 ;
10427 wxCursor *result = 0 ;
10428 void *argp1 = 0 ;
10429 int res1 = 0 ;
10430 PyObject * obj0 = 0 ;
10431 char * kwnames[] = {
10432 (char *) "image", NULL
10433 };
10434
10435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10436 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10437 if (!SWIG_IsOK(res1)) {
10438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10439 }
10440 if (!argp1) {
10441 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10442 }
10443 arg1 = reinterpret_cast< wxImage * >(argp1);
10444 {
10445 if (!wxPyCheckForApp()) SWIG_fail;
10446 PyThreadState* __tstate = wxPyBeginAllowThreads();
10447 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10448 wxPyEndAllowThreads(__tstate);
10449 if (PyErr_Occurred()) SWIG_fail;
10450 }
10451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10452 return resultobj;
10453 fail:
10454 return NULL;
10455 }
10456
10457
10458 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10459 PyObject *resultobj = 0;
10460 wxCursor *arg1 = (wxCursor *) 0 ;
10461 bool result;
10462 void *argp1 = 0 ;
10463 int res1 = 0 ;
10464 PyObject *swig_obj[1] ;
10465
10466 if (!args) SWIG_fail;
10467 swig_obj[0] = args;
10468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10469 if (!SWIG_IsOK(res1)) {
10470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10471 }
10472 arg1 = reinterpret_cast< wxCursor * >(argp1);
10473 {
10474 PyThreadState* __tstate = wxPyBeginAllowThreads();
10475 result = (bool)(arg1)->IsOk();
10476 wxPyEndAllowThreads(__tstate);
10477 if (PyErr_Occurred()) SWIG_fail;
10478 }
10479 {
10480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10481 }
10482 return resultobj;
10483 fail:
10484 return NULL;
10485 }
10486
10487
10488 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10489 PyObject *obj;
10490 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10491 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10492 return SWIG_Py_Void();
10493 }
10494
10495 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10496 return SWIG_Python_InitShadowInstance(args);
10497 }
10498
10499 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10500 PyObject *resultobj = 0;
10501 int arg1 = (int) 0 ;
10502 int arg2 = (int) 0 ;
10503 int arg3 = (int) 0 ;
10504 int arg4 = (int) 0 ;
10505 wxRegion *result = 0 ;
10506 int val1 ;
10507 int ecode1 = 0 ;
10508 int val2 ;
10509 int ecode2 = 0 ;
10510 int val3 ;
10511 int ecode3 = 0 ;
10512 int val4 ;
10513 int ecode4 = 0 ;
10514 PyObject * obj0 = 0 ;
10515 PyObject * obj1 = 0 ;
10516 PyObject * obj2 = 0 ;
10517 PyObject * obj3 = 0 ;
10518 char * kwnames[] = {
10519 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10520 };
10521
10522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10523 if (obj0) {
10524 ecode1 = SWIG_AsVal_int(obj0, &val1);
10525 if (!SWIG_IsOK(ecode1)) {
10526 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10527 }
10528 arg1 = static_cast< int >(val1);
10529 }
10530 if (obj1) {
10531 ecode2 = SWIG_AsVal_int(obj1, &val2);
10532 if (!SWIG_IsOK(ecode2)) {
10533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10534 }
10535 arg2 = static_cast< int >(val2);
10536 }
10537 if (obj2) {
10538 ecode3 = SWIG_AsVal_int(obj2, &val3);
10539 if (!SWIG_IsOK(ecode3)) {
10540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10541 }
10542 arg3 = static_cast< int >(val3);
10543 }
10544 if (obj3) {
10545 ecode4 = SWIG_AsVal_int(obj3, &val4);
10546 if (!SWIG_IsOK(ecode4)) {
10547 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10548 }
10549 arg4 = static_cast< int >(val4);
10550 }
10551 {
10552 if (!wxPyCheckForApp()) SWIG_fail;
10553 PyThreadState* __tstate = wxPyBeginAllowThreads();
10554 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10555 wxPyEndAllowThreads(__tstate);
10556 if (PyErr_Occurred()) SWIG_fail;
10557 }
10558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10559 return resultobj;
10560 fail:
10561 return NULL;
10562 }
10563
10564
10565 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10566 PyObject *resultobj = 0;
10567 wxBitmap *arg1 = 0 ;
10568 wxRegion *result = 0 ;
10569 void *argp1 = 0 ;
10570 int res1 = 0 ;
10571 PyObject * obj0 = 0 ;
10572 char * kwnames[] = {
10573 (char *) "bmp", NULL
10574 };
10575
10576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10577 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10578 if (!SWIG_IsOK(res1)) {
10579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10580 }
10581 if (!argp1) {
10582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10583 }
10584 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10585 {
10586 if (!wxPyCheckForApp()) SWIG_fail;
10587 PyThreadState* __tstate = wxPyBeginAllowThreads();
10588 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10589 wxPyEndAllowThreads(__tstate);
10590 if (PyErr_Occurred()) SWIG_fail;
10591 }
10592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10593 return resultobj;
10594 fail:
10595 return NULL;
10596 }
10597
10598
10599 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10600 PyObject *resultobj = 0;
10601 wxBitmap *arg1 = 0 ;
10602 wxColour *arg2 = 0 ;
10603 int arg3 = (int) 0 ;
10604 wxRegion *result = 0 ;
10605 void *argp1 = 0 ;
10606 int res1 = 0 ;
10607 wxColour temp2 ;
10608 int val3 ;
10609 int ecode3 = 0 ;
10610 PyObject * obj0 = 0 ;
10611 PyObject * obj1 = 0 ;
10612 PyObject * obj2 = 0 ;
10613 char * kwnames[] = {
10614 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10615 };
10616
10617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10618 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10619 if (!SWIG_IsOK(res1)) {
10620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10621 }
10622 if (!argp1) {
10623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10624 }
10625 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10626 {
10627 arg2 = &temp2;
10628 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10629 }
10630 if (obj2) {
10631 ecode3 = SWIG_AsVal_int(obj2, &val3);
10632 if (!SWIG_IsOK(ecode3)) {
10633 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10634 }
10635 arg3 = static_cast< int >(val3);
10636 }
10637 {
10638 if (!wxPyCheckForApp()) SWIG_fail;
10639 PyThreadState* __tstate = wxPyBeginAllowThreads();
10640 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10641 wxPyEndAllowThreads(__tstate);
10642 if (PyErr_Occurred()) SWIG_fail;
10643 }
10644 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10645 return resultobj;
10646 fail:
10647 return NULL;
10648 }
10649
10650
10651 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10652 PyObject *resultobj = 0;
10653 int arg1 ;
10654 wxPoint *arg2 = (wxPoint *) 0 ;
10655 int arg3 = (int) wxWINDING_RULE ;
10656 wxRegion *result = 0 ;
10657 int val3 ;
10658 int ecode3 = 0 ;
10659 PyObject * obj0 = 0 ;
10660 PyObject * obj1 = 0 ;
10661 char * kwnames[] = {
10662 (char *) "points",(char *) "fillStyle", NULL
10663 };
10664
10665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10666 {
10667 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10668 if (arg2 == NULL) SWIG_fail;
10669 }
10670 if (obj1) {
10671 ecode3 = SWIG_AsVal_int(obj1, &val3);
10672 if (!SWIG_IsOK(ecode3)) {
10673 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10674 }
10675 arg3 = static_cast< int >(val3);
10676 }
10677 {
10678 if (!wxPyCheckForApp()) SWIG_fail;
10679 PyThreadState* __tstate = wxPyBeginAllowThreads();
10680 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10681 wxPyEndAllowThreads(__tstate);
10682 if (PyErr_Occurred()) SWIG_fail;
10683 }
10684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10685 {
10686 if (arg2) delete [] arg2;
10687 }
10688 return resultobj;
10689 fail:
10690 {
10691 if (arg2) delete [] arg2;
10692 }
10693 return NULL;
10694 }
10695
10696
10697 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10698 PyObject *resultobj = 0;
10699 wxRegion *arg1 = (wxRegion *) 0 ;
10700 void *argp1 = 0 ;
10701 int res1 = 0 ;
10702 PyObject *swig_obj[1] ;
10703
10704 if (!args) SWIG_fail;
10705 swig_obj[0] = args;
10706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10707 if (!SWIG_IsOK(res1)) {
10708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10709 }
10710 arg1 = reinterpret_cast< wxRegion * >(argp1);
10711 {
10712 PyThreadState* __tstate = wxPyBeginAllowThreads();
10713 delete arg1;
10714
10715 wxPyEndAllowThreads(__tstate);
10716 if (PyErr_Occurred()) SWIG_fail;
10717 }
10718 resultobj = SWIG_Py_Void();
10719 return resultobj;
10720 fail:
10721 return NULL;
10722 }
10723
10724
10725 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10726 PyObject *resultobj = 0;
10727 wxRegion *arg1 = (wxRegion *) 0 ;
10728 void *argp1 = 0 ;
10729 int res1 = 0 ;
10730 PyObject *swig_obj[1] ;
10731
10732 if (!args) SWIG_fail;
10733 swig_obj[0] = args;
10734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10735 if (!SWIG_IsOK(res1)) {
10736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10737 }
10738 arg1 = reinterpret_cast< wxRegion * >(argp1);
10739 {
10740 PyThreadState* __tstate = wxPyBeginAllowThreads();
10741 (arg1)->Clear();
10742 wxPyEndAllowThreads(__tstate);
10743 if (PyErr_Occurred()) SWIG_fail;
10744 }
10745 resultobj = SWIG_Py_Void();
10746 return resultobj;
10747 fail:
10748 return NULL;
10749 }
10750
10751
10752 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10753 PyObject *resultobj = 0;
10754 wxRegion *arg1 = (wxRegion *) 0 ;
10755 int arg2 ;
10756 int arg3 ;
10757 bool result;
10758 void *argp1 = 0 ;
10759 int res1 = 0 ;
10760 int val2 ;
10761 int ecode2 = 0 ;
10762 int val3 ;
10763 int ecode3 = 0 ;
10764 PyObject * obj0 = 0 ;
10765 PyObject * obj1 = 0 ;
10766 PyObject * obj2 = 0 ;
10767 char * kwnames[] = {
10768 (char *) "self",(char *) "x",(char *) "y", NULL
10769 };
10770
10771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10773 if (!SWIG_IsOK(res1)) {
10774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10775 }
10776 arg1 = reinterpret_cast< wxRegion * >(argp1);
10777 ecode2 = SWIG_AsVal_int(obj1, &val2);
10778 if (!SWIG_IsOK(ecode2)) {
10779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10780 }
10781 arg2 = static_cast< int >(val2);
10782 ecode3 = SWIG_AsVal_int(obj2, &val3);
10783 if (!SWIG_IsOK(ecode3)) {
10784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10785 }
10786 arg3 = static_cast< int >(val3);
10787 {
10788 PyThreadState* __tstate = wxPyBeginAllowThreads();
10789 result = (bool)(arg1)->Offset(arg2,arg3);
10790 wxPyEndAllowThreads(__tstate);
10791 if (PyErr_Occurred()) SWIG_fail;
10792 }
10793 {
10794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10795 }
10796 return resultobj;
10797 fail:
10798 return NULL;
10799 }
10800
10801
10802 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10803 PyObject *resultobj = 0;
10804 wxRegion *arg1 = (wxRegion *) 0 ;
10805 int arg2 ;
10806 int arg3 ;
10807 wxRegionContain result;
10808 void *argp1 = 0 ;
10809 int res1 = 0 ;
10810 int val2 ;
10811 int ecode2 = 0 ;
10812 int val3 ;
10813 int ecode3 = 0 ;
10814 PyObject * obj0 = 0 ;
10815 PyObject * obj1 = 0 ;
10816 PyObject * obj2 = 0 ;
10817 char * kwnames[] = {
10818 (char *) "self",(char *) "x",(char *) "y", NULL
10819 };
10820
10821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10823 if (!SWIG_IsOK(res1)) {
10824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10825 }
10826 arg1 = reinterpret_cast< wxRegion * >(argp1);
10827 ecode2 = SWIG_AsVal_int(obj1, &val2);
10828 if (!SWIG_IsOK(ecode2)) {
10829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10830 }
10831 arg2 = static_cast< int >(val2);
10832 ecode3 = SWIG_AsVal_int(obj2, &val3);
10833 if (!SWIG_IsOK(ecode3)) {
10834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10835 }
10836 arg3 = static_cast< int >(val3);
10837 {
10838 PyThreadState* __tstate = wxPyBeginAllowThreads();
10839 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10840 wxPyEndAllowThreads(__tstate);
10841 if (PyErr_Occurred()) SWIG_fail;
10842 }
10843 resultobj = SWIG_From_int(static_cast< int >(result));
10844 return resultobj;
10845 fail:
10846 return NULL;
10847 }
10848
10849
10850 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10851 PyObject *resultobj = 0;
10852 wxRegion *arg1 = (wxRegion *) 0 ;
10853 wxPoint *arg2 = 0 ;
10854 wxRegionContain result;
10855 void *argp1 = 0 ;
10856 int res1 = 0 ;
10857 wxPoint temp2 ;
10858 PyObject * obj0 = 0 ;
10859 PyObject * obj1 = 0 ;
10860 char * kwnames[] = {
10861 (char *) "self",(char *) "pt", NULL
10862 };
10863
10864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10866 if (!SWIG_IsOK(res1)) {
10867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10868 }
10869 arg1 = reinterpret_cast< wxRegion * >(argp1);
10870 {
10871 arg2 = &temp2;
10872 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10873 }
10874 {
10875 PyThreadState* __tstate = wxPyBeginAllowThreads();
10876 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10877 wxPyEndAllowThreads(__tstate);
10878 if (PyErr_Occurred()) SWIG_fail;
10879 }
10880 resultobj = SWIG_From_int(static_cast< int >(result));
10881 return resultobj;
10882 fail:
10883 return NULL;
10884 }
10885
10886
10887 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10888 PyObject *resultobj = 0;
10889 wxRegion *arg1 = (wxRegion *) 0 ;
10890 wxRect *arg2 = 0 ;
10891 wxRegionContain result;
10892 void *argp1 = 0 ;
10893 int res1 = 0 ;
10894 wxRect temp2 ;
10895 PyObject * obj0 = 0 ;
10896 PyObject * obj1 = 0 ;
10897 char * kwnames[] = {
10898 (char *) "self",(char *) "rect", NULL
10899 };
10900
10901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10903 if (!SWIG_IsOK(res1)) {
10904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10905 }
10906 arg1 = reinterpret_cast< wxRegion * >(argp1);
10907 {
10908 arg2 = &temp2;
10909 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10910 }
10911 {
10912 PyThreadState* __tstate = wxPyBeginAllowThreads();
10913 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10914 wxPyEndAllowThreads(__tstate);
10915 if (PyErr_Occurred()) SWIG_fail;
10916 }
10917 resultobj = SWIG_From_int(static_cast< int >(result));
10918 return resultobj;
10919 fail:
10920 return NULL;
10921 }
10922
10923
10924 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10925 PyObject *resultobj = 0;
10926 wxRegion *arg1 = (wxRegion *) 0 ;
10927 int arg2 ;
10928 int arg3 ;
10929 int arg4 ;
10930 int arg5 ;
10931 wxRegionContain result;
10932 void *argp1 = 0 ;
10933 int res1 = 0 ;
10934 int val2 ;
10935 int ecode2 = 0 ;
10936 int val3 ;
10937 int ecode3 = 0 ;
10938 int val4 ;
10939 int ecode4 = 0 ;
10940 int val5 ;
10941 int ecode5 = 0 ;
10942 PyObject * obj0 = 0 ;
10943 PyObject * obj1 = 0 ;
10944 PyObject * obj2 = 0 ;
10945 PyObject * obj3 = 0 ;
10946 PyObject * obj4 = 0 ;
10947 char * kwnames[] = {
10948 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10949 };
10950
10951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10953 if (!SWIG_IsOK(res1)) {
10954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10955 }
10956 arg1 = reinterpret_cast< wxRegion * >(argp1);
10957 ecode2 = SWIG_AsVal_int(obj1, &val2);
10958 if (!SWIG_IsOK(ecode2)) {
10959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10960 }
10961 arg2 = static_cast< int >(val2);
10962 ecode3 = SWIG_AsVal_int(obj2, &val3);
10963 if (!SWIG_IsOK(ecode3)) {
10964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10965 }
10966 arg3 = static_cast< int >(val3);
10967 ecode4 = SWIG_AsVal_int(obj3, &val4);
10968 if (!SWIG_IsOK(ecode4)) {
10969 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10970 }
10971 arg4 = static_cast< int >(val4);
10972 ecode5 = SWIG_AsVal_int(obj4, &val5);
10973 if (!SWIG_IsOK(ecode5)) {
10974 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10975 }
10976 arg5 = static_cast< int >(val5);
10977 {
10978 PyThreadState* __tstate = wxPyBeginAllowThreads();
10979 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10980 wxPyEndAllowThreads(__tstate);
10981 if (PyErr_Occurred()) SWIG_fail;
10982 }
10983 resultobj = SWIG_From_int(static_cast< int >(result));
10984 return resultobj;
10985 fail:
10986 return NULL;
10987 }
10988
10989
10990 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10991 PyObject *resultobj = 0;
10992 wxRegion *arg1 = (wxRegion *) 0 ;
10993 wxRect result;
10994 void *argp1 = 0 ;
10995 int res1 = 0 ;
10996 PyObject *swig_obj[1] ;
10997
10998 if (!args) SWIG_fail;
10999 swig_obj[0] = args;
11000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11001 if (!SWIG_IsOK(res1)) {
11002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11003 }
11004 arg1 = reinterpret_cast< wxRegion * >(argp1);
11005 {
11006 PyThreadState* __tstate = wxPyBeginAllowThreads();
11007 result = (arg1)->GetBox();
11008 wxPyEndAllowThreads(__tstate);
11009 if (PyErr_Occurred()) SWIG_fail;
11010 }
11011 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11012 return resultobj;
11013 fail:
11014 return NULL;
11015 }
11016
11017
11018 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11019 PyObject *resultobj = 0;
11020 wxRegion *arg1 = (wxRegion *) 0 ;
11021 int arg2 ;
11022 int arg3 ;
11023 int arg4 ;
11024 int arg5 ;
11025 bool result;
11026 void *argp1 = 0 ;
11027 int res1 = 0 ;
11028 int val2 ;
11029 int ecode2 = 0 ;
11030 int val3 ;
11031 int ecode3 = 0 ;
11032 int val4 ;
11033 int ecode4 = 0 ;
11034 int val5 ;
11035 int ecode5 = 0 ;
11036 PyObject * obj0 = 0 ;
11037 PyObject * obj1 = 0 ;
11038 PyObject * obj2 = 0 ;
11039 PyObject * obj3 = 0 ;
11040 PyObject * obj4 = 0 ;
11041 char * kwnames[] = {
11042 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11043 };
11044
11045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11047 if (!SWIG_IsOK(res1)) {
11048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11049 }
11050 arg1 = reinterpret_cast< wxRegion * >(argp1);
11051 ecode2 = SWIG_AsVal_int(obj1, &val2);
11052 if (!SWIG_IsOK(ecode2)) {
11053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11054 }
11055 arg2 = static_cast< int >(val2);
11056 ecode3 = SWIG_AsVal_int(obj2, &val3);
11057 if (!SWIG_IsOK(ecode3)) {
11058 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11059 }
11060 arg3 = static_cast< int >(val3);
11061 ecode4 = SWIG_AsVal_int(obj3, &val4);
11062 if (!SWIG_IsOK(ecode4)) {
11063 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11064 }
11065 arg4 = static_cast< int >(val4);
11066 ecode5 = SWIG_AsVal_int(obj4, &val5);
11067 if (!SWIG_IsOK(ecode5)) {
11068 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11069 }
11070 arg5 = static_cast< int >(val5);
11071 {
11072 PyThreadState* __tstate = wxPyBeginAllowThreads();
11073 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11074 wxPyEndAllowThreads(__tstate);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 }
11077 {
11078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11079 }
11080 return resultobj;
11081 fail:
11082 return NULL;
11083 }
11084
11085
11086 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11087 PyObject *resultobj = 0;
11088 wxRegion *arg1 = (wxRegion *) 0 ;
11089 wxRect *arg2 = 0 ;
11090 bool result;
11091 void *argp1 = 0 ;
11092 int res1 = 0 ;
11093 wxRect temp2 ;
11094 PyObject * obj0 = 0 ;
11095 PyObject * obj1 = 0 ;
11096 char * kwnames[] = {
11097 (char *) "self",(char *) "rect", NULL
11098 };
11099
11100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11102 if (!SWIG_IsOK(res1)) {
11103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11104 }
11105 arg1 = reinterpret_cast< wxRegion * >(argp1);
11106 {
11107 arg2 = &temp2;
11108 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11109 }
11110 {
11111 PyThreadState* __tstate = wxPyBeginAllowThreads();
11112 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11113 wxPyEndAllowThreads(__tstate);
11114 if (PyErr_Occurred()) SWIG_fail;
11115 }
11116 {
11117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11118 }
11119 return resultobj;
11120 fail:
11121 return NULL;
11122 }
11123
11124
11125 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11126 PyObject *resultobj = 0;
11127 wxRegion *arg1 = (wxRegion *) 0 ;
11128 wxRegion *arg2 = 0 ;
11129 bool result;
11130 void *argp1 = 0 ;
11131 int res1 = 0 ;
11132 void *argp2 = 0 ;
11133 int res2 = 0 ;
11134 PyObject * obj0 = 0 ;
11135 PyObject * obj1 = 0 ;
11136 char * kwnames[] = {
11137 (char *) "self",(char *) "region", NULL
11138 };
11139
11140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11142 if (!SWIG_IsOK(res1)) {
11143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11144 }
11145 arg1 = reinterpret_cast< wxRegion * >(argp1);
11146 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11147 if (!SWIG_IsOK(res2)) {
11148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11149 }
11150 if (!argp2) {
11151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11152 }
11153 arg2 = reinterpret_cast< wxRegion * >(argp2);
11154 {
11155 PyThreadState* __tstate = wxPyBeginAllowThreads();
11156 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11157 wxPyEndAllowThreads(__tstate);
11158 if (PyErr_Occurred()) SWIG_fail;
11159 }
11160 {
11161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11162 }
11163 return resultobj;
11164 fail:
11165 return NULL;
11166 }
11167
11168
11169 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11170 PyObject *resultobj = 0;
11171 wxRegion *arg1 = (wxRegion *) 0 ;
11172 bool result;
11173 void *argp1 = 0 ;
11174 int res1 = 0 ;
11175 PyObject *swig_obj[1] ;
11176
11177 if (!args) SWIG_fail;
11178 swig_obj[0] = args;
11179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11180 if (!SWIG_IsOK(res1)) {
11181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11182 }
11183 arg1 = reinterpret_cast< wxRegion * >(argp1);
11184 {
11185 PyThreadState* __tstate = wxPyBeginAllowThreads();
11186 result = (bool)(arg1)->IsEmpty();
11187 wxPyEndAllowThreads(__tstate);
11188 if (PyErr_Occurred()) SWIG_fail;
11189 }
11190 {
11191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11192 }
11193 return resultobj;
11194 fail:
11195 return NULL;
11196 }
11197
11198
11199 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11200 PyObject *resultobj = 0;
11201 wxRegion *arg1 = (wxRegion *) 0 ;
11202 wxRegion *arg2 = 0 ;
11203 bool result;
11204 void *argp1 = 0 ;
11205 int res1 = 0 ;
11206 void *argp2 = 0 ;
11207 int res2 = 0 ;
11208 PyObject * obj0 = 0 ;
11209 PyObject * obj1 = 0 ;
11210 char * kwnames[] = {
11211 (char *) "self",(char *) "region", NULL
11212 };
11213
11214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11216 if (!SWIG_IsOK(res1)) {
11217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11218 }
11219 arg1 = reinterpret_cast< wxRegion * >(argp1);
11220 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11221 if (!SWIG_IsOK(res2)) {
11222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11223 }
11224 if (!argp2) {
11225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11226 }
11227 arg2 = reinterpret_cast< wxRegion * >(argp2);
11228 {
11229 PyThreadState* __tstate = wxPyBeginAllowThreads();
11230 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11231 wxPyEndAllowThreads(__tstate);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 }
11234 {
11235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11236 }
11237 return resultobj;
11238 fail:
11239 return NULL;
11240 }
11241
11242
11243 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11244 PyObject *resultobj = 0;
11245 wxRegion *arg1 = (wxRegion *) 0 ;
11246 int arg2 ;
11247 int arg3 ;
11248 int arg4 ;
11249 int arg5 ;
11250 bool result;
11251 void *argp1 = 0 ;
11252 int res1 = 0 ;
11253 int val2 ;
11254 int ecode2 = 0 ;
11255 int val3 ;
11256 int ecode3 = 0 ;
11257 int val4 ;
11258 int ecode4 = 0 ;
11259 int val5 ;
11260 int ecode5 = 0 ;
11261 PyObject * obj0 = 0 ;
11262 PyObject * obj1 = 0 ;
11263 PyObject * obj2 = 0 ;
11264 PyObject * obj3 = 0 ;
11265 PyObject * obj4 = 0 ;
11266 char * kwnames[] = {
11267 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11268 };
11269
11270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11272 if (!SWIG_IsOK(res1)) {
11273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11274 }
11275 arg1 = reinterpret_cast< wxRegion * >(argp1);
11276 ecode2 = SWIG_AsVal_int(obj1, &val2);
11277 if (!SWIG_IsOK(ecode2)) {
11278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11279 }
11280 arg2 = static_cast< int >(val2);
11281 ecode3 = SWIG_AsVal_int(obj2, &val3);
11282 if (!SWIG_IsOK(ecode3)) {
11283 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11284 }
11285 arg3 = static_cast< int >(val3);
11286 ecode4 = SWIG_AsVal_int(obj3, &val4);
11287 if (!SWIG_IsOK(ecode4)) {
11288 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11289 }
11290 arg4 = static_cast< int >(val4);
11291 ecode5 = SWIG_AsVal_int(obj4, &val5);
11292 if (!SWIG_IsOK(ecode5)) {
11293 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11294 }
11295 arg5 = static_cast< int >(val5);
11296 {
11297 PyThreadState* __tstate = wxPyBeginAllowThreads();
11298 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11299 wxPyEndAllowThreads(__tstate);
11300 if (PyErr_Occurred()) SWIG_fail;
11301 }
11302 {
11303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11304 }
11305 return resultobj;
11306 fail:
11307 return NULL;
11308 }
11309
11310
11311 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11312 PyObject *resultobj = 0;
11313 wxRegion *arg1 = (wxRegion *) 0 ;
11314 wxRect *arg2 = 0 ;
11315 bool result;
11316 void *argp1 = 0 ;
11317 int res1 = 0 ;
11318 wxRect temp2 ;
11319 PyObject * obj0 = 0 ;
11320 PyObject * obj1 = 0 ;
11321 char * kwnames[] = {
11322 (char *) "self",(char *) "rect", NULL
11323 };
11324
11325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11327 if (!SWIG_IsOK(res1)) {
11328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11329 }
11330 arg1 = reinterpret_cast< wxRegion * >(argp1);
11331 {
11332 arg2 = &temp2;
11333 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11334 }
11335 {
11336 PyThreadState* __tstate = wxPyBeginAllowThreads();
11337 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11338 wxPyEndAllowThreads(__tstate);
11339 if (PyErr_Occurred()) SWIG_fail;
11340 }
11341 {
11342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11343 }
11344 return resultobj;
11345 fail:
11346 return NULL;
11347 }
11348
11349
11350 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11351 PyObject *resultobj = 0;
11352 wxRegion *arg1 = (wxRegion *) 0 ;
11353 wxRegion *arg2 = 0 ;
11354 bool result;
11355 void *argp1 = 0 ;
11356 int res1 = 0 ;
11357 void *argp2 = 0 ;
11358 int res2 = 0 ;
11359 PyObject * obj0 = 0 ;
11360 PyObject * obj1 = 0 ;
11361 char * kwnames[] = {
11362 (char *) "self",(char *) "region", NULL
11363 };
11364
11365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11367 if (!SWIG_IsOK(res1)) {
11368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11369 }
11370 arg1 = reinterpret_cast< wxRegion * >(argp1);
11371 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11372 if (!SWIG_IsOK(res2)) {
11373 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11374 }
11375 if (!argp2) {
11376 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11377 }
11378 arg2 = reinterpret_cast< wxRegion * >(argp2);
11379 {
11380 PyThreadState* __tstate = wxPyBeginAllowThreads();
11381 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11382 wxPyEndAllowThreads(__tstate);
11383 if (PyErr_Occurred()) SWIG_fail;
11384 }
11385 {
11386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11387 }
11388 return resultobj;
11389 fail:
11390 return NULL;
11391 }
11392
11393
11394 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11395 PyObject *resultobj = 0;
11396 wxRegion *arg1 = (wxRegion *) 0 ;
11397 int arg2 ;
11398 int arg3 ;
11399 int arg4 ;
11400 int arg5 ;
11401 bool result;
11402 void *argp1 = 0 ;
11403 int res1 = 0 ;
11404 int val2 ;
11405 int ecode2 = 0 ;
11406 int val3 ;
11407 int ecode3 = 0 ;
11408 int val4 ;
11409 int ecode4 = 0 ;
11410 int val5 ;
11411 int ecode5 = 0 ;
11412 PyObject * obj0 = 0 ;
11413 PyObject * obj1 = 0 ;
11414 PyObject * obj2 = 0 ;
11415 PyObject * obj3 = 0 ;
11416 PyObject * obj4 = 0 ;
11417 char * kwnames[] = {
11418 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11419 };
11420
11421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11423 if (!SWIG_IsOK(res1)) {
11424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11425 }
11426 arg1 = reinterpret_cast< wxRegion * >(argp1);
11427 ecode2 = SWIG_AsVal_int(obj1, &val2);
11428 if (!SWIG_IsOK(ecode2)) {
11429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11430 }
11431 arg2 = static_cast< int >(val2);
11432 ecode3 = SWIG_AsVal_int(obj2, &val3);
11433 if (!SWIG_IsOK(ecode3)) {
11434 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11435 }
11436 arg3 = static_cast< int >(val3);
11437 ecode4 = SWIG_AsVal_int(obj3, &val4);
11438 if (!SWIG_IsOK(ecode4)) {
11439 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11440 }
11441 arg4 = static_cast< int >(val4);
11442 ecode5 = SWIG_AsVal_int(obj4, &val5);
11443 if (!SWIG_IsOK(ecode5)) {
11444 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11445 }
11446 arg5 = static_cast< int >(val5);
11447 {
11448 PyThreadState* __tstate = wxPyBeginAllowThreads();
11449 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11450 wxPyEndAllowThreads(__tstate);
11451 if (PyErr_Occurred()) SWIG_fail;
11452 }
11453 {
11454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11455 }
11456 return resultobj;
11457 fail:
11458 return NULL;
11459 }
11460
11461
11462 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11463 PyObject *resultobj = 0;
11464 wxRegion *arg1 = (wxRegion *) 0 ;
11465 wxRect *arg2 = 0 ;
11466 bool result;
11467 void *argp1 = 0 ;
11468 int res1 = 0 ;
11469 wxRect temp2 ;
11470 PyObject * obj0 = 0 ;
11471 PyObject * obj1 = 0 ;
11472 char * kwnames[] = {
11473 (char *) "self",(char *) "rect", NULL
11474 };
11475
11476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11478 if (!SWIG_IsOK(res1)) {
11479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11480 }
11481 arg1 = reinterpret_cast< wxRegion * >(argp1);
11482 {
11483 arg2 = &temp2;
11484 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11485 }
11486 {
11487 PyThreadState* __tstate = wxPyBeginAllowThreads();
11488 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11489 wxPyEndAllowThreads(__tstate);
11490 if (PyErr_Occurred()) SWIG_fail;
11491 }
11492 {
11493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11494 }
11495 return resultobj;
11496 fail:
11497 return NULL;
11498 }
11499
11500
11501 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11502 PyObject *resultobj = 0;
11503 wxRegion *arg1 = (wxRegion *) 0 ;
11504 wxRegion *arg2 = 0 ;
11505 bool result;
11506 void *argp1 = 0 ;
11507 int res1 = 0 ;
11508 void *argp2 = 0 ;
11509 int res2 = 0 ;
11510 PyObject * obj0 = 0 ;
11511 PyObject * obj1 = 0 ;
11512 char * kwnames[] = {
11513 (char *) "self",(char *) "region", NULL
11514 };
11515
11516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11518 if (!SWIG_IsOK(res1)) {
11519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11520 }
11521 arg1 = reinterpret_cast< wxRegion * >(argp1);
11522 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11523 if (!SWIG_IsOK(res2)) {
11524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11525 }
11526 if (!argp2) {
11527 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11528 }
11529 arg2 = reinterpret_cast< wxRegion * >(argp2);
11530 {
11531 PyThreadState* __tstate = wxPyBeginAllowThreads();
11532 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11533 wxPyEndAllowThreads(__tstate);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 }
11536 {
11537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11538 }
11539 return resultobj;
11540 fail:
11541 return NULL;
11542 }
11543
11544
11545 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11546 PyObject *resultobj = 0;
11547 wxRegion *arg1 = (wxRegion *) 0 ;
11548 int arg2 ;
11549 int arg3 ;
11550 int arg4 ;
11551 int arg5 ;
11552 bool result;
11553 void *argp1 = 0 ;
11554 int res1 = 0 ;
11555 int val2 ;
11556 int ecode2 = 0 ;
11557 int val3 ;
11558 int ecode3 = 0 ;
11559 int val4 ;
11560 int ecode4 = 0 ;
11561 int val5 ;
11562 int ecode5 = 0 ;
11563 PyObject * obj0 = 0 ;
11564 PyObject * obj1 = 0 ;
11565 PyObject * obj2 = 0 ;
11566 PyObject * obj3 = 0 ;
11567 PyObject * obj4 = 0 ;
11568 char * kwnames[] = {
11569 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11570 };
11571
11572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11574 if (!SWIG_IsOK(res1)) {
11575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11576 }
11577 arg1 = reinterpret_cast< wxRegion * >(argp1);
11578 ecode2 = SWIG_AsVal_int(obj1, &val2);
11579 if (!SWIG_IsOK(ecode2)) {
11580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11581 }
11582 arg2 = static_cast< int >(val2);
11583 ecode3 = SWIG_AsVal_int(obj2, &val3);
11584 if (!SWIG_IsOK(ecode3)) {
11585 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11586 }
11587 arg3 = static_cast< int >(val3);
11588 ecode4 = SWIG_AsVal_int(obj3, &val4);
11589 if (!SWIG_IsOK(ecode4)) {
11590 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11591 }
11592 arg4 = static_cast< int >(val4);
11593 ecode5 = SWIG_AsVal_int(obj4, &val5);
11594 if (!SWIG_IsOK(ecode5)) {
11595 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11596 }
11597 arg5 = static_cast< int >(val5);
11598 {
11599 PyThreadState* __tstate = wxPyBeginAllowThreads();
11600 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11601 wxPyEndAllowThreads(__tstate);
11602 if (PyErr_Occurred()) SWIG_fail;
11603 }
11604 {
11605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11606 }
11607 return resultobj;
11608 fail:
11609 return NULL;
11610 }
11611
11612
11613 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11614 PyObject *resultobj = 0;
11615 wxRegion *arg1 = (wxRegion *) 0 ;
11616 wxRect *arg2 = 0 ;
11617 bool result;
11618 void *argp1 = 0 ;
11619 int res1 = 0 ;
11620 wxRect temp2 ;
11621 PyObject * obj0 = 0 ;
11622 PyObject * obj1 = 0 ;
11623 char * kwnames[] = {
11624 (char *) "self",(char *) "rect", NULL
11625 };
11626
11627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11629 if (!SWIG_IsOK(res1)) {
11630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11631 }
11632 arg1 = reinterpret_cast< wxRegion * >(argp1);
11633 {
11634 arg2 = &temp2;
11635 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11636 }
11637 {
11638 PyThreadState* __tstate = wxPyBeginAllowThreads();
11639 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11640 wxPyEndAllowThreads(__tstate);
11641 if (PyErr_Occurred()) SWIG_fail;
11642 }
11643 {
11644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11645 }
11646 return resultobj;
11647 fail:
11648 return NULL;
11649 }
11650
11651
11652 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11653 PyObject *resultobj = 0;
11654 wxRegion *arg1 = (wxRegion *) 0 ;
11655 wxRegion *arg2 = 0 ;
11656 bool result;
11657 void *argp1 = 0 ;
11658 int res1 = 0 ;
11659 void *argp2 = 0 ;
11660 int res2 = 0 ;
11661 PyObject * obj0 = 0 ;
11662 PyObject * obj1 = 0 ;
11663 char * kwnames[] = {
11664 (char *) "self",(char *) "region", NULL
11665 };
11666
11667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11669 if (!SWIG_IsOK(res1)) {
11670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11671 }
11672 arg1 = reinterpret_cast< wxRegion * >(argp1);
11673 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11674 if (!SWIG_IsOK(res2)) {
11675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11676 }
11677 if (!argp2) {
11678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11679 }
11680 arg2 = reinterpret_cast< wxRegion * >(argp2);
11681 {
11682 PyThreadState* __tstate = wxPyBeginAllowThreads();
11683 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11684 wxPyEndAllowThreads(__tstate);
11685 if (PyErr_Occurred()) SWIG_fail;
11686 }
11687 {
11688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11689 }
11690 return resultobj;
11691 fail:
11692 return NULL;
11693 }
11694
11695
11696 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11697 PyObject *resultobj = 0;
11698 wxRegion *arg1 = (wxRegion *) 0 ;
11699 SwigValueWrapper<wxBitmap > result;
11700 void *argp1 = 0 ;
11701 int res1 = 0 ;
11702 PyObject *swig_obj[1] ;
11703
11704 if (!args) SWIG_fail;
11705 swig_obj[0] = args;
11706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11707 if (!SWIG_IsOK(res1)) {
11708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11709 }
11710 arg1 = reinterpret_cast< wxRegion * >(argp1);
11711 {
11712 PyThreadState* __tstate = wxPyBeginAllowThreads();
11713 result = (arg1)->ConvertToBitmap();
11714 wxPyEndAllowThreads(__tstate);
11715 if (PyErr_Occurred()) SWIG_fail;
11716 }
11717 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11718 return resultobj;
11719 fail:
11720 return NULL;
11721 }
11722
11723
11724 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11725 PyObject *resultobj = 0;
11726 wxRegion *arg1 = (wxRegion *) 0 ;
11727 wxBitmap *arg2 = 0 ;
11728 bool result;
11729 void *argp1 = 0 ;
11730 int res1 = 0 ;
11731 void *argp2 = 0 ;
11732 int res2 = 0 ;
11733 PyObject * obj0 = 0 ;
11734 PyObject * obj1 = 0 ;
11735 char * kwnames[] = {
11736 (char *) "self",(char *) "bmp", NULL
11737 };
11738
11739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11741 if (!SWIG_IsOK(res1)) {
11742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11743 }
11744 arg1 = reinterpret_cast< wxRegion * >(argp1);
11745 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11746 if (!SWIG_IsOK(res2)) {
11747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11748 }
11749 if (!argp2) {
11750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11751 }
11752 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11753 {
11754 PyThreadState* __tstate = wxPyBeginAllowThreads();
11755 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11756 wxPyEndAllowThreads(__tstate);
11757 if (PyErr_Occurred()) SWIG_fail;
11758 }
11759 {
11760 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11761 }
11762 return resultobj;
11763 fail:
11764 return NULL;
11765 }
11766
11767
11768 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11769 PyObject *resultobj = 0;
11770 wxRegion *arg1 = (wxRegion *) 0 ;
11771 wxBitmap *arg2 = 0 ;
11772 wxColour *arg3 = 0 ;
11773 int arg4 = (int) 0 ;
11774 bool result;
11775 void *argp1 = 0 ;
11776 int res1 = 0 ;
11777 void *argp2 = 0 ;
11778 int res2 = 0 ;
11779 wxColour temp3 ;
11780 int val4 ;
11781 int ecode4 = 0 ;
11782 PyObject * obj0 = 0 ;
11783 PyObject * obj1 = 0 ;
11784 PyObject * obj2 = 0 ;
11785 PyObject * obj3 = 0 ;
11786 char * kwnames[] = {
11787 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11788 };
11789
11790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11792 if (!SWIG_IsOK(res1)) {
11793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11794 }
11795 arg1 = reinterpret_cast< wxRegion * >(argp1);
11796 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11797 if (!SWIG_IsOK(res2)) {
11798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11799 }
11800 if (!argp2) {
11801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11802 }
11803 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11804 {
11805 arg3 = &temp3;
11806 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11807 }
11808 if (obj3) {
11809 ecode4 = SWIG_AsVal_int(obj3, &val4);
11810 if (!SWIG_IsOK(ecode4)) {
11811 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11812 }
11813 arg4 = static_cast< int >(val4);
11814 }
11815 {
11816 PyThreadState* __tstate = wxPyBeginAllowThreads();
11817 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11818 wxPyEndAllowThreads(__tstate);
11819 if (PyErr_Occurred()) SWIG_fail;
11820 }
11821 {
11822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11823 }
11824 return resultobj;
11825 fail:
11826 return NULL;
11827 }
11828
11829
11830 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11831 PyObject *obj;
11832 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11833 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11834 return SWIG_Py_Void();
11835 }
11836
11837 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11838 return SWIG_Python_InitShadowInstance(args);
11839 }
11840
11841 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11842 PyObject *resultobj = 0;
11843 wxRegion *arg1 = 0 ;
11844 wxRegionIterator *result = 0 ;
11845 void *argp1 = 0 ;
11846 int res1 = 0 ;
11847 PyObject * obj0 = 0 ;
11848 char * kwnames[] = {
11849 (char *) "region", NULL
11850 };
11851
11852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11853 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11854 if (!SWIG_IsOK(res1)) {
11855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11856 }
11857 if (!argp1) {
11858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11859 }
11860 arg1 = reinterpret_cast< wxRegion * >(argp1);
11861 {
11862 if (!wxPyCheckForApp()) SWIG_fail;
11863 PyThreadState* __tstate = wxPyBeginAllowThreads();
11864 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11865 wxPyEndAllowThreads(__tstate);
11866 if (PyErr_Occurred()) SWIG_fail;
11867 }
11868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11869 return resultobj;
11870 fail:
11871 return NULL;
11872 }
11873
11874
11875 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11876 PyObject *resultobj = 0;
11877 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11878 void *argp1 = 0 ;
11879 int res1 = 0 ;
11880 PyObject *swig_obj[1] ;
11881
11882 if (!args) SWIG_fail;
11883 swig_obj[0] = args;
11884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11885 if (!SWIG_IsOK(res1)) {
11886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11887 }
11888 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11889 {
11890 PyThreadState* __tstate = wxPyBeginAllowThreads();
11891 delete arg1;
11892
11893 wxPyEndAllowThreads(__tstate);
11894 if (PyErr_Occurred()) SWIG_fail;
11895 }
11896 resultobj = SWIG_Py_Void();
11897 return resultobj;
11898 fail:
11899 return NULL;
11900 }
11901
11902
11903 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11904 PyObject *resultobj = 0;
11905 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11906 int result;
11907 void *argp1 = 0 ;
11908 int res1 = 0 ;
11909 PyObject *swig_obj[1] ;
11910
11911 if (!args) SWIG_fail;
11912 swig_obj[0] = args;
11913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11914 if (!SWIG_IsOK(res1)) {
11915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11916 }
11917 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11918 {
11919 PyThreadState* __tstate = wxPyBeginAllowThreads();
11920 result = (int)(arg1)->GetX();
11921 wxPyEndAllowThreads(__tstate);
11922 if (PyErr_Occurred()) SWIG_fail;
11923 }
11924 resultobj = SWIG_From_int(static_cast< int >(result));
11925 return resultobj;
11926 fail:
11927 return NULL;
11928 }
11929
11930
11931 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11932 PyObject *resultobj = 0;
11933 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11934 int result;
11935 void *argp1 = 0 ;
11936 int res1 = 0 ;
11937 PyObject *swig_obj[1] ;
11938
11939 if (!args) SWIG_fail;
11940 swig_obj[0] = args;
11941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11942 if (!SWIG_IsOK(res1)) {
11943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11944 }
11945 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11946 {
11947 PyThreadState* __tstate = wxPyBeginAllowThreads();
11948 result = (int)(arg1)->GetY();
11949 wxPyEndAllowThreads(__tstate);
11950 if (PyErr_Occurred()) SWIG_fail;
11951 }
11952 resultobj = SWIG_From_int(static_cast< int >(result));
11953 return resultobj;
11954 fail:
11955 return NULL;
11956 }
11957
11958
11959 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11960 PyObject *resultobj = 0;
11961 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11962 int result;
11963 void *argp1 = 0 ;
11964 int res1 = 0 ;
11965 PyObject *swig_obj[1] ;
11966
11967 if (!args) SWIG_fail;
11968 swig_obj[0] = args;
11969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11970 if (!SWIG_IsOK(res1)) {
11971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11972 }
11973 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11974 {
11975 PyThreadState* __tstate = wxPyBeginAllowThreads();
11976 result = (int)(arg1)->GetW();
11977 wxPyEndAllowThreads(__tstate);
11978 if (PyErr_Occurred()) SWIG_fail;
11979 }
11980 resultobj = SWIG_From_int(static_cast< int >(result));
11981 return resultobj;
11982 fail:
11983 return NULL;
11984 }
11985
11986
11987 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11988 PyObject *resultobj = 0;
11989 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11990 int result;
11991 void *argp1 = 0 ;
11992 int res1 = 0 ;
11993 PyObject *swig_obj[1] ;
11994
11995 if (!args) SWIG_fail;
11996 swig_obj[0] = args;
11997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11998 if (!SWIG_IsOK(res1)) {
11999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12000 }
12001 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12002 {
12003 PyThreadState* __tstate = wxPyBeginAllowThreads();
12004 result = (int)(arg1)->GetWidth();
12005 wxPyEndAllowThreads(__tstate);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
12008 resultobj = SWIG_From_int(static_cast< int >(result));
12009 return resultobj;
12010 fail:
12011 return NULL;
12012 }
12013
12014
12015 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12016 PyObject *resultobj = 0;
12017 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12018 int result;
12019 void *argp1 = 0 ;
12020 int res1 = 0 ;
12021 PyObject *swig_obj[1] ;
12022
12023 if (!args) SWIG_fail;
12024 swig_obj[0] = args;
12025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12026 if (!SWIG_IsOK(res1)) {
12027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12028 }
12029 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12030 {
12031 PyThreadState* __tstate = wxPyBeginAllowThreads();
12032 result = (int)(arg1)->GetH();
12033 wxPyEndAllowThreads(__tstate);
12034 if (PyErr_Occurred()) SWIG_fail;
12035 }
12036 resultobj = SWIG_From_int(static_cast< int >(result));
12037 return resultobj;
12038 fail:
12039 return NULL;
12040 }
12041
12042
12043 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12044 PyObject *resultobj = 0;
12045 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12046 int result;
12047 void *argp1 = 0 ;
12048 int res1 = 0 ;
12049 PyObject *swig_obj[1] ;
12050
12051 if (!args) SWIG_fail;
12052 swig_obj[0] = args;
12053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12054 if (!SWIG_IsOK(res1)) {
12055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12056 }
12057 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12058 {
12059 PyThreadState* __tstate = wxPyBeginAllowThreads();
12060 result = (int)(arg1)->GetHeight();
12061 wxPyEndAllowThreads(__tstate);
12062 if (PyErr_Occurred()) SWIG_fail;
12063 }
12064 resultobj = SWIG_From_int(static_cast< int >(result));
12065 return resultobj;
12066 fail:
12067 return NULL;
12068 }
12069
12070
12071 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12072 PyObject *resultobj = 0;
12073 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12074 wxRect result;
12075 void *argp1 = 0 ;
12076 int res1 = 0 ;
12077 PyObject *swig_obj[1] ;
12078
12079 if (!args) SWIG_fail;
12080 swig_obj[0] = args;
12081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12082 if (!SWIG_IsOK(res1)) {
12083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12084 }
12085 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12086 {
12087 PyThreadState* __tstate = wxPyBeginAllowThreads();
12088 result = (arg1)->GetRect();
12089 wxPyEndAllowThreads(__tstate);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 }
12092 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12093 return resultobj;
12094 fail:
12095 return NULL;
12096 }
12097
12098
12099 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12100 PyObject *resultobj = 0;
12101 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12102 bool result;
12103 void *argp1 = 0 ;
12104 int res1 = 0 ;
12105 PyObject *swig_obj[1] ;
12106
12107 if (!args) SWIG_fail;
12108 swig_obj[0] = args;
12109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12110 if (!SWIG_IsOK(res1)) {
12111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12112 }
12113 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12114 {
12115 PyThreadState* __tstate = wxPyBeginAllowThreads();
12116 result = (bool)(arg1)->HaveRects();
12117 wxPyEndAllowThreads(__tstate);
12118 if (PyErr_Occurred()) SWIG_fail;
12119 }
12120 {
12121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12122 }
12123 return resultobj;
12124 fail:
12125 return NULL;
12126 }
12127
12128
12129 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12130 PyObject *resultobj = 0;
12131 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12132 void *argp1 = 0 ;
12133 int res1 = 0 ;
12134 PyObject *swig_obj[1] ;
12135
12136 if (!args) SWIG_fail;
12137 swig_obj[0] = args;
12138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12139 if (!SWIG_IsOK(res1)) {
12140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12141 }
12142 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12143 {
12144 PyThreadState* __tstate = wxPyBeginAllowThreads();
12145 (arg1)->Reset();
12146 wxPyEndAllowThreads(__tstate);
12147 if (PyErr_Occurred()) SWIG_fail;
12148 }
12149 resultobj = SWIG_Py_Void();
12150 return resultobj;
12151 fail:
12152 return NULL;
12153 }
12154
12155
12156 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12157 PyObject *resultobj = 0;
12158 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12159 void *argp1 = 0 ;
12160 int res1 = 0 ;
12161 PyObject *swig_obj[1] ;
12162
12163 if (!args) SWIG_fail;
12164 swig_obj[0] = args;
12165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12166 if (!SWIG_IsOK(res1)) {
12167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12168 }
12169 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12170 {
12171 PyThreadState* __tstate = wxPyBeginAllowThreads();
12172 wxRegionIterator_Next(arg1);
12173 wxPyEndAllowThreads(__tstate);
12174 if (PyErr_Occurred()) SWIG_fail;
12175 }
12176 resultobj = SWIG_Py_Void();
12177 return resultobj;
12178 fail:
12179 return NULL;
12180 }
12181
12182
12183 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12184 PyObject *resultobj = 0;
12185 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12186 bool result;
12187 void *argp1 = 0 ;
12188 int res1 = 0 ;
12189 PyObject *swig_obj[1] ;
12190
12191 if (!args) SWIG_fail;
12192 swig_obj[0] = args;
12193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12194 if (!SWIG_IsOK(res1)) {
12195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12196 }
12197 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12198 {
12199 PyThreadState* __tstate = wxPyBeginAllowThreads();
12200 result = (bool)wxRegionIterator___nonzero__(arg1);
12201 wxPyEndAllowThreads(__tstate);
12202 if (PyErr_Occurred()) SWIG_fail;
12203 }
12204 {
12205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12206 }
12207 return resultobj;
12208 fail:
12209 return NULL;
12210 }
12211
12212
12213 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12214 PyObject *obj;
12215 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12216 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12217 return SWIG_Py_Void();
12218 }
12219
12220 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12221 return SWIG_Python_InitShadowInstance(args);
12222 }
12223
12224 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12225 PyObject *resultobj = 0;
12226 wxNativeFontInfo *result = 0 ;
12227
12228 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12229 {
12230 PyThreadState* __tstate = wxPyBeginAllowThreads();
12231 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12232 wxPyEndAllowThreads(__tstate);
12233 if (PyErr_Occurred()) SWIG_fail;
12234 }
12235 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12236 return resultobj;
12237 fail:
12238 return NULL;
12239 }
12240
12241
12242 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12243 PyObject *resultobj = 0;
12244 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12245 void *argp1 = 0 ;
12246 int res1 = 0 ;
12247 PyObject *swig_obj[1] ;
12248
12249 if (!args) SWIG_fail;
12250 swig_obj[0] = args;
12251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12252 if (!SWIG_IsOK(res1)) {
12253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12254 }
12255 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12256 {
12257 PyThreadState* __tstate = wxPyBeginAllowThreads();
12258 delete arg1;
12259
12260 wxPyEndAllowThreads(__tstate);
12261 if (PyErr_Occurred()) SWIG_fail;
12262 }
12263 resultobj = SWIG_Py_Void();
12264 return resultobj;
12265 fail:
12266 return NULL;
12267 }
12268
12269
12270 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12271 PyObject *resultobj = 0;
12272 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12273 void *argp1 = 0 ;
12274 int res1 = 0 ;
12275 PyObject *swig_obj[1] ;
12276
12277 if (!args) SWIG_fail;
12278 swig_obj[0] = args;
12279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12280 if (!SWIG_IsOK(res1)) {
12281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12282 }
12283 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12284 {
12285 PyThreadState* __tstate = wxPyBeginAllowThreads();
12286 (arg1)->Init();
12287 wxPyEndAllowThreads(__tstate);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 }
12290 resultobj = SWIG_Py_Void();
12291 return resultobj;
12292 fail:
12293 return NULL;
12294 }
12295
12296
12297 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12298 PyObject *resultobj = 0;
12299 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12300 wxFont *arg2 = 0 ;
12301 void *argp1 = 0 ;
12302 int res1 = 0 ;
12303 void *argp2 = 0 ;
12304 int res2 = 0 ;
12305 PyObject * obj0 = 0 ;
12306 PyObject * obj1 = 0 ;
12307 char * kwnames[] = {
12308 (char *) "self",(char *) "font", NULL
12309 };
12310
12311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12313 if (!SWIG_IsOK(res1)) {
12314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12315 }
12316 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12317 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12318 if (!SWIG_IsOK(res2)) {
12319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12320 }
12321 if (!argp2) {
12322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12323 }
12324 arg2 = reinterpret_cast< wxFont * >(argp2);
12325 {
12326 PyThreadState* __tstate = wxPyBeginAllowThreads();
12327 (arg1)->InitFromFont((wxFont const &)*arg2);
12328 wxPyEndAllowThreads(__tstate);
12329 if (PyErr_Occurred()) SWIG_fail;
12330 }
12331 resultobj = SWIG_Py_Void();
12332 return resultobj;
12333 fail:
12334 return NULL;
12335 }
12336
12337
12338 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12339 PyObject *resultobj = 0;
12340 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12341 int result;
12342 void *argp1 = 0 ;
12343 int res1 = 0 ;
12344 PyObject *swig_obj[1] ;
12345
12346 if (!args) SWIG_fail;
12347 swig_obj[0] = args;
12348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12349 if (!SWIG_IsOK(res1)) {
12350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12351 }
12352 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12353 {
12354 PyThreadState* __tstate = wxPyBeginAllowThreads();
12355 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12356 wxPyEndAllowThreads(__tstate);
12357 if (PyErr_Occurred()) SWIG_fail;
12358 }
12359 resultobj = SWIG_From_int(static_cast< int >(result));
12360 return resultobj;
12361 fail:
12362 return NULL;
12363 }
12364
12365
12366 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12367 PyObject *resultobj = 0;
12368 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12369 wxFontStyle result;
12370 void *argp1 = 0 ;
12371 int res1 = 0 ;
12372 PyObject *swig_obj[1] ;
12373
12374 if (!args) SWIG_fail;
12375 swig_obj[0] = args;
12376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12377 if (!SWIG_IsOK(res1)) {
12378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12379 }
12380 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12381 {
12382 PyThreadState* __tstate = wxPyBeginAllowThreads();
12383 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12384 wxPyEndAllowThreads(__tstate);
12385 if (PyErr_Occurred()) SWIG_fail;
12386 }
12387 resultobj = SWIG_From_int(static_cast< int >(result));
12388 return resultobj;
12389 fail:
12390 return NULL;
12391 }
12392
12393
12394 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12395 PyObject *resultobj = 0;
12396 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12397 wxFontWeight result;
12398 void *argp1 = 0 ;
12399 int res1 = 0 ;
12400 PyObject *swig_obj[1] ;
12401
12402 if (!args) SWIG_fail;
12403 swig_obj[0] = args;
12404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12405 if (!SWIG_IsOK(res1)) {
12406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12407 }
12408 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12409 {
12410 PyThreadState* __tstate = wxPyBeginAllowThreads();
12411 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12412 wxPyEndAllowThreads(__tstate);
12413 if (PyErr_Occurred()) SWIG_fail;
12414 }
12415 resultobj = SWIG_From_int(static_cast< int >(result));
12416 return resultobj;
12417 fail:
12418 return NULL;
12419 }
12420
12421
12422 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12423 PyObject *resultobj = 0;
12424 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12425 bool result;
12426 void *argp1 = 0 ;
12427 int res1 = 0 ;
12428 PyObject *swig_obj[1] ;
12429
12430 if (!args) SWIG_fail;
12431 swig_obj[0] = args;
12432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12433 if (!SWIG_IsOK(res1)) {
12434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12435 }
12436 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12437 {
12438 PyThreadState* __tstate = wxPyBeginAllowThreads();
12439 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12440 wxPyEndAllowThreads(__tstate);
12441 if (PyErr_Occurred()) SWIG_fail;
12442 }
12443 {
12444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12445 }
12446 return resultobj;
12447 fail:
12448 return NULL;
12449 }
12450
12451
12452 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12453 PyObject *resultobj = 0;
12454 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12455 wxString result;
12456 void *argp1 = 0 ;
12457 int res1 = 0 ;
12458 PyObject *swig_obj[1] ;
12459
12460 if (!args) SWIG_fail;
12461 swig_obj[0] = args;
12462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12463 if (!SWIG_IsOK(res1)) {
12464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12465 }
12466 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12467 {
12468 PyThreadState* __tstate = wxPyBeginAllowThreads();
12469 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12470 wxPyEndAllowThreads(__tstate);
12471 if (PyErr_Occurred()) SWIG_fail;
12472 }
12473 {
12474 #if wxUSE_UNICODE
12475 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12476 #else
12477 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12478 #endif
12479 }
12480 return resultobj;
12481 fail:
12482 return NULL;
12483 }
12484
12485
12486 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12487 PyObject *resultobj = 0;
12488 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12489 wxFontFamily result;
12490 void *argp1 = 0 ;
12491 int res1 = 0 ;
12492 PyObject *swig_obj[1] ;
12493
12494 if (!args) SWIG_fail;
12495 swig_obj[0] = args;
12496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12497 if (!SWIG_IsOK(res1)) {
12498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12499 }
12500 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12501 {
12502 PyThreadState* __tstate = wxPyBeginAllowThreads();
12503 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12504 wxPyEndAllowThreads(__tstate);
12505 if (PyErr_Occurred()) SWIG_fail;
12506 }
12507 resultobj = SWIG_From_int(static_cast< int >(result));
12508 return resultobj;
12509 fail:
12510 return NULL;
12511 }
12512
12513
12514 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12515 PyObject *resultobj = 0;
12516 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12517 wxFontEncoding result;
12518 void *argp1 = 0 ;
12519 int res1 = 0 ;
12520 PyObject *swig_obj[1] ;
12521
12522 if (!args) SWIG_fail;
12523 swig_obj[0] = args;
12524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12525 if (!SWIG_IsOK(res1)) {
12526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12527 }
12528 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12529 {
12530 PyThreadState* __tstate = wxPyBeginAllowThreads();
12531 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12532 wxPyEndAllowThreads(__tstate);
12533 if (PyErr_Occurred()) SWIG_fail;
12534 }
12535 resultobj = SWIG_From_int(static_cast< int >(result));
12536 return resultobj;
12537 fail:
12538 return NULL;
12539 }
12540
12541
12542 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12543 PyObject *resultobj = 0;
12544 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12545 int arg2 ;
12546 void *argp1 = 0 ;
12547 int res1 = 0 ;
12548 int val2 ;
12549 int ecode2 = 0 ;
12550 PyObject * obj0 = 0 ;
12551 PyObject * obj1 = 0 ;
12552 char * kwnames[] = {
12553 (char *) "self",(char *) "pointsize", NULL
12554 };
12555
12556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12558 if (!SWIG_IsOK(res1)) {
12559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12560 }
12561 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12562 ecode2 = SWIG_AsVal_int(obj1, &val2);
12563 if (!SWIG_IsOK(ecode2)) {
12564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12565 }
12566 arg2 = static_cast< int >(val2);
12567 {
12568 PyThreadState* __tstate = wxPyBeginAllowThreads();
12569 (arg1)->SetPointSize(arg2);
12570 wxPyEndAllowThreads(__tstate);
12571 if (PyErr_Occurred()) SWIG_fail;
12572 }
12573 resultobj = SWIG_Py_Void();
12574 return resultobj;
12575 fail:
12576 return NULL;
12577 }
12578
12579
12580 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12581 PyObject *resultobj = 0;
12582 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12583 wxFontStyle arg2 ;
12584 void *argp1 = 0 ;
12585 int res1 = 0 ;
12586 int val2 ;
12587 int ecode2 = 0 ;
12588 PyObject * obj0 = 0 ;
12589 PyObject * obj1 = 0 ;
12590 char * kwnames[] = {
12591 (char *) "self",(char *) "style", NULL
12592 };
12593
12594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12596 if (!SWIG_IsOK(res1)) {
12597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12598 }
12599 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12600 ecode2 = SWIG_AsVal_int(obj1, &val2);
12601 if (!SWIG_IsOK(ecode2)) {
12602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12603 }
12604 arg2 = static_cast< wxFontStyle >(val2);
12605 {
12606 PyThreadState* __tstate = wxPyBeginAllowThreads();
12607 (arg1)->SetStyle(arg2);
12608 wxPyEndAllowThreads(__tstate);
12609 if (PyErr_Occurred()) SWIG_fail;
12610 }
12611 resultobj = SWIG_Py_Void();
12612 return resultobj;
12613 fail:
12614 return NULL;
12615 }
12616
12617
12618 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12619 PyObject *resultobj = 0;
12620 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12621 wxFontWeight arg2 ;
12622 void *argp1 = 0 ;
12623 int res1 = 0 ;
12624 int val2 ;
12625 int ecode2 = 0 ;
12626 PyObject * obj0 = 0 ;
12627 PyObject * obj1 = 0 ;
12628 char * kwnames[] = {
12629 (char *) "self",(char *) "weight", NULL
12630 };
12631
12632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12634 if (!SWIG_IsOK(res1)) {
12635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12636 }
12637 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12638 ecode2 = SWIG_AsVal_int(obj1, &val2);
12639 if (!SWIG_IsOK(ecode2)) {
12640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12641 }
12642 arg2 = static_cast< wxFontWeight >(val2);
12643 {
12644 PyThreadState* __tstate = wxPyBeginAllowThreads();
12645 (arg1)->SetWeight(arg2);
12646 wxPyEndAllowThreads(__tstate);
12647 if (PyErr_Occurred()) SWIG_fail;
12648 }
12649 resultobj = SWIG_Py_Void();
12650 return resultobj;
12651 fail:
12652 return NULL;
12653 }
12654
12655
12656 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12657 PyObject *resultobj = 0;
12658 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12659 bool arg2 ;
12660 void *argp1 = 0 ;
12661 int res1 = 0 ;
12662 bool val2 ;
12663 int ecode2 = 0 ;
12664 PyObject * obj0 = 0 ;
12665 PyObject * obj1 = 0 ;
12666 char * kwnames[] = {
12667 (char *) "self",(char *) "underlined", NULL
12668 };
12669
12670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12672 if (!SWIG_IsOK(res1)) {
12673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12674 }
12675 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12676 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12677 if (!SWIG_IsOK(ecode2)) {
12678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12679 }
12680 arg2 = static_cast< bool >(val2);
12681 {
12682 PyThreadState* __tstate = wxPyBeginAllowThreads();
12683 (arg1)->SetUnderlined(arg2);
12684 wxPyEndAllowThreads(__tstate);
12685 if (PyErr_Occurred()) SWIG_fail;
12686 }
12687 resultobj = SWIG_Py_Void();
12688 return resultobj;
12689 fail:
12690 return NULL;
12691 }
12692
12693
12694 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12695 PyObject *resultobj = 0;
12696 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12697 wxString arg2 ;
12698 bool result;
12699 void *argp1 = 0 ;
12700 int res1 = 0 ;
12701 PyObject * obj0 = 0 ;
12702 PyObject * obj1 = 0 ;
12703 char * kwnames[] = {
12704 (char *) "self",(char *) "facename", NULL
12705 };
12706
12707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12709 if (!SWIG_IsOK(res1)) {
12710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12711 }
12712 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12713 {
12714 wxString* sptr = wxString_in_helper(obj1);
12715 if (sptr == NULL) SWIG_fail;
12716 arg2 = *sptr;
12717 delete sptr;
12718 }
12719 {
12720 PyThreadState* __tstate = wxPyBeginAllowThreads();
12721 result = (bool)(arg1)->SetFaceName(arg2);
12722 wxPyEndAllowThreads(__tstate);
12723 if (PyErr_Occurred()) SWIG_fail;
12724 }
12725 {
12726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12727 }
12728 return resultobj;
12729 fail:
12730 return NULL;
12731 }
12732
12733
12734 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12735 PyObject *resultobj = 0;
12736 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12737 wxFontFamily arg2 ;
12738 void *argp1 = 0 ;
12739 int res1 = 0 ;
12740 int val2 ;
12741 int ecode2 = 0 ;
12742 PyObject * obj0 = 0 ;
12743 PyObject * obj1 = 0 ;
12744 char * kwnames[] = {
12745 (char *) "self",(char *) "family", NULL
12746 };
12747
12748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12750 if (!SWIG_IsOK(res1)) {
12751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12752 }
12753 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12754 ecode2 = SWIG_AsVal_int(obj1, &val2);
12755 if (!SWIG_IsOK(ecode2)) {
12756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12757 }
12758 arg2 = static_cast< wxFontFamily >(val2);
12759 {
12760 PyThreadState* __tstate = wxPyBeginAllowThreads();
12761 (arg1)->SetFamily(arg2);
12762 wxPyEndAllowThreads(__tstate);
12763 if (PyErr_Occurred()) SWIG_fail;
12764 }
12765 resultobj = SWIG_Py_Void();
12766 return resultobj;
12767 fail:
12768 return NULL;
12769 }
12770
12771
12772 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12773 PyObject *resultobj = 0;
12774 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12775 wxFontEncoding arg2 ;
12776 void *argp1 = 0 ;
12777 int res1 = 0 ;
12778 int val2 ;
12779 int ecode2 = 0 ;
12780 PyObject * obj0 = 0 ;
12781 PyObject * obj1 = 0 ;
12782 char * kwnames[] = {
12783 (char *) "self",(char *) "encoding", NULL
12784 };
12785
12786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12788 if (!SWIG_IsOK(res1)) {
12789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12790 }
12791 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12792 ecode2 = SWIG_AsVal_int(obj1, &val2);
12793 if (!SWIG_IsOK(ecode2)) {
12794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12795 }
12796 arg2 = static_cast< wxFontEncoding >(val2);
12797 {
12798 PyThreadState* __tstate = wxPyBeginAllowThreads();
12799 (arg1)->SetEncoding(arg2);
12800 wxPyEndAllowThreads(__tstate);
12801 if (PyErr_Occurred()) SWIG_fail;
12802 }
12803 resultobj = SWIG_Py_Void();
12804 return resultobj;
12805 fail:
12806 return NULL;
12807 }
12808
12809
12810 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12811 PyObject *resultobj = 0;
12812 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12813 wxString *arg2 = 0 ;
12814 bool result;
12815 void *argp1 = 0 ;
12816 int res1 = 0 ;
12817 bool temp2 = false ;
12818 PyObject * obj0 = 0 ;
12819 PyObject * obj1 = 0 ;
12820 char * kwnames[] = {
12821 (char *) "self",(char *) "s", NULL
12822 };
12823
12824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12826 if (!SWIG_IsOK(res1)) {
12827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12828 }
12829 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12830 {
12831 arg2 = wxString_in_helper(obj1);
12832 if (arg2 == NULL) SWIG_fail;
12833 temp2 = true;
12834 }
12835 {
12836 PyThreadState* __tstate = wxPyBeginAllowThreads();
12837 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12838 wxPyEndAllowThreads(__tstate);
12839 if (PyErr_Occurred()) SWIG_fail;
12840 }
12841 {
12842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12843 }
12844 {
12845 if (temp2)
12846 delete arg2;
12847 }
12848 return resultobj;
12849 fail:
12850 {
12851 if (temp2)
12852 delete arg2;
12853 }
12854 return NULL;
12855 }
12856
12857
12858 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12859 PyObject *resultobj = 0;
12860 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12861 wxString result;
12862 void *argp1 = 0 ;
12863 int res1 = 0 ;
12864 PyObject *swig_obj[1] ;
12865
12866 if (!args) SWIG_fail;
12867 swig_obj[0] = args;
12868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12869 if (!SWIG_IsOK(res1)) {
12870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12871 }
12872 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12873 {
12874 PyThreadState* __tstate = wxPyBeginAllowThreads();
12875 result = ((wxNativeFontInfo const *)arg1)->ToString();
12876 wxPyEndAllowThreads(__tstate);
12877 if (PyErr_Occurred()) SWIG_fail;
12878 }
12879 {
12880 #if wxUSE_UNICODE
12881 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12882 #else
12883 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12884 #endif
12885 }
12886 return resultobj;
12887 fail:
12888 return NULL;
12889 }
12890
12891
12892 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12893 PyObject *resultobj = 0;
12894 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12895 wxString result;
12896 void *argp1 = 0 ;
12897 int res1 = 0 ;
12898 PyObject *swig_obj[1] ;
12899
12900 if (!args) SWIG_fail;
12901 swig_obj[0] = args;
12902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12903 if (!SWIG_IsOK(res1)) {
12904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12905 }
12906 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12907 {
12908 PyThreadState* __tstate = wxPyBeginAllowThreads();
12909 result = wxNativeFontInfo___str__(arg1);
12910 wxPyEndAllowThreads(__tstate);
12911 if (PyErr_Occurred()) SWIG_fail;
12912 }
12913 {
12914 #if wxUSE_UNICODE
12915 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12916 #else
12917 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12918 #endif
12919 }
12920 return resultobj;
12921 fail:
12922 return NULL;
12923 }
12924
12925
12926 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12927 PyObject *resultobj = 0;
12928 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12929 wxString *arg2 = 0 ;
12930 bool result;
12931 void *argp1 = 0 ;
12932 int res1 = 0 ;
12933 bool temp2 = false ;
12934 PyObject * obj0 = 0 ;
12935 PyObject * obj1 = 0 ;
12936 char * kwnames[] = {
12937 (char *) "self",(char *) "s", NULL
12938 };
12939
12940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12942 if (!SWIG_IsOK(res1)) {
12943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12944 }
12945 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12946 {
12947 arg2 = wxString_in_helper(obj1);
12948 if (arg2 == NULL) SWIG_fail;
12949 temp2 = true;
12950 }
12951 {
12952 PyThreadState* __tstate = wxPyBeginAllowThreads();
12953 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12954 wxPyEndAllowThreads(__tstate);
12955 if (PyErr_Occurred()) SWIG_fail;
12956 }
12957 {
12958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12959 }
12960 {
12961 if (temp2)
12962 delete arg2;
12963 }
12964 return resultobj;
12965 fail:
12966 {
12967 if (temp2)
12968 delete arg2;
12969 }
12970 return NULL;
12971 }
12972
12973
12974 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12975 PyObject *resultobj = 0;
12976 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12977 wxString result;
12978 void *argp1 = 0 ;
12979 int res1 = 0 ;
12980 PyObject *swig_obj[1] ;
12981
12982 if (!args) SWIG_fail;
12983 swig_obj[0] = args;
12984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12985 if (!SWIG_IsOK(res1)) {
12986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12987 }
12988 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12989 {
12990 PyThreadState* __tstate = wxPyBeginAllowThreads();
12991 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12992 wxPyEndAllowThreads(__tstate);
12993 if (PyErr_Occurred()) SWIG_fail;
12994 }
12995 {
12996 #if wxUSE_UNICODE
12997 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12998 #else
12999 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13000 #endif
13001 }
13002 return resultobj;
13003 fail:
13004 return NULL;
13005 }
13006
13007
13008 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13009 PyObject *obj;
13010 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13011 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13012 return SWIG_Py_Void();
13013 }
13014
13015 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13016 return SWIG_Python_InitShadowInstance(args);
13017 }
13018
13019 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13020 PyObject *resultobj = 0;
13021 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13022 wxString *arg2 = (wxString *) 0 ;
13023 void *argp1 = 0 ;
13024 int res1 = 0 ;
13025 bool temp2 = false ;
13026 PyObject *swig_obj[2] ;
13027
13028 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13030 if (!SWIG_IsOK(res1)) {
13031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13032 }
13033 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13034 {
13035 arg2 = wxString_in_helper(swig_obj[1]);
13036 if (arg2 == NULL) SWIG_fail;
13037 temp2 = true;
13038 }
13039 if (arg1) (arg1)->facename = *arg2;
13040
13041 resultobj = SWIG_Py_Void();
13042 {
13043 if (temp2)
13044 delete arg2;
13045 }
13046 return resultobj;
13047 fail:
13048 {
13049 if (temp2)
13050 delete arg2;
13051 }
13052 return NULL;
13053 }
13054
13055
13056 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13057 PyObject *resultobj = 0;
13058 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13059 wxString *result = 0 ;
13060 void *argp1 = 0 ;
13061 int res1 = 0 ;
13062 PyObject *swig_obj[1] ;
13063
13064 if (!args) SWIG_fail;
13065 swig_obj[0] = args;
13066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13067 if (!SWIG_IsOK(res1)) {
13068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13069 }
13070 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13071 result = (wxString *)& ((arg1)->facename);
13072 {
13073 #if wxUSE_UNICODE
13074 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13075 #else
13076 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13077 #endif
13078 }
13079 return resultobj;
13080 fail:
13081 return NULL;
13082 }
13083
13084
13085 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13086 PyObject *resultobj = 0;
13087 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13088 wxFontEncoding arg2 ;
13089 void *argp1 = 0 ;
13090 int res1 = 0 ;
13091 int val2 ;
13092 int ecode2 = 0 ;
13093 PyObject *swig_obj[2] ;
13094
13095 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13097 if (!SWIG_IsOK(res1)) {
13098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13099 }
13100 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13101 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13102 if (!SWIG_IsOK(ecode2)) {
13103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13104 }
13105 arg2 = static_cast< wxFontEncoding >(val2);
13106 if (arg1) (arg1)->encoding = arg2;
13107
13108 resultobj = SWIG_Py_Void();
13109 return resultobj;
13110 fail:
13111 return NULL;
13112 }
13113
13114
13115 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13116 PyObject *resultobj = 0;
13117 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13118 wxFontEncoding result;
13119 void *argp1 = 0 ;
13120 int res1 = 0 ;
13121 PyObject *swig_obj[1] ;
13122
13123 if (!args) SWIG_fail;
13124 swig_obj[0] = args;
13125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13126 if (!SWIG_IsOK(res1)) {
13127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13128 }
13129 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13130 result = (wxFontEncoding) ((arg1)->encoding);
13131 resultobj = SWIG_From_int(static_cast< int >(result));
13132 return resultobj;
13133 fail:
13134 return NULL;
13135 }
13136
13137
13138 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13139 PyObject *resultobj = 0;
13140 wxNativeEncodingInfo *result = 0 ;
13141
13142 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13143 {
13144 PyThreadState* __tstate = wxPyBeginAllowThreads();
13145 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13146 wxPyEndAllowThreads(__tstate);
13147 if (PyErr_Occurred()) SWIG_fail;
13148 }
13149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13150 return resultobj;
13151 fail:
13152 return NULL;
13153 }
13154
13155
13156 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13157 PyObject *resultobj = 0;
13158 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13159 void *argp1 = 0 ;
13160 int res1 = 0 ;
13161 PyObject *swig_obj[1] ;
13162
13163 if (!args) SWIG_fail;
13164 swig_obj[0] = args;
13165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13166 if (!SWIG_IsOK(res1)) {
13167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13168 }
13169 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13170 {
13171 PyThreadState* __tstate = wxPyBeginAllowThreads();
13172 delete arg1;
13173
13174 wxPyEndAllowThreads(__tstate);
13175 if (PyErr_Occurred()) SWIG_fail;
13176 }
13177 resultobj = SWIG_Py_Void();
13178 return resultobj;
13179 fail:
13180 return NULL;
13181 }
13182
13183
13184 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13185 PyObject *resultobj = 0;
13186 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13187 wxString *arg2 = 0 ;
13188 bool result;
13189 void *argp1 = 0 ;
13190 int res1 = 0 ;
13191 bool temp2 = false ;
13192 PyObject * obj0 = 0 ;
13193 PyObject * obj1 = 0 ;
13194 char * kwnames[] = {
13195 (char *) "self",(char *) "s", NULL
13196 };
13197
13198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13200 if (!SWIG_IsOK(res1)) {
13201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13202 }
13203 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13204 {
13205 arg2 = wxString_in_helper(obj1);
13206 if (arg2 == NULL) SWIG_fail;
13207 temp2 = true;
13208 }
13209 {
13210 PyThreadState* __tstate = wxPyBeginAllowThreads();
13211 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13212 wxPyEndAllowThreads(__tstate);
13213 if (PyErr_Occurred()) SWIG_fail;
13214 }
13215 {
13216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13217 }
13218 {
13219 if (temp2)
13220 delete arg2;
13221 }
13222 return resultobj;
13223 fail:
13224 {
13225 if (temp2)
13226 delete arg2;
13227 }
13228 return NULL;
13229 }
13230
13231
13232 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13233 PyObject *resultobj = 0;
13234 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13235 wxString result;
13236 void *argp1 = 0 ;
13237 int res1 = 0 ;
13238 PyObject *swig_obj[1] ;
13239
13240 if (!args) SWIG_fail;
13241 swig_obj[0] = args;
13242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13243 if (!SWIG_IsOK(res1)) {
13244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13245 }
13246 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13247 {
13248 PyThreadState* __tstate = wxPyBeginAllowThreads();
13249 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13250 wxPyEndAllowThreads(__tstate);
13251 if (PyErr_Occurred()) SWIG_fail;
13252 }
13253 {
13254 #if wxUSE_UNICODE
13255 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13256 #else
13257 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13258 #endif
13259 }
13260 return resultobj;
13261 fail:
13262 return NULL;
13263 }
13264
13265
13266 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13267 PyObject *obj;
13268 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13269 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13270 return SWIG_Py_Void();
13271 }
13272
13273 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13274 return SWIG_Python_InitShadowInstance(args);
13275 }
13276
13277 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13278 PyObject *resultobj = 0;
13279 wxFontEncoding arg1 ;
13280 wxNativeEncodingInfo *result = 0 ;
13281 int val1 ;
13282 int ecode1 = 0 ;
13283 PyObject * obj0 = 0 ;
13284 char * kwnames[] = {
13285 (char *) "encoding", NULL
13286 };
13287
13288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13289 ecode1 = SWIG_AsVal_int(obj0, &val1);
13290 if (!SWIG_IsOK(ecode1)) {
13291 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13292 }
13293 arg1 = static_cast< wxFontEncoding >(val1);
13294 {
13295 PyThreadState* __tstate = wxPyBeginAllowThreads();
13296 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13297 wxPyEndAllowThreads(__tstate);
13298 if (PyErr_Occurred()) SWIG_fail;
13299 }
13300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13301 return resultobj;
13302 fail:
13303 return NULL;
13304 }
13305
13306
13307 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13308 PyObject *resultobj = 0;
13309 wxNativeEncodingInfo *arg1 = 0 ;
13310 bool result;
13311 void *argp1 = 0 ;
13312 int res1 = 0 ;
13313 PyObject * obj0 = 0 ;
13314 char * kwnames[] = {
13315 (char *) "info", NULL
13316 };
13317
13318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13319 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13320 if (!SWIG_IsOK(res1)) {
13321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13322 }
13323 if (!argp1) {
13324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13325 }
13326 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13327 {
13328 PyThreadState* __tstate = wxPyBeginAllowThreads();
13329 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13330 wxPyEndAllowThreads(__tstate);
13331 if (PyErr_Occurred()) SWIG_fail;
13332 }
13333 {
13334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13335 }
13336 return resultobj;
13337 fail:
13338 return NULL;
13339 }
13340
13341
13342 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13343 PyObject *resultobj = 0;
13344 wxFontMapper *result = 0 ;
13345
13346 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13347 {
13348 PyThreadState* __tstate = wxPyBeginAllowThreads();
13349 result = (wxFontMapper *)new wxFontMapper();
13350 wxPyEndAllowThreads(__tstate);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 }
13353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13354 return resultobj;
13355 fail:
13356 return NULL;
13357 }
13358
13359
13360 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13361 PyObject *resultobj = 0;
13362 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13363 void *argp1 = 0 ;
13364 int res1 = 0 ;
13365 PyObject *swig_obj[1] ;
13366
13367 if (!args) SWIG_fail;
13368 swig_obj[0] = args;
13369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13370 if (!SWIG_IsOK(res1)) {
13371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13372 }
13373 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13374 {
13375 PyThreadState* __tstate = wxPyBeginAllowThreads();
13376 delete arg1;
13377
13378 wxPyEndAllowThreads(__tstate);
13379 if (PyErr_Occurred()) SWIG_fail;
13380 }
13381 resultobj = SWIG_Py_Void();
13382 return resultobj;
13383 fail:
13384 return NULL;
13385 }
13386
13387
13388 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13389 PyObject *resultobj = 0;
13390 wxFontMapper *result = 0 ;
13391
13392 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13393 {
13394 PyThreadState* __tstate = wxPyBeginAllowThreads();
13395 result = (wxFontMapper *)wxFontMapper::Get();
13396 wxPyEndAllowThreads(__tstate);
13397 if (PyErr_Occurred()) SWIG_fail;
13398 }
13399 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13400 return resultobj;
13401 fail:
13402 return NULL;
13403 }
13404
13405
13406 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13407 PyObject *resultobj = 0;
13408 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13409 wxFontMapper *result = 0 ;
13410 void *argp1 = 0 ;
13411 int res1 = 0 ;
13412 PyObject * obj0 = 0 ;
13413 char * kwnames[] = {
13414 (char *) "mapper", NULL
13415 };
13416
13417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13419 if (!SWIG_IsOK(res1)) {
13420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13421 }
13422 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13423 {
13424 PyThreadState* __tstate = wxPyBeginAllowThreads();
13425 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13426 wxPyEndAllowThreads(__tstate);
13427 if (PyErr_Occurred()) SWIG_fail;
13428 }
13429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13430 return resultobj;
13431 fail:
13432 return NULL;
13433 }
13434
13435
13436 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13437 PyObject *resultobj = 0;
13438 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13439 wxString *arg2 = 0 ;
13440 bool arg3 = (bool) true ;
13441 wxFontEncoding result;
13442 void *argp1 = 0 ;
13443 int res1 = 0 ;
13444 bool temp2 = false ;
13445 bool val3 ;
13446 int ecode3 = 0 ;
13447 PyObject * obj0 = 0 ;
13448 PyObject * obj1 = 0 ;
13449 PyObject * obj2 = 0 ;
13450 char * kwnames[] = {
13451 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13452 };
13453
13454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13456 if (!SWIG_IsOK(res1)) {
13457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13458 }
13459 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13460 {
13461 arg2 = wxString_in_helper(obj1);
13462 if (arg2 == NULL) SWIG_fail;
13463 temp2 = true;
13464 }
13465 if (obj2) {
13466 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13467 if (!SWIG_IsOK(ecode3)) {
13468 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13469 }
13470 arg3 = static_cast< bool >(val3);
13471 }
13472 {
13473 PyThreadState* __tstate = wxPyBeginAllowThreads();
13474 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13475 wxPyEndAllowThreads(__tstate);
13476 if (PyErr_Occurred()) SWIG_fail;
13477 }
13478 resultobj = SWIG_From_int(static_cast< int >(result));
13479 {
13480 if (temp2)
13481 delete arg2;
13482 }
13483 return resultobj;
13484 fail:
13485 {
13486 if (temp2)
13487 delete arg2;
13488 }
13489 return NULL;
13490 }
13491
13492
13493 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13494 PyObject *resultobj = 0;
13495 size_t result;
13496
13497 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13498 {
13499 PyThreadState* __tstate = wxPyBeginAllowThreads();
13500 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13501 wxPyEndAllowThreads(__tstate);
13502 if (PyErr_Occurred()) SWIG_fail;
13503 }
13504 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13505 return resultobj;
13506 fail:
13507 return NULL;
13508 }
13509
13510
13511 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13512 PyObject *resultobj = 0;
13513 size_t arg1 ;
13514 wxFontEncoding result;
13515 size_t val1 ;
13516 int ecode1 = 0 ;
13517 PyObject * obj0 = 0 ;
13518 char * kwnames[] = {
13519 (char *) "n", NULL
13520 };
13521
13522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13523 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13524 if (!SWIG_IsOK(ecode1)) {
13525 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13526 }
13527 arg1 = static_cast< size_t >(val1);
13528 {
13529 PyThreadState* __tstate = wxPyBeginAllowThreads();
13530 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13531 wxPyEndAllowThreads(__tstate);
13532 if (PyErr_Occurred()) SWIG_fail;
13533 }
13534 resultobj = SWIG_From_int(static_cast< int >(result));
13535 return resultobj;
13536 fail:
13537 return NULL;
13538 }
13539
13540
13541 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13542 PyObject *resultobj = 0;
13543 wxFontEncoding arg1 ;
13544 wxString result;
13545 int val1 ;
13546 int ecode1 = 0 ;
13547 PyObject * obj0 = 0 ;
13548 char * kwnames[] = {
13549 (char *) "encoding", NULL
13550 };
13551
13552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13553 ecode1 = SWIG_AsVal_int(obj0, &val1);
13554 if (!SWIG_IsOK(ecode1)) {
13555 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13556 }
13557 arg1 = static_cast< wxFontEncoding >(val1);
13558 {
13559 PyThreadState* __tstate = wxPyBeginAllowThreads();
13560 result = wxFontMapper::GetEncodingName(arg1);
13561 wxPyEndAllowThreads(__tstate);
13562 if (PyErr_Occurred()) SWIG_fail;
13563 }
13564 {
13565 #if wxUSE_UNICODE
13566 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13567 #else
13568 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13569 #endif
13570 }
13571 return resultobj;
13572 fail:
13573 return NULL;
13574 }
13575
13576
13577 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13578 PyObject *resultobj = 0;
13579 wxFontEncoding arg1 ;
13580 wxString result;
13581 int val1 ;
13582 int ecode1 = 0 ;
13583 PyObject * obj0 = 0 ;
13584 char * kwnames[] = {
13585 (char *) "encoding", NULL
13586 };
13587
13588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13589 ecode1 = SWIG_AsVal_int(obj0, &val1);
13590 if (!SWIG_IsOK(ecode1)) {
13591 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13592 }
13593 arg1 = static_cast< wxFontEncoding >(val1);
13594 {
13595 PyThreadState* __tstate = wxPyBeginAllowThreads();
13596 result = wxFontMapper::GetEncodingDescription(arg1);
13597 wxPyEndAllowThreads(__tstate);
13598 if (PyErr_Occurred()) SWIG_fail;
13599 }
13600 {
13601 #if wxUSE_UNICODE
13602 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13603 #else
13604 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13605 #endif
13606 }
13607 return resultobj;
13608 fail:
13609 return NULL;
13610 }
13611
13612
13613 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13614 PyObject *resultobj = 0;
13615 wxString *arg1 = 0 ;
13616 wxFontEncoding result;
13617 bool temp1 = false ;
13618 PyObject * obj0 = 0 ;
13619 char * kwnames[] = {
13620 (char *) "name", NULL
13621 };
13622
13623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13624 {
13625 arg1 = wxString_in_helper(obj0);
13626 if (arg1 == NULL) SWIG_fail;
13627 temp1 = true;
13628 }
13629 {
13630 PyThreadState* __tstate = wxPyBeginAllowThreads();
13631 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13632 wxPyEndAllowThreads(__tstate);
13633 if (PyErr_Occurred()) SWIG_fail;
13634 }
13635 resultobj = SWIG_From_int(static_cast< int >(result));
13636 {
13637 if (temp1)
13638 delete arg1;
13639 }
13640 return resultobj;
13641 fail:
13642 {
13643 if (temp1)
13644 delete arg1;
13645 }
13646 return NULL;
13647 }
13648
13649
13650 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13651 PyObject *resultobj = 0;
13652 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13653 wxString *arg2 = 0 ;
13654 void *argp1 = 0 ;
13655 int res1 = 0 ;
13656 bool temp2 = false ;
13657 PyObject * obj0 = 0 ;
13658 PyObject * obj1 = 0 ;
13659 char * kwnames[] = {
13660 (char *) "self",(char *) "prefix", NULL
13661 };
13662
13663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13665 if (!SWIG_IsOK(res1)) {
13666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13667 }
13668 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13669 {
13670 arg2 = wxString_in_helper(obj1);
13671 if (arg2 == NULL) SWIG_fail;
13672 temp2 = true;
13673 }
13674 {
13675 PyThreadState* __tstate = wxPyBeginAllowThreads();
13676 (arg1)->SetConfigPath((wxString const &)*arg2);
13677 wxPyEndAllowThreads(__tstate);
13678 if (PyErr_Occurred()) SWIG_fail;
13679 }
13680 resultobj = SWIG_Py_Void();
13681 {
13682 if (temp2)
13683 delete arg2;
13684 }
13685 return resultobj;
13686 fail:
13687 {
13688 if (temp2)
13689 delete arg2;
13690 }
13691 return NULL;
13692 }
13693
13694
13695 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13696 PyObject *resultobj = 0;
13697 wxString result;
13698
13699 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13700 {
13701 PyThreadState* __tstate = wxPyBeginAllowThreads();
13702 result = wxFontMapper::GetDefaultConfigPath();
13703 wxPyEndAllowThreads(__tstate);
13704 if (PyErr_Occurred()) SWIG_fail;
13705 }
13706 {
13707 #if wxUSE_UNICODE
13708 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13709 #else
13710 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13711 #endif
13712 }
13713 return resultobj;
13714 fail:
13715 return NULL;
13716 }
13717
13718
13719 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13720 PyObject *resultobj = 0;
13721 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13722 wxFontEncoding arg2 ;
13723 wxString const &arg3_defvalue = wxPyEmptyString ;
13724 wxString *arg3 = (wxString *) &arg3_defvalue ;
13725 bool arg4 = (bool) true ;
13726 PyObject *result = 0 ;
13727 void *argp1 = 0 ;
13728 int res1 = 0 ;
13729 int val2 ;
13730 int ecode2 = 0 ;
13731 bool temp3 = false ;
13732 bool val4 ;
13733 int ecode4 = 0 ;
13734 PyObject * obj0 = 0 ;
13735 PyObject * obj1 = 0 ;
13736 PyObject * obj2 = 0 ;
13737 PyObject * obj3 = 0 ;
13738 char * kwnames[] = {
13739 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13740 };
13741
13742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13744 if (!SWIG_IsOK(res1)) {
13745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13746 }
13747 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13748 ecode2 = SWIG_AsVal_int(obj1, &val2);
13749 if (!SWIG_IsOK(ecode2)) {
13750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13751 }
13752 arg2 = static_cast< wxFontEncoding >(val2);
13753 if (obj2) {
13754 {
13755 arg3 = wxString_in_helper(obj2);
13756 if (arg3 == NULL) SWIG_fail;
13757 temp3 = true;
13758 }
13759 }
13760 if (obj3) {
13761 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13762 if (!SWIG_IsOK(ecode4)) {
13763 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13764 }
13765 arg4 = static_cast< bool >(val4);
13766 }
13767 {
13768 PyThreadState* __tstate = wxPyBeginAllowThreads();
13769 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13770 wxPyEndAllowThreads(__tstate);
13771 if (PyErr_Occurred()) SWIG_fail;
13772 }
13773 resultobj = result;
13774 {
13775 if (temp3)
13776 delete arg3;
13777 }
13778 return resultobj;
13779 fail:
13780 {
13781 if (temp3)
13782 delete arg3;
13783 }
13784 return NULL;
13785 }
13786
13787
13788 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13789 PyObject *resultobj = 0;
13790 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13791 wxFontEncoding arg2 ;
13792 wxString const &arg3_defvalue = wxPyEmptyString ;
13793 wxString *arg3 = (wxString *) &arg3_defvalue ;
13794 bool result;
13795 void *argp1 = 0 ;
13796 int res1 = 0 ;
13797 int val2 ;
13798 int ecode2 = 0 ;
13799 bool temp3 = false ;
13800 PyObject * obj0 = 0 ;
13801 PyObject * obj1 = 0 ;
13802 PyObject * obj2 = 0 ;
13803 char * kwnames[] = {
13804 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13805 };
13806
13807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13809 if (!SWIG_IsOK(res1)) {
13810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13811 }
13812 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13813 ecode2 = SWIG_AsVal_int(obj1, &val2);
13814 if (!SWIG_IsOK(ecode2)) {
13815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13816 }
13817 arg2 = static_cast< wxFontEncoding >(val2);
13818 if (obj2) {
13819 {
13820 arg3 = wxString_in_helper(obj2);
13821 if (arg3 == NULL) SWIG_fail;
13822 temp3 = true;
13823 }
13824 }
13825 {
13826 PyThreadState* __tstate = wxPyBeginAllowThreads();
13827 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13828 wxPyEndAllowThreads(__tstate);
13829 if (PyErr_Occurred()) SWIG_fail;
13830 }
13831 {
13832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13833 }
13834 {
13835 if (temp3)
13836 delete arg3;
13837 }
13838 return resultobj;
13839 fail:
13840 {
13841 if (temp3)
13842 delete arg3;
13843 }
13844 return NULL;
13845 }
13846
13847
13848 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13849 PyObject *resultobj = 0;
13850 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13851 wxWindow *arg2 = (wxWindow *) 0 ;
13852 void *argp1 = 0 ;
13853 int res1 = 0 ;
13854 void *argp2 = 0 ;
13855 int res2 = 0 ;
13856 PyObject * obj0 = 0 ;
13857 PyObject * obj1 = 0 ;
13858 char * kwnames[] = {
13859 (char *) "self",(char *) "parent", NULL
13860 };
13861
13862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13864 if (!SWIG_IsOK(res1)) {
13865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13866 }
13867 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13868 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13869 if (!SWIG_IsOK(res2)) {
13870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13871 }
13872 arg2 = reinterpret_cast< wxWindow * >(argp2);
13873 {
13874 PyThreadState* __tstate = wxPyBeginAllowThreads();
13875 (arg1)->SetDialogParent(arg2);
13876 wxPyEndAllowThreads(__tstate);
13877 if (PyErr_Occurred()) SWIG_fail;
13878 }
13879 resultobj = SWIG_Py_Void();
13880 return resultobj;
13881 fail:
13882 return NULL;
13883 }
13884
13885
13886 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13887 PyObject *resultobj = 0;
13888 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13889 wxString *arg2 = 0 ;
13890 void *argp1 = 0 ;
13891 int res1 = 0 ;
13892 bool temp2 = false ;
13893 PyObject * obj0 = 0 ;
13894 PyObject * obj1 = 0 ;
13895 char * kwnames[] = {
13896 (char *) "self",(char *) "title", NULL
13897 };
13898
13899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13901 if (!SWIG_IsOK(res1)) {
13902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13903 }
13904 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13905 {
13906 arg2 = wxString_in_helper(obj1);
13907 if (arg2 == NULL) SWIG_fail;
13908 temp2 = true;
13909 }
13910 {
13911 PyThreadState* __tstate = wxPyBeginAllowThreads();
13912 (arg1)->SetDialogTitle((wxString const &)*arg2);
13913 wxPyEndAllowThreads(__tstate);
13914 if (PyErr_Occurred()) SWIG_fail;
13915 }
13916 resultobj = SWIG_Py_Void();
13917 {
13918 if (temp2)
13919 delete arg2;
13920 }
13921 return resultobj;
13922 fail:
13923 {
13924 if (temp2)
13925 delete arg2;
13926 }
13927 return NULL;
13928 }
13929
13930
13931 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13932 PyObject *obj;
13933 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13934 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13935 return SWIG_Py_Void();
13936 }
13937
13938 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13939 return SWIG_Python_InitShadowInstance(args);
13940 }
13941
13942 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13943 PyObject *resultobj = 0;
13944 int arg1 ;
13945 int arg2 ;
13946 int arg3 ;
13947 int arg4 ;
13948 bool arg5 = (bool) false ;
13949 wxString const &arg6_defvalue = wxPyEmptyString ;
13950 wxString *arg6 = (wxString *) &arg6_defvalue ;
13951 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13952 wxFont *result = 0 ;
13953 int val1 ;
13954 int ecode1 = 0 ;
13955 int val2 ;
13956 int ecode2 = 0 ;
13957 int val3 ;
13958 int ecode3 = 0 ;
13959 int val4 ;
13960 int ecode4 = 0 ;
13961 bool val5 ;
13962 int ecode5 = 0 ;
13963 bool temp6 = false ;
13964 int val7 ;
13965 int ecode7 = 0 ;
13966 PyObject * obj0 = 0 ;
13967 PyObject * obj1 = 0 ;
13968 PyObject * obj2 = 0 ;
13969 PyObject * obj3 = 0 ;
13970 PyObject * obj4 = 0 ;
13971 PyObject * obj5 = 0 ;
13972 PyObject * obj6 = 0 ;
13973 char * kwnames[] = {
13974 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13975 };
13976
13977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13978 ecode1 = SWIG_AsVal_int(obj0, &val1);
13979 if (!SWIG_IsOK(ecode1)) {
13980 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13981 }
13982 arg1 = static_cast< int >(val1);
13983 ecode2 = SWIG_AsVal_int(obj1, &val2);
13984 if (!SWIG_IsOK(ecode2)) {
13985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13986 }
13987 arg2 = static_cast< int >(val2);
13988 ecode3 = SWIG_AsVal_int(obj2, &val3);
13989 if (!SWIG_IsOK(ecode3)) {
13990 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13991 }
13992 arg3 = static_cast< int >(val3);
13993 ecode4 = SWIG_AsVal_int(obj3, &val4);
13994 if (!SWIG_IsOK(ecode4)) {
13995 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13996 }
13997 arg4 = static_cast< int >(val4);
13998 if (obj4) {
13999 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14000 if (!SWIG_IsOK(ecode5)) {
14001 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14002 }
14003 arg5 = static_cast< bool >(val5);
14004 }
14005 if (obj5) {
14006 {
14007 arg6 = wxString_in_helper(obj5);
14008 if (arg6 == NULL) SWIG_fail;
14009 temp6 = true;
14010 }
14011 }
14012 if (obj6) {
14013 ecode7 = SWIG_AsVal_int(obj6, &val7);
14014 if (!SWIG_IsOK(ecode7)) {
14015 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14016 }
14017 arg7 = static_cast< wxFontEncoding >(val7);
14018 }
14019 {
14020 if (!wxPyCheckForApp()) SWIG_fail;
14021 PyThreadState* __tstate = wxPyBeginAllowThreads();
14022 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14023 wxPyEndAllowThreads(__tstate);
14024 if (PyErr_Occurred()) SWIG_fail;
14025 }
14026 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14027 {
14028 if (temp6)
14029 delete arg6;
14030 }
14031 return resultobj;
14032 fail:
14033 {
14034 if (temp6)
14035 delete arg6;
14036 }
14037 return NULL;
14038 }
14039
14040
14041 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14042 PyObject *resultobj = 0;
14043 wxFont *arg1 = (wxFont *) 0 ;
14044 void *argp1 = 0 ;
14045 int res1 = 0 ;
14046 PyObject *swig_obj[1] ;
14047
14048 if (!args) SWIG_fail;
14049 swig_obj[0] = args;
14050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14051 if (!SWIG_IsOK(res1)) {
14052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14053 }
14054 arg1 = reinterpret_cast< wxFont * >(argp1);
14055 {
14056 PyThreadState* __tstate = wxPyBeginAllowThreads();
14057 delete arg1;
14058
14059 wxPyEndAllowThreads(__tstate);
14060 if (PyErr_Occurred()) SWIG_fail;
14061 }
14062 resultobj = SWIG_Py_Void();
14063 return resultobj;
14064 fail:
14065 return NULL;
14066 }
14067
14068
14069 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14070 PyObject *resultobj = 0;
14071 wxNativeFontInfo *arg1 = 0 ;
14072 wxFont *result = 0 ;
14073 void *argp1 = 0 ;
14074 int res1 = 0 ;
14075 PyObject * obj0 = 0 ;
14076 char * kwnames[] = {
14077 (char *) "info", NULL
14078 };
14079
14080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14081 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14082 if (!SWIG_IsOK(res1)) {
14083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14084 }
14085 if (!argp1) {
14086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14087 }
14088 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14089 {
14090 if (!wxPyCheckForApp()) SWIG_fail;
14091 PyThreadState* __tstate = wxPyBeginAllowThreads();
14092 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14093 wxPyEndAllowThreads(__tstate);
14094 if (PyErr_Occurred()) SWIG_fail;
14095 }
14096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14097 return resultobj;
14098 fail:
14099 return NULL;
14100 }
14101
14102
14103 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14104 PyObject *resultobj = 0;
14105 wxString *arg1 = 0 ;
14106 wxFont *result = 0 ;
14107 bool temp1 = false ;
14108 PyObject * obj0 = 0 ;
14109 char * kwnames[] = {
14110 (char *) "info", NULL
14111 };
14112
14113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14114 {
14115 arg1 = wxString_in_helper(obj0);
14116 if (arg1 == NULL) SWIG_fail;
14117 temp1 = true;
14118 }
14119 {
14120 if (!wxPyCheckForApp()) SWIG_fail;
14121 PyThreadState* __tstate = wxPyBeginAllowThreads();
14122 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14123 wxPyEndAllowThreads(__tstate);
14124 if (PyErr_Occurred()) SWIG_fail;
14125 }
14126 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14127 {
14128 if (temp1)
14129 delete arg1;
14130 }
14131 return resultobj;
14132 fail:
14133 {
14134 if (temp1)
14135 delete arg1;
14136 }
14137 return NULL;
14138 }
14139
14140
14141 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14142 PyObject *resultobj = 0;
14143 int arg1 ;
14144 wxFontFamily arg2 ;
14145 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14146 wxString const &arg4_defvalue = wxPyEmptyString ;
14147 wxString *arg4 = (wxString *) &arg4_defvalue ;
14148 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14149 wxFont *result = 0 ;
14150 int val1 ;
14151 int ecode1 = 0 ;
14152 int val2 ;
14153 int ecode2 = 0 ;
14154 int val3 ;
14155 int ecode3 = 0 ;
14156 bool temp4 = false ;
14157 int val5 ;
14158 int ecode5 = 0 ;
14159 PyObject * obj0 = 0 ;
14160 PyObject * obj1 = 0 ;
14161 PyObject * obj2 = 0 ;
14162 PyObject * obj3 = 0 ;
14163 PyObject * obj4 = 0 ;
14164 char * kwnames[] = {
14165 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14166 };
14167
14168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14169 ecode1 = SWIG_AsVal_int(obj0, &val1);
14170 if (!SWIG_IsOK(ecode1)) {
14171 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14172 }
14173 arg1 = static_cast< int >(val1);
14174 ecode2 = SWIG_AsVal_int(obj1, &val2);
14175 if (!SWIG_IsOK(ecode2)) {
14176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14177 }
14178 arg2 = static_cast< wxFontFamily >(val2);
14179 if (obj2) {
14180 ecode3 = SWIG_AsVal_int(obj2, &val3);
14181 if (!SWIG_IsOK(ecode3)) {
14182 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14183 }
14184 arg3 = static_cast< int >(val3);
14185 }
14186 if (obj3) {
14187 {
14188 arg4 = wxString_in_helper(obj3);
14189 if (arg4 == NULL) SWIG_fail;
14190 temp4 = true;
14191 }
14192 }
14193 if (obj4) {
14194 ecode5 = SWIG_AsVal_int(obj4, &val5);
14195 if (!SWIG_IsOK(ecode5)) {
14196 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14197 }
14198 arg5 = static_cast< wxFontEncoding >(val5);
14199 }
14200 {
14201 if (!wxPyCheckForApp()) SWIG_fail;
14202 PyThreadState* __tstate = wxPyBeginAllowThreads();
14203 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14204 wxPyEndAllowThreads(__tstate);
14205 if (PyErr_Occurred()) SWIG_fail;
14206 }
14207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14208 {
14209 if (temp4)
14210 delete arg4;
14211 }
14212 return resultobj;
14213 fail:
14214 {
14215 if (temp4)
14216 delete arg4;
14217 }
14218 return NULL;
14219 }
14220
14221
14222 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14223 PyObject *resultobj = 0;
14224 wxSize *arg1 = 0 ;
14225 int arg2 ;
14226 int arg3 ;
14227 int arg4 ;
14228 bool arg5 = (bool) false ;
14229 wxString const &arg6_defvalue = wxEmptyString ;
14230 wxString *arg6 = (wxString *) &arg6_defvalue ;
14231 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14232 wxFont *result = 0 ;
14233 wxSize temp1 ;
14234 int val2 ;
14235 int ecode2 = 0 ;
14236 int val3 ;
14237 int ecode3 = 0 ;
14238 int val4 ;
14239 int ecode4 = 0 ;
14240 bool val5 ;
14241 int ecode5 = 0 ;
14242 bool temp6 = false ;
14243 int val7 ;
14244 int ecode7 = 0 ;
14245 PyObject * obj0 = 0 ;
14246 PyObject * obj1 = 0 ;
14247 PyObject * obj2 = 0 ;
14248 PyObject * obj3 = 0 ;
14249 PyObject * obj4 = 0 ;
14250 PyObject * obj5 = 0 ;
14251 PyObject * obj6 = 0 ;
14252 char * kwnames[] = {
14253 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14254 };
14255
14256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14257 {
14258 arg1 = &temp1;
14259 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14260 }
14261 ecode2 = SWIG_AsVal_int(obj1, &val2);
14262 if (!SWIG_IsOK(ecode2)) {
14263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14264 }
14265 arg2 = static_cast< int >(val2);
14266 ecode3 = SWIG_AsVal_int(obj2, &val3);
14267 if (!SWIG_IsOK(ecode3)) {
14268 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14269 }
14270 arg3 = static_cast< int >(val3);
14271 ecode4 = SWIG_AsVal_int(obj3, &val4);
14272 if (!SWIG_IsOK(ecode4)) {
14273 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14274 }
14275 arg4 = static_cast< int >(val4);
14276 if (obj4) {
14277 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14278 if (!SWIG_IsOK(ecode5)) {
14279 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14280 }
14281 arg5 = static_cast< bool >(val5);
14282 }
14283 if (obj5) {
14284 {
14285 arg6 = wxString_in_helper(obj5);
14286 if (arg6 == NULL) SWIG_fail;
14287 temp6 = true;
14288 }
14289 }
14290 if (obj6) {
14291 ecode7 = SWIG_AsVal_int(obj6, &val7);
14292 if (!SWIG_IsOK(ecode7)) {
14293 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14294 }
14295 arg7 = static_cast< wxFontEncoding >(val7);
14296 }
14297 {
14298 if (!wxPyCheckForApp()) SWIG_fail;
14299 PyThreadState* __tstate = wxPyBeginAllowThreads();
14300 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14301 wxPyEndAllowThreads(__tstate);
14302 if (PyErr_Occurred()) SWIG_fail;
14303 }
14304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14305 {
14306 if (temp6)
14307 delete arg6;
14308 }
14309 return resultobj;
14310 fail:
14311 {
14312 if (temp6)
14313 delete arg6;
14314 }
14315 return NULL;
14316 }
14317
14318
14319 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14320 PyObject *resultobj = 0;
14321 wxSize *arg1 = 0 ;
14322 wxFontFamily arg2 ;
14323 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14324 wxString const &arg4_defvalue = wxEmptyString ;
14325 wxString *arg4 = (wxString *) &arg4_defvalue ;
14326 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14327 wxFont *result = 0 ;
14328 wxSize temp1 ;
14329 int val2 ;
14330 int ecode2 = 0 ;
14331 int val3 ;
14332 int ecode3 = 0 ;
14333 bool temp4 = false ;
14334 int val5 ;
14335 int ecode5 = 0 ;
14336 PyObject * obj0 = 0 ;
14337 PyObject * obj1 = 0 ;
14338 PyObject * obj2 = 0 ;
14339 PyObject * obj3 = 0 ;
14340 PyObject * obj4 = 0 ;
14341 char * kwnames[] = {
14342 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14343 };
14344
14345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14346 {
14347 arg1 = &temp1;
14348 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14349 }
14350 ecode2 = SWIG_AsVal_int(obj1, &val2);
14351 if (!SWIG_IsOK(ecode2)) {
14352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14353 }
14354 arg2 = static_cast< wxFontFamily >(val2);
14355 if (obj2) {
14356 ecode3 = SWIG_AsVal_int(obj2, &val3);
14357 if (!SWIG_IsOK(ecode3)) {
14358 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14359 }
14360 arg3 = static_cast< int >(val3);
14361 }
14362 if (obj3) {
14363 {
14364 arg4 = wxString_in_helper(obj3);
14365 if (arg4 == NULL) SWIG_fail;
14366 temp4 = true;
14367 }
14368 }
14369 if (obj4) {
14370 ecode5 = SWIG_AsVal_int(obj4, &val5);
14371 if (!SWIG_IsOK(ecode5)) {
14372 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14373 }
14374 arg5 = static_cast< wxFontEncoding >(val5);
14375 }
14376 {
14377 if (!wxPyCheckForApp()) SWIG_fail;
14378 PyThreadState* __tstate = wxPyBeginAllowThreads();
14379 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14380 wxPyEndAllowThreads(__tstate);
14381 if (PyErr_Occurred()) SWIG_fail;
14382 }
14383 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14384 {
14385 if (temp4)
14386 delete arg4;
14387 }
14388 return resultobj;
14389 fail:
14390 {
14391 if (temp4)
14392 delete arg4;
14393 }
14394 return NULL;
14395 }
14396
14397
14398 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14399 PyObject *resultobj = 0;
14400 wxFont *arg1 = (wxFont *) 0 ;
14401 bool result;
14402 void *argp1 = 0 ;
14403 int res1 = 0 ;
14404 PyObject *swig_obj[1] ;
14405
14406 if (!args) SWIG_fail;
14407 swig_obj[0] = args;
14408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14409 if (!SWIG_IsOK(res1)) {
14410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14411 }
14412 arg1 = reinterpret_cast< wxFont * >(argp1);
14413 {
14414 PyThreadState* __tstate = wxPyBeginAllowThreads();
14415 result = (bool)((wxFont const *)arg1)->IsOk();
14416 wxPyEndAllowThreads(__tstate);
14417 if (PyErr_Occurred()) SWIG_fail;
14418 }
14419 {
14420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14421 }
14422 return resultobj;
14423 fail:
14424 return NULL;
14425 }
14426
14427
14428 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14429 PyObject *resultobj = 0;
14430 wxFont *arg1 = (wxFont *) 0 ;
14431 wxFont *arg2 = (wxFont *) 0 ;
14432 bool result;
14433 void *argp1 = 0 ;
14434 int res1 = 0 ;
14435 void *argp2 = 0 ;
14436 int res2 = 0 ;
14437 PyObject * obj0 = 0 ;
14438 PyObject * obj1 = 0 ;
14439 char * kwnames[] = {
14440 (char *) "self",(char *) "other", NULL
14441 };
14442
14443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14445 if (!SWIG_IsOK(res1)) {
14446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14447 }
14448 arg1 = reinterpret_cast< wxFont * >(argp1);
14449 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14450 if (!SWIG_IsOK(res2)) {
14451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14452 }
14453 arg2 = reinterpret_cast< wxFont * >(argp2);
14454 {
14455 PyThreadState* __tstate = wxPyBeginAllowThreads();
14456 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14457 wxPyEndAllowThreads(__tstate);
14458 if (PyErr_Occurred()) SWIG_fail;
14459 }
14460 {
14461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14462 }
14463 return resultobj;
14464 fail:
14465 return NULL;
14466 }
14467
14468
14469 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14470 PyObject *resultobj = 0;
14471 wxFont *arg1 = (wxFont *) 0 ;
14472 wxFont *arg2 = (wxFont *) 0 ;
14473 bool result;
14474 void *argp1 = 0 ;
14475 int res1 = 0 ;
14476 void *argp2 = 0 ;
14477 int res2 = 0 ;
14478 PyObject * obj0 = 0 ;
14479 PyObject * obj1 = 0 ;
14480 char * kwnames[] = {
14481 (char *) "self",(char *) "other", NULL
14482 };
14483
14484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14486 if (!SWIG_IsOK(res1)) {
14487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14488 }
14489 arg1 = reinterpret_cast< wxFont * >(argp1);
14490 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14491 if (!SWIG_IsOK(res2)) {
14492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14493 }
14494 arg2 = reinterpret_cast< wxFont * >(argp2);
14495 {
14496 PyThreadState* __tstate = wxPyBeginAllowThreads();
14497 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14498 wxPyEndAllowThreads(__tstate);
14499 if (PyErr_Occurred()) SWIG_fail;
14500 }
14501 {
14502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14503 }
14504 return resultobj;
14505 fail:
14506 return NULL;
14507 }
14508
14509
14510 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14511 PyObject *resultobj = 0;
14512 wxFont *arg1 = (wxFont *) 0 ;
14513 int result;
14514 void *argp1 = 0 ;
14515 int res1 = 0 ;
14516 PyObject *swig_obj[1] ;
14517
14518 if (!args) SWIG_fail;
14519 swig_obj[0] = args;
14520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14521 if (!SWIG_IsOK(res1)) {
14522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14523 }
14524 arg1 = reinterpret_cast< wxFont * >(argp1);
14525 {
14526 PyThreadState* __tstate = wxPyBeginAllowThreads();
14527 result = (int)((wxFont const *)arg1)->GetPointSize();
14528 wxPyEndAllowThreads(__tstate);
14529 if (PyErr_Occurred()) SWIG_fail;
14530 }
14531 resultobj = SWIG_From_int(static_cast< int >(result));
14532 return resultobj;
14533 fail:
14534 return NULL;
14535 }
14536
14537
14538 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14539 PyObject *resultobj = 0;
14540 wxFont *arg1 = (wxFont *) 0 ;
14541 wxSize result;
14542 void *argp1 = 0 ;
14543 int res1 = 0 ;
14544 PyObject *swig_obj[1] ;
14545
14546 if (!args) SWIG_fail;
14547 swig_obj[0] = args;
14548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14549 if (!SWIG_IsOK(res1)) {
14550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14551 }
14552 arg1 = reinterpret_cast< wxFont * >(argp1);
14553 {
14554 PyThreadState* __tstate = wxPyBeginAllowThreads();
14555 result = ((wxFont const *)arg1)->GetPixelSize();
14556 wxPyEndAllowThreads(__tstate);
14557 if (PyErr_Occurred()) SWIG_fail;
14558 }
14559 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14560 return resultobj;
14561 fail:
14562 return NULL;
14563 }
14564
14565
14566 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14567 PyObject *resultobj = 0;
14568 wxFont *arg1 = (wxFont *) 0 ;
14569 bool result;
14570 void *argp1 = 0 ;
14571 int res1 = 0 ;
14572 PyObject *swig_obj[1] ;
14573
14574 if (!args) SWIG_fail;
14575 swig_obj[0] = args;
14576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14577 if (!SWIG_IsOK(res1)) {
14578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14579 }
14580 arg1 = reinterpret_cast< wxFont * >(argp1);
14581 {
14582 PyThreadState* __tstate = wxPyBeginAllowThreads();
14583 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14584 wxPyEndAllowThreads(__tstate);
14585 if (PyErr_Occurred()) SWIG_fail;
14586 }
14587 {
14588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14589 }
14590 return resultobj;
14591 fail:
14592 return NULL;
14593 }
14594
14595
14596 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14597 PyObject *resultobj = 0;
14598 wxFont *arg1 = (wxFont *) 0 ;
14599 int result;
14600 void *argp1 = 0 ;
14601 int res1 = 0 ;
14602 PyObject *swig_obj[1] ;
14603
14604 if (!args) SWIG_fail;
14605 swig_obj[0] = args;
14606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14607 if (!SWIG_IsOK(res1)) {
14608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14609 }
14610 arg1 = reinterpret_cast< wxFont * >(argp1);
14611 {
14612 PyThreadState* __tstate = wxPyBeginAllowThreads();
14613 result = (int)((wxFont const *)arg1)->GetFamily();
14614 wxPyEndAllowThreads(__tstate);
14615 if (PyErr_Occurred()) SWIG_fail;
14616 }
14617 resultobj = SWIG_From_int(static_cast< int >(result));
14618 return resultobj;
14619 fail:
14620 return NULL;
14621 }
14622
14623
14624 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14625 PyObject *resultobj = 0;
14626 wxFont *arg1 = (wxFont *) 0 ;
14627 int result;
14628 void *argp1 = 0 ;
14629 int res1 = 0 ;
14630 PyObject *swig_obj[1] ;
14631
14632 if (!args) SWIG_fail;
14633 swig_obj[0] = args;
14634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14635 if (!SWIG_IsOK(res1)) {
14636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14637 }
14638 arg1 = reinterpret_cast< wxFont * >(argp1);
14639 {
14640 PyThreadState* __tstate = wxPyBeginAllowThreads();
14641 result = (int)((wxFont const *)arg1)->GetStyle();
14642 wxPyEndAllowThreads(__tstate);
14643 if (PyErr_Occurred()) SWIG_fail;
14644 }
14645 resultobj = SWIG_From_int(static_cast< int >(result));
14646 return resultobj;
14647 fail:
14648 return NULL;
14649 }
14650
14651
14652 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14653 PyObject *resultobj = 0;
14654 wxFont *arg1 = (wxFont *) 0 ;
14655 int result;
14656 void *argp1 = 0 ;
14657 int res1 = 0 ;
14658 PyObject *swig_obj[1] ;
14659
14660 if (!args) SWIG_fail;
14661 swig_obj[0] = args;
14662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14663 if (!SWIG_IsOK(res1)) {
14664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14665 }
14666 arg1 = reinterpret_cast< wxFont * >(argp1);
14667 {
14668 PyThreadState* __tstate = wxPyBeginAllowThreads();
14669 result = (int)((wxFont const *)arg1)->GetWeight();
14670 wxPyEndAllowThreads(__tstate);
14671 if (PyErr_Occurred()) SWIG_fail;
14672 }
14673 resultobj = SWIG_From_int(static_cast< int >(result));
14674 return resultobj;
14675 fail:
14676 return NULL;
14677 }
14678
14679
14680 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14681 PyObject *resultobj = 0;
14682 wxFont *arg1 = (wxFont *) 0 ;
14683 bool result;
14684 void *argp1 = 0 ;
14685 int res1 = 0 ;
14686 PyObject *swig_obj[1] ;
14687
14688 if (!args) SWIG_fail;
14689 swig_obj[0] = args;
14690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14691 if (!SWIG_IsOK(res1)) {
14692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14693 }
14694 arg1 = reinterpret_cast< wxFont * >(argp1);
14695 {
14696 PyThreadState* __tstate = wxPyBeginAllowThreads();
14697 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14698 wxPyEndAllowThreads(__tstate);
14699 if (PyErr_Occurred()) SWIG_fail;
14700 }
14701 {
14702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14703 }
14704 return resultobj;
14705 fail:
14706 return NULL;
14707 }
14708
14709
14710 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14711 PyObject *resultobj = 0;
14712 wxFont *arg1 = (wxFont *) 0 ;
14713 wxString result;
14714 void *argp1 = 0 ;
14715 int res1 = 0 ;
14716 PyObject *swig_obj[1] ;
14717
14718 if (!args) SWIG_fail;
14719 swig_obj[0] = args;
14720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14721 if (!SWIG_IsOK(res1)) {
14722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14723 }
14724 arg1 = reinterpret_cast< wxFont * >(argp1);
14725 {
14726 PyThreadState* __tstate = wxPyBeginAllowThreads();
14727 result = ((wxFont const *)arg1)->GetFaceName();
14728 wxPyEndAllowThreads(__tstate);
14729 if (PyErr_Occurred()) SWIG_fail;
14730 }
14731 {
14732 #if wxUSE_UNICODE
14733 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14734 #else
14735 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14736 #endif
14737 }
14738 return resultobj;
14739 fail:
14740 return NULL;
14741 }
14742
14743
14744 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14745 PyObject *resultobj = 0;
14746 wxFont *arg1 = (wxFont *) 0 ;
14747 wxFontEncoding result;
14748 void *argp1 = 0 ;
14749 int res1 = 0 ;
14750 PyObject *swig_obj[1] ;
14751
14752 if (!args) SWIG_fail;
14753 swig_obj[0] = args;
14754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14755 if (!SWIG_IsOK(res1)) {
14756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14757 }
14758 arg1 = reinterpret_cast< wxFont * >(argp1);
14759 {
14760 PyThreadState* __tstate = wxPyBeginAllowThreads();
14761 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14762 wxPyEndAllowThreads(__tstate);
14763 if (PyErr_Occurred()) SWIG_fail;
14764 }
14765 resultobj = SWIG_From_int(static_cast< int >(result));
14766 return resultobj;
14767 fail:
14768 return NULL;
14769 }
14770
14771
14772 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14773 PyObject *resultobj = 0;
14774 wxFont *arg1 = (wxFont *) 0 ;
14775 wxNativeFontInfo *result = 0 ;
14776 void *argp1 = 0 ;
14777 int res1 = 0 ;
14778 PyObject *swig_obj[1] ;
14779
14780 if (!args) SWIG_fail;
14781 swig_obj[0] = args;
14782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14783 if (!SWIG_IsOK(res1)) {
14784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14785 }
14786 arg1 = reinterpret_cast< wxFont * >(argp1);
14787 {
14788 PyThreadState* __tstate = wxPyBeginAllowThreads();
14789 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14790 wxPyEndAllowThreads(__tstate);
14791 if (PyErr_Occurred()) SWIG_fail;
14792 }
14793 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14794 return resultobj;
14795 fail:
14796 return NULL;
14797 }
14798
14799
14800 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14801 PyObject *resultobj = 0;
14802 wxFont *arg1 = (wxFont *) 0 ;
14803 bool result;
14804 void *argp1 = 0 ;
14805 int res1 = 0 ;
14806 PyObject *swig_obj[1] ;
14807
14808 if (!args) SWIG_fail;
14809 swig_obj[0] = args;
14810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14811 if (!SWIG_IsOK(res1)) {
14812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14813 }
14814 arg1 = reinterpret_cast< wxFont * >(argp1);
14815 {
14816 PyThreadState* __tstate = wxPyBeginAllowThreads();
14817 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14818 wxPyEndAllowThreads(__tstate);
14819 if (PyErr_Occurred()) SWIG_fail;
14820 }
14821 {
14822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14823 }
14824 return resultobj;
14825 fail:
14826 return NULL;
14827 }
14828
14829
14830 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14831 PyObject *resultobj = 0;
14832 wxFont *arg1 = (wxFont *) 0 ;
14833 wxString result;
14834 void *argp1 = 0 ;
14835 int res1 = 0 ;
14836 PyObject *swig_obj[1] ;
14837
14838 if (!args) SWIG_fail;
14839 swig_obj[0] = args;
14840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14841 if (!SWIG_IsOK(res1)) {
14842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14843 }
14844 arg1 = reinterpret_cast< wxFont * >(argp1);
14845 {
14846 PyThreadState* __tstate = wxPyBeginAllowThreads();
14847 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14848 wxPyEndAllowThreads(__tstate);
14849 if (PyErr_Occurred()) SWIG_fail;
14850 }
14851 {
14852 #if wxUSE_UNICODE
14853 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14854 #else
14855 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14856 #endif
14857 }
14858 return resultobj;
14859 fail:
14860 return NULL;
14861 }
14862
14863
14864 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14865 PyObject *resultobj = 0;
14866 wxFont *arg1 = (wxFont *) 0 ;
14867 wxString result;
14868 void *argp1 = 0 ;
14869 int res1 = 0 ;
14870 PyObject *swig_obj[1] ;
14871
14872 if (!args) SWIG_fail;
14873 swig_obj[0] = args;
14874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14875 if (!SWIG_IsOK(res1)) {
14876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14877 }
14878 arg1 = reinterpret_cast< wxFont * >(argp1);
14879 {
14880 PyThreadState* __tstate = wxPyBeginAllowThreads();
14881 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14882 wxPyEndAllowThreads(__tstate);
14883 if (PyErr_Occurred()) SWIG_fail;
14884 }
14885 {
14886 #if wxUSE_UNICODE
14887 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14888 #else
14889 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14890 #endif
14891 }
14892 return resultobj;
14893 fail:
14894 return NULL;
14895 }
14896
14897
14898 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14899 PyObject *resultobj = 0;
14900 wxFont *arg1 = (wxFont *) 0 ;
14901 int arg2 ;
14902 void *argp1 = 0 ;
14903 int res1 = 0 ;
14904 int val2 ;
14905 int ecode2 = 0 ;
14906 PyObject * obj0 = 0 ;
14907 PyObject * obj1 = 0 ;
14908 char * kwnames[] = {
14909 (char *) "self",(char *) "pointSize", NULL
14910 };
14911
14912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14914 if (!SWIG_IsOK(res1)) {
14915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14916 }
14917 arg1 = reinterpret_cast< wxFont * >(argp1);
14918 ecode2 = SWIG_AsVal_int(obj1, &val2);
14919 if (!SWIG_IsOK(ecode2)) {
14920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14921 }
14922 arg2 = static_cast< int >(val2);
14923 {
14924 PyThreadState* __tstate = wxPyBeginAllowThreads();
14925 (arg1)->SetPointSize(arg2);
14926 wxPyEndAllowThreads(__tstate);
14927 if (PyErr_Occurred()) SWIG_fail;
14928 }
14929 resultobj = SWIG_Py_Void();
14930 return resultobj;
14931 fail:
14932 return NULL;
14933 }
14934
14935
14936 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14937 PyObject *resultobj = 0;
14938 wxFont *arg1 = (wxFont *) 0 ;
14939 wxSize *arg2 = 0 ;
14940 void *argp1 = 0 ;
14941 int res1 = 0 ;
14942 wxSize temp2 ;
14943 PyObject * obj0 = 0 ;
14944 PyObject * obj1 = 0 ;
14945 char * kwnames[] = {
14946 (char *) "self",(char *) "pixelSize", NULL
14947 };
14948
14949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14951 if (!SWIG_IsOK(res1)) {
14952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14953 }
14954 arg1 = reinterpret_cast< wxFont * >(argp1);
14955 {
14956 arg2 = &temp2;
14957 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14958 }
14959 {
14960 PyThreadState* __tstate = wxPyBeginAllowThreads();
14961 (arg1)->SetPixelSize((wxSize const &)*arg2);
14962 wxPyEndAllowThreads(__tstate);
14963 if (PyErr_Occurred()) SWIG_fail;
14964 }
14965 resultobj = SWIG_Py_Void();
14966 return resultobj;
14967 fail:
14968 return NULL;
14969 }
14970
14971
14972 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14973 PyObject *resultobj = 0;
14974 wxFont *arg1 = (wxFont *) 0 ;
14975 int arg2 ;
14976 void *argp1 = 0 ;
14977 int res1 = 0 ;
14978 int val2 ;
14979 int ecode2 = 0 ;
14980 PyObject * obj0 = 0 ;
14981 PyObject * obj1 = 0 ;
14982 char * kwnames[] = {
14983 (char *) "self",(char *) "family", NULL
14984 };
14985
14986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14988 if (!SWIG_IsOK(res1)) {
14989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14990 }
14991 arg1 = reinterpret_cast< wxFont * >(argp1);
14992 ecode2 = SWIG_AsVal_int(obj1, &val2);
14993 if (!SWIG_IsOK(ecode2)) {
14994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14995 }
14996 arg2 = static_cast< int >(val2);
14997 {
14998 PyThreadState* __tstate = wxPyBeginAllowThreads();
14999 (arg1)->SetFamily(arg2);
15000 wxPyEndAllowThreads(__tstate);
15001 if (PyErr_Occurred()) SWIG_fail;
15002 }
15003 resultobj = SWIG_Py_Void();
15004 return resultobj;
15005 fail:
15006 return NULL;
15007 }
15008
15009
15010 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15011 PyObject *resultobj = 0;
15012 wxFont *arg1 = (wxFont *) 0 ;
15013 int arg2 ;
15014 void *argp1 = 0 ;
15015 int res1 = 0 ;
15016 int val2 ;
15017 int ecode2 = 0 ;
15018 PyObject * obj0 = 0 ;
15019 PyObject * obj1 = 0 ;
15020 char * kwnames[] = {
15021 (char *) "self",(char *) "style", NULL
15022 };
15023
15024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15026 if (!SWIG_IsOK(res1)) {
15027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15028 }
15029 arg1 = reinterpret_cast< wxFont * >(argp1);
15030 ecode2 = SWIG_AsVal_int(obj1, &val2);
15031 if (!SWIG_IsOK(ecode2)) {
15032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15033 }
15034 arg2 = static_cast< int >(val2);
15035 {
15036 PyThreadState* __tstate = wxPyBeginAllowThreads();
15037 (arg1)->SetStyle(arg2);
15038 wxPyEndAllowThreads(__tstate);
15039 if (PyErr_Occurred()) SWIG_fail;
15040 }
15041 resultobj = SWIG_Py_Void();
15042 return resultobj;
15043 fail:
15044 return NULL;
15045 }
15046
15047
15048 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15049 PyObject *resultobj = 0;
15050 wxFont *arg1 = (wxFont *) 0 ;
15051 int arg2 ;
15052 void *argp1 = 0 ;
15053 int res1 = 0 ;
15054 int val2 ;
15055 int ecode2 = 0 ;
15056 PyObject * obj0 = 0 ;
15057 PyObject * obj1 = 0 ;
15058 char * kwnames[] = {
15059 (char *) "self",(char *) "weight", NULL
15060 };
15061
15062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15064 if (!SWIG_IsOK(res1)) {
15065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15066 }
15067 arg1 = reinterpret_cast< wxFont * >(argp1);
15068 ecode2 = SWIG_AsVal_int(obj1, &val2);
15069 if (!SWIG_IsOK(ecode2)) {
15070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15071 }
15072 arg2 = static_cast< int >(val2);
15073 {
15074 PyThreadState* __tstate = wxPyBeginAllowThreads();
15075 (arg1)->SetWeight(arg2);
15076 wxPyEndAllowThreads(__tstate);
15077 if (PyErr_Occurred()) SWIG_fail;
15078 }
15079 resultobj = SWIG_Py_Void();
15080 return resultobj;
15081 fail:
15082 return NULL;
15083 }
15084
15085
15086 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15087 PyObject *resultobj = 0;
15088 wxFont *arg1 = (wxFont *) 0 ;
15089 wxString *arg2 = 0 ;
15090 bool result;
15091 void *argp1 = 0 ;
15092 int res1 = 0 ;
15093 bool temp2 = false ;
15094 PyObject * obj0 = 0 ;
15095 PyObject * obj1 = 0 ;
15096 char * kwnames[] = {
15097 (char *) "self",(char *) "faceName", NULL
15098 };
15099
15100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15102 if (!SWIG_IsOK(res1)) {
15103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15104 }
15105 arg1 = reinterpret_cast< wxFont * >(argp1);
15106 {
15107 arg2 = wxString_in_helper(obj1);
15108 if (arg2 == NULL) SWIG_fail;
15109 temp2 = true;
15110 }
15111 {
15112 PyThreadState* __tstate = wxPyBeginAllowThreads();
15113 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15114 wxPyEndAllowThreads(__tstate);
15115 if (PyErr_Occurred()) SWIG_fail;
15116 }
15117 {
15118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15119 }
15120 {
15121 if (temp2)
15122 delete arg2;
15123 }
15124 return resultobj;
15125 fail:
15126 {
15127 if (temp2)
15128 delete arg2;
15129 }
15130 return NULL;
15131 }
15132
15133
15134 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15135 PyObject *resultobj = 0;
15136 wxFont *arg1 = (wxFont *) 0 ;
15137 bool arg2 ;
15138 void *argp1 = 0 ;
15139 int res1 = 0 ;
15140 bool val2 ;
15141 int ecode2 = 0 ;
15142 PyObject * obj0 = 0 ;
15143 PyObject * obj1 = 0 ;
15144 char * kwnames[] = {
15145 (char *) "self",(char *) "underlined", NULL
15146 };
15147
15148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15150 if (!SWIG_IsOK(res1)) {
15151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15152 }
15153 arg1 = reinterpret_cast< wxFont * >(argp1);
15154 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15155 if (!SWIG_IsOK(ecode2)) {
15156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15157 }
15158 arg2 = static_cast< bool >(val2);
15159 {
15160 PyThreadState* __tstate = wxPyBeginAllowThreads();
15161 (arg1)->SetUnderlined(arg2);
15162 wxPyEndAllowThreads(__tstate);
15163 if (PyErr_Occurred()) SWIG_fail;
15164 }
15165 resultobj = SWIG_Py_Void();
15166 return resultobj;
15167 fail:
15168 return NULL;
15169 }
15170
15171
15172 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15173 PyObject *resultobj = 0;
15174 wxFont *arg1 = (wxFont *) 0 ;
15175 wxFontEncoding arg2 ;
15176 void *argp1 = 0 ;
15177 int res1 = 0 ;
15178 int val2 ;
15179 int ecode2 = 0 ;
15180 PyObject * obj0 = 0 ;
15181 PyObject * obj1 = 0 ;
15182 char * kwnames[] = {
15183 (char *) "self",(char *) "encoding", NULL
15184 };
15185
15186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15188 if (!SWIG_IsOK(res1)) {
15189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15190 }
15191 arg1 = reinterpret_cast< wxFont * >(argp1);
15192 ecode2 = SWIG_AsVal_int(obj1, &val2);
15193 if (!SWIG_IsOK(ecode2)) {
15194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15195 }
15196 arg2 = static_cast< wxFontEncoding >(val2);
15197 {
15198 PyThreadState* __tstate = wxPyBeginAllowThreads();
15199 (arg1)->SetEncoding(arg2);
15200 wxPyEndAllowThreads(__tstate);
15201 if (PyErr_Occurred()) SWIG_fail;
15202 }
15203 resultobj = SWIG_Py_Void();
15204 return resultobj;
15205 fail:
15206 return NULL;
15207 }
15208
15209
15210 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15211 PyObject *resultobj = 0;
15212 wxFont *arg1 = (wxFont *) 0 ;
15213 wxNativeFontInfo *arg2 = 0 ;
15214 void *argp1 = 0 ;
15215 int res1 = 0 ;
15216 void *argp2 = 0 ;
15217 int res2 = 0 ;
15218 PyObject * obj0 = 0 ;
15219 PyObject * obj1 = 0 ;
15220 char * kwnames[] = {
15221 (char *) "self",(char *) "info", NULL
15222 };
15223
15224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15226 if (!SWIG_IsOK(res1)) {
15227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15228 }
15229 arg1 = reinterpret_cast< wxFont * >(argp1);
15230 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15231 if (!SWIG_IsOK(res2)) {
15232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15233 }
15234 if (!argp2) {
15235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15236 }
15237 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15238 {
15239 PyThreadState* __tstate = wxPyBeginAllowThreads();
15240 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15241 wxPyEndAllowThreads(__tstate);
15242 if (PyErr_Occurred()) SWIG_fail;
15243 }
15244 resultobj = SWIG_Py_Void();
15245 return resultobj;
15246 fail:
15247 return NULL;
15248 }
15249
15250
15251 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15252 PyObject *resultobj = 0;
15253 wxFont *arg1 = (wxFont *) 0 ;
15254 wxString *arg2 = 0 ;
15255 bool result;
15256 void *argp1 = 0 ;
15257 int res1 = 0 ;
15258 bool temp2 = false ;
15259 PyObject * obj0 = 0 ;
15260 PyObject * obj1 = 0 ;
15261 char * kwnames[] = {
15262 (char *) "self",(char *) "info", NULL
15263 };
15264
15265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15267 if (!SWIG_IsOK(res1)) {
15268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15269 }
15270 arg1 = reinterpret_cast< wxFont * >(argp1);
15271 {
15272 arg2 = wxString_in_helper(obj1);
15273 if (arg2 == NULL) SWIG_fail;
15274 temp2 = true;
15275 }
15276 {
15277 PyThreadState* __tstate = wxPyBeginAllowThreads();
15278 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15279 wxPyEndAllowThreads(__tstate);
15280 if (PyErr_Occurred()) SWIG_fail;
15281 }
15282 {
15283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15284 }
15285 {
15286 if (temp2)
15287 delete arg2;
15288 }
15289 return resultobj;
15290 fail:
15291 {
15292 if (temp2)
15293 delete arg2;
15294 }
15295 return NULL;
15296 }
15297
15298
15299 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15300 PyObject *resultobj = 0;
15301 wxFont *arg1 = (wxFont *) 0 ;
15302 wxString *arg2 = 0 ;
15303 bool result;
15304 void *argp1 = 0 ;
15305 int res1 = 0 ;
15306 bool temp2 = false ;
15307 PyObject * obj0 = 0 ;
15308 PyObject * obj1 = 0 ;
15309 char * kwnames[] = {
15310 (char *) "self",(char *) "info", NULL
15311 };
15312
15313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15315 if (!SWIG_IsOK(res1)) {
15316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15317 }
15318 arg1 = reinterpret_cast< wxFont * >(argp1);
15319 {
15320 arg2 = wxString_in_helper(obj1);
15321 if (arg2 == NULL) SWIG_fail;
15322 temp2 = true;
15323 }
15324 {
15325 PyThreadState* __tstate = wxPyBeginAllowThreads();
15326 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15327 wxPyEndAllowThreads(__tstate);
15328 if (PyErr_Occurred()) SWIG_fail;
15329 }
15330 {
15331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15332 }
15333 {
15334 if (temp2)
15335 delete arg2;
15336 }
15337 return resultobj;
15338 fail:
15339 {
15340 if (temp2)
15341 delete arg2;
15342 }
15343 return NULL;
15344 }
15345
15346
15347 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15348 PyObject *resultobj = 0;
15349 wxFont *arg1 = (wxFont *) 0 ;
15350 wxString result;
15351 void *argp1 = 0 ;
15352 int res1 = 0 ;
15353 PyObject *swig_obj[1] ;
15354
15355 if (!args) SWIG_fail;
15356 swig_obj[0] = args;
15357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15358 if (!SWIG_IsOK(res1)) {
15359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15360 }
15361 arg1 = reinterpret_cast< wxFont * >(argp1);
15362 {
15363 PyThreadState* __tstate = wxPyBeginAllowThreads();
15364 result = ((wxFont const *)arg1)->GetFamilyString();
15365 wxPyEndAllowThreads(__tstate);
15366 if (PyErr_Occurred()) SWIG_fail;
15367 }
15368 {
15369 #if wxUSE_UNICODE
15370 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15371 #else
15372 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15373 #endif
15374 }
15375 return resultobj;
15376 fail:
15377 return NULL;
15378 }
15379
15380
15381 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15382 PyObject *resultobj = 0;
15383 wxFont *arg1 = (wxFont *) 0 ;
15384 wxString result;
15385 void *argp1 = 0 ;
15386 int res1 = 0 ;
15387 PyObject *swig_obj[1] ;
15388
15389 if (!args) SWIG_fail;
15390 swig_obj[0] = args;
15391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15392 if (!SWIG_IsOK(res1)) {
15393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15394 }
15395 arg1 = reinterpret_cast< wxFont * >(argp1);
15396 {
15397 PyThreadState* __tstate = wxPyBeginAllowThreads();
15398 result = ((wxFont const *)arg1)->GetStyleString();
15399 wxPyEndAllowThreads(__tstate);
15400 if (PyErr_Occurred()) SWIG_fail;
15401 }
15402 {
15403 #if wxUSE_UNICODE
15404 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15405 #else
15406 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15407 #endif
15408 }
15409 return resultobj;
15410 fail:
15411 return NULL;
15412 }
15413
15414
15415 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15416 PyObject *resultobj = 0;
15417 wxFont *arg1 = (wxFont *) 0 ;
15418 wxString result;
15419 void *argp1 = 0 ;
15420 int res1 = 0 ;
15421 PyObject *swig_obj[1] ;
15422
15423 if (!args) SWIG_fail;
15424 swig_obj[0] = args;
15425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15426 if (!SWIG_IsOK(res1)) {
15427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15428 }
15429 arg1 = reinterpret_cast< wxFont * >(argp1);
15430 {
15431 PyThreadState* __tstate = wxPyBeginAllowThreads();
15432 result = ((wxFont const *)arg1)->GetWeightString();
15433 wxPyEndAllowThreads(__tstate);
15434 if (PyErr_Occurred()) SWIG_fail;
15435 }
15436 {
15437 #if wxUSE_UNICODE
15438 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15439 #else
15440 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15441 #endif
15442 }
15443 return resultobj;
15444 fail:
15445 return NULL;
15446 }
15447
15448
15449 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15450 PyObject *resultobj = 0;
15451 wxFont *arg1 = (wxFont *) 0 ;
15452 bool arg2 = (bool) true ;
15453 void *argp1 = 0 ;
15454 int res1 = 0 ;
15455 bool val2 ;
15456 int ecode2 = 0 ;
15457 PyObject * obj0 = 0 ;
15458 PyObject * obj1 = 0 ;
15459 char * kwnames[] = {
15460 (char *) "self",(char *) "no", NULL
15461 };
15462
15463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15465 if (!SWIG_IsOK(res1)) {
15466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15467 }
15468 arg1 = reinterpret_cast< wxFont * >(argp1);
15469 if (obj1) {
15470 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15471 if (!SWIG_IsOK(ecode2)) {
15472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15473 }
15474 arg2 = static_cast< bool >(val2);
15475 }
15476 {
15477 PyThreadState* __tstate = wxPyBeginAllowThreads();
15478 (arg1)->SetNoAntiAliasing(arg2);
15479 wxPyEndAllowThreads(__tstate);
15480 if (PyErr_Occurred()) SWIG_fail;
15481 }
15482 resultobj = SWIG_Py_Void();
15483 return resultobj;
15484 fail:
15485 return NULL;
15486 }
15487
15488
15489 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15490 PyObject *resultobj = 0;
15491 wxFont *arg1 = (wxFont *) 0 ;
15492 bool result;
15493 void *argp1 = 0 ;
15494 int res1 = 0 ;
15495 PyObject *swig_obj[1] ;
15496
15497 if (!args) SWIG_fail;
15498 swig_obj[0] = args;
15499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15500 if (!SWIG_IsOK(res1)) {
15501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15502 }
15503 arg1 = reinterpret_cast< wxFont * >(argp1);
15504 {
15505 PyThreadState* __tstate = wxPyBeginAllowThreads();
15506 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15507 wxPyEndAllowThreads(__tstate);
15508 if (PyErr_Occurred()) SWIG_fail;
15509 }
15510 {
15511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15512 }
15513 return resultobj;
15514 fail:
15515 return NULL;
15516 }
15517
15518
15519 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15520 PyObject *resultobj = 0;
15521 wxFontEncoding result;
15522
15523 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15524 {
15525 if (!wxPyCheckForApp()) SWIG_fail;
15526 PyThreadState* __tstate = wxPyBeginAllowThreads();
15527 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15528 wxPyEndAllowThreads(__tstate);
15529 if (PyErr_Occurred()) SWIG_fail;
15530 }
15531 resultobj = SWIG_From_int(static_cast< int >(result));
15532 return resultobj;
15533 fail:
15534 return NULL;
15535 }
15536
15537
15538 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15539 PyObject *resultobj = 0;
15540 wxFontEncoding arg1 ;
15541 int val1 ;
15542 int ecode1 = 0 ;
15543 PyObject * obj0 = 0 ;
15544 char * kwnames[] = {
15545 (char *) "encoding", NULL
15546 };
15547
15548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15549 ecode1 = SWIG_AsVal_int(obj0, &val1);
15550 if (!SWIG_IsOK(ecode1)) {
15551 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15552 }
15553 arg1 = static_cast< wxFontEncoding >(val1);
15554 {
15555 if (!wxPyCheckForApp()) SWIG_fail;
15556 PyThreadState* __tstate = wxPyBeginAllowThreads();
15557 wxFont::SetDefaultEncoding(arg1);
15558 wxPyEndAllowThreads(__tstate);
15559 if (PyErr_Occurred()) SWIG_fail;
15560 }
15561 resultobj = SWIG_Py_Void();
15562 return resultobj;
15563 fail:
15564 return NULL;
15565 }
15566
15567
15568 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15569 PyObject *obj;
15570 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15571 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15572 return SWIG_Py_Void();
15573 }
15574
15575 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15576 return SWIG_Python_InitShadowInstance(args);
15577 }
15578
15579 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15580 PyObject *resultobj = 0;
15581 wxPyFontEnumerator *result = 0 ;
15582
15583 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15584 {
15585 if (!wxPyCheckForApp()) SWIG_fail;
15586 PyThreadState* __tstate = wxPyBeginAllowThreads();
15587 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15588 wxPyEndAllowThreads(__tstate);
15589 if (PyErr_Occurred()) SWIG_fail;
15590 }
15591 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15592 return resultobj;
15593 fail:
15594 return NULL;
15595 }
15596
15597
15598 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15599 PyObject *resultobj = 0;
15600 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15601 void *argp1 = 0 ;
15602 int res1 = 0 ;
15603 PyObject *swig_obj[1] ;
15604
15605 if (!args) SWIG_fail;
15606 swig_obj[0] = args;
15607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15608 if (!SWIG_IsOK(res1)) {
15609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15610 }
15611 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15612 {
15613 PyThreadState* __tstate = wxPyBeginAllowThreads();
15614 delete arg1;
15615
15616 wxPyEndAllowThreads(__tstate);
15617 if (PyErr_Occurred()) SWIG_fail;
15618 }
15619 resultobj = SWIG_Py_Void();
15620 return resultobj;
15621 fail:
15622 return NULL;
15623 }
15624
15625
15626 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15627 PyObject *resultobj = 0;
15628 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15629 PyObject *arg2 = (PyObject *) 0 ;
15630 PyObject *arg3 = (PyObject *) 0 ;
15631 int arg4 = (int) 0 ;
15632 void *argp1 = 0 ;
15633 int res1 = 0 ;
15634 int val4 ;
15635 int ecode4 = 0 ;
15636 PyObject * obj0 = 0 ;
15637 PyObject * obj1 = 0 ;
15638 PyObject * obj2 = 0 ;
15639 PyObject * obj3 = 0 ;
15640 char * kwnames[] = {
15641 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15642 };
15643
15644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15646 if (!SWIG_IsOK(res1)) {
15647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15648 }
15649 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15650 arg2 = obj1;
15651 arg3 = obj2;
15652 if (obj3) {
15653 ecode4 = SWIG_AsVal_int(obj3, &val4);
15654 if (!SWIG_IsOK(ecode4)) {
15655 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
15656 }
15657 arg4 = static_cast< int >(val4);
15658 }
15659 {
15660 PyThreadState* __tstate = wxPyBeginAllowThreads();
15661 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15662 wxPyEndAllowThreads(__tstate);
15663 if (PyErr_Occurred()) SWIG_fail;
15664 }
15665 resultobj = SWIG_Py_Void();
15666 return resultobj;
15667 fail:
15668 return NULL;
15669 }
15670
15671
15672 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15673 PyObject *resultobj = 0;
15674 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15675 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15676 bool arg3 = (bool) false ;
15677 bool result;
15678 void *argp1 = 0 ;
15679 int res1 = 0 ;
15680 int val2 ;
15681 int ecode2 = 0 ;
15682 bool val3 ;
15683 int ecode3 = 0 ;
15684 PyObject * obj0 = 0 ;
15685 PyObject * obj1 = 0 ;
15686 PyObject * obj2 = 0 ;
15687 char * kwnames[] = {
15688 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15689 };
15690
15691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15693 if (!SWIG_IsOK(res1)) {
15694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15695 }
15696 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15697 if (obj1) {
15698 ecode2 = SWIG_AsVal_int(obj1, &val2);
15699 if (!SWIG_IsOK(ecode2)) {
15700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15701 }
15702 arg2 = static_cast< wxFontEncoding >(val2);
15703 }
15704 if (obj2) {
15705 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15706 if (!SWIG_IsOK(ecode3)) {
15707 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15708 }
15709 arg3 = static_cast< bool >(val3);
15710 }
15711 {
15712 PyThreadState* __tstate = wxPyBeginAllowThreads();
15713 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15714 wxPyEndAllowThreads(__tstate);
15715 if (PyErr_Occurred()) SWIG_fail;
15716 }
15717 {
15718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15719 }
15720 return resultobj;
15721 fail:
15722 return NULL;
15723 }
15724
15725
15726 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15727 PyObject *resultobj = 0;
15728 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15729 wxString const &arg2_defvalue = wxPyEmptyString ;
15730 wxString *arg2 = (wxString *) &arg2_defvalue ;
15731 bool result;
15732 void *argp1 = 0 ;
15733 int res1 = 0 ;
15734 bool temp2 = false ;
15735 PyObject * obj0 = 0 ;
15736 PyObject * obj1 = 0 ;
15737 char * kwnames[] = {
15738 (char *) "self",(char *) "facename", NULL
15739 };
15740
15741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15743 if (!SWIG_IsOK(res1)) {
15744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15745 }
15746 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15747 if (obj1) {
15748 {
15749 arg2 = wxString_in_helper(obj1);
15750 if (arg2 == NULL) SWIG_fail;
15751 temp2 = true;
15752 }
15753 }
15754 {
15755 PyThreadState* __tstate = wxPyBeginAllowThreads();
15756 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15757 wxPyEndAllowThreads(__tstate);
15758 if (PyErr_Occurred()) SWIG_fail;
15759 }
15760 {
15761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15762 }
15763 {
15764 if (temp2)
15765 delete arg2;
15766 }
15767 return resultobj;
15768 fail:
15769 {
15770 if (temp2)
15771 delete arg2;
15772 }
15773 return NULL;
15774 }
15775
15776
15777 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15778 PyObject *resultobj = 0;
15779 PyObject *result = 0 ;
15780
15781 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15782 {
15783 PyThreadState* __tstate = wxPyBeginAllowThreads();
15784 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15785 wxPyEndAllowThreads(__tstate);
15786 if (PyErr_Occurred()) SWIG_fail;
15787 }
15788 resultobj = result;
15789 return resultobj;
15790 fail:
15791 return NULL;
15792 }
15793
15794
15795 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15796 PyObject *resultobj = 0;
15797 PyObject *result = 0 ;
15798
15799 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15800 {
15801 PyThreadState* __tstate = wxPyBeginAllowThreads();
15802 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15803 wxPyEndAllowThreads(__tstate);
15804 if (PyErr_Occurred()) SWIG_fail;
15805 }
15806 resultobj = result;
15807 return resultobj;
15808 fail:
15809 return NULL;
15810 }
15811
15812
15813 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15814 PyObject *resultobj = 0;
15815 wxString *arg1 = 0 ;
15816 bool result;
15817 bool temp1 = false ;
15818 PyObject * obj0 = 0 ;
15819 char * kwnames[] = {
15820 (char *) "str", NULL
15821 };
15822
15823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15824 {
15825 arg1 = wxString_in_helper(obj0);
15826 if (arg1 == NULL) SWIG_fail;
15827 temp1 = true;
15828 }
15829 {
15830 PyThreadState* __tstate = wxPyBeginAllowThreads();
15831 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15832 wxPyEndAllowThreads(__tstate);
15833 if (PyErr_Occurred()) SWIG_fail;
15834 }
15835 {
15836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15837 }
15838 {
15839 if (temp1)
15840 delete arg1;
15841 }
15842 return resultobj;
15843 fail:
15844 {
15845 if (temp1)
15846 delete arg1;
15847 }
15848 return NULL;
15849 }
15850
15851
15852 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15853 PyObject *obj;
15854 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15855 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15856 return SWIG_Py_Void();
15857 }
15858
15859 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15860 return SWIG_Python_InitShadowInstance(args);
15861 }
15862
15863 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15864 PyObject *resultobj = 0;
15865 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15866 int arg2 ;
15867 void *argp1 = 0 ;
15868 int res1 = 0 ;
15869 int val2 ;
15870 int ecode2 = 0 ;
15871 PyObject *swig_obj[2] ;
15872
15873 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15875 if (!SWIG_IsOK(res1)) {
15876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15877 }
15878 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15879 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15880 if (!SWIG_IsOK(ecode2)) {
15881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15882 }
15883 arg2 = static_cast< int >(val2);
15884 if (arg1) (arg1)->Language = arg2;
15885
15886 resultobj = SWIG_Py_Void();
15887 return resultobj;
15888 fail:
15889 return NULL;
15890 }
15891
15892
15893 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15894 PyObject *resultobj = 0;
15895 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15896 int result;
15897 void *argp1 = 0 ;
15898 int res1 = 0 ;
15899 PyObject *swig_obj[1] ;
15900
15901 if (!args) SWIG_fail;
15902 swig_obj[0] = args;
15903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15904 if (!SWIG_IsOK(res1)) {
15905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15906 }
15907 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15908 result = (int) ((arg1)->Language);
15909 resultobj = SWIG_From_int(static_cast< int >(result));
15910 return resultobj;
15911 fail:
15912 return NULL;
15913 }
15914
15915
15916 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15917 PyObject *resultobj = 0;
15918 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15919 wxString *arg2 = (wxString *) 0 ;
15920 void *argp1 = 0 ;
15921 int res1 = 0 ;
15922 bool temp2 = false ;
15923 PyObject *swig_obj[2] ;
15924
15925 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15927 if (!SWIG_IsOK(res1)) {
15928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15929 }
15930 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15931 {
15932 arg2 = wxString_in_helper(swig_obj[1]);
15933 if (arg2 == NULL) SWIG_fail;
15934 temp2 = true;
15935 }
15936 if (arg1) (arg1)->CanonicalName = *arg2;
15937
15938 resultobj = SWIG_Py_Void();
15939 {
15940 if (temp2)
15941 delete arg2;
15942 }
15943 return resultobj;
15944 fail:
15945 {
15946 if (temp2)
15947 delete arg2;
15948 }
15949 return NULL;
15950 }
15951
15952
15953 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15954 PyObject *resultobj = 0;
15955 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15956 wxString *result = 0 ;
15957 void *argp1 = 0 ;
15958 int res1 = 0 ;
15959 PyObject *swig_obj[1] ;
15960
15961 if (!args) SWIG_fail;
15962 swig_obj[0] = args;
15963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15964 if (!SWIG_IsOK(res1)) {
15965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15966 }
15967 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15968 result = (wxString *)& ((arg1)->CanonicalName);
15969 {
15970 #if wxUSE_UNICODE
15971 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15972 #else
15973 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15974 #endif
15975 }
15976 return resultobj;
15977 fail:
15978 return NULL;
15979 }
15980
15981
15982 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15983 PyObject *resultobj = 0;
15984 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15985 wxString *arg2 = (wxString *) 0 ;
15986 void *argp1 = 0 ;
15987 int res1 = 0 ;
15988 bool temp2 = false ;
15989 PyObject *swig_obj[2] ;
15990
15991 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15993 if (!SWIG_IsOK(res1)) {
15994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15995 }
15996 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15997 {
15998 arg2 = wxString_in_helper(swig_obj[1]);
15999 if (arg2 == NULL) SWIG_fail;
16000 temp2 = true;
16001 }
16002 if (arg1) (arg1)->Description = *arg2;
16003
16004 resultobj = SWIG_Py_Void();
16005 {
16006 if (temp2)
16007 delete arg2;
16008 }
16009 return resultobj;
16010 fail:
16011 {
16012 if (temp2)
16013 delete arg2;
16014 }
16015 return NULL;
16016 }
16017
16018
16019 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16020 PyObject *resultobj = 0;
16021 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16022 wxString *result = 0 ;
16023 void *argp1 = 0 ;
16024 int res1 = 0 ;
16025 PyObject *swig_obj[1] ;
16026
16027 if (!args) SWIG_fail;
16028 swig_obj[0] = args;
16029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16030 if (!SWIG_IsOK(res1)) {
16031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16032 }
16033 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16034 result = (wxString *)& ((arg1)->Description);
16035 {
16036 #if wxUSE_UNICODE
16037 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16038 #else
16039 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16040 #endif
16041 }
16042 return resultobj;
16043 fail:
16044 return NULL;
16045 }
16046
16047
16048 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16049 PyObject *obj;
16050 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16051 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16052 return SWIG_Py_Void();
16053 }
16054
16055 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16056 PyObject *resultobj = 0;
16057 int arg1 = (int) -1 ;
16058 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16059 wxLocale *result = 0 ;
16060 int val1 ;
16061 int ecode1 = 0 ;
16062 int val2 ;
16063 int ecode2 = 0 ;
16064 PyObject * obj0 = 0 ;
16065 PyObject * obj1 = 0 ;
16066 char * kwnames[] = {
16067 (char *) "language",(char *) "flags", NULL
16068 };
16069
16070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16071 if (obj0) {
16072 ecode1 = SWIG_AsVal_int(obj0, &val1);
16073 if (!SWIG_IsOK(ecode1)) {
16074 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16075 }
16076 arg1 = static_cast< int >(val1);
16077 }
16078 if (obj1) {
16079 ecode2 = SWIG_AsVal_int(obj1, &val2);
16080 if (!SWIG_IsOK(ecode2)) {
16081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16082 }
16083 arg2 = static_cast< int >(val2);
16084 }
16085 {
16086 PyThreadState* __tstate = wxPyBeginAllowThreads();
16087 result = (wxLocale *)new_wxLocale(arg1,arg2);
16088 wxPyEndAllowThreads(__tstate);
16089 if (PyErr_Occurred()) SWIG_fail;
16090 }
16091 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16092 return resultobj;
16093 fail:
16094 return NULL;
16095 }
16096
16097
16098 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16099 PyObject *resultobj = 0;
16100 wxLocale *arg1 = (wxLocale *) 0 ;
16101 void *argp1 = 0 ;
16102 int res1 = 0 ;
16103 PyObject *swig_obj[1] ;
16104
16105 if (!args) SWIG_fail;
16106 swig_obj[0] = args;
16107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16108 if (!SWIG_IsOK(res1)) {
16109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16110 }
16111 arg1 = reinterpret_cast< wxLocale * >(argp1);
16112 {
16113 PyThreadState* __tstate = wxPyBeginAllowThreads();
16114 delete arg1;
16115
16116 wxPyEndAllowThreads(__tstate);
16117 if (PyErr_Occurred()) SWIG_fail;
16118 }
16119 resultobj = SWIG_Py_Void();
16120 return resultobj;
16121 fail:
16122 return NULL;
16123 }
16124
16125
16126 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16127 PyObject *resultobj = 0;
16128 wxLocale *arg1 = (wxLocale *) 0 ;
16129 wxString *arg2 = 0 ;
16130 wxString const &arg3_defvalue = wxPyEmptyString ;
16131 wxString *arg3 = (wxString *) &arg3_defvalue ;
16132 wxString const &arg4_defvalue = wxPyEmptyString ;
16133 wxString *arg4 = (wxString *) &arg4_defvalue ;
16134 bool arg5 = (bool) true ;
16135 bool arg6 = (bool) false ;
16136 bool result;
16137 void *argp1 = 0 ;
16138 int res1 = 0 ;
16139 bool temp2 = false ;
16140 bool temp3 = false ;
16141 bool temp4 = false ;
16142 bool val5 ;
16143 int ecode5 = 0 ;
16144 bool val6 ;
16145 int ecode6 = 0 ;
16146 PyObject * obj0 = 0 ;
16147 PyObject * obj1 = 0 ;
16148 PyObject * obj2 = 0 ;
16149 PyObject * obj3 = 0 ;
16150 PyObject * obj4 = 0 ;
16151 PyObject * obj5 = 0 ;
16152 char * kwnames[] = {
16153 (char *) "self",(char *) "name",(char *) "shortName",(char *) "locale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16154 };
16155
16156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16158 if (!SWIG_IsOK(res1)) {
16159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16160 }
16161 arg1 = reinterpret_cast< wxLocale * >(argp1);
16162 {
16163 arg2 = wxString_in_helper(obj1);
16164 if (arg2 == NULL) SWIG_fail;
16165 temp2 = true;
16166 }
16167 if (obj2) {
16168 {
16169 arg3 = wxString_in_helper(obj2);
16170 if (arg3 == NULL) SWIG_fail;
16171 temp3 = true;
16172 }
16173 }
16174 if (obj3) {
16175 {
16176 arg4 = wxString_in_helper(obj3);
16177 if (arg4 == NULL) SWIG_fail;
16178 temp4 = true;
16179 }
16180 }
16181 if (obj4) {
16182 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16183 if (!SWIG_IsOK(ecode5)) {
16184 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16185 }
16186 arg5 = static_cast< bool >(val5);
16187 }
16188 if (obj5) {
16189 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16190 if (!SWIG_IsOK(ecode6)) {
16191 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16192 }
16193 arg6 = static_cast< bool >(val6);
16194 }
16195 {
16196 PyThreadState* __tstate = wxPyBeginAllowThreads();
16197 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16198 wxPyEndAllowThreads(__tstate);
16199 if (PyErr_Occurred()) SWIG_fail;
16200 }
16201 {
16202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16203 }
16204 {
16205 if (temp2)
16206 delete arg2;
16207 }
16208 {
16209 if (temp3)
16210 delete arg3;
16211 }
16212 {
16213 if (temp4)
16214 delete arg4;
16215 }
16216 return resultobj;
16217 fail:
16218 {
16219 if (temp2)
16220 delete arg2;
16221 }
16222 {
16223 if (temp3)
16224 delete arg3;
16225 }
16226 {
16227 if (temp4)
16228 delete arg4;
16229 }
16230 return NULL;
16231 }
16232
16233
16234 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16235 PyObject *resultobj = 0;
16236 wxLocale *arg1 = (wxLocale *) 0 ;
16237 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16238 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16239 bool result;
16240 void *argp1 = 0 ;
16241 int res1 = 0 ;
16242 int val2 ;
16243 int ecode2 = 0 ;
16244 int val3 ;
16245 int ecode3 = 0 ;
16246 PyObject * obj0 = 0 ;
16247 PyObject * obj1 = 0 ;
16248 PyObject * obj2 = 0 ;
16249 char * kwnames[] = {
16250 (char *) "self",(char *) "language",(char *) "flags", NULL
16251 };
16252
16253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16255 if (!SWIG_IsOK(res1)) {
16256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16257 }
16258 arg1 = reinterpret_cast< wxLocale * >(argp1);
16259 if (obj1) {
16260 ecode2 = SWIG_AsVal_int(obj1, &val2);
16261 if (!SWIG_IsOK(ecode2)) {
16262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16263 }
16264 arg2 = static_cast< int >(val2);
16265 }
16266 if (obj2) {
16267 ecode3 = SWIG_AsVal_int(obj2, &val3);
16268 if (!SWIG_IsOK(ecode3)) {
16269 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16270 }
16271 arg3 = static_cast< int >(val3);
16272 }
16273 {
16274 PyThreadState* __tstate = wxPyBeginAllowThreads();
16275 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16276 wxPyEndAllowThreads(__tstate);
16277 if (PyErr_Occurred()) SWIG_fail;
16278 }
16279 {
16280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16281 }
16282 return resultobj;
16283 fail:
16284 return NULL;
16285 }
16286
16287
16288 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16289 PyObject *resultobj = 0;
16290 int result;
16291
16292 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16293 {
16294 PyThreadState* __tstate = wxPyBeginAllowThreads();
16295 result = (int)wxLocale::GetSystemLanguage();
16296 wxPyEndAllowThreads(__tstate);
16297 if (PyErr_Occurred()) SWIG_fail;
16298 }
16299 resultobj = SWIG_From_int(static_cast< int >(result));
16300 return resultobj;
16301 fail:
16302 return NULL;
16303 }
16304
16305
16306 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16307 PyObject *resultobj = 0;
16308 wxFontEncoding result;
16309
16310 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16311 {
16312 PyThreadState* __tstate = wxPyBeginAllowThreads();
16313 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16314 wxPyEndAllowThreads(__tstate);
16315 if (PyErr_Occurred()) SWIG_fail;
16316 }
16317 resultobj = SWIG_From_int(static_cast< int >(result));
16318 return resultobj;
16319 fail:
16320 return NULL;
16321 }
16322
16323
16324 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16325 PyObject *resultobj = 0;
16326 wxString result;
16327
16328 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16329 {
16330 PyThreadState* __tstate = wxPyBeginAllowThreads();
16331 result = wxLocale::GetSystemEncodingName();
16332 wxPyEndAllowThreads(__tstate);
16333 if (PyErr_Occurred()) SWIG_fail;
16334 }
16335 {
16336 #if wxUSE_UNICODE
16337 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16338 #else
16339 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16340 #endif
16341 }
16342 return resultobj;
16343 fail:
16344 return NULL;
16345 }
16346
16347
16348 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16349 PyObject *resultobj = 0;
16350 wxLocale *arg1 = (wxLocale *) 0 ;
16351 bool result;
16352 void *argp1 = 0 ;
16353 int res1 = 0 ;
16354 PyObject *swig_obj[1] ;
16355
16356 if (!args) SWIG_fail;
16357 swig_obj[0] = args;
16358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16359 if (!SWIG_IsOK(res1)) {
16360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16361 }
16362 arg1 = reinterpret_cast< wxLocale * >(argp1);
16363 {
16364 PyThreadState* __tstate = wxPyBeginAllowThreads();
16365 result = (bool)((wxLocale const *)arg1)->IsOk();
16366 wxPyEndAllowThreads(__tstate);
16367 if (PyErr_Occurred()) SWIG_fail;
16368 }
16369 {
16370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16371 }
16372 return resultobj;
16373 fail:
16374 return NULL;
16375 }
16376
16377
16378 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16379 PyObject *resultobj = 0;
16380 wxLocale *arg1 = (wxLocale *) 0 ;
16381 wxString result;
16382 void *argp1 = 0 ;
16383 int res1 = 0 ;
16384 PyObject *swig_obj[1] ;
16385
16386 if (!args) SWIG_fail;
16387 swig_obj[0] = args;
16388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16389 if (!SWIG_IsOK(res1)) {
16390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16391 }
16392 arg1 = reinterpret_cast< wxLocale * >(argp1);
16393 {
16394 PyThreadState* __tstate = wxPyBeginAllowThreads();
16395 result = ((wxLocale const *)arg1)->GetLocale();
16396 wxPyEndAllowThreads(__tstate);
16397 if (PyErr_Occurred()) SWIG_fail;
16398 }
16399 {
16400 #if wxUSE_UNICODE
16401 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16402 #else
16403 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16404 #endif
16405 }
16406 return resultobj;
16407 fail:
16408 return NULL;
16409 }
16410
16411
16412 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16413 PyObject *resultobj = 0;
16414 wxLocale *arg1 = (wxLocale *) 0 ;
16415 int result;
16416 void *argp1 = 0 ;
16417 int res1 = 0 ;
16418 PyObject *swig_obj[1] ;
16419
16420 if (!args) SWIG_fail;
16421 swig_obj[0] = args;
16422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16423 if (!SWIG_IsOK(res1)) {
16424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16425 }
16426 arg1 = reinterpret_cast< wxLocale * >(argp1);
16427 {
16428 PyThreadState* __tstate = wxPyBeginAllowThreads();
16429 result = (int)((wxLocale const *)arg1)->GetLanguage();
16430 wxPyEndAllowThreads(__tstate);
16431 if (PyErr_Occurred()) SWIG_fail;
16432 }
16433 resultobj = SWIG_From_int(static_cast< int >(result));
16434 return resultobj;
16435 fail:
16436 return NULL;
16437 }
16438
16439
16440 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16441 PyObject *resultobj = 0;
16442 wxLocale *arg1 = (wxLocale *) 0 ;
16443 wxString result;
16444 void *argp1 = 0 ;
16445 int res1 = 0 ;
16446 PyObject *swig_obj[1] ;
16447
16448 if (!args) SWIG_fail;
16449 swig_obj[0] = args;
16450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16451 if (!SWIG_IsOK(res1)) {
16452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16453 }
16454 arg1 = reinterpret_cast< wxLocale * >(argp1);
16455 {
16456 PyThreadState* __tstate = wxPyBeginAllowThreads();
16457 result = ((wxLocale const *)arg1)->GetSysName();
16458 wxPyEndAllowThreads(__tstate);
16459 if (PyErr_Occurred()) SWIG_fail;
16460 }
16461 {
16462 #if wxUSE_UNICODE
16463 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16464 #else
16465 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16466 #endif
16467 }
16468 return resultobj;
16469 fail:
16470 return NULL;
16471 }
16472
16473
16474 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16475 PyObject *resultobj = 0;
16476 wxLocale *arg1 = (wxLocale *) 0 ;
16477 wxString result;
16478 void *argp1 = 0 ;
16479 int res1 = 0 ;
16480 PyObject *swig_obj[1] ;
16481
16482 if (!args) SWIG_fail;
16483 swig_obj[0] = args;
16484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16485 if (!SWIG_IsOK(res1)) {
16486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16487 }
16488 arg1 = reinterpret_cast< wxLocale * >(argp1);
16489 {
16490 PyThreadState* __tstate = wxPyBeginAllowThreads();
16491 result = ((wxLocale const *)arg1)->GetCanonicalName();
16492 wxPyEndAllowThreads(__tstate);
16493 if (PyErr_Occurred()) SWIG_fail;
16494 }
16495 {
16496 #if wxUSE_UNICODE
16497 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16498 #else
16499 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16500 #endif
16501 }
16502 return resultobj;
16503 fail:
16504 return NULL;
16505 }
16506
16507
16508 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16509 PyObject *resultobj = 0;
16510 wxString *arg1 = 0 ;
16511 bool temp1 = false ;
16512 PyObject * obj0 = 0 ;
16513 char * kwnames[] = {
16514 (char *) "prefix", NULL
16515 };
16516
16517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16518 {
16519 arg1 = wxString_in_helper(obj0);
16520 if (arg1 == NULL) SWIG_fail;
16521 temp1 = true;
16522 }
16523 {
16524 PyThreadState* __tstate = wxPyBeginAllowThreads();
16525 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16526 wxPyEndAllowThreads(__tstate);
16527 if (PyErr_Occurred()) SWIG_fail;
16528 }
16529 resultobj = SWIG_Py_Void();
16530 {
16531 if (temp1)
16532 delete arg1;
16533 }
16534 return resultobj;
16535 fail:
16536 {
16537 if (temp1)
16538 delete arg1;
16539 }
16540 return NULL;
16541 }
16542
16543
16544 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16545 PyObject *resultobj = 0;
16546 wxLocale *arg1 = (wxLocale *) 0 ;
16547 wxString *arg2 = 0 ;
16548 bool result;
16549 void *argp1 = 0 ;
16550 int res1 = 0 ;
16551 bool temp2 = false ;
16552 PyObject * obj0 = 0 ;
16553 PyObject * obj1 = 0 ;
16554 char * kwnames[] = {
16555 (char *) "self",(char *) "domain", NULL
16556 };
16557
16558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16560 if (!SWIG_IsOK(res1)) {
16561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16562 }
16563 arg1 = reinterpret_cast< wxLocale * >(argp1);
16564 {
16565 arg2 = wxString_in_helper(obj1);
16566 if (arg2 == NULL) SWIG_fail;
16567 temp2 = true;
16568 }
16569 {
16570 PyThreadState* __tstate = wxPyBeginAllowThreads();
16571 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16572 wxPyEndAllowThreads(__tstate);
16573 if (PyErr_Occurred()) SWIG_fail;
16574 }
16575 {
16576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16577 }
16578 {
16579 if (temp2)
16580 delete arg2;
16581 }
16582 return resultobj;
16583 fail:
16584 {
16585 if (temp2)
16586 delete arg2;
16587 }
16588 return NULL;
16589 }
16590
16591
16592 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16593 PyObject *resultobj = 0;
16594 int arg1 ;
16595 bool result;
16596 int val1 ;
16597 int ecode1 = 0 ;
16598 PyObject * obj0 = 0 ;
16599 char * kwnames[] = {
16600 (char *) "lang", NULL
16601 };
16602
16603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16604 ecode1 = SWIG_AsVal_int(obj0, &val1);
16605 if (!SWIG_IsOK(ecode1)) {
16606 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16607 }
16608 arg1 = static_cast< int >(val1);
16609 {
16610 PyThreadState* __tstate = wxPyBeginAllowThreads();
16611 result = (bool)wxLocale::IsAvailable(arg1);
16612 wxPyEndAllowThreads(__tstate);
16613 if (PyErr_Occurred()) SWIG_fail;
16614 }
16615 {
16616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16617 }
16618 return resultobj;
16619 fail:
16620 return NULL;
16621 }
16622
16623
16624 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16625 PyObject *resultobj = 0;
16626 wxLocale *arg1 = (wxLocale *) 0 ;
16627 wxString *arg2 = 0 ;
16628 bool result;
16629 void *argp1 = 0 ;
16630 int res1 = 0 ;
16631 bool temp2 = false ;
16632 PyObject * obj0 = 0 ;
16633 PyObject * obj1 = 0 ;
16634 char * kwnames[] = {
16635 (char *) "self",(char *) "domain", NULL
16636 };
16637
16638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16640 if (!SWIG_IsOK(res1)) {
16641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16642 }
16643 arg1 = reinterpret_cast< wxLocale * >(argp1);
16644 {
16645 arg2 = wxString_in_helper(obj1);
16646 if (arg2 == NULL) SWIG_fail;
16647 temp2 = true;
16648 }
16649 {
16650 PyThreadState* __tstate = wxPyBeginAllowThreads();
16651 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16652 wxPyEndAllowThreads(__tstate);
16653 if (PyErr_Occurred()) SWIG_fail;
16654 }
16655 {
16656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16657 }
16658 {
16659 if (temp2)
16660 delete arg2;
16661 }
16662 return resultobj;
16663 fail:
16664 {
16665 if (temp2)
16666 delete arg2;
16667 }
16668 return NULL;
16669 }
16670
16671
16672 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16673 PyObject *resultobj = 0;
16674 int arg1 ;
16675 wxLanguageInfo *result = 0 ;
16676 int val1 ;
16677 int ecode1 = 0 ;
16678 PyObject * obj0 = 0 ;
16679 char * kwnames[] = {
16680 (char *) "lang", NULL
16681 };
16682
16683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16684 ecode1 = SWIG_AsVal_int(obj0, &val1);
16685 if (!SWIG_IsOK(ecode1)) {
16686 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16687 }
16688 arg1 = static_cast< int >(val1);
16689 {
16690 PyThreadState* __tstate = wxPyBeginAllowThreads();
16691 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16692 wxPyEndAllowThreads(__tstate);
16693 if (PyErr_Occurred()) SWIG_fail;
16694 }
16695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16696 return resultobj;
16697 fail:
16698 return NULL;
16699 }
16700
16701
16702 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16703 PyObject *resultobj = 0;
16704 int arg1 ;
16705 wxString result;
16706 int val1 ;
16707 int ecode1 = 0 ;
16708 PyObject * obj0 = 0 ;
16709 char * kwnames[] = {
16710 (char *) "lang", NULL
16711 };
16712
16713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16714 ecode1 = SWIG_AsVal_int(obj0, &val1);
16715 if (!SWIG_IsOK(ecode1)) {
16716 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16717 }
16718 arg1 = static_cast< int >(val1);
16719 {
16720 PyThreadState* __tstate = wxPyBeginAllowThreads();
16721 result = wxLocale::GetLanguageName(arg1);
16722 wxPyEndAllowThreads(__tstate);
16723 if (PyErr_Occurred()) SWIG_fail;
16724 }
16725 {
16726 #if wxUSE_UNICODE
16727 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16728 #else
16729 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16730 #endif
16731 }
16732 return resultobj;
16733 fail:
16734 return NULL;
16735 }
16736
16737
16738 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16739 PyObject *resultobj = 0;
16740 wxString *arg1 = 0 ;
16741 wxLanguageInfo *result = 0 ;
16742 bool temp1 = false ;
16743 PyObject * obj0 = 0 ;
16744 char * kwnames[] = {
16745 (char *) "locale", NULL
16746 };
16747
16748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16749 {
16750 arg1 = wxString_in_helper(obj0);
16751 if (arg1 == NULL) SWIG_fail;
16752 temp1 = true;
16753 }
16754 {
16755 PyThreadState* __tstate = wxPyBeginAllowThreads();
16756 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16757 wxPyEndAllowThreads(__tstate);
16758 if (PyErr_Occurred()) SWIG_fail;
16759 }
16760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16761 {
16762 if (temp1)
16763 delete arg1;
16764 }
16765 return resultobj;
16766 fail:
16767 {
16768 if (temp1)
16769 delete arg1;
16770 }
16771 return NULL;
16772 }
16773
16774
16775 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16776 PyObject *resultobj = 0;
16777 wxLanguageInfo *arg1 = 0 ;
16778 void *argp1 = 0 ;
16779 int res1 = 0 ;
16780 PyObject * obj0 = 0 ;
16781 char * kwnames[] = {
16782 (char *) "info", NULL
16783 };
16784
16785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16786 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16787 if (!SWIG_IsOK(res1)) {
16788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16789 }
16790 if (!argp1) {
16791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16792 }
16793 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16794 {
16795 PyThreadState* __tstate = wxPyBeginAllowThreads();
16796 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16797 wxPyEndAllowThreads(__tstate);
16798 if (PyErr_Occurred()) SWIG_fail;
16799 }
16800 resultobj = SWIG_Py_Void();
16801 return resultobj;
16802 fail:
16803 return NULL;
16804 }
16805
16806
16807 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16808 PyObject *resultobj = 0;
16809 wxLocale *arg1 = (wxLocale *) 0 ;
16810 wxString *arg2 = 0 ;
16811 wxString const &arg3_defvalue = wxPyEmptyString ;
16812 wxString *arg3 = (wxString *) &arg3_defvalue ;
16813 wxString result;
16814 void *argp1 = 0 ;
16815 int res1 = 0 ;
16816 bool temp2 = false ;
16817 bool temp3 = false ;
16818 PyObject * obj0 = 0 ;
16819 PyObject * obj1 = 0 ;
16820 PyObject * obj2 = 0 ;
16821 char * kwnames[] = {
16822 (char *) "self",(char *) "origString",(char *) "domain", NULL
16823 };
16824
16825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16827 if (!SWIG_IsOK(res1)) {
16828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16829 }
16830 arg1 = reinterpret_cast< wxLocale * >(argp1);
16831 {
16832 arg2 = wxString_in_helper(obj1);
16833 if (arg2 == NULL) SWIG_fail;
16834 temp2 = true;
16835 }
16836 if (obj2) {
16837 {
16838 arg3 = wxString_in_helper(obj2);
16839 if (arg3 == NULL) SWIG_fail;
16840 temp3 = true;
16841 }
16842 }
16843 {
16844 PyThreadState* __tstate = wxPyBeginAllowThreads();
16845 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
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 {
16857 if (temp2)
16858 delete arg2;
16859 }
16860 {
16861 if (temp3)
16862 delete arg3;
16863 }
16864 return resultobj;
16865 fail:
16866 {
16867 if (temp2)
16868 delete arg2;
16869 }
16870 {
16871 if (temp3)
16872 delete arg3;
16873 }
16874 return NULL;
16875 }
16876
16877
16878 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16879 PyObject *resultobj = 0;
16880 wxLocale *arg1 = (wxLocale *) 0 ;
16881 wxString *result = 0 ;
16882 void *argp1 = 0 ;
16883 int res1 = 0 ;
16884 PyObject *swig_obj[1] ;
16885
16886 if (!args) SWIG_fail;
16887 swig_obj[0] = args;
16888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16889 if (!SWIG_IsOK(res1)) {
16890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16891 }
16892 arg1 = reinterpret_cast< wxLocale * >(argp1);
16893 {
16894 PyThreadState* __tstate = wxPyBeginAllowThreads();
16895 {
16896 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16897 result = (wxString *) &_result_ref;
16898 }
16899 wxPyEndAllowThreads(__tstate);
16900 if (PyErr_Occurred()) SWIG_fail;
16901 }
16902 {
16903 #if wxUSE_UNICODE
16904 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16905 #else
16906 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16907 #endif
16908 }
16909 return resultobj;
16910 fail:
16911 return NULL;
16912 }
16913
16914
16915 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16916 PyObject *obj;
16917 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16918 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16919 return SWIG_Py_Void();
16920 }
16921
16922 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16923 return SWIG_Python_InitShadowInstance(args);
16924 }
16925
16926 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16927 PyObject *resultobj = 0;
16928 int arg1 = (int) -1 ;
16929 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16930 wxPyLocale *result = 0 ;
16931 int val1 ;
16932 int ecode1 = 0 ;
16933 int val2 ;
16934 int ecode2 = 0 ;
16935 PyObject * obj0 = 0 ;
16936 PyObject * obj1 = 0 ;
16937 char * kwnames[] = {
16938 (char *) "language",(char *) "flags", NULL
16939 };
16940
16941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16942 if (obj0) {
16943 ecode1 = SWIG_AsVal_int(obj0, &val1);
16944 if (!SWIG_IsOK(ecode1)) {
16945 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16946 }
16947 arg1 = static_cast< int >(val1);
16948 }
16949 if (obj1) {
16950 ecode2 = SWIG_AsVal_int(obj1, &val2);
16951 if (!SWIG_IsOK(ecode2)) {
16952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16953 }
16954 arg2 = static_cast< int >(val2);
16955 }
16956 {
16957 PyThreadState* __tstate = wxPyBeginAllowThreads();
16958 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16959 wxPyEndAllowThreads(__tstate);
16960 if (PyErr_Occurred()) SWIG_fail;
16961 }
16962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16963 return resultobj;
16964 fail:
16965 return NULL;
16966 }
16967
16968
16969 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16970 PyObject *resultobj = 0;
16971 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16972 void *argp1 = 0 ;
16973 int res1 = 0 ;
16974 PyObject *swig_obj[1] ;
16975
16976 if (!args) SWIG_fail;
16977 swig_obj[0] = args;
16978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16979 if (!SWIG_IsOK(res1)) {
16980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16981 }
16982 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16983 {
16984 PyThreadState* __tstate = wxPyBeginAllowThreads();
16985 delete arg1;
16986
16987 wxPyEndAllowThreads(__tstate);
16988 if (PyErr_Occurred()) SWIG_fail;
16989 }
16990 resultobj = SWIG_Py_Void();
16991 return resultobj;
16992 fail:
16993 return NULL;
16994 }
16995
16996
16997 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16998 PyObject *resultobj = 0;
16999 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17000 PyObject *arg2 = (PyObject *) 0 ;
17001 PyObject *arg3 = (PyObject *) 0 ;
17002 void *argp1 = 0 ;
17003 int res1 = 0 ;
17004 PyObject * obj0 = 0 ;
17005 PyObject * obj1 = 0 ;
17006 PyObject * obj2 = 0 ;
17007 char * kwnames[] = {
17008 (char *) "self",(char *) "self",(char *) "_class", NULL
17009 };
17010
17011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17013 if (!SWIG_IsOK(res1)) {
17014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17015 }
17016 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17017 arg2 = obj1;
17018 arg3 = obj2;
17019 {
17020 PyThreadState* __tstate = wxPyBeginAllowThreads();
17021 (arg1)->_setCallbackInfo(arg2,arg3);
17022 wxPyEndAllowThreads(__tstate);
17023 if (PyErr_Occurred()) SWIG_fail;
17024 }
17025 resultobj = SWIG_Py_Void();
17026 return resultobj;
17027 fail:
17028 return NULL;
17029 }
17030
17031
17032 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17033 PyObject *resultobj = 0;
17034 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17035 wxString *arg2 = 0 ;
17036 wxString const &arg3_defvalue = wxPyEmptyString ;
17037 wxString *arg3 = (wxString *) &arg3_defvalue ;
17038 wxString *result = 0 ;
17039 void *argp1 = 0 ;
17040 int res1 = 0 ;
17041 bool temp2 = false ;
17042 bool temp3 = false ;
17043 PyObject * obj0 = 0 ;
17044 PyObject * obj1 = 0 ;
17045 PyObject * obj2 = 0 ;
17046 char * kwnames[] = {
17047 (char *) "self",(char *) "origString",(char *) "domain", NULL
17048 };
17049
17050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17052 if (!SWIG_IsOK(res1)) {
17053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17054 }
17055 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17056 {
17057 arg2 = wxString_in_helper(obj1);
17058 if (arg2 == NULL) SWIG_fail;
17059 temp2 = true;
17060 }
17061 if (obj2) {
17062 {
17063 arg3 = wxString_in_helper(obj2);
17064 if (arg3 == NULL) SWIG_fail;
17065 temp3 = true;
17066 }
17067 }
17068 {
17069 PyThreadState* __tstate = wxPyBeginAllowThreads();
17070 {
17071 wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetSingularString((wxString const &)*arg2,(wxString const &)*arg3);
17072 result = (wxString *) &_result_ref;
17073 }
17074 wxPyEndAllowThreads(__tstate);
17075 if (PyErr_Occurred()) SWIG_fail;
17076 }
17077 {
17078 #if wxUSE_UNICODE
17079 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17080 #else
17081 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17082 #endif
17083 }
17084 {
17085 if (temp2)
17086 delete arg2;
17087 }
17088 {
17089 if (temp3)
17090 delete arg3;
17091 }
17092 return resultobj;
17093 fail:
17094 {
17095 if (temp2)
17096 delete arg2;
17097 }
17098 {
17099 if (temp3)
17100 delete arg3;
17101 }
17102 return NULL;
17103 }
17104
17105
17106 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17107 PyObject *resultobj = 0;
17108 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17109 wxString *arg2 = 0 ;
17110 wxString *arg3 = 0 ;
17111 size_t arg4 ;
17112 wxString const &arg5_defvalue = wxPyEmptyString ;
17113 wxString *arg5 = (wxString *) &arg5_defvalue ;
17114 wxString *result = 0 ;
17115 void *argp1 = 0 ;
17116 int res1 = 0 ;
17117 bool temp2 = false ;
17118 bool temp3 = false ;
17119 size_t val4 ;
17120 int ecode4 = 0 ;
17121 bool temp5 = false ;
17122 PyObject * obj0 = 0 ;
17123 PyObject * obj1 = 0 ;
17124 PyObject * obj2 = 0 ;
17125 PyObject * obj3 = 0 ;
17126 PyObject * obj4 = 0 ;
17127 char * kwnames[] = {
17128 (char *) "self",(char *) "origString",(char *) "origString2",(char *) "n",(char *) "domain", NULL
17129 };
17130
17131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17133 if (!SWIG_IsOK(res1)) {
17134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17135 }
17136 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17137 {
17138 arg2 = wxString_in_helper(obj1);
17139 if (arg2 == NULL) SWIG_fail;
17140 temp2 = true;
17141 }
17142 {
17143 arg3 = wxString_in_helper(obj2);
17144 if (arg3 == NULL) SWIG_fail;
17145 temp3 = true;
17146 }
17147 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17148 if (!SWIG_IsOK(ecode4)) {
17149 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17150 }
17151 arg4 = static_cast< size_t >(val4);
17152 if (obj4) {
17153 {
17154 arg5 = wxString_in_helper(obj4);
17155 if (arg5 == NULL) SWIG_fail;
17156 temp5 = true;
17157 }
17158 }
17159 {
17160 PyThreadState* __tstate = wxPyBeginAllowThreads();
17161 {
17162 wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetPluralString((wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
17163 result = (wxString *) &_result_ref;
17164 }
17165 wxPyEndAllowThreads(__tstate);
17166 if (PyErr_Occurred()) SWIG_fail;
17167 }
17168 {
17169 #if wxUSE_UNICODE
17170 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17171 #else
17172 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17173 #endif
17174 }
17175 {
17176 if (temp2)
17177 delete arg2;
17178 }
17179 {
17180 if (temp3)
17181 delete arg3;
17182 }
17183 {
17184 if (temp5)
17185 delete arg5;
17186 }
17187 return resultobj;
17188 fail:
17189 {
17190 if (temp2)
17191 delete arg2;
17192 }
17193 {
17194 if (temp3)
17195 delete arg3;
17196 }
17197 {
17198 if (temp5)
17199 delete arg5;
17200 }
17201 return NULL;
17202 }
17203
17204
17205 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17206 PyObject *obj;
17207 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17208 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17209 return SWIG_Py_Void();
17210 }
17211
17212 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17213 return SWIG_Python_InitShadowInstance(args);
17214 }
17215
17216 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17217 PyObject *resultobj = 0;
17218 wxLocale *result = 0 ;
17219
17220 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17221 {
17222 PyThreadState* __tstate = wxPyBeginAllowThreads();
17223 result = (wxLocale *)wxGetLocale();
17224 wxPyEndAllowThreads(__tstate);
17225 if (PyErr_Occurred()) SWIG_fail;
17226 }
17227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17228 return resultobj;
17229 fail:
17230 return NULL;
17231 }
17232
17233
17234 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17235 PyObject *resultobj = 0;
17236 wxString *arg1 = 0 ;
17237 wxString result;
17238 bool temp1 = false ;
17239
17240 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17241 {
17242 arg1 = wxString_in_helper(swig_obj[0]);
17243 if (arg1 == NULL) SWIG_fail;
17244 temp1 = true;
17245 }
17246 {
17247 PyThreadState* __tstate = wxPyBeginAllowThreads();
17248 result = wxGetTranslation((wxString const &)*arg1);
17249 wxPyEndAllowThreads(__tstate);
17250 if (PyErr_Occurred()) SWIG_fail;
17251 }
17252 {
17253 #if wxUSE_UNICODE
17254 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17255 #else
17256 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17257 #endif
17258 }
17259 {
17260 if (temp1)
17261 delete arg1;
17262 }
17263 return resultobj;
17264 fail:
17265 {
17266 if (temp1)
17267 delete arg1;
17268 }
17269 return NULL;
17270 }
17271
17272
17273 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17274 PyObject *resultobj = 0;
17275 wxString *arg1 = 0 ;
17276 wxString *arg2 = 0 ;
17277 wxString result;
17278 bool temp1 = false ;
17279 bool temp2 = false ;
17280
17281 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17282 {
17283 arg1 = wxString_in_helper(swig_obj[0]);
17284 if (arg1 == NULL) SWIG_fail;
17285 temp1 = true;
17286 }
17287 {
17288 arg2 = wxString_in_helper(swig_obj[1]);
17289 if (arg2 == NULL) SWIG_fail;
17290 temp2 = true;
17291 }
17292 {
17293 PyThreadState* __tstate = wxPyBeginAllowThreads();
17294 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17295 wxPyEndAllowThreads(__tstate);
17296 if (PyErr_Occurred()) SWIG_fail;
17297 }
17298 {
17299 #if wxUSE_UNICODE
17300 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17301 #else
17302 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17303 #endif
17304 }
17305 {
17306 if (temp1)
17307 delete arg1;
17308 }
17309 {
17310 if (temp2)
17311 delete arg2;
17312 }
17313 return resultobj;
17314 fail:
17315 {
17316 if (temp1)
17317 delete arg1;
17318 }
17319 {
17320 if (temp2)
17321 delete arg2;
17322 }
17323 return NULL;
17324 }
17325
17326
17327 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17328 PyObject *resultobj = 0;
17329 wxString *arg1 = 0 ;
17330 wxString *arg2 = 0 ;
17331 size_t arg3 ;
17332 wxString result;
17333 bool temp1 = false ;
17334 bool temp2 = false ;
17335 size_t val3 ;
17336 int ecode3 = 0 ;
17337
17338 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17339 {
17340 arg1 = wxString_in_helper(swig_obj[0]);
17341 if (arg1 == NULL) SWIG_fail;
17342 temp1 = true;
17343 }
17344 {
17345 arg2 = wxString_in_helper(swig_obj[1]);
17346 if (arg2 == NULL) SWIG_fail;
17347 temp2 = true;
17348 }
17349 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17350 if (!SWIG_IsOK(ecode3)) {
17351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17352 }
17353 arg3 = static_cast< size_t >(val3);
17354 {
17355 PyThreadState* __tstate = wxPyBeginAllowThreads();
17356 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17357 wxPyEndAllowThreads(__tstate);
17358 if (PyErr_Occurred()) SWIG_fail;
17359 }
17360 {
17361 #if wxUSE_UNICODE
17362 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17363 #else
17364 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17365 #endif
17366 }
17367 {
17368 if (temp1)
17369 delete arg1;
17370 }
17371 {
17372 if (temp2)
17373 delete arg2;
17374 }
17375 return resultobj;
17376 fail:
17377 {
17378 if (temp1)
17379 delete arg1;
17380 }
17381 {
17382 if (temp2)
17383 delete arg2;
17384 }
17385 return NULL;
17386 }
17387
17388
17389 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17390 PyObject *resultobj = 0;
17391 wxString *arg1 = 0 ;
17392 wxString *arg2 = 0 ;
17393 size_t arg3 ;
17394 wxString *arg4 = 0 ;
17395 wxString result;
17396 bool temp1 = false ;
17397 bool temp2 = false ;
17398 size_t val3 ;
17399 int ecode3 = 0 ;
17400 bool temp4 = false ;
17401
17402 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17403 {
17404 arg1 = wxString_in_helper(swig_obj[0]);
17405 if (arg1 == NULL) SWIG_fail;
17406 temp1 = true;
17407 }
17408 {
17409 arg2 = wxString_in_helper(swig_obj[1]);
17410 if (arg2 == NULL) SWIG_fail;
17411 temp2 = true;
17412 }
17413 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17414 if (!SWIG_IsOK(ecode3)) {
17415 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17416 }
17417 arg3 = static_cast< size_t >(val3);
17418 {
17419 arg4 = wxString_in_helper(swig_obj[3]);
17420 if (arg4 == NULL) SWIG_fail;
17421 temp4 = true;
17422 }
17423 {
17424 PyThreadState* __tstate = wxPyBeginAllowThreads();
17425 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17426 wxPyEndAllowThreads(__tstate);
17427 if (PyErr_Occurred()) SWIG_fail;
17428 }
17429 {
17430 #if wxUSE_UNICODE
17431 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17432 #else
17433 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17434 #endif
17435 }
17436 {
17437 if (temp1)
17438 delete arg1;
17439 }
17440 {
17441 if (temp2)
17442 delete arg2;
17443 }
17444 {
17445 if (temp4)
17446 delete arg4;
17447 }
17448 return resultobj;
17449 fail:
17450 {
17451 if (temp1)
17452 delete arg1;
17453 }
17454 {
17455 if (temp2)
17456 delete arg2;
17457 }
17458 {
17459 if (temp4)
17460 delete arg4;
17461 }
17462 return NULL;
17463 }
17464
17465
17466 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17467 int argc;
17468 PyObject *argv[5];
17469
17470 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17471 --argc;
17472 if (argc == 1) {
17473 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17474 }
17475 if (argc == 2) {
17476 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17477 }
17478 if (argc == 3) {
17479 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17480 }
17481 if (argc == 4) {
17482 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17483 }
17484
17485 fail:
17486 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17487 return NULL;
17488 }
17489
17490
17491 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17492 PyObject *resultobj = 0;
17493 wxEncodingConverter *result = 0 ;
17494
17495 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17496 {
17497 PyThreadState* __tstate = wxPyBeginAllowThreads();
17498 result = (wxEncodingConverter *)new wxEncodingConverter();
17499 wxPyEndAllowThreads(__tstate);
17500 if (PyErr_Occurred()) SWIG_fail;
17501 }
17502 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17503 return resultobj;
17504 fail:
17505 return NULL;
17506 }
17507
17508
17509 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17510 PyObject *resultobj = 0;
17511 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17512 void *argp1 = 0 ;
17513 int res1 = 0 ;
17514 PyObject *swig_obj[1] ;
17515
17516 if (!args) SWIG_fail;
17517 swig_obj[0] = args;
17518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17519 if (!SWIG_IsOK(res1)) {
17520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17521 }
17522 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17523 {
17524 PyThreadState* __tstate = wxPyBeginAllowThreads();
17525 delete arg1;
17526
17527 wxPyEndAllowThreads(__tstate);
17528 if (PyErr_Occurred()) SWIG_fail;
17529 }
17530 resultobj = SWIG_Py_Void();
17531 return resultobj;
17532 fail:
17533 return NULL;
17534 }
17535
17536
17537 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17538 PyObject *resultobj = 0;
17539 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17540 wxFontEncoding arg2 ;
17541 wxFontEncoding arg3 ;
17542 int arg4 = (int) wxCONVERT_STRICT ;
17543 bool result;
17544 void *argp1 = 0 ;
17545 int res1 = 0 ;
17546 int val2 ;
17547 int ecode2 = 0 ;
17548 int val3 ;
17549 int ecode3 = 0 ;
17550 int val4 ;
17551 int ecode4 = 0 ;
17552 PyObject * obj0 = 0 ;
17553 PyObject * obj1 = 0 ;
17554 PyObject * obj2 = 0 ;
17555 PyObject * obj3 = 0 ;
17556 char * kwnames[] = {
17557 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17558 };
17559
17560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17562 if (!SWIG_IsOK(res1)) {
17563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17564 }
17565 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17566 ecode2 = SWIG_AsVal_int(obj1, &val2);
17567 if (!SWIG_IsOK(ecode2)) {
17568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17569 }
17570 arg2 = static_cast< wxFontEncoding >(val2);
17571 ecode3 = SWIG_AsVal_int(obj2, &val3);
17572 if (!SWIG_IsOK(ecode3)) {
17573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17574 }
17575 arg3 = static_cast< wxFontEncoding >(val3);
17576 if (obj3) {
17577 ecode4 = SWIG_AsVal_int(obj3, &val4);
17578 if (!SWIG_IsOK(ecode4)) {
17579 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17580 }
17581 arg4 = static_cast< int >(val4);
17582 }
17583 {
17584 PyThreadState* __tstate = wxPyBeginAllowThreads();
17585 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17586 wxPyEndAllowThreads(__tstate);
17587 if (PyErr_Occurred()) SWIG_fail;
17588 }
17589 {
17590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17591 }
17592 return resultobj;
17593 fail:
17594 return NULL;
17595 }
17596
17597
17598 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17599 PyObject *resultobj = 0;
17600 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17601 wxString *arg2 = 0 ;
17602 wxString result;
17603 void *argp1 = 0 ;
17604 int res1 = 0 ;
17605 bool temp2 = false ;
17606 PyObject * obj0 = 0 ;
17607 PyObject * obj1 = 0 ;
17608 char * kwnames[] = {
17609 (char *) "self",(char *) "input", NULL
17610 };
17611
17612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17614 if (!SWIG_IsOK(res1)) {
17615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17616 }
17617 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17618 {
17619 arg2 = wxString_in_helper(obj1);
17620 if (arg2 == NULL) SWIG_fail;
17621 temp2 = true;
17622 }
17623 {
17624 PyThreadState* __tstate = wxPyBeginAllowThreads();
17625 result = (arg1)->Convert((wxString const &)*arg2);
17626 wxPyEndAllowThreads(__tstate);
17627 if (PyErr_Occurred()) SWIG_fail;
17628 }
17629 {
17630 #if wxUSE_UNICODE
17631 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17632 #else
17633 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17634 #endif
17635 }
17636 {
17637 if (temp2)
17638 delete arg2;
17639 }
17640 return resultobj;
17641 fail:
17642 {
17643 if (temp2)
17644 delete arg2;
17645 }
17646 return NULL;
17647 }
17648
17649
17650 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17651 PyObject *resultobj = 0;
17652 wxFontEncoding arg1 ;
17653 int arg2 = (int) wxPLATFORM_CURRENT ;
17654 wxFontEncodingArray result;
17655 int val1 ;
17656 int ecode1 = 0 ;
17657 int val2 ;
17658 int ecode2 = 0 ;
17659 PyObject * obj0 = 0 ;
17660 PyObject * obj1 = 0 ;
17661 char * kwnames[] = {
17662 (char *) "enc",(char *) "platform", NULL
17663 };
17664
17665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17666 ecode1 = SWIG_AsVal_int(obj0, &val1);
17667 if (!SWIG_IsOK(ecode1)) {
17668 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17669 }
17670 arg1 = static_cast< wxFontEncoding >(val1);
17671 if (obj1) {
17672 ecode2 = SWIG_AsVal_int(obj1, &val2);
17673 if (!SWIG_IsOK(ecode2)) {
17674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17675 }
17676 arg2 = static_cast< int >(val2);
17677 }
17678 {
17679 PyThreadState* __tstate = wxPyBeginAllowThreads();
17680 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17681 wxPyEndAllowThreads(__tstate);
17682 if (PyErr_Occurred()) SWIG_fail;
17683 }
17684 {
17685 resultobj = PyList_New(0);
17686 for (size_t i=0; i < (&result)->GetCount(); i++) {
17687 PyObject* number = PyInt_FromLong((&result)->Item(i));
17688 PyList_Append(resultobj, number);
17689 Py_DECREF(number);
17690 }
17691 }
17692 return resultobj;
17693 fail:
17694 return NULL;
17695 }
17696
17697
17698 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17699 PyObject *resultobj = 0;
17700 wxFontEncoding arg1 ;
17701 wxFontEncodingArray result;
17702 int val1 ;
17703 int ecode1 = 0 ;
17704 PyObject * obj0 = 0 ;
17705 char * kwnames[] = {
17706 (char *) "enc", NULL
17707 };
17708
17709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17710 ecode1 = SWIG_AsVal_int(obj0, &val1);
17711 if (!SWIG_IsOK(ecode1)) {
17712 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17713 }
17714 arg1 = static_cast< wxFontEncoding >(val1);
17715 {
17716 PyThreadState* __tstate = wxPyBeginAllowThreads();
17717 result = wxEncodingConverter::GetAllEquivalents(arg1);
17718 wxPyEndAllowThreads(__tstate);
17719 if (PyErr_Occurred()) SWIG_fail;
17720 }
17721 {
17722 resultobj = PyList_New(0);
17723 for (size_t i=0; i < (&result)->GetCount(); i++) {
17724 PyObject* number = PyInt_FromLong((&result)->Item(i));
17725 PyList_Append(resultobj, number);
17726 Py_DECREF(number);
17727 }
17728 }
17729 return resultobj;
17730 fail:
17731 return NULL;
17732 }
17733
17734
17735 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17736 PyObject *resultobj = 0;
17737 wxFontEncoding arg1 ;
17738 wxFontEncoding arg2 ;
17739 bool result;
17740 int val1 ;
17741 int ecode1 = 0 ;
17742 int val2 ;
17743 int ecode2 = 0 ;
17744 PyObject * obj0 = 0 ;
17745 PyObject * obj1 = 0 ;
17746 char * kwnames[] = {
17747 (char *) "encIn",(char *) "encOut", NULL
17748 };
17749
17750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17751 ecode1 = SWIG_AsVal_int(obj0, &val1);
17752 if (!SWIG_IsOK(ecode1)) {
17753 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17754 }
17755 arg1 = static_cast< wxFontEncoding >(val1);
17756 ecode2 = SWIG_AsVal_int(obj1, &val2);
17757 if (!SWIG_IsOK(ecode2)) {
17758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17759 }
17760 arg2 = static_cast< wxFontEncoding >(val2);
17761 {
17762 PyThreadState* __tstate = wxPyBeginAllowThreads();
17763 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17764 wxPyEndAllowThreads(__tstate);
17765 if (PyErr_Occurred()) SWIG_fail;
17766 }
17767 {
17768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17769 }
17770 return resultobj;
17771 fail:
17772 return NULL;
17773 }
17774
17775
17776 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17777 PyObject *obj;
17778 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17779 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17780 return SWIG_Py_Void();
17781 }
17782
17783 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17784 return SWIG_Python_InitShadowInstance(args);
17785 }
17786
17787 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17788 PyObject *resultobj = 0;
17789 wxDC *arg1 = (wxDC *) 0 ;
17790 void *argp1 = 0 ;
17791 int res1 = 0 ;
17792 PyObject *swig_obj[1] ;
17793
17794 if (!args) SWIG_fail;
17795 swig_obj[0] = args;
17796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17797 if (!SWIG_IsOK(res1)) {
17798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17799 }
17800 arg1 = reinterpret_cast< wxDC * >(argp1);
17801 {
17802 PyThreadState* __tstate = wxPyBeginAllowThreads();
17803 delete arg1;
17804
17805 wxPyEndAllowThreads(__tstate);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 resultobj = SWIG_Py_Void();
17809 return resultobj;
17810 fail:
17811 return NULL;
17812 }
17813
17814
17815 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17816 PyObject *resultobj = 0;
17817 wxDC *arg1 = (wxDC *) 0 ;
17818 int arg2 ;
17819 int arg3 ;
17820 wxColour *arg4 = 0 ;
17821 int arg5 = (int) wxFLOOD_SURFACE ;
17822 bool result;
17823 void *argp1 = 0 ;
17824 int res1 = 0 ;
17825 int val2 ;
17826 int ecode2 = 0 ;
17827 int val3 ;
17828 int ecode3 = 0 ;
17829 wxColour temp4 ;
17830 int val5 ;
17831 int ecode5 = 0 ;
17832 PyObject * obj0 = 0 ;
17833 PyObject * obj1 = 0 ;
17834 PyObject * obj2 = 0 ;
17835 PyObject * obj3 = 0 ;
17836 PyObject * obj4 = 0 ;
17837 char * kwnames[] = {
17838 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17839 };
17840
17841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17843 if (!SWIG_IsOK(res1)) {
17844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17845 }
17846 arg1 = reinterpret_cast< wxDC * >(argp1);
17847 ecode2 = SWIG_AsVal_int(obj1, &val2);
17848 if (!SWIG_IsOK(ecode2)) {
17849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17850 }
17851 arg2 = static_cast< int >(val2);
17852 ecode3 = SWIG_AsVal_int(obj2, &val3);
17853 if (!SWIG_IsOK(ecode3)) {
17854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17855 }
17856 arg3 = static_cast< int >(val3);
17857 {
17858 arg4 = &temp4;
17859 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17860 }
17861 if (obj4) {
17862 ecode5 = SWIG_AsVal_int(obj4, &val5);
17863 if (!SWIG_IsOK(ecode5)) {
17864 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17865 }
17866 arg5 = static_cast< int >(val5);
17867 }
17868 {
17869 PyThreadState* __tstate = wxPyBeginAllowThreads();
17870 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17871 wxPyEndAllowThreads(__tstate);
17872 if (PyErr_Occurred()) SWIG_fail;
17873 }
17874 {
17875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17876 }
17877 return resultobj;
17878 fail:
17879 return NULL;
17880 }
17881
17882
17883 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17884 PyObject *resultobj = 0;
17885 wxDC *arg1 = (wxDC *) 0 ;
17886 wxPoint *arg2 = 0 ;
17887 wxColour *arg3 = 0 ;
17888 int arg4 = (int) wxFLOOD_SURFACE ;
17889 bool result;
17890 void *argp1 = 0 ;
17891 int res1 = 0 ;
17892 wxPoint temp2 ;
17893 wxColour temp3 ;
17894 int val4 ;
17895 int ecode4 = 0 ;
17896 PyObject * obj0 = 0 ;
17897 PyObject * obj1 = 0 ;
17898 PyObject * obj2 = 0 ;
17899 PyObject * obj3 = 0 ;
17900 char * kwnames[] = {
17901 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17902 };
17903
17904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17906 if (!SWIG_IsOK(res1)) {
17907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17908 }
17909 arg1 = reinterpret_cast< wxDC * >(argp1);
17910 {
17911 arg2 = &temp2;
17912 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17913 }
17914 {
17915 arg3 = &temp3;
17916 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17917 }
17918 if (obj3) {
17919 ecode4 = SWIG_AsVal_int(obj3, &val4);
17920 if (!SWIG_IsOK(ecode4)) {
17921 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17922 }
17923 arg4 = static_cast< int >(val4);
17924 }
17925 {
17926 PyThreadState* __tstate = wxPyBeginAllowThreads();
17927 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17928 wxPyEndAllowThreads(__tstate);
17929 if (PyErr_Occurred()) SWIG_fail;
17930 }
17931 {
17932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17933 }
17934 return resultobj;
17935 fail:
17936 return NULL;
17937 }
17938
17939
17940 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17941 PyObject *resultobj = 0;
17942 wxDC *arg1 = (wxDC *) 0 ;
17943 wxRect *arg2 = 0 ;
17944 wxColour *arg3 = 0 ;
17945 wxColour *arg4 = 0 ;
17946 wxPoint *arg5 = 0 ;
17947 void *argp1 = 0 ;
17948 int res1 = 0 ;
17949 wxRect temp2 ;
17950 wxColour temp3 ;
17951 wxColour temp4 ;
17952 wxPoint temp5 ;
17953 PyObject * obj0 = 0 ;
17954 PyObject * obj1 = 0 ;
17955 PyObject * obj2 = 0 ;
17956 PyObject * obj3 = 0 ;
17957 PyObject * obj4 = 0 ;
17958 char * kwnames[] = {
17959 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17960 };
17961
17962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17964 if (!SWIG_IsOK(res1)) {
17965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17966 }
17967 arg1 = reinterpret_cast< wxDC * >(argp1);
17968 {
17969 arg2 = &temp2;
17970 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17971 }
17972 {
17973 arg3 = &temp3;
17974 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17975 }
17976 {
17977 arg4 = &temp4;
17978 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17979 }
17980 {
17981 arg5 = &temp5;
17982 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17983 }
17984 {
17985 PyThreadState* __tstate = wxPyBeginAllowThreads();
17986 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17987 wxPyEndAllowThreads(__tstate);
17988 if (PyErr_Occurred()) SWIG_fail;
17989 }
17990 resultobj = SWIG_Py_Void();
17991 return resultobj;
17992 fail:
17993 return NULL;
17994 }
17995
17996
17997 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17998 PyObject *resultobj = 0;
17999 wxDC *arg1 = (wxDC *) 0 ;
18000 wxRect *arg2 = 0 ;
18001 wxColour *arg3 = 0 ;
18002 wxColour *arg4 = 0 ;
18003 wxDirection arg5 = (wxDirection) wxEAST ;
18004 void *argp1 = 0 ;
18005 int res1 = 0 ;
18006 wxRect temp2 ;
18007 wxColour temp3 ;
18008 wxColour temp4 ;
18009 int val5 ;
18010 int ecode5 = 0 ;
18011 PyObject * obj0 = 0 ;
18012 PyObject * obj1 = 0 ;
18013 PyObject * obj2 = 0 ;
18014 PyObject * obj3 = 0 ;
18015 PyObject * obj4 = 0 ;
18016 char * kwnames[] = {
18017 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18018 };
18019
18020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18022 if (!SWIG_IsOK(res1)) {
18023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18024 }
18025 arg1 = reinterpret_cast< wxDC * >(argp1);
18026 {
18027 arg2 = &temp2;
18028 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18029 }
18030 {
18031 arg3 = &temp3;
18032 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18033 }
18034 {
18035 arg4 = &temp4;
18036 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18037 }
18038 if (obj4) {
18039 ecode5 = SWIG_AsVal_int(obj4, &val5);
18040 if (!SWIG_IsOK(ecode5)) {
18041 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18042 }
18043 arg5 = static_cast< wxDirection >(val5);
18044 }
18045 {
18046 PyThreadState* __tstate = wxPyBeginAllowThreads();
18047 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18048 wxPyEndAllowThreads(__tstate);
18049 if (PyErr_Occurred()) SWIG_fail;
18050 }
18051 resultobj = SWIG_Py_Void();
18052 return resultobj;
18053 fail:
18054 return NULL;
18055 }
18056
18057
18058 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18059 PyObject *resultobj = 0;
18060 wxDC *arg1 = (wxDC *) 0 ;
18061 int arg2 ;
18062 int arg3 ;
18063 wxColour result;
18064 void *argp1 = 0 ;
18065 int res1 = 0 ;
18066 int val2 ;
18067 int ecode2 = 0 ;
18068 int val3 ;
18069 int ecode3 = 0 ;
18070 PyObject * obj0 = 0 ;
18071 PyObject * obj1 = 0 ;
18072 PyObject * obj2 = 0 ;
18073 char * kwnames[] = {
18074 (char *) "self",(char *) "x",(char *) "y", NULL
18075 };
18076
18077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18079 if (!SWIG_IsOK(res1)) {
18080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18081 }
18082 arg1 = reinterpret_cast< wxDC * >(argp1);
18083 ecode2 = SWIG_AsVal_int(obj1, &val2);
18084 if (!SWIG_IsOK(ecode2)) {
18085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18086 }
18087 arg2 = static_cast< int >(val2);
18088 ecode3 = SWIG_AsVal_int(obj2, &val3);
18089 if (!SWIG_IsOK(ecode3)) {
18090 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18091 }
18092 arg3 = static_cast< int >(val3);
18093 {
18094 PyThreadState* __tstate = wxPyBeginAllowThreads();
18095 result = wxDC_GetPixel(arg1,arg2,arg3);
18096 wxPyEndAllowThreads(__tstate);
18097 if (PyErr_Occurred()) SWIG_fail;
18098 }
18099 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18100 return resultobj;
18101 fail:
18102 return NULL;
18103 }
18104
18105
18106 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18107 PyObject *resultobj = 0;
18108 wxDC *arg1 = (wxDC *) 0 ;
18109 wxPoint *arg2 = 0 ;
18110 wxColour result;
18111 void *argp1 = 0 ;
18112 int res1 = 0 ;
18113 wxPoint temp2 ;
18114 PyObject * obj0 = 0 ;
18115 PyObject * obj1 = 0 ;
18116 char * kwnames[] = {
18117 (char *) "self",(char *) "pt", NULL
18118 };
18119
18120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18122 if (!SWIG_IsOK(res1)) {
18123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18124 }
18125 arg1 = reinterpret_cast< wxDC * >(argp1);
18126 {
18127 arg2 = &temp2;
18128 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18129 }
18130 {
18131 PyThreadState* __tstate = wxPyBeginAllowThreads();
18132 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18133 wxPyEndAllowThreads(__tstate);
18134 if (PyErr_Occurred()) SWIG_fail;
18135 }
18136 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18137 return resultobj;
18138 fail:
18139 return NULL;
18140 }
18141
18142
18143 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18144 PyObject *resultobj = 0;
18145 wxDC *arg1 = (wxDC *) 0 ;
18146 int arg2 ;
18147 int arg3 ;
18148 int arg4 ;
18149 int arg5 ;
18150 void *argp1 = 0 ;
18151 int res1 = 0 ;
18152 int val2 ;
18153 int ecode2 = 0 ;
18154 int val3 ;
18155 int ecode3 = 0 ;
18156 int val4 ;
18157 int ecode4 = 0 ;
18158 int val5 ;
18159 int ecode5 = 0 ;
18160 PyObject * obj0 = 0 ;
18161 PyObject * obj1 = 0 ;
18162 PyObject * obj2 = 0 ;
18163 PyObject * obj3 = 0 ;
18164 PyObject * obj4 = 0 ;
18165 char * kwnames[] = {
18166 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18167 };
18168
18169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18171 if (!SWIG_IsOK(res1)) {
18172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18173 }
18174 arg1 = reinterpret_cast< wxDC * >(argp1);
18175 ecode2 = SWIG_AsVal_int(obj1, &val2);
18176 if (!SWIG_IsOK(ecode2)) {
18177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18178 }
18179 arg2 = static_cast< int >(val2);
18180 ecode3 = SWIG_AsVal_int(obj2, &val3);
18181 if (!SWIG_IsOK(ecode3)) {
18182 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18183 }
18184 arg3 = static_cast< int >(val3);
18185 ecode4 = SWIG_AsVal_int(obj3, &val4);
18186 if (!SWIG_IsOK(ecode4)) {
18187 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18188 }
18189 arg4 = static_cast< int >(val4);
18190 ecode5 = SWIG_AsVal_int(obj4, &val5);
18191 if (!SWIG_IsOK(ecode5)) {
18192 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18193 }
18194 arg5 = static_cast< int >(val5);
18195 {
18196 PyThreadState* __tstate = wxPyBeginAllowThreads();
18197 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18198 wxPyEndAllowThreads(__tstate);
18199 if (PyErr_Occurred()) SWIG_fail;
18200 }
18201 resultobj = SWIG_Py_Void();
18202 return resultobj;
18203 fail:
18204 return NULL;
18205 }
18206
18207
18208 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18209 PyObject *resultobj = 0;
18210 wxDC *arg1 = (wxDC *) 0 ;
18211 wxPoint *arg2 = 0 ;
18212 wxPoint *arg3 = 0 ;
18213 void *argp1 = 0 ;
18214 int res1 = 0 ;
18215 wxPoint temp2 ;
18216 wxPoint temp3 ;
18217 PyObject * obj0 = 0 ;
18218 PyObject * obj1 = 0 ;
18219 PyObject * obj2 = 0 ;
18220 char * kwnames[] = {
18221 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18222 };
18223
18224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18226 if (!SWIG_IsOK(res1)) {
18227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18228 }
18229 arg1 = reinterpret_cast< wxDC * >(argp1);
18230 {
18231 arg2 = &temp2;
18232 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18233 }
18234 {
18235 arg3 = &temp3;
18236 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18237 }
18238 {
18239 PyThreadState* __tstate = wxPyBeginAllowThreads();
18240 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18241 wxPyEndAllowThreads(__tstate);
18242 if (PyErr_Occurred()) SWIG_fail;
18243 }
18244 resultobj = SWIG_Py_Void();
18245 return resultobj;
18246 fail:
18247 return NULL;
18248 }
18249
18250
18251 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18252 PyObject *resultobj = 0;
18253 wxDC *arg1 = (wxDC *) 0 ;
18254 int arg2 ;
18255 int arg3 ;
18256 void *argp1 = 0 ;
18257 int res1 = 0 ;
18258 int val2 ;
18259 int ecode2 = 0 ;
18260 int val3 ;
18261 int ecode3 = 0 ;
18262 PyObject * obj0 = 0 ;
18263 PyObject * obj1 = 0 ;
18264 PyObject * obj2 = 0 ;
18265 char * kwnames[] = {
18266 (char *) "self",(char *) "x",(char *) "y", NULL
18267 };
18268
18269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18271 if (!SWIG_IsOK(res1)) {
18272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18273 }
18274 arg1 = reinterpret_cast< wxDC * >(argp1);
18275 ecode2 = SWIG_AsVal_int(obj1, &val2);
18276 if (!SWIG_IsOK(ecode2)) {
18277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18278 }
18279 arg2 = static_cast< int >(val2);
18280 ecode3 = SWIG_AsVal_int(obj2, &val3);
18281 if (!SWIG_IsOK(ecode3)) {
18282 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18283 }
18284 arg3 = static_cast< int >(val3);
18285 {
18286 PyThreadState* __tstate = wxPyBeginAllowThreads();
18287 (arg1)->CrossHair(arg2,arg3);
18288 wxPyEndAllowThreads(__tstate);
18289 if (PyErr_Occurred()) SWIG_fail;
18290 }
18291 resultobj = SWIG_Py_Void();
18292 return resultobj;
18293 fail:
18294 return NULL;
18295 }
18296
18297
18298 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18299 PyObject *resultobj = 0;
18300 wxDC *arg1 = (wxDC *) 0 ;
18301 wxPoint *arg2 = 0 ;
18302 void *argp1 = 0 ;
18303 int res1 = 0 ;
18304 wxPoint temp2 ;
18305 PyObject * obj0 = 0 ;
18306 PyObject * obj1 = 0 ;
18307 char * kwnames[] = {
18308 (char *) "self",(char *) "pt", NULL
18309 };
18310
18311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18313 if (!SWIG_IsOK(res1)) {
18314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18315 }
18316 arg1 = reinterpret_cast< wxDC * >(argp1);
18317 {
18318 arg2 = &temp2;
18319 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18320 }
18321 {
18322 PyThreadState* __tstate = wxPyBeginAllowThreads();
18323 (arg1)->CrossHair((wxPoint const &)*arg2);
18324 wxPyEndAllowThreads(__tstate);
18325 if (PyErr_Occurred()) SWIG_fail;
18326 }
18327 resultobj = SWIG_Py_Void();
18328 return resultobj;
18329 fail:
18330 return NULL;
18331 }
18332
18333
18334 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18335 PyObject *resultobj = 0;
18336 wxDC *arg1 = (wxDC *) 0 ;
18337 int arg2 ;
18338 int arg3 ;
18339 int arg4 ;
18340 int arg5 ;
18341 int arg6 ;
18342 int arg7 ;
18343 void *argp1 = 0 ;
18344 int res1 = 0 ;
18345 int val2 ;
18346 int ecode2 = 0 ;
18347 int val3 ;
18348 int ecode3 = 0 ;
18349 int val4 ;
18350 int ecode4 = 0 ;
18351 int val5 ;
18352 int ecode5 = 0 ;
18353 int val6 ;
18354 int ecode6 = 0 ;
18355 int val7 ;
18356 int ecode7 = 0 ;
18357 PyObject * obj0 = 0 ;
18358 PyObject * obj1 = 0 ;
18359 PyObject * obj2 = 0 ;
18360 PyObject * obj3 = 0 ;
18361 PyObject * obj4 = 0 ;
18362 PyObject * obj5 = 0 ;
18363 PyObject * obj6 = 0 ;
18364 char * kwnames[] = {
18365 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18366 };
18367
18368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18370 if (!SWIG_IsOK(res1)) {
18371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18372 }
18373 arg1 = reinterpret_cast< wxDC * >(argp1);
18374 ecode2 = SWIG_AsVal_int(obj1, &val2);
18375 if (!SWIG_IsOK(ecode2)) {
18376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18377 }
18378 arg2 = static_cast< int >(val2);
18379 ecode3 = SWIG_AsVal_int(obj2, &val3);
18380 if (!SWIG_IsOK(ecode3)) {
18381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18382 }
18383 arg3 = static_cast< int >(val3);
18384 ecode4 = SWIG_AsVal_int(obj3, &val4);
18385 if (!SWIG_IsOK(ecode4)) {
18386 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18387 }
18388 arg4 = static_cast< int >(val4);
18389 ecode5 = SWIG_AsVal_int(obj4, &val5);
18390 if (!SWIG_IsOK(ecode5)) {
18391 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18392 }
18393 arg5 = static_cast< int >(val5);
18394 ecode6 = SWIG_AsVal_int(obj5, &val6);
18395 if (!SWIG_IsOK(ecode6)) {
18396 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18397 }
18398 arg6 = static_cast< int >(val6);
18399 ecode7 = SWIG_AsVal_int(obj6, &val7);
18400 if (!SWIG_IsOK(ecode7)) {
18401 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18402 }
18403 arg7 = static_cast< int >(val7);
18404 {
18405 PyThreadState* __tstate = wxPyBeginAllowThreads();
18406 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18407 wxPyEndAllowThreads(__tstate);
18408 if (PyErr_Occurred()) SWIG_fail;
18409 }
18410 resultobj = SWIG_Py_Void();
18411 return resultobj;
18412 fail:
18413 return NULL;
18414 }
18415
18416
18417 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18418 PyObject *resultobj = 0;
18419 wxDC *arg1 = (wxDC *) 0 ;
18420 wxPoint *arg2 = 0 ;
18421 wxPoint *arg3 = 0 ;
18422 wxPoint *arg4 = 0 ;
18423 void *argp1 = 0 ;
18424 int res1 = 0 ;
18425 wxPoint temp2 ;
18426 wxPoint temp3 ;
18427 wxPoint temp4 ;
18428 PyObject * obj0 = 0 ;
18429 PyObject * obj1 = 0 ;
18430 PyObject * obj2 = 0 ;
18431 PyObject * obj3 = 0 ;
18432 char * kwnames[] = {
18433 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18434 };
18435
18436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18438 if (!SWIG_IsOK(res1)) {
18439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18440 }
18441 arg1 = reinterpret_cast< wxDC * >(argp1);
18442 {
18443 arg2 = &temp2;
18444 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18445 }
18446 {
18447 arg3 = &temp3;
18448 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18449 }
18450 {
18451 arg4 = &temp4;
18452 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18453 }
18454 {
18455 PyThreadState* __tstate = wxPyBeginAllowThreads();
18456 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18457 wxPyEndAllowThreads(__tstate);
18458 if (PyErr_Occurred()) SWIG_fail;
18459 }
18460 resultobj = SWIG_Py_Void();
18461 return resultobj;
18462 fail:
18463 return NULL;
18464 }
18465
18466
18467 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18468 PyObject *resultobj = 0;
18469 wxDC *arg1 = (wxDC *) 0 ;
18470 int arg2 ;
18471 int arg3 ;
18472 int arg4 ;
18473 int arg5 ;
18474 void *argp1 = 0 ;
18475 int res1 = 0 ;
18476 int val2 ;
18477 int ecode2 = 0 ;
18478 int val3 ;
18479 int ecode3 = 0 ;
18480 int val4 ;
18481 int ecode4 = 0 ;
18482 int val5 ;
18483 int ecode5 = 0 ;
18484 PyObject * obj0 = 0 ;
18485 PyObject * obj1 = 0 ;
18486 PyObject * obj2 = 0 ;
18487 PyObject * obj3 = 0 ;
18488 PyObject * obj4 = 0 ;
18489 char * kwnames[] = {
18490 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18491 };
18492
18493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18495 if (!SWIG_IsOK(res1)) {
18496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18497 }
18498 arg1 = reinterpret_cast< wxDC * >(argp1);
18499 ecode2 = SWIG_AsVal_int(obj1, &val2);
18500 if (!SWIG_IsOK(ecode2)) {
18501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18502 }
18503 arg2 = static_cast< int >(val2);
18504 ecode3 = SWIG_AsVal_int(obj2, &val3);
18505 if (!SWIG_IsOK(ecode3)) {
18506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18507 }
18508 arg3 = static_cast< int >(val3);
18509 ecode4 = SWIG_AsVal_int(obj3, &val4);
18510 if (!SWIG_IsOK(ecode4)) {
18511 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18512 }
18513 arg4 = static_cast< int >(val4);
18514 ecode5 = SWIG_AsVal_int(obj4, &val5);
18515 if (!SWIG_IsOK(ecode5)) {
18516 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18517 }
18518 arg5 = static_cast< int >(val5);
18519 {
18520 PyThreadState* __tstate = wxPyBeginAllowThreads();
18521 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18522 wxPyEndAllowThreads(__tstate);
18523 if (PyErr_Occurred()) SWIG_fail;
18524 }
18525 resultobj = SWIG_Py_Void();
18526 return resultobj;
18527 fail:
18528 return NULL;
18529 }
18530
18531
18532 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18533 PyObject *resultobj = 0;
18534 wxDC *arg1 = (wxDC *) 0 ;
18535 wxRect *arg2 = 0 ;
18536 void *argp1 = 0 ;
18537 int res1 = 0 ;
18538 wxRect temp2 ;
18539 PyObject * obj0 = 0 ;
18540 PyObject * obj1 = 0 ;
18541 char * kwnames[] = {
18542 (char *) "self",(char *) "rect", NULL
18543 };
18544
18545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18547 if (!SWIG_IsOK(res1)) {
18548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18549 }
18550 arg1 = reinterpret_cast< wxDC * >(argp1);
18551 {
18552 arg2 = &temp2;
18553 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18554 }
18555 {
18556 PyThreadState* __tstate = wxPyBeginAllowThreads();
18557 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18558 wxPyEndAllowThreads(__tstate);
18559 if (PyErr_Occurred()) SWIG_fail;
18560 }
18561 resultobj = SWIG_Py_Void();
18562 return resultobj;
18563 fail:
18564 return NULL;
18565 }
18566
18567
18568 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18569 PyObject *resultobj = 0;
18570 wxDC *arg1 = (wxDC *) 0 ;
18571 int arg2 ;
18572 int arg3 ;
18573 int arg4 ;
18574 int arg5 ;
18575 double arg6 ;
18576 double arg7 ;
18577 void *argp1 = 0 ;
18578 int res1 = 0 ;
18579 int val2 ;
18580 int ecode2 = 0 ;
18581 int val3 ;
18582 int ecode3 = 0 ;
18583 int val4 ;
18584 int ecode4 = 0 ;
18585 int val5 ;
18586 int ecode5 = 0 ;
18587 double val6 ;
18588 int ecode6 = 0 ;
18589 double val7 ;
18590 int ecode7 = 0 ;
18591 PyObject * obj0 = 0 ;
18592 PyObject * obj1 = 0 ;
18593 PyObject * obj2 = 0 ;
18594 PyObject * obj3 = 0 ;
18595 PyObject * obj4 = 0 ;
18596 PyObject * obj5 = 0 ;
18597 PyObject * obj6 = 0 ;
18598 char * kwnames[] = {
18599 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18600 };
18601
18602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18604 if (!SWIG_IsOK(res1)) {
18605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18606 }
18607 arg1 = reinterpret_cast< wxDC * >(argp1);
18608 ecode2 = SWIG_AsVal_int(obj1, &val2);
18609 if (!SWIG_IsOK(ecode2)) {
18610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18611 }
18612 arg2 = static_cast< int >(val2);
18613 ecode3 = SWIG_AsVal_int(obj2, &val3);
18614 if (!SWIG_IsOK(ecode3)) {
18615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18616 }
18617 arg3 = static_cast< int >(val3);
18618 ecode4 = SWIG_AsVal_int(obj3, &val4);
18619 if (!SWIG_IsOK(ecode4)) {
18620 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18621 }
18622 arg4 = static_cast< int >(val4);
18623 ecode5 = SWIG_AsVal_int(obj4, &val5);
18624 if (!SWIG_IsOK(ecode5)) {
18625 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18626 }
18627 arg5 = static_cast< int >(val5);
18628 ecode6 = SWIG_AsVal_double(obj5, &val6);
18629 if (!SWIG_IsOK(ecode6)) {
18630 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18631 }
18632 arg6 = static_cast< double >(val6);
18633 ecode7 = SWIG_AsVal_double(obj6, &val7);
18634 if (!SWIG_IsOK(ecode7)) {
18635 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18636 }
18637 arg7 = static_cast< double >(val7);
18638 {
18639 PyThreadState* __tstate = wxPyBeginAllowThreads();
18640 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18641 wxPyEndAllowThreads(__tstate);
18642 if (PyErr_Occurred()) SWIG_fail;
18643 }
18644 resultobj = SWIG_Py_Void();
18645 return resultobj;
18646 fail:
18647 return NULL;
18648 }
18649
18650
18651 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18652 PyObject *resultobj = 0;
18653 wxDC *arg1 = (wxDC *) 0 ;
18654 wxPoint *arg2 = 0 ;
18655 wxSize *arg3 = 0 ;
18656 double arg4 ;
18657 double arg5 ;
18658 void *argp1 = 0 ;
18659 int res1 = 0 ;
18660 wxPoint temp2 ;
18661 wxSize temp3 ;
18662 double val4 ;
18663 int ecode4 = 0 ;
18664 double val5 ;
18665 int ecode5 = 0 ;
18666 PyObject * obj0 = 0 ;
18667 PyObject * obj1 = 0 ;
18668 PyObject * obj2 = 0 ;
18669 PyObject * obj3 = 0 ;
18670 PyObject * obj4 = 0 ;
18671 char * kwnames[] = {
18672 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18673 };
18674
18675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18677 if (!SWIG_IsOK(res1)) {
18678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18679 }
18680 arg1 = reinterpret_cast< wxDC * >(argp1);
18681 {
18682 arg2 = &temp2;
18683 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18684 }
18685 {
18686 arg3 = &temp3;
18687 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18688 }
18689 ecode4 = SWIG_AsVal_double(obj3, &val4);
18690 if (!SWIG_IsOK(ecode4)) {
18691 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18692 }
18693 arg4 = static_cast< double >(val4);
18694 ecode5 = SWIG_AsVal_double(obj4, &val5);
18695 if (!SWIG_IsOK(ecode5)) {
18696 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18697 }
18698 arg5 = static_cast< double >(val5);
18699 {
18700 PyThreadState* __tstate = wxPyBeginAllowThreads();
18701 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18702 wxPyEndAllowThreads(__tstate);
18703 if (PyErr_Occurred()) SWIG_fail;
18704 }
18705 resultobj = SWIG_Py_Void();
18706 return resultobj;
18707 fail:
18708 return NULL;
18709 }
18710
18711
18712 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18713 PyObject *resultobj = 0;
18714 wxDC *arg1 = (wxDC *) 0 ;
18715 int arg2 ;
18716 int arg3 ;
18717 void *argp1 = 0 ;
18718 int res1 = 0 ;
18719 int val2 ;
18720 int ecode2 = 0 ;
18721 int val3 ;
18722 int ecode3 = 0 ;
18723 PyObject * obj0 = 0 ;
18724 PyObject * obj1 = 0 ;
18725 PyObject * obj2 = 0 ;
18726 char * kwnames[] = {
18727 (char *) "self",(char *) "x",(char *) "y", NULL
18728 };
18729
18730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18732 if (!SWIG_IsOK(res1)) {
18733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18734 }
18735 arg1 = reinterpret_cast< wxDC * >(argp1);
18736 ecode2 = SWIG_AsVal_int(obj1, &val2);
18737 if (!SWIG_IsOK(ecode2)) {
18738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18739 }
18740 arg2 = static_cast< int >(val2);
18741 ecode3 = SWIG_AsVal_int(obj2, &val3);
18742 if (!SWIG_IsOK(ecode3)) {
18743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18744 }
18745 arg3 = static_cast< int >(val3);
18746 {
18747 PyThreadState* __tstate = wxPyBeginAllowThreads();
18748 (arg1)->DrawPoint(arg2,arg3);
18749 wxPyEndAllowThreads(__tstate);
18750 if (PyErr_Occurred()) SWIG_fail;
18751 }
18752 resultobj = SWIG_Py_Void();
18753 return resultobj;
18754 fail:
18755 return NULL;
18756 }
18757
18758
18759 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18760 PyObject *resultobj = 0;
18761 wxDC *arg1 = (wxDC *) 0 ;
18762 wxPoint *arg2 = 0 ;
18763 void *argp1 = 0 ;
18764 int res1 = 0 ;
18765 wxPoint temp2 ;
18766 PyObject * obj0 = 0 ;
18767 PyObject * obj1 = 0 ;
18768 char * kwnames[] = {
18769 (char *) "self",(char *) "pt", NULL
18770 };
18771
18772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18774 if (!SWIG_IsOK(res1)) {
18775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18776 }
18777 arg1 = reinterpret_cast< wxDC * >(argp1);
18778 {
18779 arg2 = &temp2;
18780 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18781 }
18782 {
18783 PyThreadState* __tstate = wxPyBeginAllowThreads();
18784 (arg1)->DrawPoint((wxPoint const &)*arg2);
18785 wxPyEndAllowThreads(__tstate);
18786 if (PyErr_Occurred()) SWIG_fail;
18787 }
18788 resultobj = SWIG_Py_Void();
18789 return resultobj;
18790 fail:
18791 return NULL;
18792 }
18793
18794
18795 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18796 PyObject *resultobj = 0;
18797 wxDC *arg1 = (wxDC *) 0 ;
18798 int arg2 ;
18799 int arg3 ;
18800 int arg4 ;
18801 int arg5 ;
18802 void *argp1 = 0 ;
18803 int res1 = 0 ;
18804 int val2 ;
18805 int ecode2 = 0 ;
18806 int val3 ;
18807 int ecode3 = 0 ;
18808 int val4 ;
18809 int ecode4 = 0 ;
18810 int val5 ;
18811 int ecode5 = 0 ;
18812 PyObject * obj0 = 0 ;
18813 PyObject * obj1 = 0 ;
18814 PyObject * obj2 = 0 ;
18815 PyObject * obj3 = 0 ;
18816 PyObject * obj4 = 0 ;
18817 char * kwnames[] = {
18818 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18819 };
18820
18821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18823 if (!SWIG_IsOK(res1)) {
18824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18825 }
18826 arg1 = reinterpret_cast< wxDC * >(argp1);
18827 ecode2 = SWIG_AsVal_int(obj1, &val2);
18828 if (!SWIG_IsOK(ecode2)) {
18829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18830 }
18831 arg2 = static_cast< int >(val2);
18832 ecode3 = SWIG_AsVal_int(obj2, &val3);
18833 if (!SWIG_IsOK(ecode3)) {
18834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18835 }
18836 arg3 = static_cast< int >(val3);
18837 ecode4 = SWIG_AsVal_int(obj3, &val4);
18838 if (!SWIG_IsOK(ecode4)) {
18839 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18840 }
18841 arg4 = static_cast< int >(val4);
18842 ecode5 = SWIG_AsVal_int(obj4, &val5);
18843 if (!SWIG_IsOK(ecode5)) {
18844 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18845 }
18846 arg5 = static_cast< int >(val5);
18847 {
18848 PyThreadState* __tstate = wxPyBeginAllowThreads();
18849 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18850 wxPyEndAllowThreads(__tstate);
18851 if (PyErr_Occurred()) SWIG_fail;
18852 }
18853 resultobj = SWIG_Py_Void();
18854 return resultobj;
18855 fail:
18856 return NULL;
18857 }
18858
18859
18860 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18861 PyObject *resultobj = 0;
18862 wxDC *arg1 = (wxDC *) 0 ;
18863 wxRect *arg2 = 0 ;
18864 void *argp1 = 0 ;
18865 int res1 = 0 ;
18866 wxRect temp2 ;
18867 PyObject * obj0 = 0 ;
18868 PyObject * obj1 = 0 ;
18869 char * kwnames[] = {
18870 (char *) "self",(char *) "rect", NULL
18871 };
18872
18873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18875 if (!SWIG_IsOK(res1)) {
18876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18877 }
18878 arg1 = reinterpret_cast< wxDC * >(argp1);
18879 {
18880 arg2 = &temp2;
18881 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18882 }
18883 {
18884 PyThreadState* __tstate = wxPyBeginAllowThreads();
18885 (arg1)->DrawRectangle((wxRect const &)*arg2);
18886 wxPyEndAllowThreads(__tstate);
18887 if (PyErr_Occurred()) SWIG_fail;
18888 }
18889 resultobj = SWIG_Py_Void();
18890 return resultobj;
18891 fail:
18892 return NULL;
18893 }
18894
18895
18896 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18897 PyObject *resultobj = 0;
18898 wxDC *arg1 = (wxDC *) 0 ;
18899 wxPoint *arg2 = 0 ;
18900 wxSize *arg3 = 0 ;
18901 void *argp1 = 0 ;
18902 int res1 = 0 ;
18903 wxPoint temp2 ;
18904 wxSize temp3 ;
18905 PyObject * obj0 = 0 ;
18906 PyObject * obj1 = 0 ;
18907 PyObject * obj2 = 0 ;
18908 char * kwnames[] = {
18909 (char *) "self",(char *) "pt",(char *) "sz", NULL
18910 };
18911
18912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18914 if (!SWIG_IsOK(res1)) {
18915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18916 }
18917 arg1 = reinterpret_cast< wxDC * >(argp1);
18918 {
18919 arg2 = &temp2;
18920 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18921 }
18922 {
18923 arg3 = &temp3;
18924 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18925 }
18926 {
18927 PyThreadState* __tstate = wxPyBeginAllowThreads();
18928 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18929 wxPyEndAllowThreads(__tstate);
18930 if (PyErr_Occurred()) SWIG_fail;
18931 }
18932 resultobj = SWIG_Py_Void();
18933 return resultobj;
18934 fail:
18935 return NULL;
18936 }
18937
18938
18939 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18940 PyObject *resultobj = 0;
18941 wxDC *arg1 = (wxDC *) 0 ;
18942 int arg2 ;
18943 int arg3 ;
18944 int arg4 ;
18945 int arg5 ;
18946 double arg6 ;
18947 void *argp1 = 0 ;
18948 int res1 = 0 ;
18949 int val2 ;
18950 int ecode2 = 0 ;
18951 int val3 ;
18952 int ecode3 = 0 ;
18953 int val4 ;
18954 int ecode4 = 0 ;
18955 int val5 ;
18956 int ecode5 = 0 ;
18957 double val6 ;
18958 int ecode6 = 0 ;
18959 PyObject * obj0 = 0 ;
18960 PyObject * obj1 = 0 ;
18961 PyObject * obj2 = 0 ;
18962 PyObject * obj3 = 0 ;
18963 PyObject * obj4 = 0 ;
18964 PyObject * obj5 = 0 ;
18965 char * kwnames[] = {
18966 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18967 };
18968
18969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18971 if (!SWIG_IsOK(res1)) {
18972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18973 }
18974 arg1 = reinterpret_cast< wxDC * >(argp1);
18975 ecode2 = SWIG_AsVal_int(obj1, &val2);
18976 if (!SWIG_IsOK(ecode2)) {
18977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18978 }
18979 arg2 = static_cast< int >(val2);
18980 ecode3 = SWIG_AsVal_int(obj2, &val3);
18981 if (!SWIG_IsOK(ecode3)) {
18982 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18983 }
18984 arg3 = static_cast< int >(val3);
18985 ecode4 = SWIG_AsVal_int(obj3, &val4);
18986 if (!SWIG_IsOK(ecode4)) {
18987 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18988 }
18989 arg4 = static_cast< int >(val4);
18990 ecode5 = SWIG_AsVal_int(obj4, &val5);
18991 if (!SWIG_IsOK(ecode5)) {
18992 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18993 }
18994 arg5 = static_cast< int >(val5);
18995 ecode6 = SWIG_AsVal_double(obj5, &val6);
18996 if (!SWIG_IsOK(ecode6)) {
18997 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18998 }
18999 arg6 = static_cast< double >(val6);
19000 {
19001 PyThreadState* __tstate = wxPyBeginAllowThreads();
19002 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19003 wxPyEndAllowThreads(__tstate);
19004 if (PyErr_Occurred()) SWIG_fail;
19005 }
19006 resultobj = SWIG_Py_Void();
19007 return resultobj;
19008 fail:
19009 return NULL;
19010 }
19011
19012
19013 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19014 PyObject *resultobj = 0;
19015 wxDC *arg1 = (wxDC *) 0 ;
19016 wxRect *arg2 = 0 ;
19017 double arg3 ;
19018 void *argp1 = 0 ;
19019 int res1 = 0 ;
19020 wxRect temp2 ;
19021 double val3 ;
19022 int ecode3 = 0 ;
19023 PyObject * obj0 = 0 ;
19024 PyObject * obj1 = 0 ;
19025 PyObject * obj2 = 0 ;
19026 char * kwnames[] = {
19027 (char *) "self",(char *) "r",(char *) "radius", NULL
19028 };
19029
19030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19032 if (!SWIG_IsOK(res1)) {
19033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19034 }
19035 arg1 = reinterpret_cast< wxDC * >(argp1);
19036 {
19037 arg2 = &temp2;
19038 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19039 }
19040 ecode3 = SWIG_AsVal_double(obj2, &val3);
19041 if (!SWIG_IsOK(ecode3)) {
19042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19043 }
19044 arg3 = static_cast< double >(val3);
19045 {
19046 PyThreadState* __tstate = wxPyBeginAllowThreads();
19047 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19048 wxPyEndAllowThreads(__tstate);
19049 if (PyErr_Occurred()) SWIG_fail;
19050 }
19051 resultobj = SWIG_Py_Void();
19052 return resultobj;
19053 fail:
19054 return NULL;
19055 }
19056
19057
19058 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19059 PyObject *resultobj = 0;
19060 wxDC *arg1 = (wxDC *) 0 ;
19061 wxPoint *arg2 = 0 ;
19062 wxSize *arg3 = 0 ;
19063 double arg4 ;
19064 void *argp1 = 0 ;
19065 int res1 = 0 ;
19066 wxPoint temp2 ;
19067 wxSize temp3 ;
19068 double val4 ;
19069 int ecode4 = 0 ;
19070 PyObject * obj0 = 0 ;
19071 PyObject * obj1 = 0 ;
19072 PyObject * obj2 = 0 ;
19073 PyObject * obj3 = 0 ;
19074 char * kwnames[] = {
19075 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19076 };
19077
19078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19080 if (!SWIG_IsOK(res1)) {
19081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19082 }
19083 arg1 = reinterpret_cast< wxDC * >(argp1);
19084 {
19085 arg2 = &temp2;
19086 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19087 }
19088 {
19089 arg3 = &temp3;
19090 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19091 }
19092 ecode4 = SWIG_AsVal_double(obj3, &val4);
19093 if (!SWIG_IsOK(ecode4)) {
19094 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19095 }
19096 arg4 = static_cast< double >(val4);
19097 {
19098 PyThreadState* __tstate = wxPyBeginAllowThreads();
19099 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19100 wxPyEndAllowThreads(__tstate);
19101 if (PyErr_Occurred()) SWIG_fail;
19102 }
19103 resultobj = SWIG_Py_Void();
19104 return resultobj;
19105 fail:
19106 return NULL;
19107 }
19108
19109
19110 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19111 PyObject *resultobj = 0;
19112 wxDC *arg1 = (wxDC *) 0 ;
19113 int arg2 ;
19114 int arg3 ;
19115 int arg4 ;
19116 void *argp1 = 0 ;
19117 int res1 = 0 ;
19118 int val2 ;
19119 int ecode2 = 0 ;
19120 int val3 ;
19121 int ecode3 = 0 ;
19122 int val4 ;
19123 int ecode4 = 0 ;
19124 PyObject * obj0 = 0 ;
19125 PyObject * obj1 = 0 ;
19126 PyObject * obj2 = 0 ;
19127 PyObject * obj3 = 0 ;
19128 char * kwnames[] = {
19129 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19130 };
19131
19132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19134 if (!SWIG_IsOK(res1)) {
19135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19136 }
19137 arg1 = reinterpret_cast< wxDC * >(argp1);
19138 ecode2 = SWIG_AsVal_int(obj1, &val2);
19139 if (!SWIG_IsOK(ecode2)) {
19140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19141 }
19142 arg2 = static_cast< int >(val2);
19143 ecode3 = SWIG_AsVal_int(obj2, &val3);
19144 if (!SWIG_IsOK(ecode3)) {
19145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19146 }
19147 arg3 = static_cast< int >(val3);
19148 ecode4 = SWIG_AsVal_int(obj3, &val4);
19149 if (!SWIG_IsOK(ecode4)) {
19150 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19151 }
19152 arg4 = static_cast< int >(val4);
19153 {
19154 PyThreadState* __tstate = wxPyBeginAllowThreads();
19155 (arg1)->DrawCircle(arg2,arg3,arg4);
19156 wxPyEndAllowThreads(__tstate);
19157 if (PyErr_Occurred()) SWIG_fail;
19158 }
19159 resultobj = SWIG_Py_Void();
19160 return resultobj;
19161 fail:
19162 return NULL;
19163 }
19164
19165
19166 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19167 PyObject *resultobj = 0;
19168 wxDC *arg1 = (wxDC *) 0 ;
19169 wxPoint *arg2 = 0 ;
19170 int arg3 ;
19171 void *argp1 = 0 ;
19172 int res1 = 0 ;
19173 wxPoint temp2 ;
19174 int val3 ;
19175 int ecode3 = 0 ;
19176 PyObject * obj0 = 0 ;
19177 PyObject * obj1 = 0 ;
19178 PyObject * obj2 = 0 ;
19179 char * kwnames[] = {
19180 (char *) "self",(char *) "pt",(char *) "radius", NULL
19181 };
19182
19183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19185 if (!SWIG_IsOK(res1)) {
19186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19187 }
19188 arg1 = reinterpret_cast< wxDC * >(argp1);
19189 {
19190 arg2 = &temp2;
19191 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19192 }
19193 ecode3 = SWIG_AsVal_int(obj2, &val3);
19194 if (!SWIG_IsOK(ecode3)) {
19195 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19196 }
19197 arg3 = static_cast< int >(val3);
19198 {
19199 PyThreadState* __tstate = wxPyBeginAllowThreads();
19200 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19201 wxPyEndAllowThreads(__tstate);
19202 if (PyErr_Occurred()) SWIG_fail;
19203 }
19204 resultobj = SWIG_Py_Void();
19205 return resultobj;
19206 fail:
19207 return NULL;
19208 }
19209
19210
19211 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19212 PyObject *resultobj = 0;
19213 wxDC *arg1 = (wxDC *) 0 ;
19214 int arg2 ;
19215 int arg3 ;
19216 int arg4 ;
19217 int arg5 ;
19218 void *argp1 = 0 ;
19219 int res1 = 0 ;
19220 int val2 ;
19221 int ecode2 = 0 ;
19222 int val3 ;
19223 int ecode3 = 0 ;
19224 int val4 ;
19225 int ecode4 = 0 ;
19226 int val5 ;
19227 int ecode5 = 0 ;
19228 PyObject * obj0 = 0 ;
19229 PyObject * obj1 = 0 ;
19230 PyObject * obj2 = 0 ;
19231 PyObject * obj3 = 0 ;
19232 PyObject * obj4 = 0 ;
19233 char * kwnames[] = {
19234 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19235 };
19236
19237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19239 if (!SWIG_IsOK(res1)) {
19240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19241 }
19242 arg1 = reinterpret_cast< wxDC * >(argp1);
19243 ecode2 = SWIG_AsVal_int(obj1, &val2);
19244 if (!SWIG_IsOK(ecode2)) {
19245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19246 }
19247 arg2 = static_cast< int >(val2);
19248 ecode3 = SWIG_AsVal_int(obj2, &val3);
19249 if (!SWIG_IsOK(ecode3)) {
19250 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19251 }
19252 arg3 = static_cast< int >(val3);
19253 ecode4 = SWIG_AsVal_int(obj3, &val4);
19254 if (!SWIG_IsOK(ecode4)) {
19255 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19256 }
19257 arg4 = static_cast< int >(val4);
19258 ecode5 = SWIG_AsVal_int(obj4, &val5);
19259 if (!SWIG_IsOK(ecode5)) {
19260 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19261 }
19262 arg5 = static_cast< int >(val5);
19263 {
19264 PyThreadState* __tstate = wxPyBeginAllowThreads();
19265 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19266 wxPyEndAllowThreads(__tstate);
19267 if (PyErr_Occurred()) SWIG_fail;
19268 }
19269 resultobj = SWIG_Py_Void();
19270 return resultobj;
19271 fail:
19272 return NULL;
19273 }
19274
19275
19276 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19277 PyObject *resultobj = 0;
19278 wxDC *arg1 = (wxDC *) 0 ;
19279 wxRect *arg2 = 0 ;
19280 void *argp1 = 0 ;
19281 int res1 = 0 ;
19282 wxRect temp2 ;
19283 PyObject * obj0 = 0 ;
19284 PyObject * obj1 = 0 ;
19285 char * kwnames[] = {
19286 (char *) "self",(char *) "rect", NULL
19287 };
19288
19289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19291 if (!SWIG_IsOK(res1)) {
19292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19293 }
19294 arg1 = reinterpret_cast< wxDC * >(argp1);
19295 {
19296 arg2 = &temp2;
19297 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19298 }
19299 {
19300 PyThreadState* __tstate = wxPyBeginAllowThreads();
19301 (arg1)->DrawEllipse((wxRect const &)*arg2);
19302 wxPyEndAllowThreads(__tstate);
19303 if (PyErr_Occurred()) SWIG_fail;
19304 }
19305 resultobj = SWIG_Py_Void();
19306 return resultobj;
19307 fail:
19308 return NULL;
19309 }
19310
19311
19312 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19313 PyObject *resultobj = 0;
19314 wxDC *arg1 = (wxDC *) 0 ;
19315 wxPoint *arg2 = 0 ;
19316 wxSize *arg3 = 0 ;
19317 void *argp1 = 0 ;
19318 int res1 = 0 ;
19319 wxPoint temp2 ;
19320 wxSize temp3 ;
19321 PyObject * obj0 = 0 ;
19322 PyObject * obj1 = 0 ;
19323 PyObject * obj2 = 0 ;
19324 char * kwnames[] = {
19325 (char *) "self",(char *) "pt",(char *) "sz", NULL
19326 };
19327
19328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19330 if (!SWIG_IsOK(res1)) {
19331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19332 }
19333 arg1 = reinterpret_cast< wxDC * >(argp1);
19334 {
19335 arg2 = &temp2;
19336 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19337 }
19338 {
19339 arg3 = &temp3;
19340 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19341 }
19342 {
19343 PyThreadState* __tstate = wxPyBeginAllowThreads();
19344 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19345 wxPyEndAllowThreads(__tstate);
19346 if (PyErr_Occurred()) SWIG_fail;
19347 }
19348 resultobj = SWIG_Py_Void();
19349 return resultobj;
19350 fail:
19351 return NULL;
19352 }
19353
19354
19355 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19356 PyObject *resultobj = 0;
19357 wxDC *arg1 = (wxDC *) 0 ;
19358 wxIcon *arg2 = 0 ;
19359 int arg3 ;
19360 int arg4 ;
19361 void *argp1 = 0 ;
19362 int res1 = 0 ;
19363 void *argp2 = 0 ;
19364 int res2 = 0 ;
19365 int val3 ;
19366 int ecode3 = 0 ;
19367 int val4 ;
19368 int ecode4 = 0 ;
19369 PyObject * obj0 = 0 ;
19370 PyObject * obj1 = 0 ;
19371 PyObject * obj2 = 0 ;
19372 PyObject * obj3 = 0 ;
19373 char * kwnames[] = {
19374 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19375 };
19376
19377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19379 if (!SWIG_IsOK(res1)) {
19380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19381 }
19382 arg1 = reinterpret_cast< wxDC * >(argp1);
19383 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19384 if (!SWIG_IsOK(res2)) {
19385 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19386 }
19387 if (!argp2) {
19388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19389 }
19390 arg2 = reinterpret_cast< wxIcon * >(argp2);
19391 ecode3 = SWIG_AsVal_int(obj2, &val3);
19392 if (!SWIG_IsOK(ecode3)) {
19393 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19394 }
19395 arg3 = static_cast< int >(val3);
19396 ecode4 = SWIG_AsVal_int(obj3, &val4);
19397 if (!SWIG_IsOK(ecode4)) {
19398 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19399 }
19400 arg4 = static_cast< int >(val4);
19401 {
19402 PyThreadState* __tstate = wxPyBeginAllowThreads();
19403 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19404 wxPyEndAllowThreads(__tstate);
19405 if (PyErr_Occurred()) SWIG_fail;
19406 }
19407 resultobj = SWIG_Py_Void();
19408 return resultobj;
19409 fail:
19410 return NULL;
19411 }
19412
19413
19414 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19415 PyObject *resultobj = 0;
19416 wxDC *arg1 = (wxDC *) 0 ;
19417 wxIcon *arg2 = 0 ;
19418 wxPoint *arg3 = 0 ;
19419 void *argp1 = 0 ;
19420 int res1 = 0 ;
19421 void *argp2 = 0 ;
19422 int res2 = 0 ;
19423 wxPoint temp3 ;
19424 PyObject * obj0 = 0 ;
19425 PyObject * obj1 = 0 ;
19426 PyObject * obj2 = 0 ;
19427 char * kwnames[] = {
19428 (char *) "self",(char *) "icon",(char *) "pt", NULL
19429 };
19430
19431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19433 if (!SWIG_IsOK(res1)) {
19434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19435 }
19436 arg1 = reinterpret_cast< wxDC * >(argp1);
19437 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19438 if (!SWIG_IsOK(res2)) {
19439 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19440 }
19441 if (!argp2) {
19442 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19443 }
19444 arg2 = reinterpret_cast< wxIcon * >(argp2);
19445 {
19446 arg3 = &temp3;
19447 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19448 }
19449 {
19450 PyThreadState* __tstate = wxPyBeginAllowThreads();
19451 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19452 wxPyEndAllowThreads(__tstate);
19453 if (PyErr_Occurred()) SWIG_fail;
19454 }
19455 resultobj = SWIG_Py_Void();
19456 return resultobj;
19457 fail:
19458 return NULL;
19459 }
19460
19461
19462 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19463 PyObject *resultobj = 0;
19464 wxDC *arg1 = (wxDC *) 0 ;
19465 wxBitmap *arg2 = 0 ;
19466 int arg3 ;
19467 int arg4 ;
19468 bool arg5 = (bool) false ;
19469 void *argp1 = 0 ;
19470 int res1 = 0 ;
19471 void *argp2 = 0 ;
19472 int res2 = 0 ;
19473 int val3 ;
19474 int ecode3 = 0 ;
19475 int val4 ;
19476 int ecode4 = 0 ;
19477 bool val5 ;
19478 int ecode5 = 0 ;
19479 PyObject * obj0 = 0 ;
19480 PyObject * obj1 = 0 ;
19481 PyObject * obj2 = 0 ;
19482 PyObject * obj3 = 0 ;
19483 PyObject * obj4 = 0 ;
19484 char * kwnames[] = {
19485 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19486 };
19487
19488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19490 if (!SWIG_IsOK(res1)) {
19491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19492 }
19493 arg1 = reinterpret_cast< wxDC * >(argp1);
19494 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19495 if (!SWIG_IsOK(res2)) {
19496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19497 }
19498 if (!argp2) {
19499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19500 }
19501 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19502 ecode3 = SWIG_AsVal_int(obj2, &val3);
19503 if (!SWIG_IsOK(ecode3)) {
19504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19505 }
19506 arg3 = static_cast< int >(val3);
19507 ecode4 = SWIG_AsVal_int(obj3, &val4);
19508 if (!SWIG_IsOK(ecode4)) {
19509 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19510 }
19511 arg4 = static_cast< int >(val4);
19512 if (obj4) {
19513 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19514 if (!SWIG_IsOK(ecode5)) {
19515 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19516 }
19517 arg5 = static_cast< bool >(val5);
19518 }
19519 {
19520 PyThreadState* __tstate = wxPyBeginAllowThreads();
19521 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19522 wxPyEndAllowThreads(__tstate);
19523 if (PyErr_Occurred()) SWIG_fail;
19524 }
19525 resultobj = SWIG_Py_Void();
19526 return resultobj;
19527 fail:
19528 return NULL;
19529 }
19530
19531
19532 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19533 PyObject *resultobj = 0;
19534 wxDC *arg1 = (wxDC *) 0 ;
19535 wxBitmap *arg2 = 0 ;
19536 wxPoint *arg3 = 0 ;
19537 bool arg4 = (bool) false ;
19538 void *argp1 = 0 ;
19539 int res1 = 0 ;
19540 void *argp2 = 0 ;
19541 int res2 = 0 ;
19542 wxPoint temp3 ;
19543 bool val4 ;
19544 int ecode4 = 0 ;
19545 PyObject * obj0 = 0 ;
19546 PyObject * obj1 = 0 ;
19547 PyObject * obj2 = 0 ;
19548 PyObject * obj3 = 0 ;
19549 char * kwnames[] = {
19550 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19551 };
19552
19553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19555 if (!SWIG_IsOK(res1)) {
19556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19557 }
19558 arg1 = reinterpret_cast< wxDC * >(argp1);
19559 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19560 if (!SWIG_IsOK(res2)) {
19561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19562 }
19563 if (!argp2) {
19564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19565 }
19566 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19567 {
19568 arg3 = &temp3;
19569 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19570 }
19571 if (obj3) {
19572 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19573 if (!SWIG_IsOK(ecode4)) {
19574 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19575 }
19576 arg4 = static_cast< bool >(val4);
19577 }
19578 {
19579 PyThreadState* __tstate = wxPyBeginAllowThreads();
19580 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19581 wxPyEndAllowThreads(__tstate);
19582 if (PyErr_Occurred()) SWIG_fail;
19583 }
19584 resultobj = SWIG_Py_Void();
19585 return resultobj;
19586 fail:
19587 return NULL;
19588 }
19589
19590
19591 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19592 PyObject *resultobj = 0;
19593 wxDC *arg1 = (wxDC *) 0 ;
19594 wxString *arg2 = 0 ;
19595 int arg3 ;
19596 int arg4 ;
19597 void *argp1 = 0 ;
19598 int res1 = 0 ;
19599 bool temp2 = false ;
19600 int val3 ;
19601 int ecode3 = 0 ;
19602 int val4 ;
19603 int ecode4 = 0 ;
19604 PyObject * obj0 = 0 ;
19605 PyObject * obj1 = 0 ;
19606 PyObject * obj2 = 0 ;
19607 PyObject * obj3 = 0 ;
19608 char * kwnames[] = {
19609 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19610 };
19611
19612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19614 if (!SWIG_IsOK(res1)) {
19615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19616 }
19617 arg1 = reinterpret_cast< wxDC * >(argp1);
19618 {
19619 arg2 = wxString_in_helper(obj1);
19620 if (arg2 == NULL) SWIG_fail;
19621 temp2 = true;
19622 }
19623 ecode3 = SWIG_AsVal_int(obj2, &val3);
19624 if (!SWIG_IsOK(ecode3)) {
19625 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19626 }
19627 arg3 = static_cast< int >(val3);
19628 ecode4 = SWIG_AsVal_int(obj3, &val4);
19629 if (!SWIG_IsOK(ecode4)) {
19630 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19631 }
19632 arg4 = static_cast< int >(val4);
19633 {
19634 PyThreadState* __tstate = wxPyBeginAllowThreads();
19635 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19636 wxPyEndAllowThreads(__tstate);
19637 if (PyErr_Occurred()) SWIG_fail;
19638 }
19639 resultobj = SWIG_Py_Void();
19640 {
19641 if (temp2)
19642 delete arg2;
19643 }
19644 return resultobj;
19645 fail:
19646 {
19647 if (temp2)
19648 delete arg2;
19649 }
19650 return NULL;
19651 }
19652
19653
19654 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19655 PyObject *resultobj = 0;
19656 wxDC *arg1 = (wxDC *) 0 ;
19657 wxString *arg2 = 0 ;
19658 wxPoint *arg3 = 0 ;
19659 void *argp1 = 0 ;
19660 int res1 = 0 ;
19661 bool temp2 = false ;
19662 wxPoint temp3 ;
19663 PyObject * obj0 = 0 ;
19664 PyObject * obj1 = 0 ;
19665 PyObject * obj2 = 0 ;
19666 char * kwnames[] = {
19667 (char *) "self",(char *) "text",(char *) "pt", NULL
19668 };
19669
19670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19672 if (!SWIG_IsOK(res1)) {
19673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19674 }
19675 arg1 = reinterpret_cast< wxDC * >(argp1);
19676 {
19677 arg2 = wxString_in_helper(obj1);
19678 if (arg2 == NULL) SWIG_fail;
19679 temp2 = true;
19680 }
19681 {
19682 arg3 = &temp3;
19683 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19684 }
19685 {
19686 PyThreadState* __tstate = wxPyBeginAllowThreads();
19687 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19688 wxPyEndAllowThreads(__tstate);
19689 if (PyErr_Occurred()) SWIG_fail;
19690 }
19691 resultobj = SWIG_Py_Void();
19692 {
19693 if (temp2)
19694 delete arg2;
19695 }
19696 return resultobj;
19697 fail:
19698 {
19699 if (temp2)
19700 delete arg2;
19701 }
19702 return NULL;
19703 }
19704
19705
19706 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19707 PyObject *resultobj = 0;
19708 wxDC *arg1 = (wxDC *) 0 ;
19709 wxString *arg2 = 0 ;
19710 int arg3 ;
19711 int arg4 ;
19712 double arg5 ;
19713 void *argp1 = 0 ;
19714 int res1 = 0 ;
19715 bool temp2 = false ;
19716 int val3 ;
19717 int ecode3 = 0 ;
19718 int val4 ;
19719 int ecode4 = 0 ;
19720 double val5 ;
19721 int ecode5 = 0 ;
19722 PyObject * obj0 = 0 ;
19723 PyObject * obj1 = 0 ;
19724 PyObject * obj2 = 0 ;
19725 PyObject * obj3 = 0 ;
19726 PyObject * obj4 = 0 ;
19727 char * kwnames[] = {
19728 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19729 };
19730
19731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19733 if (!SWIG_IsOK(res1)) {
19734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19735 }
19736 arg1 = reinterpret_cast< wxDC * >(argp1);
19737 {
19738 arg2 = wxString_in_helper(obj1);
19739 if (arg2 == NULL) SWIG_fail;
19740 temp2 = true;
19741 }
19742 ecode3 = SWIG_AsVal_int(obj2, &val3);
19743 if (!SWIG_IsOK(ecode3)) {
19744 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19745 }
19746 arg3 = static_cast< int >(val3);
19747 ecode4 = SWIG_AsVal_int(obj3, &val4);
19748 if (!SWIG_IsOK(ecode4)) {
19749 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19750 }
19751 arg4 = static_cast< int >(val4);
19752 ecode5 = SWIG_AsVal_double(obj4, &val5);
19753 if (!SWIG_IsOK(ecode5)) {
19754 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19755 }
19756 arg5 = static_cast< double >(val5);
19757 {
19758 PyThreadState* __tstate = wxPyBeginAllowThreads();
19759 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19760 wxPyEndAllowThreads(__tstate);
19761 if (PyErr_Occurred()) SWIG_fail;
19762 }
19763 resultobj = SWIG_Py_Void();
19764 {
19765 if (temp2)
19766 delete arg2;
19767 }
19768 return resultobj;
19769 fail:
19770 {
19771 if (temp2)
19772 delete arg2;
19773 }
19774 return NULL;
19775 }
19776
19777
19778 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19779 PyObject *resultobj = 0;
19780 wxDC *arg1 = (wxDC *) 0 ;
19781 wxString *arg2 = 0 ;
19782 wxPoint *arg3 = 0 ;
19783 double arg4 ;
19784 void *argp1 = 0 ;
19785 int res1 = 0 ;
19786 bool temp2 = false ;
19787 wxPoint temp3 ;
19788 double val4 ;
19789 int ecode4 = 0 ;
19790 PyObject * obj0 = 0 ;
19791 PyObject * obj1 = 0 ;
19792 PyObject * obj2 = 0 ;
19793 PyObject * obj3 = 0 ;
19794 char * kwnames[] = {
19795 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19796 };
19797
19798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19800 if (!SWIG_IsOK(res1)) {
19801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19802 }
19803 arg1 = reinterpret_cast< wxDC * >(argp1);
19804 {
19805 arg2 = wxString_in_helper(obj1);
19806 if (arg2 == NULL) SWIG_fail;
19807 temp2 = true;
19808 }
19809 {
19810 arg3 = &temp3;
19811 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19812 }
19813 ecode4 = SWIG_AsVal_double(obj3, &val4);
19814 if (!SWIG_IsOK(ecode4)) {
19815 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19816 }
19817 arg4 = static_cast< double >(val4);
19818 {
19819 PyThreadState* __tstate = wxPyBeginAllowThreads();
19820 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19821 wxPyEndAllowThreads(__tstate);
19822 if (PyErr_Occurred()) SWIG_fail;
19823 }
19824 resultobj = SWIG_Py_Void();
19825 {
19826 if (temp2)
19827 delete arg2;
19828 }
19829 return resultobj;
19830 fail:
19831 {
19832 if (temp2)
19833 delete arg2;
19834 }
19835 return NULL;
19836 }
19837
19838
19839 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19840 PyObject *resultobj = 0;
19841 wxDC *arg1 = (wxDC *) 0 ;
19842 int arg2 ;
19843 int arg3 ;
19844 int arg4 ;
19845 int arg5 ;
19846 wxDC *arg6 = (wxDC *) 0 ;
19847 int arg7 ;
19848 int arg8 ;
19849 int arg9 = (int) wxCOPY ;
19850 bool arg10 = (bool) false ;
19851 int arg11 = (int) -1 ;
19852 int arg12 = (int) -1 ;
19853 bool result;
19854 void *argp1 = 0 ;
19855 int res1 = 0 ;
19856 int val2 ;
19857 int ecode2 = 0 ;
19858 int val3 ;
19859 int ecode3 = 0 ;
19860 int val4 ;
19861 int ecode4 = 0 ;
19862 int val5 ;
19863 int ecode5 = 0 ;
19864 void *argp6 = 0 ;
19865 int res6 = 0 ;
19866 int val7 ;
19867 int ecode7 = 0 ;
19868 int val8 ;
19869 int ecode8 = 0 ;
19870 int val9 ;
19871 int ecode9 = 0 ;
19872 bool val10 ;
19873 int ecode10 = 0 ;
19874 int val11 ;
19875 int ecode11 = 0 ;
19876 int val12 ;
19877 int ecode12 = 0 ;
19878 PyObject * obj0 = 0 ;
19879 PyObject * obj1 = 0 ;
19880 PyObject * obj2 = 0 ;
19881 PyObject * obj3 = 0 ;
19882 PyObject * obj4 = 0 ;
19883 PyObject * obj5 = 0 ;
19884 PyObject * obj6 = 0 ;
19885 PyObject * obj7 = 0 ;
19886 PyObject * obj8 = 0 ;
19887 PyObject * obj9 = 0 ;
19888 PyObject * obj10 = 0 ;
19889 PyObject * obj11 = 0 ;
19890 char * kwnames[] = {
19891 (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
19892 };
19893
19894 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;
19895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19896 if (!SWIG_IsOK(res1)) {
19897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19898 }
19899 arg1 = reinterpret_cast< wxDC * >(argp1);
19900 ecode2 = SWIG_AsVal_int(obj1, &val2);
19901 if (!SWIG_IsOK(ecode2)) {
19902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19903 }
19904 arg2 = static_cast< int >(val2);
19905 ecode3 = SWIG_AsVal_int(obj2, &val3);
19906 if (!SWIG_IsOK(ecode3)) {
19907 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19908 }
19909 arg3 = static_cast< int >(val3);
19910 ecode4 = SWIG_AsVal_int(obj3, &val4);
19911 if (!SWIG_IsOK(ecode4)) {
19912 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19913 }
19914 arg4 = static_cast< int >(val4);
19915 ecode5 = SWIG_AsVal_int(obj4, &val5);
19916 if (!SWIG_IsOK(ecode5)) {
19917 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19918 }
19919 arg5 = static_cast< int >(val5);
19920 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19921 if (!SWIG_IsOK(res6)) {
19922 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19923 }
19924 arg6 = reinterpret_cast< wxDC * >(argp6);
19925 ecode7 = SWIG_AsVal_int(obj6, &val7);
19926 if (!SWIG_IsOK(ecode7)) {
19927 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19928 }
19929 arg7 = static_cast< int >(val7);
19930 ecode8 = SWIG_AsVal_int(obj7, &val8);
19931 if (!SWIG_IsOK(ecode8)) {
19932 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19933 }
19934 arg8 = static_cast< int >(val8);
19935 if (obj8) {
19936 ecode9 = SWIG_AsVal_int(obj8, &val9);
19937 if (!SWIG_IsOK(ecode9)) {
19938 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19939 }
19940 arg9 = static_cast< int >(val9);
19941 }
19942 if (obj9) {
19943 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19944 if (!SWIG_IsOK(ecode10)) {
19945 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19946 }
19947 arg10 = static_cast< bool >(val10);
19948 }
19949 if (obj10) {
19950 ecode11 = SWIG_AsVal_int(obj10, &val11);
19951 if (!SWIG_IsOK(ecode11)) {
19952 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19953 }
19954 arg11 = static_cast< int >(val11);
19955 }
19956 if (obj11) {
19957 ecode12 = SWIG_AsVal_int(obj11, &val12);
19958 if (!SWIG_IsOK(ecode12)) {
19959 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19960 }
19961 arg12 = static_cast< int >(val12);
19962 }
19963 {
19964 PyThreadState* __tstate = wxPyBeginAllowThreads();
19965 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19966 wxPyEndAllowThreads(__tstate);
19967 if (PyErr_Occurred()) SWIG_fail;
19968 }
19969 {
19970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19971 }
19972 return resultobj;
19973 fail:
19974 return NULL;
19975 }
19976
19977
19978 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19979 PyObject *resultobj = 0;
19980 wxDC *arg1 = (wxDC *) 0 ;
19981 wxPoint *arg2 = 0 ;
19982 wxSize *arg3 = 0 ;
19983 wxDC *arg4 = (wxDC *) 0 ;
19984 wxPoint *arg5 = 0 ;
19985 int arg6 = (int) wxCOPY ;
19986 bool arg7 = (bool) false ;
19987 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19988 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19989 bool result;
19990 void *argp1 = 0 ;
19991 int res1 = 0 ;
19992 wxPoint temp2 ;
19993 wxSize temp3 ;
19994 void *argp4 = 0 ;
19995 int res4 = 0 ;
19996 wxPoint temp5 ;
19997 int val6 ;
19998 int ecode6 = 0 ;
19999 bool val7 ;
20000 int ecode7 = 0 ;
20001 wxPoint temp8 ;
20002 PyObject * obj0 = 0 ;
20003 PyObject * obj1 = 0 ;
20004 PyObject * obj2 = 0 ;
20005 PyObject * obj3 = 0 ;
20006 PyObject * obj4 = 0 ;
20007 PyObject * obj5 = 0 ;
20008 PyObject * obj6 = 0 ;
20009 PyObject * obj7 = 0 ;
20010 char * kwnames[] = {
20011 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20012 };
20013
20014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20016 if (!SWIG_IsOK(res1)) {
20017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20018 }
20019 arg1 = reinterpret_cast< wxDC * >(argp1);
20020 {
20021 arg2 = &temp2;
20022 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20023 }
20024 {
20025 arg3 = &temp3;
20026 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20027 }
20028 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20029 if (!SWIG_IsOK(res4)) {
20030 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20031 }
20032 arg4 = reinterpret_cast< wxDC * >(argp4);
20033 {
20034 arg5 = &temp5;
20035 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20036 }
20037 if (obj5) {
20038 ecode6 = SWIG_AsVal_int(obj5, &val6);
20039 if (!SWIG_IsOK(ecode6)) {
20040 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20041 }
20042 arg6 = static_cast< int >(val6);
20043 }
20044 if (obj6) {
20045 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20046 if (!SWIG_IsOK(ecode7)) {
20047 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20048 }
20049 arg7 = static_cast< bool >(val7);
20050 }
20051 if (obj7) {
20052 {
20053 arg8 = &temp8;
20054 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
20055 }
20056 }
20057 {
20058 PyThreadState* __tstate = wxPyBeginAllowThreads();
20059 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20060 wxPyEndAllowThreads(__tstate);
20061 if (PyErr_Occurred()) SWIG_fail;
20062 }
20063 {
20064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20065 }
20066 return resultobj;
20067 fail:
20068 return NULL;
20069 }
20070
20071
20072 SWIGINTERN PyObject *_wrap_DC_StretchBlit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20073 PyObject *resultobj = 0;
20074 wxDC *arg1 = (wxDC *) 0 ;
20075 int arg2 ;
20076 int arg3 ;
20077 int arg4 ;
20078 int arg5 ;
20079 wxDC *arg6 = (wxDC *) 0 ;
20080 int arg7 ;
20081 int arg8 ;
20082 int arg9 ;
20083 int arg10 ;
20084 int arg11 = (int) wxCOPY ;
20085 bool arg12 = (bool) false ;
20086 int arg13 = (int) wxDefaultCoord ;
20087 int arg14 = (int) wxDefaultCoord ;
20088 bool result;
20089 void *argp1 = 0 ;
20090 int res1 = 0 ;
20091 int val2 ;
20092 int ecode2 = 0 ;
20093 int val3 ;
20094 int ecode3 = 0 ;
20095 int val4 ;
20096 int ecode4 = 0 ;
20097 int val5 ;
20098 int ecode5 = 0 ;
20099 void *argp6 = 0 ;
20100 int res6 = 0 ;
20101 int val7 ;
20102 int ecode7 = 0 ;
20103 int val8 ;
20104 int ecode8 = 0 ;
20105 int val9 ;
20106 int ecode9 = 0 ;
20107 int val10 ;
20108 int ecode10 = 0 ;
20109 int val11 ;
20110 int ecode11 = 0 ;
20111 bool val12 ;
20112 int ecode12 = 0 ;
20113 int val13 ;
20114 int ecode13 = 0 ;
20115 int val14 ;
20116 int ecode14 = 0 ;
20117 PyObject * obj0 = 0 ;
20118 PyObject * obj1 = 0 ;
20119 PyObject * obj2 = 0 ;
20120 PyObject * obj3 = 0 ;
20121 PyObject * obj4 = 0 ;
20122 PyObject * obj5 = 0 ;
20123 PyObject * obj6 = 0 ;
20124 PyObject * obj7 = 0 ;
20125 PyObject * obj8 = 0 ;
20126 PyObject * obj9 = 0 ;
20127 PyObject * obj10 = 0 ;
20128 PyObject * obj11 = 0 ;
20129 PyObject * obj12 = 0 ;
20130 PyObject * obj13 = 0 ;
20131 char * kwnames[] = {
20132 (char *) "self",(char *) "dstX",(char *) "dstY",(char *) "dstWidth",(char *) "dstHeight",(char *) "source",(char *) "srcX",(char *) "srcY",(char *) "srcWidth",(char *) "srcHeight",(char *) "rop",(char *) "useMask",(char *) "srcMaskX",(char *) "srcMaskY", NULL
20133 };
20134
20135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOOOO|OOOO:DC_StretchBlit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
20136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20137 if (!SWIG_IsOK(res1)) {
20138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StretchBlit" "', expected argument " "1"" of type '" "wxDC *""'");
20139 }
20140 arg1 = reinterpret_cast< wxDC * >(argp1);
20141 ecode2 = SWIG_AsVal_int(obj1, &val2);
20142 if (!SWIG_IsOK(ecode2)) {
20143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_StretchBlit" "', expected argument " "2"" of type '" "int""'");
20144 }
20145 arg2 = static_cast< int >(val2);
20146 ecode3 = SWIG_AsVal_int(obj2, &val3);
20147 if (!SWIG_IsOK(ecode3)) {
20148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_StretchBlit" "', expected argument " "3"" of type '" "int""'");
20149 }
20150 arg3 = static_cast< int >(val3);
20151 ecode4 = SWIG_AsVal_int(obj3, &val4);
20152 if (!SWIG_IsOK(ecode4)) {
20153 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_StretchBlit" "', expected argument " "4"" of type '" "int""'");
20154 }
20155 arg4 = static_cast< int >(val4);
20156 ecode5 = SWIG_AsVal_int(obj4, &val5);
20157 if (!SWIG_IsOK(ecode5)) {
20158 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_StretchBlit" "', expected argument " "5"" of type '" "int""'");
20159 }
20160 arg5 = static_cast< int >(val5);
20161 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20162 if (!SWIG_IsOK(res6)) {
20163 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_StretchBlit" "', expected argument " "6"" of type '" "wxDC *""'");
20164 }
20165 arg6 = reinterpret_cast< wxDC * >(argp6);
20166 ecode7 = SWIG_AsVal_int(obj6, &val7);
20167 if (!SWIG_IsOK(ecode7)) {
20168 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlit" "', expected argument " "7"" of type '" "int""'");
20169 }
20170 arg7 = static_cast< int >(val7);
20171 ecode8 = SWIG_AsVal_int(obj7, &val8);
20172 if (!SWIG_IsOK(ecode8)) {
20173 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlit" "', expected argument " "8"" of type '" "int""'");
20174 }
20175 arg8 = static_cast< int >(val8);
20176 ecode9 = SWIG_AsVal_int(obj8, &val9);
20177 if (!SWIG_IsOK(ecode9)) {
20178 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_StretchBlit" "', expected argument " "9"" of type '" "int""'");
20179 }
20180 arg9 = static_cast< int >(val9);
20181 ecode10 = SWIG_AsVal_int(obj9, &val10);
20182 if (!SWIG_IsOK(ecode10)) {
20183 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_StretchBlit" "', expected argument " "10"" of type '" "int""'");
20184 }
20185 arg10 = static_cast< int >(val10);
20186 if (obj10) {
20187 ecode11 = SWIG_AsVal_int(obj10, &val11);
20188 if (!SWIG_IsOK(ecode11)) {
20189 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_StretchBlit" "', expected argument " "11"" of type '" "int""'");
20190 }
20191 arg11 = static_cast< int >(val11);
20192 }
20193 if (obj11) {
20194 ecode12 = SWIG_AsVal_bool(obj11, &val12);
20195 if (!SWIG_IsOK(ecode12)) {
20196 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_StretchBlit" "', expected argument " "12"" of type '" "bool""'");
20197 }
20198 arg12 = static_cast< bool >(val12);
20199 }
20200 if (obj12) {
20201 ecode13 = SWIG_AsVal_int(obj12, &val13);
20202 if (!SWIG_IsOK(ecode13)) {
20203 SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "DC_StretchBlit" "', expected argument " "13"" of type '" "int""'");
20204 }
20205 arg13 = static_cast< int >(val13);
20206 }
20207 if (obj13) {
20208 ecode14 = SWIG_AsVal_int(obj13, &val14);
20209 if (!SWIG_IsOK(ecode14)) {
20210 SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "DC_StretchBlit" "', expected argument " "14"" of type '" "int""'");
20211 }
20212 arg14 = static_cast< int >(val14);
20213 }
20214 {
20215 PyThreadState* __tstate = wxPyBeginAllowThreads();
20216 result = (bool)(arg1)->StretchBlit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14);
20217 wxPyEndAllowThreads(__tstate);
20218 if (PyErr_Occurred()) SWIG_fail;
20219 }
20220 {
20221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20222 }
20223 return resultobj;
20224 fail:
20225 return NULL;
20226 }
20227
20228
20229 SWIGINTERN PyObject *_wrap_DC_StretchBlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20230 PyObject *resultobj = 0;
20231 wxDC *arg1 = (wxDC *) 0 ;
20232 wxPoint *arg2 = 0 ;
20233 wxSize *arg3 = 0 ;
20234 wxDC *arg4 = (wxDC *) 0 ;
20235 wxPoint *arg5 = 0 ;
20236 wxSize *arg6 = 0 ;
20237 int arg7 = (int) wxCOPY ;
20238 bool arg8 = (bool) false ;
20239 wxPoint const &arg9_defvalue = wxDefaultPosition ;
20240 wxPoint *arg9 = (wxPoint *) &arg9_defvalue ;
20241 bool result;
20242 void *argp1 = 0 ;
20243 int res1 = 0 ;
20244 wxPoint temp2 ;
20245 wxSize temp3 ;
20246 void *argp4 = 0 ;
20247 int res4 = 0 ;
20248 wxPoint temp5 ;
20249 wxSize temp6 ;
20250 int val7 ;
20251 int ecode7 = 0 ;
20252 bool val8 ;
20253 int ecode8 = 0 ;
20254 wxPoint temp9 ;
20255 PyObject * obj0 = 0 ;
20256 PyObject * obj1 = 0 ;
20257 PyObject * obj2 = 0 ;
20258 PyObject * obj3 = 0 ;
20259 PyObject * obj4 = 0 ;
20260 PyObject * obj5 = 0 ;
20261 PyObject * obj6 = 0 ;
20262 PyObject * obj7 = 0 ;
20263 PyObject * obj8 = 0 ;
20264 char * kwnames[] = {
20265 (char *) "self",(char *) "dstPt",(char *) "dstSize",(char *) "source",(char *) "srcPt",(char *) "srcSize",(char *) "rop",(char *) "useMask",(char *) "srcMaskPt", NULL
20266 };
20267
20268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOO:DC_StretchBlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
20269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20270 if (!SWIG_IsOK(res1)) {
20271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StretchBlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20272 }
20273 arg1 = reinterpret_cast< wxDC * >(argp1);
20274 {
20275 arg2 = &temp2;
20276 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20277 }
20278 {
20279 arg3 = &temp3;
20280 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20281 }
20282 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20283 if (!SWIG_IsOK(res4)) {
20284 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_StretchBlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20285 }
20286 arg4 = reinterpret_cast< wxDC * >(argp4);
20287 {
20288 arg5 = &temp5;
20289 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20290 }
20291 {
20292 arg6 = &temp6;
20293 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
20294 }
20295 if (obj6) {
20296 ecode7 = SWIG_AsVal_int(obj6, &val7);
20297 if (!SWIG_IsOK(ecode7)) {
20298 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlitPointSize" "', expected argument " "7"" of type '" "int""'");
20299 }
20300 arg7 = static_cast< int >(val7);
20301 }
20302 if (obj7) {
20303 ecode8 = SWIG_AsVal_bool(obj7, &val8);
20304 if (!SWIG_IsOK(ecode8)) {
20305 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlitPointSize" "', expected argument " "8"" of type '" "bool""'");
20306 }
20307 arg8 = static_cast< bool >(val8);
20308 }
20309 if (obj8) {
20310 {
20311 arg9 = &temp9;
20312 if ( ! wxPoint_helper(obj8, &arg9)) SWIG_fail;
20313 }
20314 }
20315 {
20316 PyThreadState* __tstate = wxPyBeginAllowThreads();
20317 result = (bool)(arg1)->StretchBlit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,(wxPoint const &)*arg9);
20318 wxPyEndAllowThreads(__tstate);
20319 if (PyErr_Occurred()) SWIG_fail;
20320 }
20321 {
20322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20323 }
20324 return resultobj;
20325 fail:
20326 return NULL;
20327 }
20328
20329
20330 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20331 PyObject *resultobj = 0;
20332 wxDC *arg1 = (wxDC *) 0 ;
20333 wxRect *arg2 = (wxRect *) NULL ;
20334 SwigValueWrapper<wxBitmap > result;
20335 void *argp1 = 0 ;
20336 int res1 = 0 ;
20337 void *argp2 = 0 ;
20338 int res2 = 0 ;
20339 PyObject * obj0 = 0 ;
20340 PyObject * obj1 = 0 ;
20341 char * kwnames[] = {
20342 (char *) "self",(char *) "subrect", NULL
20343 };
20344
20345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
20346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20347 if (!SWIG_IsOK(res1)) {
20348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
20349 }
20350 arg1 = reinterpret_cast< wxDC * >(argp1);
20351 if (obj1) {
20352 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20353 if (!SWIG_IsOK(res2)) {
20354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
20355 }
20356 arg2 = reinterpret_cast< wxRect * >(argp2);
20357 }
20358 {
20359 PyThreadState* __tstate = wxPyBeginAllowThreads();
20360 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
20361 wxPyEndAllowThreads(__tstate);
20362 if (PyErr_Occurred()) SWIG_fail;
20363 }
20364 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
20365 return resultobj;
20366 fail:
20367 return NULL;
20368 }
20369
20370
20371 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20372 PyObject *resultobj = 0;
20373 wxDC *arg1 = (wxDC *) 0 ;
20374 int arg2 ;
20375 int arg3 ;
20376 int arg4 ;
20377 int arg5 ;
20378 void *argp1 = 0 ;
20379 int res1 = 0 ;
20380 int val2 ;
20381 int ecode2 = 0 ;
20382 int val3 ;
20383 int ecode3 = 0 ;
20384 int val4 ;
20385 int ecode4 = 0 ;
20386 int val5 ;
20387 int ecode5 = 0 ;
20388 PyObject * obj0 = 0 ;
20389 PyObject * obj1 = 0 ;
20390 PyObject * obj2 = 0 ;
20391 PyObject * obj3 = 0 ;
20392 PyObject * obj4 = 0 ;
20393 char * kwnames[] = {
20394 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20395 };
20396
20397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20399 if (!SWIG_IsOK(res1)) {
20400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20401 }
20402 arg1 = reinterpret_cast< wxDC * >(argp1);
20403 ecode2 = SWIG_AsVal_int(obj1, &val2);
20404 if (!SWIG_IsOK(ecode2)) {
20405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20406 }
20407 arg2 = static_cast< int >(val2);
20408 ecode3 = SWIG_AsVal_int(obj2, &val3);
20409 if (!SWIG_IsOK(ecode3)) {
20410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20411 }
20412 arg3 = static_cast< int >(val3);
20413 ecode4 = SWIG_AsVal_int(obj3, &val4);
20414 if (!SWIG_IsOK(ecode4)) {
20415 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20416 }
20417 arg4 = static_cast< int >(val4);
20418 ecode5 = SWIG_AsVal_int(obj4, &val5);
20419 if (!SWIG_IsOK(ecode5)) {
20420 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20421 }
20422 arg5 = static_cast< int >(val5);
20423 {
20424 PyThreadState* __tstate = wxPyBeginAllowThreads();
20425 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20426 wxPyEndAllowThreads(__tstate);
20427 if (PyErr_Occurred()) SWIG_fail;
20428 }
20429 resultobj = SWIG_Py_Void();
20430 return resultobj;
20431 fail:
20432 return NULL;
20433 }
20434
20435
20436 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20437 PyObject *resultobj = 0;
20438 wxDC *arg1 = (wxDC *) 0 ;
20439 wxPoint *arg2 = 0 ;
20440 wxSize *arg3 = 0 ;
20441 void *argp1 = 0 ;
20442 int res1 = 0 ;
20443 wxPoint temp2 ;
20444 wxSize temp3 ;
20445 PyObject * obj0 = 0 ;
20446 PyObject * obj1 = 0 ;
20447 PyObject * obj2 = 0 ;
20448 char * kwnames[] = {
20449 (char *) "self",(char *) "pt",(char *) "sz", NULL
20450 };
20451
20452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20454 if (!SWIG_IsOK(res1)) {
20455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20456 }
20457 arg1 = reinterpret_cast< wxDC * >(argp1);
20458 {
20459 arg2 = &temp2;
20460 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20461 }
20462 {
20463 arg3 = &temp3;
20464 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20465 }
20466 {
20467 PyThreadState* __tstate = wxPyBeginAllowThreads();
20468 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20469 wxPyEndAllowThreads(__tstate);
20470 if (PyErr_Occurred()) SWIG_fail;
20471 }
20472 resultobj = SWIG_Py_Void();
20473 return resultobj;
20474 fail:
20475 return NULL;
20476 }
20477
20478
20479 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20480 PyObject *resultobj = 0;
20481 wxDC *arg1 = (wxDC *) 0 ;
20482 wxRegion *arg2 = 0 ;
20483 void *argp1 = 0 ;
20484 int res1 = 0 ;
20485 void *argp2 = 0 ;
20486 int res2 = 0 ;
20487 PyObject * obj0 = 0 ;
20488 PyObject * obj1 = 0 ;
20489 char * kwnames[] = {
20490 (char *) "self",(char *) "region", NULL
20491 };
20492
20493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20495 if (!SWIG_IsOK(res1)) {
20496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20497 }
20498 arg1 = reinterpret_cast< wxDC * >(argp1);
20499 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20500 if (!SWIG_IsOK(res2)) {
20501 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20502 }
20503 if (!argp2) {
20504 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20505 }
20506 arg2 = reinterpret_cast< wxRegion * >(argp2);
20507 {
20508 PyThreadState* __tstate = wxPyBeginAllowThreads();
20509 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20510 wxPyEndAllowThreads(__tstate);
20511 if (PyErr_Occurred()) SWIG_fail;
20512 }
20513 resultobj = SWIG_Py_Void();
20514 return resultobj;
20515 fail:
20516 return NULL;
20517 }
20518
20519
20520 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20521 PyObject *resultobj = 0;
20522 wxDC *arg1 = (wxDC *) 0 ;
20523 wxRect *arg2 = 0 ;
20524 void *argp1 = 0 ;
20525 int res1 = 0 ;
20526 wxRect temp2 ;
20527 PyObject * obj0 = 0 ;
20528 PyObject * obj1 = 0 ;
20529 char * kwnames[] = {
20530 (char *) "self",(char *) "rect", NULL
20531 };
20532
20533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20535 if (!SWIG_IsOK(res1)) {
20536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20537 }
20538 arg1 = reinterpret_cast< wxDC * >(argp1);
20539 {
20540 arg2 = &temp2;
20541 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20542 }
20543 {
20544 PyThreadState* __tstate = wxPyBeginAllowThreads();
20545 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20546 wxPyEndAllowThreads(__tstate);
20547 if (PyErr_Occurred()) SWIG_fail;
20548 }
20549 resultobj = SWIG_Py_Void();
20550 return resultobj;
20551 fail:
20552 return NULL;
20553 }
20554
20555
20556 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20557 PyObject *resultobj = 0;
20558 wxDC *arg1 = (wxDC *) 0 ;
20559 int arg2 ;
20560 wxPoint *arg3 = (wxPoint *) 0 ;
20561 int arg4 = (int) 0 ;
20562 int arg5 = (int) 0 ;
20563 void *argp1 = 0 ;
20564 int res1 = 0 ;
20565 int val4 ;
20566 int ecode4 = 0 ;
20567 int val5 ;
20568 int ecode5 = 0 ;
20569 PyObject * obj0 = 0 ;
20570 PyObject * obj1 = 0 ;
20571 PyObject * obj2 = 0 ;
20572 PyObject * obj3 = 0 ;
20573 char * kwnames[] = {
20574 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20575 };
20576
20577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20579 if (!SWIG_IsOK(res1)) {
20580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20581 }
20582 arg1 = reinterpret_cast< wxDC * >(argp1);
20583 {
20584 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20585 if (arg3 == NULL) SWIG_fail;
20586 }
20587 if (obj2) {
20588 ecode4 = SWIG_AsVal_int(obj2, &val4);
20589 if (!SWIG_IsOK(ecode4)) {
20590 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20591 }
20592 arg4 = static_cast< int >(val4);
20593 }
20594 if (obj3) {
20595 ecode5 = SWIG_AsVal_int(obj3, &val5);
20596 if (!SWIG_IsOK(ecode5)) {
20597 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20598 }
20599 arg5 = static_cast< int >(val5);
20600 }
20601 {
20602 PyThreadState* __tstate = wxPyBeginAllowThreads();
20603 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20604 wxPyEndAllowThreads(__tstate);
20605 if (PyErr_Occurred()) SWIG_fail;
20606 }
20607 resultobj = SWIG_Py_Void();
20608 {
20609 if (arg3) delete [] arg3;
20610 }
20611 return resultobj;
20612 fail:
20613 {
20614 if (arg3) delete [] arg3;
20615 }
20616 return NULL;
20617 }
20618
20619
20620 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20621 PyObject *resultobj = 0;
20622 wxDC *arg1 = (wxDC *) 0 ;
20623 int arg2 ;
20624 wxPoint *arg3 = (wxPoint *) 0 ;
20625 int arg4 = (int) 0 ;
20626 int arg5 = (int) 0 ;
20627 int arg6 = (int) wxODDEVEN_RULE ;
20628 void *argp1 = 0 ;
20629 int res1 = 0 ;
20630 int val4 ;
20631 int ecode4 = 0 ;
20632 int val5 ;
20633 int ecode5 = 0 ;
20634 int val6 ;
20635 int ecode6 = 0 ;
20636 PyObject * obj0 = 0 ;
20637 PyObject * obj1 = 0 ;
20638 PyObject * obj2 = 0 ;
20639 PyObject * obj3 = 0 ;
20640 PyObject * obj4 = 0 ;
20641 char * kwnames[] = {
20642 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20643 };
20644
20645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20647 if (!SWIG_IsOK(res1)) {
20648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20649 }
20650 arg1 = reinterpret_cast< wxDC * >(argp1);
20651 {
20652 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20653 if (arg3 == NULL) SWIG_fail;
20654 }
20655 if (obj2) {
20656 ecode4 = SWIG_AsVal_int(obj2, &val4);
20657 if (!SWIG_IsOK(ecode4)) {
20658 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20659 }
20660 arg4 = static_cast< int >(val4);
20661 }
20662 if (obj3) {
20663 ecode5 = SWIG_AsVal_int(obj3, &val5);
20664 if (!SWIG_IsOK(ecode5)) {
20665 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20666 }
20667 arg5 = static_cast< int >(val5);
20668 }
20669 if (obj4) {
20670 ecode6 = SWIG_AsVal_int(obj4, &val6);
20671 if (!SWIG_IsOK(ecode6)) {
20672 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20673 }
20674 arg6 = static_cast< int >(val6);
20675 }
20676 {
20677 PyThreadState* __tstate = wxPyBeginAllowThreads();
20678 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20679 wxPyEndAllowThreads(__tstate);
20680 if (PyErr_Occurred()) SWIG_fail;
20681 }
20682 resultobj = SWIG_Py_Void();
20683 {
20684 if (arg3) delete [] arg3;
20685 }
20686 return resultobj;
20687 fail:
20688 {
20689 if (arg3) delete [] arg3;
20690 }
20691 return NULL;
20692 }
20693
20694
20695 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20696 PyObject *resultobj = 0;
20697 wxDC *arg1 = (wxDC *) 0 ;
20698 wxString *arg2 = 0 ;
20699 wxRect *arg3 = 0 ;
20700 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20701 int arg5 = (int) -1 ;
20702 void *argp1 = 0 ;
20703 int res1 = 0 ;
20704 bool temp2 = false ;
20705 wxRect temp3 ;
20706 int val4 ;
20707 int ecode4 = 0 ;
20708 int val5 ;
20709 int ecode5 = 0 ;
20710 PyObject * obj0 = 0 ;
20711 PyObject * obj1 = 0 ;
20712 PyObject * obj2 = 0 ;
20713 PyObject * obj3 = 0 ;
20714 PyObject * obj4 = 0 ;
20715 char * kwnames[] = {
20716 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20717 };
20718
20719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20721 if (!SWIG_IsOK(res1)) {
20722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20723 }
20724 arg1 = reinterpret_cast< wxDC * >(argp1);
20725 {
20726 arg2 = wxString_in_helper(obj1);
20727 if (arg2 == NULL) SWIG_fail;
20728 temp2 = true;
20729 }
20730 {
20731 arg3 = &temp3;
20732 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20733 }
20734 if (obj3) {
20735 ecode4 = SWIG_AsVal_int(obj3, &val4);
20736 if (!SWIG_IsOK(ecode4)) {
20737 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20738 }
20739 arg4 = static_cast< int >(val4);
20740 }
20741 if (obj4) {
20742 ecode5 = SWIG_AsVal_int(obj4, &val5);
20743 if (!SWIG_IsOK(ecode5)) {
20744 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20745 }
20746 arg5 = static_cast< int >(val5);
20747 }
20748 {
20749 PyThreadState* __tstate = wxPyBeginAllowThreads();
20750 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20751 wxPyEndAllowThreads(__tstate);
20752 if (PyErr_Occurred()) SWIG_fail;
20753 }
20754 resultobj = SWIG_Py_Void();
20755 {
20756 if (temp2)
20757 delete arg2;
20758 }
20759 return resultobj;
20760 fail:
20761 {
20762 if (temp2)
20763 delete arg2;
20764 }
20765 return NULL;
20766 }
20767
20768
20769 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20770 PyObject *resultobj = 0;
20771 wxDC *arg1 = (wxDC *) 0 ;
20772 wxString *arg2 = 0 ;
20773 wxBitmap *arg3 = 0 ;
20774 wxRect *arg4 = 0 ;
20775 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20776 int arg6 = (int) -1 ;
20777 wxRect result;
20778 void *argp1 = 0 ;
20779 int res1 = 0 ;
20780 bool temp2 = false ;
20781 void *argp3 = 0 ;
20782 int res3 = 0 ;
20783 wxRect temp4 ;
20784 int val5 ;
20785 int ecode5 = 0 ;
20786 int val6 ;
20787 int ecode6 = 0 ;
20788 PyObject * obj0 = 0 ;
20789 PyObject * obj1 = 0 ;
20790 PyObject * obj2 = 0 ;
20791 PyObject * obj3 = 0 ;
20792 PyObject * obj4 = 0 ;
20793 PyObject * obj5 = 0 ;
20794 char * kwnames[] = {
20795 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20796 };
20797
20798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20800 if (!SWIG_IsOK(res1)) {
20801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20802 }
20803 arg1 = reinterpret_cast< wxDC * >(argp1);
20804 {
20805 arg2 = wxString_in_helper(obj1);
20806 if (arg2 == NULL) SWIG_fail;
20807 temp2 = true;
20808 }
20809 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20810 if (!SWIG_IsOK(res3)) {
20811 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20812 }
20813 if (!argp3) {
20814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20815 }
20816 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20817 {
20818 arg4 = &temp4;
20819 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20820 }
20821 if (obj4) {
20822 ecode5 = SWIG_AsVal_int(obj4, &val5);
20823 if (!SWIG_IsOK(ecode5)) {
20824 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20825 }
20826 arg5 = static_cast< int >(val5);
20827 }
20828 if (obj5) {
20829 ecode6 = SWIG_AsVal_int(obj5, &val6);
20830 if (!SWIG_IsOK(ecode6)) {
20831 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20832 }
20833 arg6 = static_cast< int >(val6);
20834 }
20835 {
20836 PyThreadState* __tstate = wxPyBeginAllowThreads();
20837 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20838 wxPyEndAllowThreads(__tstate);
20839 if (PyErr_Occurred()) SWIG_fail;
20840 }
20841 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20842 {
20843 if (temp2)
20844 delete arg2;
20845 }
20846 return resultobj;
20847 fail:
20848 {
20849 if (temp2)
20850 delete arg2;
20851 }
20852 return NULL;
20853 }
20854
20855
20856 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20857 PyObject *resultobj = 0;
20858 wxDC *arg1 = (wxDC *) 0 ;
20859 int arg2 ;
20860 wxPoint *arg3 = (wxPoint *) 0 ;
20861 void *argp1 = 0 ;
20862 int res1 = 0 ;
20863 PyObject * obj0 = 0 ;
20864 PyObject * obj1 = 0 ;
20865 char * kwnames[] = {
20866 (char *) "self",(char *) "points", NULL
20867 };
20868
20869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20871 if (!SWIG_IsOK(res1)) {
20872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20873 }
20874 arg1 = reinterpret_cast< wxDC * >(argp1);
20875 {
20876 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20877 if (arg3 == NULL) SWIG_fail;
20878 }
20879 {
20880 PyThreadState* __tstate = wxPyBeginAllowThreads();
20881 (arg1)->DrawSpline(arg2,arg3);
20882 wxPyEndAllowThreads(__tstate);
20883 if (PyErr_Occurred()) SWIG_fail;
20884 }
20885 resultobj = SWIG_Py_Void();
20886 {
20887 if (arg3) delete [] arg3;
20888 }
20889 return resultobj;
20890 fail:
20891 {
20892 if (arg3) delete [] arg3;
20893 }
20894 return NULL;
20895 }
20896
20897
20898 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20899 PyObject *resultobj = 0;
20900 wxDC *arg1 = (wxDC *) 0 ;
20901 void *argp1 = 0 ;
20902 int res1 = 0 ;
20903 PyObject *swig_obj[1] ;
20904
20905 if (!args) SWIG_fail;
20906 swig_obj[0] = args;
20907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20908 if (!SWIG_IsOK(res1)) {
20909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20910 }
20911 arg1 = reinterpret_cast< wxDC * >(argp1);
20912 {
20913 PyThreadState* __tstate = wxPyBeginAllowThreads();
20914 (arg1)->Clear();
20915 wxPyEndAllowThreads(__tstate);
20916 if (PyErr_Occurred()) SWIG_fail;
20917 }
20918 resultobj = SWIG_Py_Void();
20919 return resultobj;
20920 fail:
20921 return NULL;
20922 }
20923
20924
20925 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20926 PyObject *resultobj = 0;
20927 wxDC *arg1 = (wxDC *) 0 ;
20928 wxString *arg2 = 0 ;
20929 bool result;
20930 void *argp1 = 0 ;
20931 int res1 = 0 ;
20932 bool temp2 = false ;
20933 PyObject * obj0 = 0 ;
20934 PyObject * obj1 = 0 ;
20935 char * kwnames[] = {
20936 (char *) "self",(char *) "message", NULL
20937 };
20938
20939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20941 if (!SWIG_IsOK(res1)) {
20942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20943 }
20944 arg1 = reinterpret_cast< wxDC * >(argp1);
20945 {
20946 arg2 = wxString_in_helper(obj1);
20947 if (arg2 == NULL) SWIG_fail;
20948 temp2 = true;
20949 }
20950 {
20951 PyThreadState* __tstate = wxPyBeginAllowThreads();
20952 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20953 wxPyEndAllowThreads(__tstate);
20954 if (PyErr_Occurred()) SWIG_fail;
20955 }
20956 {
20957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20958 }
20959 {
20960 if (temp2)
20961 delete arg2;
20962 }
20963 return resultobj;
20964 fail:
20965 {
20966 if (temp2)
20967 delete arg2;
20968 }
20969 return NULL;
20970 }
20971
20972
20973 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20974 PyObject *resultobj = 0;
20975 wxDC *arg1 = (wxDC *) 0 ;
20976 void *argp1 = 0 ;
20977 int res1 = 0 ;
20978 PyObject *swig_obj[1] ;
20979
20980 if (!args) SWIG_fail;
20981 swig_obj[0] = args;
20982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20983 if (!SWIG_IsOK(res1)) {
20984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20985 }
20986 arg1 = reinterpret_cast< wxDC * >(argp1);
20987 {
20988 PyThreadState* __tstate = wxPyBeginAllowThreads();
20989 (arg1)->EndDoc();
20990 wxPyEndAllowThreads(__tstate);
20991 if (PyErr_Occurred()) SWIG_fail;
20992 }
20993 resultobj = SWIG_Py_Void();
20994 return resultobj;
20995 fail:
20996 return NULL;
20997 }
20998
20999
21000 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21001 PyObject *resultobj = 0;
21002 wxDC *arg1 = (wxDC *) 0 ;
21003 void *argp1 = 0 ;
21004 int res1 = 0 ;
21005 PyObject *swig_obj[1] ;
21006
21007 if (!args) SWIG_fail;
21008 swig_obj[0] = args;
21009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21010 if (!SWIG_IsOK(res1)) {
21011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
21012 }
21013 arg1 = reinterpret_cast< wxDC * >(argp1);
21014 {
21015 PyThreadState* __tstate = wxPyBeginAllowThreads();
21016 (arg1)->StartPage();
21017 wxPyEndAllowThreads(__tstate);
21018 if (PyErr_Occurred()) SWIG_fail;
21019 }
21020 resultobj = SWIG_Py_Void();
21021 return resultobj;
21022 fail:
21023 return NULL;
21024 }
21025
21026
21027 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21028 PyObject *resultobj = 0;
21029 wxDC *arg1 = (wxDC *) 0 ;
21030 void *argp1 = 0 ;
21031 int res1 = 0 ;
21032 PyObject *swig_obj[1] ;
21033
21034 if (!args) SWIG_fail;
21035 swig_obj[0] = args;
21036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21037 if (!SWIG_IsOK(res1)) {
21038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
21039 }
21040 arg1 = reinterpret_cast< wxDC * >(argp1);
21041 {
21042 PyThreadState* __tstate = wxPyBeginAllowThreads();
21043 (arg1)->EndPage();
21044 wxPyEndAllowThreads(__tstate);
21045 if (PyErr_Occurred()) SWIG_fail;
21046 }
21047 resultobj = SWIG_Py_Void();
21048 return resultobj;
21049 fail:
21050 return NULL;
21051 }
21052
21053
21054 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21055 PyObject *resultobj = 0;
21056 wxDC *arg1 = (wxDC *) 0 ;
21057 wxFont *arg2 = 0 ;
21058 void *argp1 = 0 ;
21059 int res1 = 0 ;
21060 void *argp2 = 0 ;
21061 int res2 = 0 ;
21062 PyObject * obj0 = 0 ;
21063 PyObject * obj1 = 0 ;
21064 char * kwnames[] = {
21065 (char *) "self",(char *) "font", NULL
21066 };
21067
21068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
21069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21070 if (!SWIG_IsOK(res1)) {
21071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
21072 }
21073 arg1 = reinterpret_cast< wxDC * >(argp1);
21074 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
21075 if (!SWIG_IsOK(res2)) {
21076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21077 }
21078 if (!argp2) {
21079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21080 }
21081 arg2 = reinterpret_cast< wxFont * >(argp2);
21082 {
21083 PyThreadState* __tstate = wxPyBeginAllowThreads();
21084 (arg1)->SetFont((wxFont const &)*arg2);
21085 wxPyEndAllowThreads(__tstate);
21086 if (PyErr_Occurred()) SWIG_fail;
21087 }
21088 resultobj = SWIG_Py_Void();
21089 return resultobj;
21090 fail:
21091 return NULL;
21092 }
21093
21094
21095 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21096 PyObject *resultobj = 0;
21097 wxDC *arg1 = (wxDC *) 0 ;
21098 wxPen *arg2 = 0 ;
21099 void *argp1 = 0 ;
21100 int res1 = 0 ;
21101 void *argp2 = 0 ;
21102 int res2 = 0 ;
21103 PyObject * obj0 = 0 ;
21104 PyObject * obj1 = 0 ;
21105 char * kwnames[] = {
21106 (char *) "self",(char *) "pen", NULL
21107 };
21108
21109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
21110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21111 if (!SWIG_IsOK(res1)) {
21112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
21113 }
21114 arg1 = reinterpret_cast< wxDC * >(argp1);
21115 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
21116 if (!SWIG_IsOK(res2)) {
21117 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21118 }
21119 if (!argp2) {
21120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21121 }
21122 arg2 = reinterpret_cast< wxPen * >(argp2);
21123 {
21124 PyThreadState* __tstate = wxPyBeginAllowThreads();
21125 (arg1)->SetPen((wxPen const &)*arg2);
21126 wxPyEndAllowThreads(__tstate);
21127 if (PyErr_Occurred()) SWIG_fail;
21128 }
21129 resultobj = SWIG_Py_Void();
21130 return resultobj;
21131 fail:
21132 return NULL;
21133 }
21134
21135
21136 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21137 PyObject *resultobj = 0;
21138 wxDC *arg1 = (wxDC *) 0 ;
21139 wxBrush *arg2 = 0 ;
21140 void *argp1 = 0 ;
21141 int res1 = 0 ;
21142 void *argp2 = 0 ;
21143 int res2 = 0 ;
21144 PyObject * obj0 = 0 ;
21145 PyObject * obj1 = 0 ;
21146 char * kwnames[] = {
21147 (char *) "self",(char *) "brush", NULL
21148 };
21149
21150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
21151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21152 if (!SWIG_IsOK(res1)) {
21153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
21154 }
21155 arg1 = reinterpret_cast< wxDC * >(argp1);
21156 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21157 if (!SWIG_IsOK(res2)) {
21158 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21159 }
21160 if (!argp2) {
21161 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21162 }
21163 arg2 = reinterpret_cast< wxBrush * >(argp2);
21164 {
21165 PyThreadState* __tstate = wxPyBeginAllowThreads();
21166 (arg1)->SetBrush((wxBrush const &)*arg2);
21167 wxPyEndAllowThreads(__tstate);
21168 if (PyErr_Occurred()) SWIG_fail;
21169 }
21170 resultobj = SWIG_Py_Void();
21171 return resultobj;
21172 fail:
21173 return NULL;
21174 }
21175
21176
21177 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21178 PyObject *resultobj = 0;
21179 wxDC *arg1 = (wxDC *) 0 ;
21180 wxBrush *arg2 = 0 ;
21181 void *argp1 = 0 ;
21182 int res1 = 0 ;
21183 void *argp2 = 0 ;
21184 int res2 = 0 ;
21185 PyObject * obj0 = 0 ;
21186 PyObject * obj1 = 0 ;
21187 char * kwnames[] = {
21188 (char *) "self",(char *) "brush", NULL
21189 };
21190
21191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21193 if (!SWIG_IsOK(res1)) {
21194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21195 }
21196 arg1 = reinterpret_cast< wxDC * >(argp1);
21197 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21198 if (!SWIG_IsOK(res2)) {
21199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21200 }
21201 if (!argp2) {
21202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21203 }
21204 arg2 = reinterpret_cast< wxBrush * >(argp2);
21205 {
21206 PyThreadState* __tstate = wxPyBeginAllowThreads();
21207 (arg1)->SetBackground((wxBrush const &)*arg2);
21208 wxPyEndAllowThreads(__tstate);
21209 if (PyErr_Occurred()) SWIG_fail;
21210 }
21211 resultobj = SWIG_Py_Void();
21212 return resultobj;
21213 fail:
21214 return NULL;
21215 }
21216
21217
21218 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21219 PyObject *resultobj = 0;
21220 wxDC *arg1 = (wxDC *) 0 ;
21221 int arg2 ;
21222 void *argp1 = 0 ;
21223 int res1 = 0 ;
21224 int val2 ;
21225 int ecode2 = 0 ;
21226 PyObject * obj0 = 0 ;
21227 PyObject * obj1 = 0 ;
21228 char * kwnames[] = {
21229 (char *) "self",(char *) "mode", NULL
21230 };
21231
21232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21234 if (!SWIG_IsOK(res1)) {
21235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21236 }
21237 arg1 = reinterpret_cast< wxDC * >(argp1);
21238 ecode2 = SWIG_AsVal_int(obj1, &val2);
21239 if (!SWIG_IsOK(ecode2)) {
21240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21241 }
21242 arg2 = static_cast< int >(val2);
21243 {
21244 PyThreadState* __tstate = wxPyBeginAllowThreads();
21245 (arg1)->SetBackgroundMode(arg2);
21246 wxPyEndAllowThreads(__tstate);
21247 if (PyErr_Occurred()) SWIG_fail;
21248 }
21249 resultobj = SWIG_Py_Void();
21250 return resultobj;
21251 fail:
21252 return NULL;
21253 }
21254
21255
21256 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21257 PyObject *resultobj = 0;
21258 wxDC *arg1 = (wxDC *) 0 ;
21259 wxPalette *arg2 = 0 ;
21260 void *argp1 = 0 ;
21261 int res1 = 0 ;
21262 void *argp2 = 0 ;
21263 int res2 = 0 ;
21264 PyObject * obj0 = 0 ;
21265 PyObject * obj1 = 0 ;
21266 char * kwnames[] = {
21267 (char *) "self",(char *) "palette", NULL
21268 };
21269
21270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21272 if (!SWIG_IsOK(res1)) {
21273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21274 }
21275 arg1 = reinterpret_cast< wxDC * >(argp1);
21276 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21277 if (!SWIG_IsOK(res2)) {
21278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21279 }
21280 if (!argp2) {
21281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21282 }
21283 arg2 = reinterpret_cast< wxPalette * >(argp2);
21284 {
21285 PyThreadState* __tstate = wxPyBeginAllowThreads();
21286 (arg1)->SetPalette((wxPalette const &)*arg2);
21287 wxPyEndAllowThreads(__tstate);
21288 if (PyErr_Occurred()) SWIG_fail;
21289 }
21290 resultobj = SWIG_Py_Void();
21291 return resultobj;
21292 fail:
21293 return NULL;
21294 }
21295
21296
21297 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21298 PyObject *resultobj = 0;
21299 wxDC *arg1 = (wxDC *) 0 ;
21300 void *argp1 = 0 ;
21301 int res1 = 0 ;
21302 PyObject *swig_obj[1] ;
21303
21304 if (!args) SWIG_fail;
21305 swig_obj[0] = args;
21306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21307 if (!SWIG_IsOK(res1)) {
21308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21309 }
21310 arg1 = reinterpret_cast< wxDC * >(argp1);
21311 {
21312 PyThreadState* __tstate = wxPyBeginAllowThreads();
21313 (arg1)->DestroyClippingRegion();
21314 wxPyEndAllowThreads(__tstate);
21315 if (PyErr_Occurred()) SWIG_fail;
21316 }
21317 resultobj = SWIG_Py_Void();
21318 return resultobj;
21319 fail:
21320 return NULL;
21321 }
21322
21323
21324 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21325 PyObject *resultobj = 0;
21326 wxDC *arg1 = (wxDC *) 0 ;
21327 int *arg2 = (int *) 0 ;
21328 int *arg3 = (int *) 0 ;
21329 int *arg4 = (int *) 0 ;
21330 int *arg5 = (int *) 0 ;
21331 void *argp1 = 0 ;
21332 int res1 = 0 ;
21333 int temp2 ;
21334 int res2 = SWIG_TMPOBJ ;
21335 int temp3 ;
21336 int res3 = SWIG_TMPOBJ ;
21337 int temp4 ;
21338 int res4 = SWIG_TMPOBJ ;
21339 int temp5 ;
21340 int res5 = SWIG_TMPOBJ ;
21341 PyObject *swig_obj[1] ;
21342
21343 arg2 = &temp2;
21344 arg3 = &temp3;
21345 arg4 = &temp4;
21346 arg5 = &temp5;
21347 if (!args) SWIG_fail;
21348 swig_obj[0] = args;
21349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21350 if (!SWIG_IsOK(res1)) {
21351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21352 }
21353 arg1 = reinterpret_cast< wxDC * >(argp1);
21354 {
21355 PyThreadState* __tstate = wxPyBeginAllowThreads();
21356 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21357 wxPyEndAllowThreads(__tstate);
21358 if (PyErr_Occurred()) SWIG_fail;
21359 }
21360 resultobj = SWIG_Py_Void();
21361 if (SWIG_IsTmpObj(res2)) {
21362 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21363 } else {
21364 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21365 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21366 }
21367 if (SWIG_IsTmpObj(res3)) {
21368 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21369 } else {
21370 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21371 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21372 }
21373 if (SWIG_IsTmpObj(res4)) {
21374 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21375 } else {
21376 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21377 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21378 }
21379 if (SWIG_IsTmpObj(res5)) {
21380 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21381 } else {
21382 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21383 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21384 }
21385 return resultobj;
21386 fail:
21387 return NULL;
21388 }
21389
21390
21391 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21392 PyObject *resultobj = 0;
21393 wxDC *arg1 = (wxDC *) 0 ;
21394 wxRect result;
21395 void *argp1 = 0 ;
21396 int res1 = 0 ;
21397 PyObject *swig_obj[1] ;
21398
21399 if (!args) SWIG_fail;
21400 swig_obj[0] = args;
21401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21402 if (!SWIG_IsOK(res1)) {
21403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21404 }
21405 arg1 = reinterpret_cast< wxDC * >(argp1);
21406 {
21407 PyThreadState* __tstate = wxPyBeginAllowThreads();
21408 result = wxDC_GetClippingRect(arg1);
21409 wxPyEndAllowThreads(__tstate);
21410 if (PyErr_Occurred()) SWIG_fail;
21411 }
21412 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21413 return resultobj;
21414 fail:
21415 return NULL;
21416 }
21417
21418
21419 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21420 PyObject *resultobj = 0;
21421 wxDC *arg1 = (wxDC *) 0 ;
21422 int result;
21423 void *argp1 = 0 ;
21424 int res1 = 0 ;
21425 PyObject *swig_obj[1] ;
21426
21427 if (!args) SWIG_fail;
21428 swig_obj[0] = args;
21429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21430 if (!SWIG_IsOK(res1)) {
21431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21432 }
21433 arg1 = reinterpret_cast< wxDC * >(argp1);
21434 {
21435 PyThreadState* __tstate = wxPyBeginAllowThreads();
21436 result = (int)((wxDC const *)arg1)->GetCharHeight();
21437 wxPyEndAllowThreads(__tstate);
21438 if (PyErr_Occurred()) SWIG_fail;
21439 }
21440 resultobj = SWIG_From_int(static_cast< int >(result));
21441 return resultobj;
21442 fail:
21443 return NULL;
21444 }
21445
21446
21447 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21448 PyObject *resultobj = 0;
21449 wxDC *arg1 = (wxDC *) 0 ;
21450 int result;
21451 void *argp1 = 0 ;
21452 int res1 = 0 ;
21453 PyObject *swig_obj[1] ;
21454
21455 if (!args) SWIG_fail;
21456 swig_obj[0] = args;
21457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21458 if (!SWIG_IsOK(res1)) {
21459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21460 }
21461 arg1 = reinterpret_cast< wxDC * >(argp1);
21462 {
21463 PyThreadState* __tstate = wxPyBeginAllowThreads();
21464 result = (int)((wxDC const *)arg1)->GetCharWidth();
21465 wxPyEndAllowThreads(__tstate);
21466 if (PyErr_Occurred()) SWIG_fail;
21467 }
21468 resultobj = SWIG_From_int(static_cast< int >(result));
21469 return resultobj;
21470 fail:
21471 return NULL;
21472 }
21473
21474
21475 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21476 PyObject *resultobj = 0;
21477 wxDC *arg1 = (wxDC *) 0 ;
21478 wxString *arg2 = 0 ;
21479 int *arg3 = (int *) 0 ;
21480 int *arg4 = (int *) 0 ;
21481 void *argp1 = 0 ;
21482 int res1 = 0 ;
21483 bool temp2 = false ;
21484 int temp3 ;
21485 int res3 = SWIG_TMPOBJ ;
21486 int temp4 ;
21487 int res4 = SWIG_TMPOBJ ;
21488 PyObject * obj0 = 0 ;
21489 PyObject * obj1 = 0 ;
21490 char * kwnames[] = {
21491 (char *) "self",(char *) "string", NULL
21492 };
21493
21494 arg3 = &temp3;
21495 arg4 = &temp4;
21496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21498 if (!SWIG_IsOK(res1)) {
21499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21500 }
21501 arg1 = reinterpret_cast< wxDC * >(argp1);
21502 {
21503 arg2 = wxString_in_helper(obj1);
21504 if (arg2 == NULL) SWIG_fail;
21505 temp2 = true;
21506 }
21507 {
21508 PyThreadState* __tstate = wxPyBeginAllowThreads();
21509 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21510 wxPyEndAllowThreads(__tstate);
21511 if (PyErr_Occurred()) SWIG_fail;
21512 }
21513 resultobj = SWIG_Py_Void();
21514 if (SWIG_IsTmpObj(res3)) {
21515 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21516 } else {
21517 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21518 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21519 }
21520 if (SWIG_IsTmpObj(res4)) {
21521 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21522 } else {
21523 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21524 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21525 }
21526 {
21527 if (temp2)
21528 delete arg2;
21529 }
21530 return resultobj;
21531 fail:
21532 {
21533 if (temp2)
21534 delete arg2;
21535 }
21536 return NULL;
21537 }
21538
21539
21540 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21541 PyObject *resultobj = 0;
21542 wxDC *arg1 = (wxDC *) 0 ;
21543 wxString *arg2 = 0 ;
21544 int *arg3 = (int *) 0 ;
21545 int *arg4 = (int *) 0 ;
21546 int *arg5 = (int *) 0 ;
21547 int *arg6 = (int *) 0 ;
21548 wxFont *arg7 = (wxFont *) NULL ;
21549 void *argp1 = 0 ;
21550 int res1 = 0 ;
21551 bool temp2 = false ;
21552 int temp3 ;
21553 int res3 = SWIG_TMPOBJ ;
21554 int temp4 ;
21555 int res4 = SWIG_TMPOBJ ;
21556 int temp5 ;
21557 int res5 = SWIG_TMPOBJ ;
21558 int temp6 ;
21559 int res6 = SWIG_TMPOBJ ;
21560 void *argp7 = 0 ;
21561 int res7 = 0 ;
21562 PyObject * obj0 = 0 ;
21563 PyObject * obj1 = 0 ;
21564 PyObject * obj2 = 0 ;
21565 char * kwnames[] = {
21566 (char *) "self",(char *) "string",(char *) "font", NULL
21567 };
21568
21569 arg3 = &temp3;
21570 arg4 = &temp4;
21571 arg5 = &temp5;
21572 arg6 = &temp6;
21573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21575 if (!SWIG_IsOK(res1)) {
21576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21577 }
21578 arg1 = reinterpret_cast< wxDC * >(argp1);
21579 {
21580 arg2 = wxString_in_helper(obj1);
21581 if (arg2 == NULL) SWIG_fail;
21582 temp2 = true;
21583 }
21584 if (obj2) {
21585 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21586 if (!SWIG_IsOK(res7)) {
21587 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21588 }
21589 arg7 = reinterpret_cast< wxFont * >(argp7);
21590 }
21591 {
21592 PyThreadState* __tstate = wxPyBeginAllowThreads();
21593 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21594 wxPyEndAllowThreads(__tstate);
21595 if (PyErr_Occurred()) SWIG_fail;
21596 }
21597 resultobj = SWIG_Py_Void();
21598 if (SWIG_IsTmpObj(res3)) {
21599 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21600 } else {
21601 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21602 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21603 }
21604 if (SWIG_IsTmpObj(res4)) {
21605 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21606 } else {
21607 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21608 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21609 }
21610 if (SWIG_IsTmpObj(res5)) {
21611 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21612 } else {
21613 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21614 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21615 }
21616 if (SWIG_IsTmpObj(res6)) {
21617 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21618 } else {
21619 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21620 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21621 }
21622 {
21623 if (temp2)
21624 delete arg2;
21625 }
21626 return resultobj;
21627 fail:
21628 {
21629 if (temp2)
21630 delete arg2;
21631 }
21632 return NULL;
21633 }
21634
21635
21636 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21637 PyObject *resultobj = 0;
21638 wxDC *arg1 = (wxDC *) 0 ;
21639 wxString *arg2 = 0 ;
21640 int *arg3 = (int *) 0 ;
21641 int *arg4 = (int *) 0 ;
21642 int *arg5 = (int *) 0 ;
21643 wxFont *arg6 = (wxFont *) NULL ;
21644 void *argp1 = 0 ;
21645 int res1 = 0 ;
21646 bool temp2 = false ;
21647 int temp3 ;
21648 int res3 = SWIG_TMPOBJ ;
21649 int temp4 ;
21650 int res4 = SWIG_TMPOBJ ;
21651 int temp5 ;
21652 int res5 = SWIG_TMPOBJ ;
21653 void *argp6 = 0 ;
21654 int res6 = 0 ;
21655 PyObject * obj0 = 0 ;
21656 PyObject * obj1 = 0 ;
21657 PyObject * obj2 = 0 ;
21658 char * kwnames[] = {
21659 (char *) "self",(char *) "text",(char *) "font", NULL
21660 };
21661
21662 arg3 = &temp3;
21663 arg4 = &temp4;
21664 arg5 = &temp5;
21665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21667 if (!SWIG_IsOK(res1)) {
21668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21669 }
21670 arg1 = reinterpret_cast< wxDC * >(argp1);
21671 {
21672 arg2 = wxString_in_helper(obj1);
21673 if (arg2 == NULL) SWIG_fail;
21674 temp2 = true;
21675 }
21676 if (obj2) {
21677 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21678 if (!SWIG_IsOK(res6)) {
21679 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21680 }
21681 arg6 = reinterpret_cast< wxFont * >(argp6);
21682 }
21683 {
21684 PyThreadState* __tstate = wxPyBeginAllowThreads();
21685 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21686 wxPyEndAllowThreads(__tstate);
21687 if (PyErr_Occurred()) SWIG_fail;
21688 }
21689 resultobj = SWIG_Py_Void();
21690 if (SWIG_IsTmpObj(res3)) {
21691 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21692 } else {
21693 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21694 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21695 }
21696 if (SWIG_IsTmpObj(res4)) {
21697 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21698 } else {
21699 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21700 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21701 }
21702 if (SWIG_IsTmpObj(res5)) {
21703 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21704 } else {
21705 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21706 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21707 }
21708 {
21709 if (temp2)
21710 delete arg2;
21711 }
21712 return resultobj;
21713 fail:
21714 {
21715 if (temp2)
21716 delete arg2;
21717 }
21718 return NULL;
21719 }
21720
21721
21722 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21723 PyObject *resultobj = 0;
21724 wxDC *arg1 = (wxDC *) 0 ;
21725 wxString *arg2 = 0 ;
21726 wxArrayInt result;
21727 void *argp1 = 0 ;
21728 int res1 = 0 ;
21729 bool temp2 = false ;
21730 PyObject * obj0 = 0 ;
21731 PyObject * obj1 = 0 ;
21732 char * kwnames[] = {
21733 (char *) "self",(char *) "text", NULL
21734 };
21735
21736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21738 if (!SWIG_IsOK(res1)) {
21739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21740 }
21741 arg1 = reinterpret_cast< wxDC * >(argp1);
21742 {
21743 arg2 = wxString_in_helper(obj1);
21744 if (arg2 == NULL) SWIG_fail;
21745 temp2 = true;
21746 }
21747 {
21748 PyThreadState* __tstate = wxPyBeginAllowThreads();
21749 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21750 wxPyEndAllowThreads(__tstate);
21751 if (PyErr_Occurred()) SWIG_fail;
21752 }
21753 {
21754 resultobj = wxArrayInt2PyList_helper(result);
21755 }
21756 {
21757 if (temp2)
21758 delete arg2;
21759 }
21760 return resultobj;
21761 fail:
21762 {
21763 if (temp2)
21764 delete arg2;
21765 }
21766 return NULL;
21767 }
21768
21769
21770 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21771 PyObject *resultobj = 0;
21772 wxDC *arg1 = (wxDC *) 0 ;
21773 wxSize result;
21774 void *argp1 = 0 ;
21775 int res1 = 0 ;
21776 PyObject *swig_obj[1] ;
21777
21778 if (!args) SWIG_fail;
21779 swig_obj[0] = args;
21780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21781 if (!SWIG_IsOK(res1)) {
21782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21783 }
21784 arg1 = reinterpret_cast< wxDC * >(argp1);
21785 {
21786 PyThreadState* __tstate = wxPyBeginAllowThreads();
21787 result = (arg1)->GetSize();
21788 wxPyEndAllowThreads(__tstate);
21789 if (PyErr_Occurred()) SWIG_fail;
21790 }
21791 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21792 return resultobj;
21793 fail:
21794 return NULL;
21795 }
21796
21797
21798 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21799 PyObject *resultobj = 0;
21800 wxDC *arg1 = (wxDC *) 0 ;
21801 int *arg2 = (int *) 0 ;
21802 int *arg3 = (int *) 0 ;
21803 void *argp1 = 0 ;
21804 int res1 = 0 ;
21805 int temp2 ;
21806 int res2 = SWIG_TMPOBJ ;
21807 int temp3 ;
21808 int res3 = SWIG_TMPOBJ ;
21809 PyObject *swig_obj[1] ;
21810
21811 arg2 = &temp2;
21812 arg3 = &temp3;
21813 if (!args) SWIG_fail;
21814 swig_obj[0] = args;
21815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21816 if (!SWIG_IsOK(res1)) {
21817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21818 }
21819 arg1 = reinterpret_cast< wxDC * >(argp1);
21820 {
21821 PyThreadState* __tstate = wxPyBeginAllowThreads();
21822 (arg1)->GetSize(arg2,arg3);
21823 wxPyEndAllowThreads(__tstate);
21824 if (PyErr_Occurred()) SWIG_fail;
21825 }
21826 resultobj = SWIG_Py_Void();
21827 if (SWIG_IsTmpObj(res2)) {
21828 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21829 } else {
21830 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21831 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21832 }
21833 if (SWIG_IsTmpObj(res3)) {
21834 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21835 } else {
21836 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21837 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21838 }
21839 return resultobj;
21840 fail:
21841 return NULL;
21842 }
21843
21844
21845 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21846 PyObject *resultobj = 0;
21847 wxDC *arg1 = (wxDC *) 0 ;
21848 wxSize result;
21849 void *argp1 = 0 ;
21850 int res1 = 0 ;
21851 PyObject *swig_obj[1] ;
21852
21853 if (!args) SWIG_fail;
21854 swig_obj[0] = args;
21855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21856 if (!SWIG_IsOK(res1)) {
21857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21858 }
21859 arg1 = reinterpret_cast< wxDC * >(argp1);
21860 {
21861 PyThreadState* __tstate = wxPyBeginAllowThreads();
21862 result = ((wxDC const *)arg1)->GetSizeMM();
21863 wxPyEndAllowThreads(__tstate);
21864 if (PyErr_Occurred()) SWIG_fail;
21865 }
21866 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21867 return resultobj;
21868 fail:
21869 return NULL;
21870 }
21871
21872
21873 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21874 PyObject *resultobj = 0;
21875 wxDC *arg1 = (wxDC *) 0 ;
21876 int *arg2 = (int *) 0 ;
21877 int *arg3 = (int *) 0 ;
21878 void *argp1 = 0 ;
21879 int res1 = 0 ;
21880 int temp2 ;
21881 int res2 = SWIG_TMPOBJ ;
21882 int temp3 ;
21883 int res3 = SWIG_TMPOBJ ;
21884 PyObject *swig_obj[1] ;
21885
21886 arg2 = &temp2;
21887 arg3 = &temp3;
21888 if (!args) SWIG_fail;
21889 swig_obj[0] = args;
21890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21891 if (!SWIG_IsOK(res1)) {
21892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21893 }
21894 arg1 = reinterpret_cast< wxDC * >(argp1);
21895 {
21896 PyThreadState* __tstate = wxPyBeginAllowThreads();
21897 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21898 wxPyEndAllowThreads(__tstate);
21899 if (PyErr_Occurred()) SWIG_fail;
21900 }
21901 resultobj = SWIG_Py_Void();
21902 if (SWIG_IsTmpObj(res2)) {
21903 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21904 } else {
21905 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21906 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21907 }
21908 if (SWIG_IsTmpObj(res3)) {
21909 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21910 } else {
21911 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21912 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21913 }
21914 return resultobj;
21915 fail:
21916 return NULL;
21917 }
21918
21919
21920 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21921 PyObject *resultobj = 0;
21922 wxDC *arg1 = (wxDC *) 0 ;
21923 int arg2 ;
21924 int result;
21925 void *argp1 = 0 ;
21926 int res1 = 0 ;
21927 int val2 ;
21928 int ecode2 = 0 ;
21929 PyObject * obj0 = 0 ;
21930 PyObject * obj1 = 0 ;
21931 char * kwnames[] = {
21932 (char *) "self",(char *) "x", NULL
21933 };
21934
21935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21937 if (!SWIG_IsOK(res1)) {
21938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21939 }
21940 arg1 = reinterpret_cast< wxDC * >(argp1);
21941 ecode2 = SWIG_AsVal_int(obj1, &val2);
21942 if (!SWIG_IsOK(ecode2)) {
21943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21944 }
21945 arg2 = static_cast< int >(val2);
21946 {
21947 PyThreadState* __tstate = wxPyBeginAllowThreads();
21948 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21949 wxPyEndAllowThreads(__tstate);
21950 if (PyErr_Occurred()) SWIG_fail;
21951 }
21952 resultobj = SWIG_From_int(static_cast< int >(result));
21953 return resultobj;
21954 fail:
21955 return NULL;
21956 }
21957
21958
21959 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21960 PyObject *resultobj = 0;
21961 wxDC *arg1 = (wxDC *) 0 ;
21962 int arg2 ;
21963 int result;
21964 void *argp1 = 0 ;
21965 int res1 = 0 ;
21966 int val2 ;
21967 int ecode2 = 0 ;
21968 PyObject * obj0 = 0 ;
21969 PyObject * obj1 = 0 ;
21970 char * kwnames[] = {
21971 (char *) "self",(char *) "y", NULL
21972 };
21973
21974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21976 if (!SWIG_IsOK(res1)) {
21977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21978 }
21979 arg1 = reinterpret_cast< wxDC * >(argp1);
21980 ecode2 = SWIG_AsVal_int(obj1, &val2);
21981 if (!SWIG_IsOK(ecode2)) {
21982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21983 }
21984 arg2 = static_cast< int >(val2);
21985 {
21986 PyThreadState* __tstate = wxPyBeginAllowThreads();
21987 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21988 wxPyEndAllowThreads(__tstate);
21989 if (PyErr_Occurred()) SWIG_fail;
21990 }
21991 resultobj = SWIG_From_int(static_cast< int >(result));
21992 return resultobj;
21993 fail:
21994 return NULL;
21995 }
21996
21997
21998 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21999 PyObject *resultobj = 0;
22000 wxDC *arg1 = (wxDC *) 0 ;
22001 int arg2 ;
22002 int result;
22003 void *argp1 = 0 ;
22004 int res1 = 0 ;
22005 int val2 ;
22006 int ecode2 = 0 ;
22007 PyObject * obj0 = 0 ;
22008 PyObject * obj1 = 0 ;
22009 char * kwnames[] = {
22010 (char *) "self",(char *) "x", NULL
22011 };
22012
22013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22015 if (!SWIG_IsOK(res1)) {
22016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22017 }
22018 arg1 = reinterpret_cast< wxDC * >(argp1);
22019 ecode2 = SWIG_AsVal_int(obj1, &val2);
22020 if (!SWIG_IsOK(ecode2)) {
22021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
22022 }
22023 arg2 = static_cast< int >(val2);
22024 {
22025 PyThreadState* __tstate = wxPyBeginAllowThreads();
22026 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
22027 wxPyEndAllowThreads(__tstate);
22028 if (PyErr_Occurred()) SWIG_fail;
22029 }
22030 resultobj = SWIG_From_int(static_cast< int >(result));
22031 return resultobj;
22032 fail:
22033 return NULL;
22034 }
22035
22036
22037 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22038 PyObject *resultobj = 0;
22039 wxDC *arg1 = (wxDC *) 0 ;
22040 int arg2 ;
22041 int result;
22042 void *argp1 = 0 ;
22043 int res1 = 0 ;
22044 int val2 ;
22045 int ecode2 = 0 ;
22046 PyObject * obj0 = 0 ;
22047 PyObject * obj1 = 0 ;
22048 char * kwnames[] = {
22049 (char *) "self",(char *) "y", NULL
22050 };
22051
22052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22054 if (!SWIG_IsOK(res1)) {
22055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22056 }
22057 arg1 = reinterpret_cast< wxDC * >(argp1);
22058 ecode2 = SWIG_AsVal_int(obj1, &val2);
22059 if (!SWIG_IsOK(ecode2)) {
22060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
22061 }
22062 arg2 = static_cast< int >(val2);
22063 {
22064 PyThreadState* __tstate = wxPyBeginAllowThreads();
22065 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
22066 wxPyEndAllowThreads(__tstate);
22067 if (PyErr_Occurred()) SWIG_fail;
22068 }
22069 resultobj = SWIG_From_int(static_cast< int >(result));
22070 return resultobj;
22071 fail:
22072 return NULL;
22073 }
22074
22075
22076 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22077 PyObject *resultobj = 0;
22078 wxDC *arg1 = (wxDC *) 0 ;
22079 int arg2 ;
22080 int result;
22081 void *argp1 = 0 ;
22082 int res1 = 0 ;
22083 int val2 ;
22084 int ecode2 = 0 ;
22085 PyObject * obj0 = 0 ;
22086 PyObject * obj1 = 0 ;
22087 char * kwnames[] = {
22088 (char *) "self",(char *) "x", NULL
22089 };
22090
22091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
22092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22093 if (!SWIG_IsOK(res1)) {
22094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
22095 }
22096 arg1 = reinterpret_cast< wxDC * >(argp1);
22097 ecode2 = SWIG_AsVal_int(obj1, &val2);
22098 if (!SWIG_IsOK(ecode2)) {
22099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
22100 }
22101 arg2 = static_cast< int >(val2);
22102 {
22103 PyThreadState* __tstate = wxPyBeginAllowThreads();
22104 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
22105 wxPyEndAllowThreads(__tstate);
22106 if (PyErr_Occurred()) SWIG_fail;
22107 }
22108 resultobj = SWIG_From_int(static_cast< int >(result));
22109 return resultobj;
22110 fail:
22111 return NULL;
22112 }
22113
22114
22115 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22116 PyObject *resultobj = 0;
22117 wxDC *arg1 = (wxDC *) 0 ;
22118 int arg2 ;
22119 int result;
22120 void *argp1 = 0 ;
22121 int res1 = 0 ;
22122 int val2 ;
22123 int ecode2 = 0 ;
22124 PyObject * obj0 = 0 ;
22125 PyObject * obj1 = 0 ;
22126 char * kwnames[] = {
22127 (char *) "self",(char *) "y", NULL
22128 };
22129
22130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
22131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22132 if (!SWIG_IsOK(res1)) {
22133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
22134 }
22135 arg1 = reinterpret_cast< wxDC * >(argp1);
22136 ecode2 = SWIG_AsVal_int(obj1, &val2);
22137 if (!SWIG_IsOK(ecode2)) {
22138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
22139 }
22140 arg2 = static_cast< int >(val2);
22141 {
22142 PyThreadState* __tstate = wxPyBeginAllowThreads();
22143 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
22144 wxPyEndAllowThreads(__tstate);
22145 if (PyErr_Occurred()) SWIG_fail;
22146 }
22147 resultobj = SWIG_From_int(static_cast< int >(result));
22148 return resultobj;
22149 fail:
22150 return NULL;
22151 }
22152
22153
22154 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22155 PyObject *resultobj = 0;
22156 wxDC *arg1 = (wxDC *) 0 ;
22157 int arg2 ;
22158 int result;
22159 void *argp1 = 0 ;
22160 int res1 = 0 ;
22161 int val2 ;
22162 int ecode2 = 0 ;
22163 PyObject * obj0 = 0 ;
22164 PyObject * obj1 = 0 ;
22165 char * kwnames[] = {
22166 (char *) "self",(char *) "x", NULL
22167 };
22168
22169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22171 if (!SWIG_IsOK(res1)) {
22172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22173 }
22174 arg1 = reinterpret_cast< wxDC * >(argp1);
22175 ecode2 = SWIG_AsVal_int(obj1, &val2);
22176 if (!SWIG_IsOK(ecode2)) {
22177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22178 }
22179 arg2 = static_cast< int >(val2);
22180 {
22181 PyThreadState* __tstate = wxPyBeginAllowThreads();
22182 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22183 wxPyEndAllowThreads(__tstate);
22184 if (PyErr_Occurred()) SWIG_fail;
22185 }
22186 resultobj = SWIG_From_int(static_cast< int >(result));
22187 return resultobj;
22188 fail:
22189 return NULL;
22190 }
22191
22192
22193 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22194 PyObject *resultobj = 0;
22195 wxDC *arg1 = (wxDC *) 0 ;
22196 int arg2 ;
22197 int result;
22198 void *argp1 = 0 ;
22199 int res1 = 0 ;
22200 int val2 ;
22201 int ecode2 = 0 ;
22202 PyObject * obj0 = 0 ;
22203 PyObject * obj1 = 0 ;
22204 char * kwnames[] = {
22205 (char *) "self",(char *) "y", NULL
22206 };
22207
22208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22210 if (!SWIG_IsOK(res1)) {
22211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22212 }
22213 arg1 = reinterpret_cast< wxDC * >(argp1);
22214 ecode2 = SWIG_AsVal_int(obj1, &val2);
22215 if (!SWIG_IsOK(ecode2)) {
22216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22217 }
22218 arg2 = static_cast< int >(val2);
22219 {
22220 PyThreadState* __tstate = wxPyBeginAllowThreads();
22221 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22222 wxPyEndAllowThreads(__tstate);
22223 if (PyErr_Occurred()) SWIG_fail;
22224 }
22225 resultobj = SWIG_From_int(static_cast< int >(result));
22226 return resultobj;
22227 fail:
22228 return NULL;
22229 }
22230
22231
22232 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22233 PyObject *resultobj = 0;
22234 wxDC *arg1 = (wxDC *) 0 ;
22235 bool result;
22236 void *argp1 = 0 ;
22237 int res1 = 0 ;
22238 PyObject *swig_obj[1] ;
22239
22240 if (!args) SWIG_fail;
22241 swig_obj[0] = args;
22242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22243 if (!SWIG_IsOK(res1)) {
22244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22245 }
22246 arg1 = reinterpret_cast< wxDC * >(argp1);
22247 {
22248 PyThreadState* __tstate = wxPyBeginAllowThreads();
22249 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22250 wxPyEndAllowThreads(__tstate);
22251 if (PyErr_Occurred()) SWIG_fail;
22252 }
22253 {
22254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22255 }
22256 return resultobj;
22257 fail:
22258 return NULL;
22259 }
22260
22261
22262 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22263 PyObject *resultobj = 0;
22264 wxDC *arg1 = (wxDC *) 0 ;
22265 bool result;
22266 void *argp1 = 0 ;
22267 int res1 = 0 ;
22268 PyObject *swig_obj[1] ;
22269
22270 if (!args) SWIG_fail;
22271 swig_obj[0] = args;
22272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22273 if (!SWIG_IsOK(res1)) {
22274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22275 }
22276 arg1 = reinterpret_cast< wxDC * >(argp1);
22277 {
22278 PyThreadState* __tstate = wxPyBeginAllowThreads();
22279 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22280 wxPyEndAllowThreads(__tstate);
22281 if (PyErr_Occurred()) SWIG_fail;
22282 }
22283 {
22284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22285 }
22286 return resultobj;
22287 fail:
22288 return NULL;
22289 }
22290
22291
22292 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22293 PyObject *resultobj = 0;
22294 wxDC *arg1 = (wxDC *) 0 ;
22295 int result;
22296 void *argp1 = 0 ;
22297 int res1 = 0 ;
22298 PyObject *swig_obj[1] ;
22299
22300 if (!args) SWIG_fail;
22301 swig_obj[0] = args;
22302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22303 if (!SWIG_IsOK(res1)) {
22304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22305 }
22306 arg1 = reinterpret_cast< wxDC * >(argp1);
22307 {
22308 PyThreadState* __tstate = wxPyBeginAllowThreads();
22309 result = (int)((wxDC const *)arg1)->GetDepth();
22310 wxPyEndAllowThreads(__tstate);
22311 if (PyErr_Occurred()) SWIG_fail;
22312 }
22313 resultobj = SWIG_From_int(static_cast< int >(result));
22314 return resultobj;
22315 fail:
22316 return NULL;
22317 }
22318
22319
22320 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22321 PyObject *resultobj = 0;
22322 wxDC *arg1 = (wxDC *) 0 ;
22323 wxSize result;
22324 void *argp1 = 0 ;
22325 int res1 = 0 ;
22326 PyObject *swig_obj[1] ;
22327
22328 if (!args) SWIG_fail;
22329 swig_obj[0] = args;
22330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22331 if (!SWIG_IsOK(res1)) {
22332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22333 }
22334 arg1 = reinterpret_cast< wxDC * >(argp1);
22335 {
22336 PyThreadState* __tstate = wxPyBeginAllowThreads();
22337 result = ((wxDC const *)arg1)->GetPPI();
22338 wxPyEndAllowThreads(__tstate);
22339 if (PyErr_Occurred()) SWIG_fail;
22340 }
22341 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22342 return resultobj;
22343 fail:
22344 return NULL;
22345 }
22346
22347
22348 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22349 PyObject *resultobj = 0;
22350 wxDC *arg1 = (wxDC *) 0 ;
22351 bool result;
22352 void *argp1 = 0 ;
22353 int res1 = 0 ;
22354 PyObject *swig_obj[1] ;
22355
22356 if (!args) SWIG_fail;
22357 swig_obj[0] = args;
22358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22359 if (!SWIG_IsOK(res1)) {
22360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
22361 }
22362 arg1 = reinterpret_cast< wxDC * >(argp1);
22363 {
22364 PyThreadState* __tstate = wxPyBeginAllowThreads();
22365 result = (bool)((wxDC const *)arg1)->IsOk();
22366 wxPyEndAllowThreads(__tstate);
22367 if (PyErr_Occurred()) SWIG_fail;
22368 }
22369 {
22370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22371 }
22372 return resultobj;
22373 fail:
22374 return NULL;
22375 }
22376
22377
22378 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22379 PyObject *resultobj = 0;
22380 wxDC *arg1 = (wxDC *) 0 ;
22381 int result;
22382 void *argp1 = 0 ;
22383 int res1 = 0 ;
22384 PyObject *swig_obj[1] ;
22385
22386 if (!args) SWIG_fail;
22387 swig_obj[0] = args;
22388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22389 if (!SWIG_IsOK(res1)) {
22390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22391 }
22392 arg1 = reinterpret_cast< wxDC * >(argp1);
22393 {
22394 PyThreadState* __tstate = wxPyBeginAllowThreads();
22395 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22396 wxPyEndAllowThreads(__tstate);
22397 if (PyErr_Occurred()) SWIG_fail;
22398 }
22399 resultobj = SWIG_From_int(static_cast< int >(result));
22400 return resultobj;
22401 fail:
22402 return NULL;
22403 }
22404
22405
22406 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22407 PyObject *resultobj = 0;
22408 wxDC *arg1 = (wxDC *) 0 ;
22409 wxBrush *result = 0 ;
22410 void *argp1 = 0 ;
22411 int res1 = 0 ;
22412 PyObject *swig_obj[1] ;
22413
22414 if (!args) SWIG_fail;
22415 swig_obj[0] = args;
22416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22417 if (!SWIG_IsOK(res1)) {
22418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22419 }
22420 arg1 = reinterpret_cast< wxDC * >(argp1);
22421 {
22422 PyThreadState* __tstate = wxPyBeginAllowThreads();
22423 {
22424 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22425 result = (wxBrush *) &_result_ref;
22426 }
22427 wxPyEndAllowThreads(__tstate);
22428 if (PyErr_Occurred()) SWIG_fail;
22429 }
22430 {
22431 wxBrush* resultptr = new wxBrush(*result);
22432 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22433 }
22434 return resultobj;
22435 fail:
22436 return NULL;
22437 }
22438
22439
22440 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22441 PyObject *resultobj = 0;
22442 wxDC *arg1 = (wxDC *) 0 ;
22443 wxBrush *result = 0 ;
22444 void *argp1 = 0 ;
22445 int res1 = 0 ;
22446 PyObject *swig_obj[1] ;
22447
22448 if (!args) SWIG_fail;
22449 swig_obj[0] = args;
22450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22451 if (!SWIG_IsOK(res1)) {
22452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22453 }
22454 arg1 = reinterpret_cast< wxDC * >(argp1);
22455 {
22456 PyThreadState* __tstate = wxPyBeginAllowThreads();
22457 {
22458 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22459 result = (wxBrush *) &_result_ref;
22460 }
22461 wxPyEndAllowThreads(__tstate);
22462 if (PyErr_Occurred()) SWIG_fail;
22463 }
22464 {
22465 wxBrush* resultptr = new wxBrush(*result);
22466 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22467 }
22468 return resultobj;
22469 fail:
22470 return NULL;
22471 }
22472
22473
22474 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22475 PyObject *resultobj = 0;
22476 wxDC *arg1 = (wxDC *) 0 ;
22477 wxFont *result = 0 ;
22478 void *argp1 = 0 ;
22479 int res1 = 0 ;
22480 PyObject *swig_obj[1] ;
22481
22482 if (!args) SWIG_fail;
22483 swig_obj[0] = args;
22484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22485 if (!SWIG_IsOK(res1)) {
22486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22487 }
22488 arg1 = reinterpret_cast< wxDC * >(argp1);
22489 {
22490 PyThreadState* __tstate = wxPyBeginAllowThreads();
22491 {
22492 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22493 result = (wxFont *) &_result_ref;
22494 }
22495 wxPyEndAllowThreads(__tstate);
22496 if (PyErr_Occurred()) SWIG_fail;
22497 }
22498 {
22499 wxFont* resultptr = new wxFont(*result);
22500 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22501 }
22502 return resultobj;
22503 fail:
22504 return NULL;
22505 }
22506
22507
22508 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22509 PyObject *resultobj = 0;
22510 wxDC *arg1 = (wxDC *) 0 ;
22511 wxPen *result = 0 ;
22512 void *argp1 = 0 ;
22513 int res1 = 0 ;
22514 PyObject *swig_obj[1] ;
22515
22516 if (!args) SWIG_fail;
22517 swig_obj[0] = args;
22518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22519 if (!SWIG_IsOK(res1)) {
22520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22521 }
22522 arg1 = reinterpret_cast< wxDC * >(argp1);
22523 {
22524 PyThreadState* __tstate = wxPyBeginAllowThreads();
22525 {
22526 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22527 result = (wxPen *) &_result_ref;
22528 }
22529 wxPyEndAllowThreads(__tstate);
22530 if (PyErr_Occurred()) SWIG_fail;
22531 }
22532 {
22533 wxPen* resultptr = new wxPen(*result);
22534 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22535 }
22536 return resultobj;
22537 fail:
22538 return NULL;
22539 }
22540
22541
22542 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22543 PyObject *resultobj = 0;
22544 wxDC *arg1 = (wxDC *) 0 ;
22545 wxColour *result = 0 ;
22546 void *argp1 = 0 ;
22547 int res1 = 0 ;
22548 PyObject *swig_obj[1] ;
22549
22550 if (!args) SWIG_fail;
22551 swig_obj[0] = args;
22552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22553 if (!SWIG_IsOK(res1)) {
22554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22555 }
22556 arg1 = reinterpret_cast< wxDC * >(argp1);
22557 {
22558 PyThreadState* __tstate = wxPyBeginAllowThreads();
22559 {
22560 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22561 result = (wxColour *) &_result_ref;
22562 }
22563 wxPyEndAllowThreads(__tstate);
22564 if (PyErr_Occurred()) SWIG_fail;
22565 }
22566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22567 return resultobj;
22568 fail:
22569 return NULL;
22570 }
22571
22572
22573 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22574 PyObject *resultobj = 0;
22575 wxDC *arg1 = (wxDC *) 0 ;
22576 wxColour *result = 0 ;
22577 void *argp1 = 0 ;
22578 int res1 = 0 ;
22579 PyObject *swig_obj[1] ;
22580
22581 if (!args) SWIG_fail;
22582 swig_obj[0] = args;
22583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22584 if (!SWIG_IsOK(res1)) {
22585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22586 }
22587 arg1 = reinterpret_cast< wxDC * >(argp1);
22588 {
22589 PyThreadState* __tstate = wxPyBeginAllowThreads();
22590 {
22591 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22592 result = (wxColour *) &_result_ref;
22593 }
22594 wxPyEndAllowThreads(__tstate);
22595 if (PyErr_Occurred()) SWIG_fail;
22596 }
22597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22598 return resultobj;
22599 fail:
22600 return NULL;
22601 }
22602
22603
22604 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22605 PyObject *resultobj = 0;
22606 wxDC *arg1 = (wxDC *) 0 ;
22607 wxColour *arg2 = 0 ;
22608 void *argp1 = 0 ;
22609 int res1 = 0 ;
22610 wxColour temp2 ;
22611 PyObject * obj0 = 0 ;
22612 PyObject * obj1 = 0 ;
22613 char * kwnames[] = {
22614 (char *) "self",(char *) "colour", NULL
22615 };
22616
22617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22619 if (!SWIG_IsOK(res1)) {
22620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22621 }
22622 arg1 = reinterpret_cast< wxDC * >(argp1);
22623 {
22624 arg2 = &temp2;
22625 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22626 }
22627 {
22628 PyThreadState* __tstate = wxPyBeginAllowThreads();
22629 (arg1)->SetTextForeground((wxColour const &)*arg2);
22630 wxPyEndAllowThreads(__tstate);
22631 if (PyErr_Occurred()) SWIG_fail;
22632 }
22633 resultobj = SWIG_Py_Void();
22634 return resultobj;
22635 fail:
22636 return NULL;
22637 }
22638
22639
22640 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22641 PyObject *resultobj = 0;
22642 wxDC *arg1 = (wxDC *) 0 ;
22643 wxColour *arg2 = 0 ;
22644 void *argp1 = 0 ;
22645 int res1 = 0 ;
22646 wxColour temp2 ;
22647 PyObject * obj0 = 0 ;
22648 PyObject * obj1 = 0 ;
22649 char * kwnames[] = {
22650 (char *) "self",(char *) "colour", NULL
22651 };
22652
22653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22655 if (!SWIG_IsOK(res1)) {
22656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22657 }
22658 arg1 = reinterpret_cast< wxDC * >(argp1);
22659 {
22660 arg2 = &temp2;
22661 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22662 }
22663 {
22664 PyThreadState* __tstate = wxPyBeginAllowThreads();
22665 (arg1)->SetTextBackground((wxColour const &)*arg2);
22666 wxPyEndAllowThreads(__tstate);
22667 if (PyErr_Occurred()) SWIG_fail;
22668 }
22669 resultobj = SWIG_Py_Void();
22670 return resultobj;
22671 fail:
22672 return NULL;
22673 }
22674
22675
22676 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22677 PyObject *resultobj = 0;
22678 wxDC *arg1 = (wxDC *) 0 ;
22679 int result;
22680 void *argp1 = 0 ;
22681 int res1 = 0 ;
22682 PyObject *swig_obj[1] ;
22683
22684 if (!args) SWIG_fail;
22685 swig_obj[0] = args;
22686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22687 if (!SWIG_IsOK(res1)) {
22688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22689 }
22690 arg1 = reinterpret_cast< wxDC * >(argp1);
22691 {
22692 PyThreadState* __tstate = wxPyBeginAllowThreads();
22693 result = (int)((wxDC const *)arg1)->GetMapMode();
22694 wxPyEndAllowThreads(__tstate);
22695 if (PyErr_Occurred()) SWIG_fail;
22696 }
22697 resultobj = SWIG_From_int(static_cast< int >(result));
22698 return resultobj;
22699 fail:
22700 return NULL;
22701 }
22702
22703
22704 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22705 PyObject *resultobj = 0;
22706 wxDC *arg1 = (wxDC *) 0 ;
22707 int arg2 ;
22708 void *argp1 = 0 ;
22709 int res1 = 0 ;
22710 int val2 ;
22711 int ecode2 = 0 ;
22712 PyObject * obj0 = 0 ;
22713 PyObject * obj1 = 0 ;
22714 char * kwnames[] = {
22715 (char *) "self",(char *) "mode", NULL
22716 };
22717
22718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22720 if (!SWIG_IsOK(res1)) {
22721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22722 }
22723 arg1 = reinterpret_cast< wxDC * >(argp1);
22724 ecode2 = SWIG_AsVal_int(obj1, &val2);
22725 if (!SWIG_IsOK(ecode2)) {
22726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22727 }
22728 arg2 = static_cast< int >(val2);
22729 {
22730 PyThreadState* __tstate = wxPyBeginAllowThreads();
22731 (arg1)->SetMapMode(arg2);
22732 wxPyEndAllowThreads(__tstate);
22733 if (PyErr_Occurred()) SWIG_fail;
22734 }
22735 resultobj = SWIG_Py_Void();
22736 return resultobj;
22737 fail:
22738 return NULL;
22739 }
22740
22741
22742 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22743 PyObject *resultobj = 0;
22744 wxDC *arg1 = (wxDC *) 0 ;
22745 double *arg2 = (double *) 0 ;
22746 double *arg3 = (double *) 0 ;
22747 void *argp1 = 0 ;
22748 int res1 = 0 ;
22749 double temp2 ;
22750 int res2 = SWIG_TMPOBJ ;
22751 double temp3 ;
22752 int res3 = SWIG_TMPOBJ ;
22753 PyObject *swig_obj[1] ;
22754
22755 arg2 = &temp2;
22756 arg3 = &temp3;
22757 if (!args) SWIG_fail;
22758 swig_obj[0] = args;
22759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22760 if (!SWIG_IsOK(res1)) {
22761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22762 }
22763 arg1 = reinterpret_cast< wxDC * >(argp1);
22764 {
22765 PyThreadState* __tstate = wxPyBeginAllowThreads();
22766 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22767 wxPyEndAllowThreads(__tstate);
22768 if (PyErr_Occurred()) SWIG_fail;
22769 }
22770 resultobj = SWIG_Py_Void();
22771 if (SWIG_IsTmpObj(res2)) {
22772 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22773 } else {
22774 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22775 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22776 }
22777 if (SWIG_IsTmpObj(res3)) {
22778 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22779 } else {
22780 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22781 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22782 }
22783 return resultobj;
22784 fail:
22785 return NULL;
22786 }
22787
22788
22789 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22790 PyObject *resultobj = 0;
22791 wxDC *arg1 = (wxDC *) 0 ;
22792 double arg2 ;
22793 double arg3 ;
22794 void *argp1 = 0 ;
22795 int res1 = 0 ;
22796 double val2 ;
22797 int ecode2 = 0 ;
22798 double val3 ;
22799 int ecode3 = 0 ;
22800 PyObject * obj0 = 0 ;
22801 PyObject * obj1 = 0 ;
22802 PyObject * obj2 = 0 ;
22803 char * kwnames[] = {
22804 (char *) "self",(char *) "x",(char *) "y", NULL
22805 };
22806
22807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22809 if (!SWIG_IsOK(res1)) {
22810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22811 }
22812 arg1 = reinterpret_cast< wxDC * >(argp1);
22813 ecode2 = SWIG_AsVal_double(obj1, &val2);
22814 if (!SWIG_IsOK(ecode2)) {
22815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22816 }
22817 arg2 = static_cast< double >(val2);
22818 ecode3 = SWIG_AsVal_double(obj2, &val3);
22819 if (!SWIG_IsOK(ecode3)) {
22820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22821 }
22822 arg3 = static_cast< double >(val3);
22823 {
22824 PyThreadState* __tstate = wxPyBeginAllowThreads();
22825 (arg1)->SetUserScale(arg2,arg3);
22826 wxPyEndAllowThreads(__tstate);
22827 if (PyErr_Occurred()) SWIG_fail;
22828 }
22829 resultobj = SWIG_Py_Void();
22830 return resultobj;
22831 fail:
22832 return NULL;
22833 }
22834
22835
22836 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22837 PyObject *resultobj = 0;
22838 wxDC *arg1 = (wxDC *) 0 ;
22839 double *arg2 = (double *) 0 ;
22840 double *arg3 = (double *) 0 ;
22841 void *argp1 = 0 ;
22842 int res1 = 0 ;
22843 double temp2 ;
22844 int res2 = SWIG_TMPOBJ ;
22845 double temp3 ;
22846 int res3 = SWIG_TMPOBJ ;
22847 PyObject *swig_obj[1] ;
22848
22849 arg2 = &temp2;
22850 arg3 = &temp3;
22851 if (!args) SWIG_fail;
22852 swig_obj[0] = args;
22853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22854 if (!SWIG_IsOK(res1)) {
22855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22856 }
22857 arg1 = reinterpret_cast< wxDC * >(argp1);
22858 {
22859 PyThreadState* __tstate = wxPyBeginAllowThreads();
22860 (arg1)->GetLogicalScale(arg2,arg3);
22861 wxPyEndAllowThreads(__tstate);
22862 if (PyErr_Occurred()) SWIG_fail;
22863 }
22864 resultobj = SWIG_Py_Void();
22865 if (SWIG_IsTmpObj(res2)) {
22866 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22867 } else {
22868 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22869 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22870 }
22871 if (SWIG_IsTmpObj(res3)) {
22872 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22873 } else {
22874 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22875 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22876 }
22877 return resultobj;
22878 fail:
22879 return NULL;
22880 }
22881
22882
22883 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22884 PyObject *resultobj = 0;
22885 wxDC *arg1 = (wxDC *) 0 ;
22886 double arg2 ;
22887 double arg3 ;
22888 void *argp1 = 0 ;
22889 int res1 = 0 ;
22890 double val2 ;
22891 int ecode2 = 0 ;
22892 double val3 ;
22893 int ecode3 = 0 ;
22894 PyObject * obj0 = 0 ;
22895 PyObject * obj1 = 0 ;
22896 PyObject * obj2 = 0 ;
22897 char * kwnames[] = {
22898 (char *) "self",(char *) "x",(char *) "y", NULL
22899 };
22900
22901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22903 if (!SWIG_IsOK(res1)) {
22904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22905 }
22906 arg1 = reinterpret_cast< wxDC * >(argp1);
22907 ecode2 = SWIG_AsVal_double(obj1, &val2);
22908 if (!SWIG_IsOK(ecode2)) {
22909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22910 }
22911 arg2 = static_cast< double >(val2);
22912 ecode3 = SWIG_AsVal_double(obj2, &val3);
22913 if (!SWIG_IsOK(ecode3)) {
22914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22915 }
22916 arg3 = static_cast< double >(val3);
22917 {
22918 PyThreadState* __tstate = wxPyBeginAllowThreads();
22919 (arg1)->SetLogicalScale(arg2,arg3);
22920 wxPyEndAllowThreads(__tstate);
22921 if (PyErr_Occurred()) SWIG_fail;
22922 }
22923 resultobj = SWIG_Py_Void();
22924 return resultobj;
22925 fail:
22926 return NULL;
22927 }
22928
22929
22930 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22931 PyObject *resultobj = 0;
22932 wxDC *arg1 = (wxDC *) 0 ;
22933 wxPoint result;
22934 void *argp1 = 0 ;
22935 int res1 = 0 ;
22936 PyObject *swig_obj[1] ;
22937
22938 if (!args) SWIG_fail;
22939 swig_obj[0] = args;
22940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22941 if (!SWIG_IsOK(res1)) {
22942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22943 }
22944 arg1 = reinterpret_cast< wxDC * >(argp1);
22945 {
22946 PyThreadState* __tstate = wxPyBeginAllowThreads();
22947 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22948 wxPyEndAllowThreads(__tstate);
22949 if (PyErr_Occurred()) SWIG_fail;
22950 }
22951 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22952 return resultobj;
22953 fail:
22954 return NULL;
22955 }
22956
22957
22958 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22959 PyObject *resultobj = 0;
22960 wxDC *arg1 = (wxDC *) 0 ;
22961 int *arg2 = (int *) 0 ;
22962 int *arg3 = (int *) 0 ;
22963 void *argp1 = 0 ;
22964 int res1 = 0 ;
22965 int temp2 ;
22966 int res2 = SWIG_TMPOBJ ;
22967 int temp3 ;
22968 int res3 = SWIG_TMPOBJ ;
22969 PyObject *swig_obj[1] ;
22970
22971 arg2 = &temp2;
22972 arg3 = &temp3;
22973 if (!args) SWIG_fail;
22974 swig_obj[0] = args;
22975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22976 if (!SWIG_IsOK(res1)) {
22977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22978 }
22979 arg1 = reinterpret_cast< wxDC * >(argp1);
22980 {
22981 PyThreadState* __tstate = wxPyBeginAllowThreads();
22982 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22983 wxPyEndAllowThreads(__tstate);
22984 if (PyErr_Occurred()) SWIG_fail;
22985 }
22986 resultobj = SWIG_Py_Void();
22987 if (SWIG_IsTmpObj(res2)) {
22988 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22989 } else {
22990 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22991 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22992 }
22993 if (SWIG_IsTmpObj(res3)) {
22994 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22995 } else {
22996 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22997 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22998 }
22999 return resultobj;
23000 fail:
23001 return NULL;
23002 }
23003
23004
23005 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23006 PyObject *resultobj = 0;
23007 wxDC *arg1 = (wxDC *) 0 ;
23008 int arg2 ;
23009 int arg3 ;
23010 void *argp1 = 0 ;
23011 int res1 = 0 ;
23012 int val2 ;
23013 int ecode2 = 0 ;
23014 int val3 ;
23015 int ecode3 = 0 ;
23016 PyObject * obj0 = 0 ;
23017 PyObject * obj1 = 0 ;
23018 PyObject * obj2 = 0 ;
23019 char * kwnames[] = {
23020 (char *) "self",(char *) "x",(char *) "y", NULL
23021 };
23022
23023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23025 if (!SWIG_IsOK(res1)) {
23026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23027 }
23028 arg1 = reinterpret_cast< wxDC * >(argp1);
23029 ecode2 = SWIG_AsVal_int(obj1, &val2);
23030 if (!SWIG_IsOK(ecode2)) {
23031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
23032 }
23033 arg2 = static_cast< int >(val2);
23034 ecode3 = SWIG_AsVal_int(obj2, &val3);
23035 if (!SWIG_IsOK(ecode3)) {
23036 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
23037 }
23038 arg3 = static_cast< int >(val3);
23039 {
23040 PyThreadState* __tstate = wxPyBeginAllowThreads();
23041 (arg1)->SetLogicalOrigin(arg2,arg3);
23042 wxPyEndAllowThreads(__tstate);
23043 if (PyErr_Occurred()) SWIG_fail;
23044 }
23045 resultobj = SWIG_Py_Void();
23046 return resultobj;
23047 fail:
23048 return NULL;
23049 }
23050
23051
23052 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23053 PyObject *resultobj = 0;
23054 wxDC *arg1 = (wxDC *) 0 ;
23055 wxPoint *arg2 = 0 ;
23056 void *argp1 = 0 ;
23057 int res1 = 0 ;
23058 wxPoint temp2 ;
23059 PyObject * obj0 = 0 ;
23060 PyObject * obj1 = 0 ;
23061 char * kwnames[] = {
23062 (char *) "self",(char *) "point", NULL
23063 };
23064
23065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23067 if (!SWIG_IsOK(res1)) {
23068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23069 }
23070 arg1 = reinterpret_cast< wxDC * >(argp1);
23071 {
23072 arg2 = &temp2;
23073 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23074 }
23075 {
23076 PyThreadState* __tstate = wxPyBeginAllowThreads();
23077 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
23078 wxPyEndAllowThreads(__tstate);
23079 if (PyErr_Occurred()) SWIG_fail;
23080 }
23081 resultobj = SWIG_Py_Void();
23082 return resultobj;
23083 fail:
23084 return NULL;
23085 }
23086
23087
23088 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23089 PyObject *resultobj = 0;
23090 wxDC *arg1 = (wxDC *) 0 ;
23091 wxPoint result;
23092 void *argp1 = 0 ;
23093 int res1 = 0 ;
23094 PyObject *swig_obj[1] ;
23095
23096 if (!args) SWIG_fail;
23097 swig_obj[0] = args;
23098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23099 if (!SWIG_IsOK(res1)) {
23100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23101 }
23102 arg1 = reinterpret_cast< wxDC * >(argp1);
23103 {
23104 PyThreadState* __tstate = wxPyBeginAllowThreads();
23105 result = ((wxDC const *)arg1)->GetDeviceOrigin();
23106 wxPyEndAllowThreads(__tstate);
23107 if (PyErr_Occurred()) SWIG_fail;
23108 }
23109 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23110 return resultobj;
23111 fail:
23112 return NULL;
23113 }
23114
23115
23116 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23117 PyObject *resultobj = 0;
23118 wxDC *arg1 = (wxDC *) 0 ;
23119 int *arg2 = (int *) 0 ;
23120 int *arg3 = (int *) 0 ;
23121 void *argp1 = 0 ;
23122 int res1 = 0 ;
23123 int temp2 ;
23124 int res2 = SWIG_TMPOBJ ;
23125 int temp3 ;
23126 int res3 = SWIG_TMPOBJ ;
23127 PyObject *swig_obj[1] ;
23128
23129 arg2 = &temp2;
23130 arg3 = &temp3;
23131 if (!args) SWIG_fail;
23132 swig_obj[0] = args;
23133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23134 if (!SWIG_IsOK(res1)) {
23135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23136 }
23137 arg1 = reinterpret_cast< wxDC * >(argp1);
23138 {
23139 PyThreadState* __tstate = wxPyBeginAllowThreads();
23140 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
23141 wxPyEndAllowThreads(__tstate);
23142 if (PyErr_Occurred()) SWIG_fail;
23143 }
23144 resultobj = SWIG_Py_Void();
23145 if (SWIG_IsTmpObj(res2)) {
23146 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23147 } else {
23148 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23149 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23150 }
23151 if (SWIG_IsTmpObj(res3)) {
23152 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23153 } else {
23154 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23155 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23156 }
23157 return resultobj;
23158 fail:
23159 return NULL;
23160 }
23161
23162
23163 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23164 PyObject *resultobj = 0;
23165 wxDC *arg1 = (wxDC *) 0 ;
23166 int arg2 ;
23167 int arg3 ;
23168 void *argp1 = 0 ;
23169 int res1 = 0 ;
23170 int val2 ;
23171 int ecode2 = 0 ;
23172 int val3 ;
23173 int ecode3 = 0 ;
23174 PyObject * obj0 = 0 ;
23175 PyObject * obj1 = 0 ;
23176 PyObject * obj2 = 0 ;
23177 char * kwnames[] = {
23178 (char *) "self",(char *) "x",(char *) "y", NULL
23179 };
23180
23181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23183 if (!SWIG_IsOK(res1)) {
23184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23185 }
23186 arg1 = reinterpret_cast< wxDC * >(argp1);
23187 ecode2 = SWIG_AsVal_int(obj1, &val2);
23188 if (!SWIG_IsOK(ecode2)) {
23189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23190 }
23191 arg2 = static_cast< int >(val2);
23192 ecode3 = SWIG_AsVal_int(obj2, &val3);
23193 if (!SWIG_IsOK(ecode3)) {
23194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23195 }
23196 arg3 = static_cast< int >(val3);
23197 {
23198 PyThreadState* __tstate = wxPyBeginAllowThreads();
23199 (arg1)->SetDeviceOrigin(arg2,arg3);
23200 wxPyEndAllowThreads(__tstate);
23201 if (PyErr_Occurred()) SWIG_fail;
23202 }
23203 resultobj = SWIG_Py_Void();
23204 return resultobj;
23205 fail:
23206 return NULL;
23207 }
23208
23209
23210 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23211 PyObject *resultobj = 0;
23212 wxDC *arg1 = (wxDC *) 0 ;
23213 wxPoint *arg2 = 0 ;
23214 void *argp1 = 0 ;
23215 int res1 = 0 ;
23216 wxPoint temp2 ;
23217 PyObject * obj0 = 0 ;
23218 PyObject * obj1 = 0 ;
23219 char * kwnames[] = {
23220 (char *) "self",(char *) "point", NULL
23221 };
23222
23223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23225 if (!SWIG_IsOK(res1)) {
23226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23227 }
23228 arg1 = reinterpret_cast< wxDC * >(argp1);
23229 {
23230 arg2 = &temp2;
23231 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23232 }
23233 {
23234 PyThreadState* __tstate = wxPyBeginAllowThreads();
23235 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23236 wxPyEndAllowThreads(__tstate);
23237 if (PyErr_Occurred()) SWIG_fail;
23238 }
23239 resultobj = SWIG_Py_Void();
23240 return resultobj;
23241 fail:
23242 return NULL;
23243 }
23244
23245
23246 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23247 PyObject *resultobj = 0;
23248 wxDC *arg1 = (wxDC *) 0 ;
23249 bool arg2 ;
23250 bool arg3 ;
23251 void *argp1 = 0 ;
23252 int res1 = 0 ;
23253 bool val2 ;
23254 int ecode2 = 0 ;
23255 bool val3 ;
23256 int ecode3 = 0 ;
23257 PyObject * obj0 = 0 ;
23258 PyObject * obj1 = 0 ;
23259 PyObject * obj2 = 0 ;
23260 char * kwnames[] = {
23261 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23262 };
23263
23264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23266 if (!SWIG_IsOK(res1)) {
23267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23268 }
23269 arg1 = reinterpret_cast< wxDC * >(argp1);
23270 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23271 if (!SWIG_IsOK(ecode2)) {
23272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23273 }
23274 arg2 = static_cast< bool >(val2);
23275 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23276 if (!SWIG_IsOK(ecode3)) {
23277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23278 }
23279 arg3 = static_cast< bool >(val3);
23280 {
23281 PyThreadState* __tstate = wxPyBeginAllowThreads();
23282 (arg1)->SetAxisOrientation(arg2,arg3);
23283 wxPyEndAllowThreads(__tstate);
23284 if (PyErr_Occurred()) SWIG_fail;
23285 }
23286 resultobj = SWIG_Py_Void();
23287 return resultobj;
23288 fail:
23289 return NULL;
23290 }
23291
23292
23293 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23294 PyObject *resultobj = 0;
23295 wxDC *arg1 = (wxDC *) 0 ;
23296 int result;
23297 void *argp1 = 0 ;
23298 int res1 = 0 ;
23299 PyObject *swig_obj[1] ;
23300
23301 if (!args) SWIG_fail;
23302 swig_obj[0] = args;
23303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23304 if (!SWIG_IsOK(res1)) {
23305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23306 }
23307 arg1 = reinterpret_cast< wxDC * >(argp1);
23308 {
23309 PyThreadState* __tstate = wxPyBeginAllowThreads();
23310 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23311 wxPyEndAllowThreads(__tstate);
23312 if (PyErr_Occurred()) SWIG_fail;
23313 }
23314 resultobj = SWIG_From_int(static_cast< int >(result));
23315 return resultobj;
23316 fail:
23317 return NULL;
23318 }
23319
23320
23321 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23322 PyObject *resultobj = 0;
23323 wxDC *arg1 = (wxDC *) 0 ;
23324 int arg2 ;
23325 void *argp1 = 0 ;
23326 int res1 = 0 ;
23327 int val2 ;
23328 int ecode2 = 0 ;
23329 PyObject * obj0 = 0 ;
23330 PyObject * obj1 = 0 ;
23331 char * kwnames[] = {
23332 (char *) "self",(char *) "function", NULL
23333 };
23334
23335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23337 if (!SWIG_IsOK(res1)) {
23338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23339 }
23340 arg1 = reinterpret_cast< wxDC * >(argp1);
23341 ecode2 = SWIG_AsVal_int(obj1, &val2);
23342 if (!SWIG_IsOK(ecode2)) {
23343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23344 }
23345 arg2 = static_cast< int >(val2);
23346 {
23347 PyThreadState* __tstate = wxPyBeginAllowThreads();
23348 (arg1)->SetLogicalFunction(arg2);
23349 wxPyEndAllowThreads(__tstate);
23350 if (PyErr_Occurred()) SWIG_fail;
23351 }
23352 resultobj = SWIG_Py_Void();
23353 return resultobj;
23354 fail:
23355 return NULL;
23356 }
23357
23358
23359 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23360 PyObject *resultobj = 0;
23361 wxDC *arg1 = (wxDC *) 0 ;
23362 void *argp1 = 0 ;
23363 int res1 = 0 ;
23364 PyObject *swig_obj[1] ;
23365
23366 if (!args) SWIG_fail;
23367 swig_obj[0] = args;
23368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23369 if (!SWIG_IsOK(res1)) {
23370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23371 }
23372 arg1 = reinterpret_cast< wxDC * >(argp1);
23373 {
23374 PyThreadState* __tstate = wxPyBeginAllowThreads();
23375 (arg1)->ComputeScaleAndOrigin();
23376 wxPyEndAllowThreads(__tstate);
23377 if (PyErr_Occurred()) SWIG_fail;
23378 }
23379 resultobj = SWIG_Py_Void();
23380 return resultobj;
23381 fail:
23382 return NULL;
23383 }
23384
23385
23386 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23387 PyObject *resultobj = 0;
23388 wxDC *arg1 = (wxDC *) 0 ;
23389 int arg2 ;
23390 int arg3 ;
23391 void *argp1 = 0 ;
23392 int res1 = 0 ;
23393 int val2 ;
23394 int ecode2 = 0 ;
23395 int val3 ;
23396 int ecode3 = 0 ;
23397 PyObject * obj0 = 0 ;
23398 PyObject * obj1 = 0 ;
23399 PyObject * obj2 = 0 ;
23400 char * kwnames[] = {
23401 (char *) "self",(char *) "x",(char *) "y", NULL
23402 };
23403
23404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23406 if (!SWIG_IsOK(res1)) {
23407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23408 }
23409 arg1 = reinterpret_cast< wxDC * >(argp1);
23410 ecode2 = SWIG_AsVal_int(obj1, &val2);
23411 if (!SWIG_IsOK(ecode2)) {
23412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23413 }
23414 arg2 = static_cast< int >(val2);
23415 ecode3 = SWIG_AsVal_int(obj2, &val3);
23416 if (!SWIG_IsOK(ecode3)) {
23417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23418 }
23419 arg3 = static_cast< int >(val3);
23420 {
23421 PyThreadState* __tstate = wxPyBeginAllowThreads();
23422 (arg1)->CalcBoundingBox(arg2,arg3);
23423 wxPyEndAllowThreads(__tstate);
23424 if (PyErr_Occurred()) SWIG_fail;
23425 }
23426 resultobj = SWIG_Py_Void();
23427 return resultobj;
23428 fail:
23429 return NULL;
23430 }
23431
23432
23433 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23434 PyObject *resultobj = 0;
23435 wxDC *arg1 = (wxDC *) 0 ;
23436 wxPoint *arg2 = 0 ;
23437 void *argp1 = 0 ;
23438 int res1 = 0 ;
23439 wxPoint temp2 ;
23440 PyObject * obj0 = 0 ;
23441 PyObject * obj1 = 0 ;
23442 char * kwnames[] = {
23443 (char *) "self",(char *) "point", NULL
23444 };
23445
23446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23448 if (!SWIG_IsOK(res1)) {
23449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23450 }
23451 arg1 = reinterpret_cast< wxDC * >(argp1);
23452 {
23453 arg2 = &temp2;
23454 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23455 }
23456 {
23457 PyThreadState* __tstate = wxPyBeginAllowThreads();
23458 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23459 wxPyEndAllowThreads(__tstate);
23460 if (PyErr_Occurred()) SWIG_fail;
23461 }
23462 resultobj = SWIG_Py_Void();
23463 return resultobj;
23464 fail:
23465 return NULL;
23466 }
23467
23468
23469 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23470 PyObject *resultobj = 0;
23471 wxDC *arg1 = (wxDC *) 0 ;
23472 void *argp1 = 0 ;
23473 int res1 = 0 ;
23474 PyObject *swig_obj[1] ;
23475
23476 if (!args) SWIG_fail;
23477 swig_obj[0] = args;
23478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23479 if (!SWIG_IsOK(res1)) {
23480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23481 }
23482 arg1 = reinterpret_cast< wxDC * >(argp1);
23483 {
23484 PyThreadState* __tstate = wxPyBeginAllowThreads();
23485 (arg1)->ResetBoundingBox();
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_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23497 PyObject *resultobj = 0;
23498 wxDC *arg1 = (wxDC *) 0 ;
23499 int result;
23500 void *argp1 = 0 ;
23501 int res1 = 0 ;
23502 PyObject *swig_obj[1] ;
23503
23504 if (!args) SWIG_fail;
23505 swig_obj[0] = args;
23506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23507 if (!SWIG_IsOK(res1)) {
23508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23509 }
23510 arg1 = reinterpret_cast< wxDC * >(argp1);
23511 {
23512 PyThreadState* __tstate = wxPyBeginAllowThreads();
23513 result = (int)((wxDC const *)arg1)->MinX();
23514 wxPyEndAllowThreads(__tstate);
23515 if (PyErr_Occurred()) SWIG_fail;
23516 }
23517 resultobj = SWIG_From_int(static_cast< int >(result));
23518 return resultobj;
23519 fail:
23520 return NULL;
23521 }
23522
23523
23524 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23525 PyObject *resultobj = 0;
23526 wxDC *arg1 = (wxDC *) 0 ;
23527 int result;
23528 void *argp1 = 0 ;
23529 int res1 = 0 ;
23530 PyObject *swig_obj[1] ;
23531
23532 if (!args) SWIG_fail;
23533 swig_obj[0] = args;
23534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23535 if (!SWIG_IsOK(res1)) {
23536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23537 }
23538 arg1 = reinterpret_cast< wxDC * >(argp1);
23539 {
23540 PyThreadState* __tstate = wxPyBeginAllowThreads();
23541 result = (int)((wxDC const *)arg1)->MaxX();
23542 wxPyEndAllowThreads(__tstate);
23543 if (PyErr_Occurred()) SWIG_fail;
23544 }
23545 resultobj = SWIG_From_int(static_cast< int >(result));
23546 return resultobj;
23547 fail:
23548 return NULL;
23549 }
23550
23551
23552 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23553 PyObject *resultobj = 0;
23554 wxDC *arg1 = (wxDC *) 0 ;
23555 int result;
23556 void *argp1 = 0 ;
23557 int res1 = 0 ;
23558 PyObject *swig_obj[1] ;
23559
23560 if (!args) SWIG_fail;
23561 swig_obj[0] = args;
23562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23563 if (!SWIG_IsOK(res1)) {
23564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23565 }
23566 arg1 = reinterpret_cast< wxDC * >(argp1);
23567 {
23568 PyThreadState* __tstate = wxPyBeginAllowThreads();
23569 result = (int)((wxDC const *)arg1)->MinY();
23570 wxPyEndAllowThreads(__tstate);
23571 if (PyErr_Occurred()) SWIG_fail;
23572 }
23573 resultobj = SWIG_From_int(static_cast< int >(result));
23574 return resultobj;
23575 fail:
23576 return NULL;
23577 }
23578
23579
23580 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23581 PyObject *resultobj = 0;
23582 wxDC *arg1 = (wxDC *) 0 ;
23583 int result;
23584 void *argp1 = 0 ;
23585 int res1 = 0 ;
23586 PyObject *swig_obj[1] ;
23587
23588 if (!args) SWIG_fail;
23589 swig_obj[0] = args;
23590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23591 if (!SWIG_IsOK(res1)) {
23592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23593 }
23594 arg1 = reinterpret_cast< wxDC * >(argp1);
23595 {
23596 PyThreadState* __tstate = wxPyBeginAllowThreads();
23597 result = (int)((wxDC const *)arg1)->MaxY();
23598 wxPyEndAllowThreads(__tstate);
23599 if (PyErr_Occurred()) SWIG_fail;
23600 }
23601 resultobj = SWIG_From_int(static_cast< int >(result));
23602 return resultobj;
23603 fail:
23604 return NULL;
23605 }
23606
23607
23608 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23609 PyObject *resultobj = 0;
23610 wxDC *arg1 = (wxDC *) 0 ;
23611 int *arg2 = (int *) 0 ;
23612 int *arg3 = (int *) 0 ;
23613 int *arg4 = (int *) 0 ;
23614 int *arg5 = (int *) 0 ;
23615 void *argp1 = 0 ;
23616 int res1 = 0 ;
23617 int temp2 ;
23618 int res2 = SWIG_TMPOBJ ;
23619 int temp3 ;
23620 int res3 = SWIG_TMPOBJ ;
23621 int temp4 ;
23622 int res4 = SWIG_TMPOBJ ;
23623 int temp5 ;
23624 int res5 = SWIG_TMPOBJ ;
23625 PyObject *swig_obj[1] ;
23626
23627 arg2 = &temp2;
23628 arg3 = &temp3;
23629 arg4 = &temp4;
23630 arg5 = &temp5;
23631 if (!args) SWIG_fail;
23632 swig_obj[0] = args;
23633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23634 if (!SWIG_IsOK(res1)) {
23635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23636 }
23637 arg1 = reinterpret_cast< wxDC * >(argp1);
23638 {
23639 PyThreadState* __tstate = wxPyBeginAllowThreads();
23640 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23641 wxPyEndAllowThreads(__tstate);
23642 if (PyErr_Occurred()) SWIG_fail;
23643 }
23644 resultobj = SWIG_Py_Void();
23645 if (SWIG_IsTmpObj(res2)) {
23646 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23647 } else {
23648 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23649 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23650 }
23651 if (SWIG_IsTmpObj(res3)) {
23652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23653 } else {
23654 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23656 }
23657 if (SWIG_IsTmpObj(res4)) {
23658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23659 } else {
23660 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23662 }
23663 if (SWIG_IsTmpObj(res5)) {
23664 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23665 } else {
23666 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23667 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23668 }
23669 return resultobj;
23670 fail:
23671 return NULL;
23672 }
23673
23674
23675 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23676 PyObject *resultobj = 0;
23677 wxDC *arg1 = (wxDC *) 0 ;
23678 wxLayoutDirection result;
23679 void *argp1 = 0 ;
23680 int res1 = 0 ;
23681 PyObject *swig_obj[1] ;
23682
23683 if (!args) SWIG_fail;
23684 swig_obj[0] = args;
23685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23686 if (!SWIG_IsOK(res1)) {
23687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23688 }
23689 arg1 = reinterpret_cast< wxDC * >(argp1);
23690 {
23691 PyThreadState* __tstate = wxPyBeginAllowThreads();
23692 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23693 wxPyEndAllowThreads(__tstate);
23694 if (PyErr_Occurred()) SWIG_fail;
23695 }
23696 resultobj = SWIG_From_int(static_cast< int >(result));
23697 return resultobj;
23698 fail:
23699 return NULL;
23700 }
23701
23702
23703 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23704 PyObject *resultobj = 0;
23705 wxDC *arg1 = (wxDC *) 0 ;
23706 wxLayoutDirection arg2 ;
23707 void *argp1 = 0 ;
23708 int res1 = 0 ;
23709 int val2 ;
23710 int ecode2 = 0 ;
23711 PyObject * obj0 = 0 ;
23712 PyObject * obj1 = 0 ;
23713 char * kwnames[] = {
23714 (char *) "self",(char *) "dir", NULL
23715 };
23716
23717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23719 if (!SWIG_IsOK(res1)) {
23720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23721 }
23722 arg1 = reinterpret_cast< wxDC * >(argp1);
23723 ecode2 = SWIG_AsVal_int(obj1, &val2);
23724 if (!SWIG_IsOK(ecode2)) {
23725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23726 }
23727 arg2 = static_cast< wxLayoutDirection >(val2);
23728 {
23729 PyThreadState* __tstate = wxPyBeginAllowThreads();
23730 (arg1)->SetLayoutDirection(arg2);
23731 wxPyEndAllowThreads(__tstate);
23732 if (PyErr_Occurred()) SWIG_fail;
23733 }
23734 resultobj = SWIG_Py_Void();
23735 return resultobj;
23736 fail:
23737 return NULL;
23738 }
23739
23740
23741 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23742 PyObject *resultobj = 0;
23743 wxDC *arg1 = (wxDC *) 0 ;
23744 PyObject *arg2 = (PyObject *) 0 ;
23745 PyObject *arg3 = (PyObject *) 0 ;
23746 PyObject *arg4 = (PyObject *) 0 ;
23747 PyObject *result = 0 ;
23748 void *argp1 = 0 ;
23749 int res1 = 0 ;
23750 PyObject * obj0 = 0 ;
23751 PyObject * obj1 = 0 ;
23752 PyObject * obj2 = 0 ;
23753 PyObject * obj3 = 0 ;
23754 char * kwnames[] = {
23755 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23756 };
23757
23758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23760 if (!SWIG_IsOK(res1)) {
23761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23762 }
23763 arg1 = reinterpret_cast< wxDC * >(argp1);
23764 arg2 = obj1;
23765 arg3 = obj2;
23766 arg4 = obj3;
23767 {
23768 PyThreadState* __tstate = wxPyBeginAllowThreads();
23769 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23770 wxPyEndAllowThreads(__tstate);
23771 if (PyErr_Occurred()) SWIG_fail;
23772 }
23773 resultobj = result;
23774 return resultobj;
23775 fail:
23776 return NULL;
23777 }
23778
23779
23780 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23781 PyObject *resultobj = 0;
23782 wxDC *arg1 = (wxDC *) 0 ;
23783 PyObject *arg2 = (PyObject *) 0 ;
23784 PyObject *arg3 = (PyObject *) 0 ;
23785 PyObject *arg4 = (PyObject *) 0 ;
23786 PyObject *result = 0 ;
23787 void *argp1 = 0 ;
23788 int res1 = 0 ;
23789 PyObject * obj0 = 0 ;
23790 PyObject * obj1 = 0 ;
23791 PyObject * obj2 = 0 ;
23792 PyObject * obj3 = 0 ;
23793 char * kwnames[] = {
23794 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23795 };
23796
23797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23799 if (!SWIG_IsOK(res1)) {
23800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23801 }
23802 arg1 = reinterpret_cast< wxDC * >(argp1);
23803 arg2 = obj1;
23804 arg3 = obj2;
23805 arg4 = obj3;
23806 {
23807 PyThreadState* __tstate = wxPyBeginAllowThreads();
23808 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23809 wxPyEndAllowThreads(__tstate);
23810 if (PyErr_Occurred()) SWIG_fail;
23811 }
23812 resultobj = result;
23813 return resultobj;
23814 fail:
23815 return NULL;
23816 }
23817
23818
23819 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23820 PyObject *resultobj = 0;
23821 wxDC *arg1 = (wxDC *) 0 ;
23822 PyObject *arg2 = (PyObject *) 0 ;
23823 PyObject *arg3 = (PyObject *) 0 ;
23824 PyObject *arg4 = (PyObject *) 0 ;
23825 PyObject *result = 0 ;
23826 void *argp1 = 0 ;
23827 int res1 = 0 ;
23828 PyObject * obj0 = 0 ;
23829 PyObject * obj1 = 0 ;
23830 PyObject * obj2 = 0 ;
23831 PyObject * obj3 = 0 ;
23832 char * kwnames[] = {
23833 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23834 };
23835
23836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23838 if (!SWIG_IsOK(res1)) {
23839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23840 }
23841 arg1 = reinterpret_cast< wxDC * >(argp1);
23842 arg2 = obj1;
23843 arg3 = obj2;
23844 arg4 = obj3;
23845 {
23846 PyThreadState* __tstate = wxPyBeginAllowThreads();
23847 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23848 wxPyEndAllowThreads(__tstate);
23849 if (PyErr_Occurred()) SWIG_fail;
23850 }
23851 resultobj = result;
23852 return resultobj;
23853 fail:
23854 return NULL;
23855 }
23856
23857
23858 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23859 PyObject *resultobj = 0;
23860 wxDC *arg1 = (wxDC *) 0 ;
23861 PyObject *arg2 = (PyObject *) 0 ;
23862 PyObject *arg3 = (PyObject *) 0 ;
23863 PyObject *arg4 = (PyObject *) 0 ;
23864 PyObject *result = 0 ;
23865 void *argp1 = 0 ;
23866 int res1 = 0 ;
23867 PyObject * obj0 = 0 ;
23868 PyObject * obj1 = 0 ;
23869 PyObject * obj2 = 0 ;
23870 PyObject * obj3 = 0 ;
23871 char * kwnames[] = {
23872 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23873 };
23874
23875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23877 if (!SWIG_IsOK(res1)) {
23878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23879 }
23880 arg1 = reinterpret_cast< wxDC * >(argp1);
23881 arg2 = obj1;
23882 arg3 = obj2;
23883 arg4 = obj3;
23884 {
23885 PyThreadState* __tstate = wxPyBeginAllowThreads();
23886 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23887 wxPyEndAllowThreads(__tstate);
23888 if (PyErr_Occurred()) SWIG_fail;
23889 }
23890 resultobj = result;
23891 return resultobj;
23892 fail:
23893 return NULL;
23894 }
23895
23896
23897 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23898 PyObject *resultobj = 0;
23899 wxDC *arg1 = (wxDC *) 0 ;
23900 PyObject *arg2 = (PyObject *) 0 ;
23901 PyObject *arg3 = (PyObject *) 0 ;
23902 PyObject *arg4 = (PyObject *) 0 ;
23903 PyObject *result = 0 ;
23904 void *argp1 = 0 ;
23905 int res1 = 0 ;
23906 PyObject * obj0 = 0 ;
23907 PyObject * obj1 = 0 ;
23908 PyObject * obj2 = 0 ;
23909 PyObject * obj3 = 0 ;
23910 char * kwnames[] = {
23911 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23912 };
23913
23914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23916 if (!SWIG_IsOK(res1)) {
23917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23918 }
23919 arg1 = reinterpret_cast< wxDC * >(argp1);
23920 arg2 = obj1;
23921 arg3 = obj2;
23922 arg4 = obj3;
23923 {
23924 PyThreadState* __tstate = wxPyBeginAllowThreads();
23925 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23926 wxPyEndAllowThreads(__tstate);
23927 if (PyErr_Occurred()) SWIG_fail;
23928 }
23929 resultobj = result;
23930 return resultobj;
23931 fail:
23932 return NULL;
23933 }
23934
23935
23936 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23937 PyObject *resultobj = 0;
23938 wxDC *arg1 = (wxDC *) 0 ;
23939 PyObject *arg2 = (PyObject *) 0 ;
23940 PyObject *arg3 = (PyObject *) 0 ;
23941 PyObject *arg4 = (PyObject *) 0 ;
23942 PyObject *arg5 = (PyObject *) 0 ;
23943 PyObject *result = 0 ;
23944 void *argp1 = 0 ;
23945 int res1 = 0 ;
23946 PyObject * obj0 = 0 ;
23947 PyObject * obj1 = 0 ;
23948 PyObject * obj2 = 0 ;
23949 PyObject * obj3 = 0 ;
23950 PyObject * obj4 = 0 ;
23951 char * kwnames[] = {
23952 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23953 };
23954
23955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23957 if (!SWIG_IsOK(res1)) {
23958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23959 }
23960 arg1 = reinterpret_cast< wxDC * >(argp1);
23961 arg2 = obj1;
23962 arg3 = obj2;
23963 arg4 = obj3;
23964 arg5 = obj4;
23965 {
23966 PyThreadState* __tstate = wxPyBeginAllowThreads();
23967 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23968 wxPyEndAllowThreads(__tstate);
23969 if (PyErr_Occurred()) SWIG_fail;
23970 }
23971 resultobj = result;
23972 return resultobj;
23973 fail:
23974 return NULL;
23975 }
23976
23977
23978 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23979 PyObject *obj;
23980 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23981 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23982 return SWIG_Py_Void();
23983 }
23984
23985 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23986 PyObject *resultobj = 0;
23987 wxDC *arg1 = 0 ;
23988 wxColour *arg2 = 0 ;
23989 wxDCTextColourChanger *result = 0 ;
23990 void *argp1 = 0 ;
23991 int res1 = 0 ;
23992 wxColour temp2 ;
23993 PyObject * obj0 = 0 ;
23994 PyObject * obj1 = 0 ;
23995 char * kwnames[] = {
23996 (char *) "dc",(char *) "col", NULL
23997 };
23998
23999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24000 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24001 if (!SWIG_IsOK(res1)) {
24002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24003 }
24004 if (!argp1) {
24005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24006 }
24007 arg1 = reinterpret_cast< wxDC * >(argp1);
24008 {
24009 arg2 = &temp2;
24010 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24011 }
24012 {
24013 PyThreadState* __tstate = wxPyBeginAllowThreads();
24014 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
24015 wxPyEndAllowThreads(__tstate);
24016 if (PyErr_Occurred()) SWIG_fail;
24017 }
24018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
24019 return resultobj;
24020 fail:
24021 return NULL;
24022 }
24023
24024
24025 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24026 PyObject *resultobj = 0;
24027 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
24028 void *argp1 = 0 ;
24029 int res1 = 0 ;
24030 PyObject *swig_obj[1] ;
24031
24032 if (!args) SWIG_fail;
24033 swig_obj[0] = args;
24034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
24035 if (!SWIG_IsOK(res1)) {
24036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
24037 }
24038 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
24039 {
24040 PyThreadState* __tstate = wxPyBeginAllowThreads();
24041 delete arg1;
24042
24043 wxPyEndAllowThreads(__tstate);
24044 if (PyErr_Occurred()) SWIG_fail;
24045 }
24046 resultobj = SWIG_Py_Void();
24047 return resultobj;
24048 fail:
24049 return NULL;
24050 }
24051
24052
24053 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24054 PyObject *obj;
24055 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24056 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
24057 return SWIG_Py_Void();
24058 }
24059
24060 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24061 return SWIG_Python_InitShadowInstance(args);
24062 }
24063
24064 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24065 PyObject *resultobj = 0;
24066 wxDC *arg1 = 0 ;
24067 wxPen *arg2 = 0 ;
24068 wxDCPenChanger *result = 0 ;
24069 void *argp1 = 0 ;
24070 int res1 = 0 ;
24071 void *argp2 = 0 ;
24072 int res2 = 0 ;
24073 PyObject * obj0 = 0 ;
24074 PyObject * obj1 = 0 ;
24075 char * kwnames[] = {
24076 (char *) "dc",(char *) "pen", NULL
24077 };
24078
24079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24080 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24081 if (!SWIG_IsOK(res1)) {
24082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24083 }
24084 if (!argp1) {
24085 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24086 }
24087 arg1 = reinterpret_cast< wxDC * >(argp1);
24088 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
24089 if (!SWIG_IsOK(res2)) {
24090 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24091 }
24092 if (!argp2) {
24093 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24094 }
24095 arg2 = reinterpret_cast< wxPen * >(argp2);
24096 {
24097 PyThreadState* __tstate = wxPyBeginAllowThreads();
24098 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
24099 wxPyEndAllowThreads(__tstate);
24100 if (PyErr_Occurred()) SWIG_fail;
24101 }
24102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
24103 return resultobj;
24104 fail:
24105 return NULL;
24106 }
24107
24108
24109 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24110 PyObject *resultobj = 0;
24111 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
24112 void *argp1 = 0 ;
24113 int res1 = 0 ;
24114 PyObject *swig_obj[1] ;
24115
24116 if (!args) SWIG_fail;
24117 swig_obj[0] = args;
24118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
24119 if (!SWIG_IsOK(res1)) {
24120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
24121 }
24122 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
24123 {
24124 PyThreadState* __tstate = wxPyBeginAllowThreads();
24125 delete arg1;
24126
24127 wxPyEndAllowThreads(__tstate);
24128 if (PyErr_Occurred()) SWIG_fail;
24129 }
24130 resultobj = SWIG_Py_Void();
24131 return resultobj;
24132 fail:
24133 return NULL;
24134 }
24135
24136
24137 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24138 PyObject *obj;
24139 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24140 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
24141 return SWIG_Py_Void();
24142 }
24143
24144 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24145 return SWIG_Python_InitShadowInstance(args);
24146 }
24147
24148 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24149 PyObject *resultobj = 0;
24150 wxDC *arg1 = 0 ;
24151 wxBrush *arg2 = 0 ;
24152 wxDCBrushChanger *result = 0 ;
24153 void *argp1 = 0 ;
24154 int res1 = 0 ;
24155 void *argp2 = 0 ;
24156 int res2 = 0 ;
24157 PyObject * obj0 = 0 ;
24158 PyObject * obj1 = 0 ;
24159 char * kwnames[] = {
24160 (char *) "dc",(char *) "brush", NULL
24161 };
24162
24163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24164 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24165 if (!SWIG_IsOK(res1)) {
24166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24167 }
24168 if (!argp1) {
24169 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24170 }
24171 arg1 = reinterpret_cast< wxDC * >(argp1);
24172 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24173 if (!SWIG_IsOK(res2)) {
24174 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24175 }
24176 if (!argp2) {
24177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24178 }
24179 arg2 = reinterpret_cast< wxBrush * >(argp2);
24180 {
24181 PyThreadState* __tstate = wxPyBeginAllowThreads();
24182 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24183 wxPyEndAllowThreads(__tstate);
24184 if (PyErr_Occurred()) SWIG_fail;
24185 }
24186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24187 return resultobj;
24188 fail:
24189 return NULL;
24190 }
24191
24192
24193 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24194 PyObject *resultobj = 0;
24195 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24196 void *argp1 = 0 ;
24197 int res1 = 0 ;
24198 PyObject *swig_obj[1] ;
24199
24200 if (!args) SWIG_fail;
24201 swig_obj[0] = args;
24202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24203 if (!SWIG_IsOK(res1)) {
24204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24205 }
24206 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24207 {
24208 PyThreadState* __tstate = wxPyBeginAllowThreads();
24209 delete arg1;
24210
24211 wxPyEndAllowThreads(__tstate);
24212 if (PyErr_Occurred()) SWIG_fail;
24213 }
24214 resultobj = SWIG_Py_Void();
24215 return resultobj;
24216 fail:
24217 return NULL;
24218 }
24219
24220
24221 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24222 PyObject *obj;
24223 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24224 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24225 return SWIG_Py_Void();
24226 }
24227
24228 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24229 return SWIG_Python_InitShadowInstance(args);
24230 }
24231
24232 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24233 PyObject *resultobj = 0;
24234 wxDC *arg1 = 0 ;
24235 wxRegion *arg2 = 0 ;
24236 wxDCClipper *result = 0 ;
24237 void *argp1 = 0 ;
24238 int res1 = 0 ;
24239 void *argp2 = 0 ;
24240 int res2 = 0 ;
24241
24242 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24244 if (!SWIG_IsOK(res1)) {
24245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24246 }
24247 if (!argp1) {
24248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24249 }
24250 arg1 = reinterpret_cast< wxDC * >(argp1);
24251 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24252 if (!SWIG_IsOK(res2)) {
24253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24254 }
24255 if (!argp2) {
24256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24257 }
24258 arg2 = reinterpret_cast< wxRegion * >(argp2);
24259 {
24260 PyThreadState* __tstate = wxPyBeginAllowThreads();
24261 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24262 wxPyEndAllowThreads(__tstate);
24263 if (PyErr_Occurred()) SWIG_fail;
24264 }
24265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24266 return resultobj;
24267 fail:
24268 return NULL;
24269 }
24270
24271
24272 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24273 PyObject *resultobj = 0;
24274 wxDC *arg1 = 0 ;
24275 wxRect *arg2 = 0 ;
24276 wxDCClipper *result = 0 ;
24277 void *argp1 = 0 ;
24278 int res1 = 0 ;
24279 wxRect temp2 ;
24280
24281 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24283 if (!SWIG_IsOK(res1)) {
24284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24285 }
24286 if (!argp1) {
24287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24288 }
24289 arg1 = reinterpret_cast< wxDC * >(argp1);
24290 {
24291 arg2 = &temp2;
24292 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24293 }
24294 {
24295 PyThreadState* __tstate = wxPyBeginAllowThreads();
24296 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24297 wxPyEndAllowThreads(__tstate);
24298 if (PyErr_Occurred()) SWIG_fail;
24299 }
24300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24301 return resultobj;
24302 fail:
24303 return NULL;
24304 }
24305
24306
24307 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24308 PyObject *resultobj = 0;
24309 wxDC *arg1 = 0 ;
24310 int arg2 ;
24311 int arg3 ;
24312 int arg4 ;
24313 int arg5 ;
24314 wxDCClipper *result = 0 ;
24315 void *argp1 = 0 ;
24316 int res1 = 0 ;
24317 int val2 ;
24318 int ecode2 = 0 ;
24319 int val3 ;
24320 int ecode3 = 0 ;
24321 int val4 ;
24322 int ecode4 = 0 ;
24323 int val5 ;
24324 int ecode5 = 0 ;
24325
24326 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24328 if (!SWIG_IsOK(res1)) {
24329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24330 }
24331 if (!argp1) {
24332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24333 }
24334 arg1 = reinterpret_cast< wxDC * >(argp1);
24335 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24336 if (!SWIG_IsOK(ecode2)) {
24337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
24338 }
24339 arg2 = static_cast< int >(val2);
24340 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24341 if (!SWIG_IsOK(ecode3)) {
24342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
24343 }
24344 arg3 = static_cast< int >(val3);
24345 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24346 if (!SWIG_IsOK(ecode4)) {
24347 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
24348 }
24349 arg4 = static_cast< int >(val4);
24350 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
24351 if (!SWIG_IsOK(ecode5)) {
24352 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
24353 }
24354 arg5 = static_cast< int >(val5);
24355 {
24356 PyThreadState* __tstate = wxPyBeginAllowThreads();
24357 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
24358 wxPyEndAllowThreads(__tstate);
24359 if (PyErr_Occurred()) SWIG_fail;
24360 }
24361 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24362 return resultobj;
24363 fail:
24364 return NULL;
24365 }
24366
24367
24368 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
24369 int argc;
24370 PyObject *argv[6];
24371
24372 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
24373 --argc;
24374 if (argc == 2) {
24375 int _v = 0;
24376 {
24377 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
24378 _v = SWIG_CheckState(res);
24379 }
24380 if (!_v) goto check_1;
24381 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
24382 }
24383 check_1:
24384
24385 if (argc == 2) {
24386 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
24387 }
24388 if (argc == 5) {
24389 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
24390 }
24391
24392 fail:
24393 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
24394 return NULL;
24395 }
24396
24397
24398 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24399 PyObject *resultobj = 0;
24400 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
24401 void *argp1 = 0 ;
24402 int res1 = 0 ;
24403 PyObject *swig_obj[1] ;
24404
24405 if (!args) SWIG_fail;
24406 swig_obj[0] = args;
24407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
24408 if (!SWIG_IsOK(res1)) {
24409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
24410 }
24411 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
24412 {
24413 PyThreadState* __tstate = wxPyBeginAllowThreads();
24414 delete arg1;
24415
24416 wxPyEndAllowThreads(__tstate);
24417 if (PyErr_Occurred()) SWIG_fail;
24418 }
24419 resultobj = SWIG_Py_Void();
24420 return resultobj;
24421 fail:
24422 return NULL;
24423 }
24424
24425
24426 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24427 PyObject *obj;
24428 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24429 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
24430 return SWIG_Py_Void();
24431 }
24432
24433 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24434 return SWIG_Python_InitShadowInstance(args);
24435 }
24436
24437 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24438 PyObject *resultobj = 0;
24439 wxScreenDC *result = 0 ;
24440
24441 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24442 {
24443 if (!wxPyCheckForApp()) SWIG_fail;
24444 PyThreadState* __tstate = wxPyBeginAllowThreads();
24445 result = (wxScreenDC *)new wxScreenDC();
24446 wxPyEndAllowThreads(__tstate);
24447 if (PyErr_Occurred()) SWIG_fail;
24448 }
24449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24450 return resultobj;
24451 fail:
24452 return NULL;
24453 }
24454
24455
24456 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24457 PyObject *resultobj = 0;
24458 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24459 wxWindow *arg2 = (wxWindow *) 0 ;
24460 bool result;
24461 void *argp1 = 0 ;
24462 int res1 = 0 ;
24463 void *argp2 = 0 ;
24464 int res2 = 0 ;
24465 PyObject * obj0 = 0 ;
24466 PyObject * obj1 = 0 ;
24467 char * kwnames[] = {
24468 (char *) "self",(char *) "window", NULL
24469 };
24470
24471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24473 if (!SWIG_IsOK(res1)) {
24474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24475 }
24476 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24477 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24478 if (!SWIG_IsOK(res2)) {
24479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24480 }
24481 arg2 = reinterpret_cast< wxWindow * >(argp2);
24482 {
24483 PyThreadState* __tstate = wxPyBeginAllowThreads();
24484 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24485 wxPyEndAllowThreads(__tstate);
24486 if (PyErr_Occurred()) SWIG_fail;
24487 }
24488 {
24489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24490 }
24491 return resultobj;
24492 fail:
24493 return NULL;
24494 }
24495
24496
24497 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24498 PyObject *resultobj = 0;
24499 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24500 wxRect *arg2 = (wxRect *) NULL ;
24501 bool result;
24502 void *argp1 = 0 ;
24503 int res1 = 0 ;
24504 void *argp2 = 0 ;
24505 int res2 = 0 ;
24506 PyObject * obj0 = 0 ;
24507 PyObject * obj1 = 0 ;
24508 char * kwnames[] = {
24509 (char *) "self",(char *) "rect", NULL
24510 };
24511
24512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24514 if (!SWIG_IsOK(res1)) {
24515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24516 }
24517 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24518 if (obj1) {
24519 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24520 if (!SWIG_IsOK(res2)) {
24521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24522 }
24523 arg2 = reinterpret_cast< wxRect * >(argp2);
24524 }
24525 {
24526 PyThreadState* __tstate = wxPyBeginAllowThreads();
24527 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24528 wxPyEndAllowThreads(__tstate);
24529 if (PyErr_Occurred()) SWIG_fail;
24530 }
24531 {
24532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24533 }
24534 return resultobj;
24535 fail:
24536 return NULL;
24537 }
24538
24539
24540 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24541 PyObject *resultobj = 0;
24542 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24543 bool result;
24544 void *argp1 = 0 ;
24545 int res1 = 0 ;
24546 PyObject *swig_obj[1] ;
24547
24548 if (!args) SWIG_fail;
24549 swig_obj[0] = args;
24550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24551 if (!SWIG_IsOK(res1)) {
24552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24553 }
24554 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24555 {
24556 PyThreadState* __tstate = wxPyBeginAllowThreads();
24557 result = (bool)(arg1)->EndDrawingOnTop();
24558 wxPyEndAllowThreads(__tstate);
24559 if (PyErr_Occurred()) SWIG_fail;
24560 }
24561 {
24562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24563 }
24564 return resultobj;
24565 fail:
24566 return NULL;
24567 }
24568
24569
24570 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24571 PyObject *obj;
24572 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24573 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24574 return SWIG_Py_Void();
24575 }
24576
24577 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24578 return SWIG_Python_InitShadowInstance(args);
24579 }
24580
24581 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24582 PyObject *resultobj = 0;
24583 wxWindow *arg1 = (wxWindow *) 0 ;
24584 wxWindowDC *result = 0 ;
24585 void *argp1 = 0 ;
24586 int res1 = 0 ;
24587 PyObject * obj0 = 0 ;
24588 char * kwnames[] = {
24589 (char *) "win", NULL
24590 };
24591
24592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24594 if (!SWIG_IsOK(res1)) {
24595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24596 }
24597 arg1 = reinterpret_cast< wxWindow * >(argp1);
24598 {
24599 if (!wxPyCheckForApp()) SWIG_fail;
24600 PyThreadState* __tstate = wxPyBeginAllowThreads();
24601 result = (wxWindowDC *)new wxWindowDC(arg1);
24602 wxPyEndAllowThreads(__tstate);
24603 if (PyErr_Occurred()) SWIG_fail;
24604 }
24605 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24606 return resultobj;
24607 fail:
24608 return NULL;
24609 }
24610
24611
24612 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24613 PyObject *obj;
24614 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24615 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24616 return SWIG_Py_Void();
24617 }
24618
24619 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24620 return SWIG_Python_InitShadowInstance(args);
24621 }
24622
24623 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24624 PyObject *resultobj = 0;
24625 wxWindow *arg1 = (wxWindow *) 0 ;
24626 wxClientDC *result = 0 ;
24627 void *argp1 = 0 ;
24628 int res1 = 0 ;
24629 PyObject * obj0 = 0 ;
24630 char * kwnames[] = {
24631 (char *) "win", NULL
24632 };
24633
24634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24636 if (!SWIG_IsOK(res1)) {
24637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24638 }
24639 arg1 = reinterpret_cast< wxWindow * >(argp1);
24640 {
24641 if (!wxPyCheckForApp()) SWIG_fail;
24642 PyThreadState* __tstate = wxPyBeginAllowThreads();
24643 result = (wxClientDC *)new wxClientDC(arg1);
24644 wxPyEndAllowThreads(__tstate);
24645 if (PyErr_Occurred()) SWIG_fail;
24646 }
24647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24648 return resultobj;
24649 fail:
24650 return NULL;
24651 }
24652
24653
24654 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24655 PyObject *obj;
24656 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24657 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24658 return SWIG_Py_Void();
24659 }
24660
24661 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24662 return SWIG_Python_InitShadowInstance(args);
24663 }
24664
24665 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24666 PyObject *resultobj = 0;
24667 wxWindow *arg1 = (wxWindow *) 0 ;
24668 wxPaintDC *result = 0 ;
24669 void *argp1 = 0 ;
24670 int res1 = 0 ;
24671 PyObject * obj0 = 0 ;
24672 char * kwnames[] = {
24673 (char *) "win", NULL
24674 };
24675
24676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24678 if (!SWIG_IsOK(res1)) {
24679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24680 }
24681 arg1 = reinterpret_cast< wxWindow * >(argp1);
24682 {
24683 if (!wxPyCheckForApp()) SWIG_fail;
24684 PyThreadState* __tstate = wxPyBeginAllowThreads();
24685 result = (wxPaintDC *)new wxPaintDC(arg1);
24686 wxPyEndAllowThreads(__tstate);
24687 if (PyErr_Occurred()) SWIG_fail;
24688 }
24689 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24690 return resultobj;
24691 fail:
24692 return NULL;
24693 }
24694
24695
24696 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24697 PyObject *obj;
24698 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24699 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24700 return SWIG_Py_Void();
24701 }
24702
24703 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24704 return SWIG_Python_InitShadowInstance(args);
24705 }
24706
24707 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24708 PyObject *resultobj = 0;
24709 wxBitmap &arg1_defvalue = wxNullBitmap ;
24710 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24711 wxMemoryDC *result = 0 ;
24712 void *argp1 = 0 ;
24713 int res1 = 0 ;
24714 PyObject * obj0 = 0 ;
24715 char * kwnames[] = {
24716 (char *) "bitmap", NULL
24717 };
24718
24719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24720 if (obj0) {
24721 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24722 if (!SWIG_IsOK(res1)) {
24723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24724 }
24725 if (!argp1) {
24726 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24727 }
24728 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24729 }
24730 {
24731 if (!wxPyCheckForApp()) SWIG_fail;
24732 PyThreadState* __tstate = wxPyBeginAllowThreads();
24733 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24734 wxPyEndAllowThreads(__tstate);
24735 if (PyErr_Occurred()) SWIG_fail;
24736 }
24737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24738 return resultobj;
24739 fail:
24740 return NULL;
24741 }
24742
24743
24744 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24745 PyObject *resultobj = 0;
24746 wxDC *arg1 = (wxDC *) 0 ;
24747 wxMemoryDC *result = 0 ;
24748 void *argp1 = 0 ;
24749 int res1 = 0 ;
24750 PyObject * obj0 = 0 ;
24751 char * kwnames[] = {
24752 (char *) "oldDC", NULL
24753 };
24754
24755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24757 if (!SWIG_IsOK(res1)) {
24758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24759 }
24760 arg1 = reinterpret_cast< wxDC * >(argp1);
24761 {
24762 if (!wxPyCheckForApp()) SWIG_fail;
24763 PyThreadState* __tstate = wxPyBeginAllowThreads();
24764 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24765 wxPyEndAllowThreads(__tstate);
24766 if (PyErr_Occurred()) SWIG_fail;
24767 }
24768 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24769 return resultobj;
24770 fail:
24771 return NULL;
24772 }
24773
24774
24775 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24776 PyObject *resultobj = 0;
24777 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24778 wxBitmap *arg2 = 0 ;
24779 void *argp1 = 0 ;
24780 int res1 = 0 ;
24781 void *argp2 = 0 ;
24782 int res2 = 0 ;
24783 PyObject * obj0 = 0 ;
24784 PyObject * obj1 = 0 ;
24785 char * kwnames[] = {
24786 (char *) "self",(char *) "bitmap", NULL
24787 };
24788
24789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24791 if (!SWIG_IsOK(res1)) {
24792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24793 }
24794 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24796 if (!SWIG_IsOK(res2)) {
24797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24798 }
24799 if (!argp2) {
24800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24801 }
24802 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24803 {
24804 PyThreadState* __tstate = wxPyBeginAllowThreads();
24805 (arg1)->SelectObject(*arg2);
24806 wxPyEndAllowThreads(__tstate);
24807 if (PyErr_Occurred()) SWIG_fail;
24808 }
24809 resultobj = SWIG_Py_Void();
24810 return resultobj;
24811 fail:
24812 return NULL;
24813 }
24814
24815
24816 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24817 PyObject *resultobj = 0;
24818 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24819 wxBitmap *arg2 = 0 ;
24820 void *argp1 = 0 ;
24821 int res1 = 0 ;
24822 void *argp2 = 0 ;
24823 int res2 = 0 ;
24824 PyObject * obj0 = 0 ;
24825 PyObject * obj1 = 0 ;
24826 char * kwnames[] = {
24827 (char *) "self",(char *) "bmp", NULL
24828 };
24829
24830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24832 if (!SWIG_IsOK(res1)) {
24833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24834 }
24835 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24836 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24837 if (!SWIG_IsOK(res2)) {
24838 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24839 }
24840 if (!argp2) {
24841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24842 }
24843 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24844 {
24845 PyThreadState* __tstate = wxPyBeginAllowThreads();
24846 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24847 wxPyEndAllowThreads(__tstate);
24848 if (PyErr_Occurred()) SWIG_fail;
24849 }
24850 resultobj = SWIG_Py_Void();
24851 return resultobj;
24852 fail:
24853 return NULL;
24854 }
24855
24856
24857 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24858 PyObject *obj;
24859 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24860 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24861 return SWIG_Py_Void();
24862 }
24863
24864 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24865 return SWIG_Python_InitShadowInstance(args);
24866 }
24867
24868 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24869 PyObject *resultobj = 0;
24870 wxDC *arg1 = (wxDC *) 0 ;
24871 wxBitmap &arg2_defvalue = wxNullBitmap ;
24872 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24873 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24874 wxBufferedDC *result = 0 ;
24875 void *argp1 = 0 ;
24876 int res1 = 0 ;
24877 void *argp2 = 0 ;
24878 int res2 = 0 ;
24879 int val3 ;
24880 int ecode3 = 0 ;
24881
24882 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24884 if (!SWIG_IsOK(res1)) {
24885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24886 }
24887 arg1 = reinterpret_cast< wxDC * >(argp1);
24888 if (swig_obj[1]) {
24889 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
24890 if (!SWIG_IsOK(res2)) {
24891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24892 }
24893 if (!argp2) {
24894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24895 }
24896 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24897 }
24898 if (swig_obj[2]) {
24899 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24900 if (!SWIG_IsOK(ecode3)) {
24901 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24902 }
24903 arg3 = static_cast< int >(val3);
24904 }
24905 {
24906 if (!wxPyCheckForApp()) SWIG_fail;
24907 PyThreadState* __tstate = wxPyBeginAllowThreads();
24908 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
24909 wxPyEndAllowThreads(__tstate);
24910 if (PyErr_Occurred()) SWIG_fail;
24911 }
24912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24913 return resultobj;
24914 fail:
24915 return NULL;
24916 }
24917
24918
24919 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24920 PyObject *resultobj = 0;
24921 wxDC *arg1 = (wxDC *) 0 ;
24922 wxSize *arg2 = 0 ;
24923 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24924 wxBufferedDC *result = 0 ;
24925 void *argp1 = 0 ;
24926 int res1 = 0 ;
24927 wxSize temp2 ;
24928 int val3 ;
24929 int ecode3 = 0 ;
24930
24931 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24933 if (!SWIG_IsOK(res1)) {
24934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24935 }
24936 arg1 = reinterpret_cast< wxDC * >(argp1);
24937 {
24938 arg2 = &temp2;
24939 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24940 }
24941 if (swig_obj[2]) {
24942 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24943 if (!SWIG_IsOK(ecode3)) {
24944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24945 }
24946 arg3 = static_cast< int >(val3);
24947 }
24948 {
24949 if (!wxPyCheckForApp()) SWIG_fail;
24950 PyThreadState* __tstate = wxPyBeginAllowThreads();
24951 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24952 wxPyEndAllowThreads(__tstate);
24953 if (PyErr_Occurred()) SWIG_fail;
24954 }
24955 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24956 return resultobj;
24957 fail:
24958 return NULL;
24959 }
24960
24961
24962 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24963 int argc;
24964 PyObject *argv[4];
24965
24966 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
24967 --argc;
24968 if ((argc >= 1) && (argc <= 3)) {
24969 int _v = 0;
24970 if (argc > 1) {
24971 {
24972 void *vptr = 0;
24973 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
24974 _v = SWIG_CheckState(res);
24975 }
24976 if (!_v) goto check_1;
24977 }
24978 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24979 }
24980 check_1:
24981
24982 if ((argc >= 2) && (argc <= 3)) {
24983 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24984 }
24985
24986 fail:
24987 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24988 return NULL;
24989 }
24990
24991
24992 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24993 PyObject *resultobj = 0;
24994 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24995 void *argp1 = 0 ;
24996 int res1 = 0 ;
24997 PyObject *swig_obj[1] ;
24998
24999 if (!args) SWIG_fail;
25000 swig_obj[0] = args;
25001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
25002 if (!SWIG_IsOK(res1)) {
25003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25004 }
25005 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25006 {
25007 PyThreadState* __tstate = wxPyBeginAllowThreads();
25008 delete arg1;
25009
25010 wxPyEndAllowThreads(__tstate);
25011 if (PyErr_Occurred()) SWIG_fail;
25012 }
25013 resultobj = SWIG_Py_Void();
25014 return resultobj;
25015 fail:
25016 return NULL;
25017 }
25018
25019
25020 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25021 PyObject *resultobj = 0;
25022 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25023 void *argp1 = 0 ;
25024 int res1 = 0 ;
25025 PyObject *swig_obj[1] ;
25026
25027 if (!args) SWIG_fail;
25028 swig_obj[0] = args;
25029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25030 if (!SWIG_IsOK(res1)) {
25031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25032 }
25033 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25034 {
25035 PyThreadState* __tstate = wxPyBeginAllowThreads();
25036 (arg1)->UnMask();
25037 wxPyEndAllowThreads(__tstate);
25038 if (PyErr_Occurred()) SWIG_fail;
25039 }
25040 resultobj = SWIG_Py_Void();
25041 return resultobj;
25042 fail:
25043 return NULL;
25044 }
25045
25046
25047 SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25048 PyObject *resultobj = 0;
25049 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25050 int arg2 ;
25051 void *argp1 = 0 ;
25052 int res1 = 0 ;
25053 int val2 ;
25054 int ecode2 = 0 ;
25055 PyObject * obj0 = 0 ;
25056 PyObject * obj1 = 0 ;
25057 char * kwnames[] = {
25058 (char *) "self",(char *) "style", NULL
25059 };
25060
25061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
25062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25063 if (!SWIG_IsOK(res1)) {
25064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25065 }
25066 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25067 ecode2 = SWIG_AsVal_int(obj1, &val2);
25068 if (!SWIG_IsOK(ecode2)) {
25069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
25070 }
25071 arg2 = static_cast< int >(val2);
25072 {
25073 PyThreadState* __tstate = wxPyBeginAllowThreads();
25074 (arg1)->SetStyle(arg2);
25075 wxPyEndAllowThreads(__tstate);
25076 if (PyErr_Occurred()) SWIG_fail;
25077 }
25078 resultobj = SWIG_Py_Void();
25079 return resultobj;
25080 fail:
25081 return NULL;
25082 }
25083
25084
25085 SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25086 PyObject *resultobj = 0;
25087 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25088 int result;
25089 void *argp1 = 0 ;
25090 int res1 = 0 ;
25091 PyObject *swig_obj[1] ;
25092
25093 if (!args) SWIG_fail;
25094 swig_obj[0] = args;
25095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25096 if (!SWIG_IsOK(res1)) {
25097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
25098 }
25099 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25100 {
25101 PyThreadState* __tstate = wxPyBeginAllowThreads();
25102 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
25103 wxPyEndAllowThreads(__tstate);
25104 if (PyErr_Occurred()) SWIG_fail;
25105 }
25106 resultobj = SWIG_From_int(static_cast< int >(result));
25107 return resultobj;
25108 fail:
25109 return NULL;
25110 }
25111
25112
25113 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25114 PyObject *obj;
25115 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25116 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
25117 return SWIG_Py_Void();
25118 }
25119
25120 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25121 return SWIG_Python_InitShadowInstance(args);
25122 }
25123
25124 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25125 PyObject *resultobj = 0;
25126 wxWindow *arg1 = (wxWindow *) 0 ;
25127 wxBitmap &arg2_defvalue = wxNullBitmap ;
25128 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25129 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25130 wxBufferedPaintDC *result = 0 ;
25131 void *argp1 = 0 ;
25132 int res1 = 0 ;
25133 void *argp2 = 0 ;
25134 int res2 = 0 ;
25135 int val3 ;
25136 int ecode3 = 0 ;
25137 PyObject * obj0 = 0 ;
25138 PyObject * obj1 = 0 ;
25139 PyObject * obj2 = 0 ;
25140 char * kwnames[] = {
25141 (char *) "window",(char *) "buffer",(char *) "style", NULL
25142 };
25143
25144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25146 if (!SWIG_IsOK(res1)) {
25147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25148 }
25149 arg1 = reinterpret_cast< wxWindow * >(argp1);
25150 if (obj1) {
25151 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
25152 if (!SWIG_IsOK(res2)) {
25153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25154 }
25155 if (!argp2) {
25156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25157 }
25158 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25159 }
25160 if (obj2) {
25161 ecode3 = SWIG_AsVal_int(obj2, &val3);
25162 if (!SWIG_IsOK(ecode3)) {
25163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25164 }
25165 arg3 = static_cast< int >(val3);
25166 }
25167 {
25168 if (!wxPyCheckForApp()) SWIG_fail;
25169 PyThreadState* __tstate = wxPyBeginAllowThreads();
25170 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
25171 wxPyEndAllowThreads(__tstate);
25172 if (PyErr_Occurred()) SWIG_fail;
25173 }
25174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25175 return resultobj;
25176 fail:
25177 return NULL;
25178 }
25179
25180
25181 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25182 PyObject *obj;
25183 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25184 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25185 return SWIG_Py_Void();
25186 }
25187
25188 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25189 return SWIG_Python_InitShadowInstance(args);
25190 }
25191
25192 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25193 PyObject *resultobj = 0;
25194 wxWindow *arg1 = (wxWindow *) 0 ;
25195 wxAutoBufferedPaintDC *result = 0 ;
25196 void *argp1 = 0 ;
25197 int res1 = 0 ;
25198 PyObject * obj0 = 0 ;
25199 char * kwnames[] = {
25200 (char *) "win", NULL
25201 };
25202
25203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
25204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25205 if (!SWIG_IsOK(res1)) {
25206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25207 }
25208 arg1 = reinterpret_cast< wxWindow * >(argp1);
25209 {
25210 PyThreadState* __tstate = wxPyBeginAllowThreads();
25211 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
25212 wxPyEndAllowThreads(__tstate);
25213 if (PyErr_Occurred()) SWIG_fail;
25214 }
25215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25216 return resultobj;
25217 fail:
25218 return NULL;
25219 }
25220
25221
25222 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25223 PyObject *obj;
25224 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25225 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
25226 return SWIG_Py_Void();
25227 }
25228
25229 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25230 return SWIG_Python_InitShadowInstance(args);
25231 }
25232
25233 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25234 PyObject *resultobj = 0;
25235 wxWindow *arg1 = (wxWindow *) 0 ;
25236 wxDC *result = 0 ;
25237 void *argp1 = 0 ;
25238 int res1 = 0 ;
25239 PyObject * obj0 = 0 ;
25240 char * kwnames[] = {
25241 (char *) "window", NULL
25242 };
25243
25244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25246 if (!SWIG_IsOK(res1)) {
25247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25248 }
25249 arg1 = reinterpret_cast< wxWindow * >(argp1);
25250 {
25251 PyThreadState* __tstate = wxPyBeginAllowThreads();
25252 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25253 wxPyEndAllowThreads(__tstate);
25254 if (PyErr_Occurred()) SWIG_fail;
25255 }
25256 {
25257 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25258 }
25259 return resultobj;
25260 fail:
25261 return NULL;
25262 }
25263
25264
25265 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25266 PyObject *resultobj = 0;
25267 wxDC *arg1 = 0 ;
25268 bool arg2 ;
25269 wxMirrorDC *result = 0 ;
25270 void *argp1 = 0 ;
25271 int res1 = 0 ;
25272 bool val2 ;
25273 int ecode2 = 0 ;
25274 PyObject * obj0 = 0 ;
25275 PyObject * obj1 = 0 ;
25276 char * kwnames[] = {
25277 (char *) "dc",(char *) "mirror", NULL
25278 };
25279
25280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25281 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25282 if (!SWIG_IsOK(res1)) {
25283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25284 }
25285 if (!argp1) {
25286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25287 }
25288 arg1 = reinterpret_cast< wxDC * >(argp1);
25289 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25290 if (!SWIG_IsOK(ecode2)) {
25291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25292 }
25293 arg2 = static_cast< bool >(val2);
25294 {
25295 if (!wxPyCheckForApp()) SWIG_fail;
25296 PyThreadState* __tstate = wxPyBeginAllowThreads();
25297 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25298 wxPyEndAllowThreads(__tstate);
25299 if (PyErr_Occurred()) SWIG_fail;
25300 }
25301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25302 return resultobj;
25303 fail:
25304 return NULL;
25305 }
25306
25307
25308 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25309 PyObject *obj;
25310 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25311 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
25312 return SWIG_Py_Void();
25313 }
25314
25315 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25316 return SWIG_Python_InitShadowInstance(args);
25317 }
25318
25319 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25320 PyObject *resultobj = 0;
25321 wxPrintData *arg1 = 0 ;
25322 wxPostScriptDC *result = 0 ;
25323 void *argp1 = 0 ;
25324 int res1 = 0 ;
25325 PyObject * obj0 = 0 ;
25326 char * kwnames[] = {
25327 (char *) "printData", NULL
25328 };
25329
25330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
25331 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25332 if (!SWIG_IsOK(res1)) {
25333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25334 }
25335 if (!argp1) {
25336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25337 }
25338 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25339 {
25340 if (!wxPyCheckForApp()) SWIG_fail;
25341 PyThreadState* __tstate = wxPyBeginAllowThreads();
25342 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
25343 wxPyEndAllowThreads(__tstate);
25344 if (PyErr_Occurred()) SWIG_fail;
25345 }
25346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
25347 return resultobj;
25348 fail:
25349 return NULL;
25350 }
25351
25352
25353 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25354 PyObject *resultobj = 0;
25355 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25356 wxPrintData *result = 0 ;
25357 void *argp1 = 0 ;
25358 int res1 = 0 ;
25359 PyObject *swig_obj[1] ;
25360
25361 if (!args) SWIG_fail;
25362 swig_obj[0] = args;
25363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25364 if (!SWIG_IsOK(res1)) {
25365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25366 }
25367 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25368 {
25369 PyThreadState* __tstate = wxPyBeginAllowThreads();
25370 {
25371 wxPrintData &_result_ref = (arg1)->GetPrintData();
25372 result = (wxPrintData *) &_result_ref;
25373 }
25374 wxPyEndAllowThreads(__tstate);
25375 if (PyErr_Occurred()) SWIG_fail;
25376 }
25377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
25378 return resultobj;
25379 fail:
25380 return NULL;
25381 }
25382
25383
25384 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25385 PyObject *resultobj = 0;
25386 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25387 wxPrintData *arg2 = 0 ;
25388 void *argp1 = 0 ;
25389 int res1 = 0 ;
25390 void *argp2 = 0 ;
25391 int res2 = 0 ;
25392 PyObject * obj0 = 0 ;
25393 PyObject * obj1 = 0 ;
25394 char * kwnames[] = {
25395 (char *) "self",(char *) "data", NULL
25396 };
25397
25398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
25399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25400 if (!SWIG_IsOK(res1)) {
25401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25402 }
25403 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25404 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
25405 if (!SWIG_IsOK(res2)) {
25406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25407 }
25408 if (!argp2) {
25409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25410 }
25411 arg2 = reinterpret_cast< wxPrintData * >(argp2);
25412 {
25413 PyThreadState* __tstate = wxPyBeginAllowThreads();
25414 (arg1)->SetPrintData((wxPrintData const &)*arg2);
25415 wxPyEndAllowThreads(__tstate);
25416 if (PyErr_Occurred()) SWIG_fail;
25417 }
25418 resultobj = SWIG_Py_Void();
25419 return resultobj;
25420 fail:
25421 return NULL;
25422 }
25423
25424
25425 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25426 PyObject *resultobj = 0;
25427 int arg1 ;
25428 int val1 ;
25429 int ecode1 = 0 ;
25430 PyObject * obj0 = 0 ;
25431 char * kwnames[] = {
25432 (char *) "ppi", NULL
25433 };
25434
25435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
25436 ecode1 = SWIG_AsVal_int(obj0, &val1);
25437 if (!SWIG_IsOK(ecode1)) {
25438 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
25439 }
25440 arg1 = static_cast< int >(val1);
25441 {
25442 PyThreadState* __tstate = wxPyBeginAllowThreads();
25443 wxPostScriptDC::SetResolution(arg1);
25444 wxPyEndAllowThreads(__tstate);
25445 if (PyErr_Occurred()) SWIG_fail;
25446 }
25447 resultobj = SWIG_Py_Void();
25448 return resultobj;
25449 fail:
25450 return NULL;
25451 }
25452
25453
25454 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25455 PyObject *resultobj = 0;
25456 int result;
25457
25458 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
25459 {
25460 PyThreadState* __tstate = wxPyBeginAllowThreads();
25461 result = (int)wxPostScriptDC::GetResolution();
25462 wxPyEndAllowThreads(__tstate);
25463 if (PyErr_Occurred()) SWIG_fail;
25464 }
25465 resultobj = SWIG_From_int(static_cast< int >(result));
25466 return resultobj;
25467 fail:
25468 return NULL;
25469 }
25470
25471
25472 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25473 PyObject *obj;
25474 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25475 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
25476 return SWIG_Py_Void();
25477 }
25478
25479 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25480 return SWIG_Python_InitShadowInstance(args);
25481 }
25482
25483 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25484 PyObject *resultobj = 0;
25485 wxString const &arg1_defvalue = wxPyEmptyString ;
25486 wxString *arg1 = (wxString *) &arg1_defvalue ;
25487 wxMetaFile *result = 0 ;
25488 bool temp1 = false ;
25489 PyObject * obj0 = 0 ;
25490 char * kwnames[] = {
25491 (char *) "filename", NULL
25492 };
25493
25494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25495 if (obj0) {
25496 {
25497 arg1 = wxString_in_helper(obj0);
25498 if (arg1 == NULL) SWIG_fail;
25499 temp1 = true;
25500 }
25501 }
25502 {
25503 if (!wxPyCheckForApp()) SWIG_fail;
25504 PyThreadState* __tstate = wxPyBeginAllowThreads();
25505 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25506 wxPyEndAllowThreads(__tstate);
25507 if (PyErr_Occurred()) SWIG_fail;
25508 }
25509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25510 {
25511 if (temp1)
25512 delete arg1;
25513 }
25514 return resultobj;
25515 fail:
25516 {
25517 if (temp1)
25518 delete arg1;
25519 }
25520 return NULL;
25521 }
25522
25523
25524 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25525 PyObject *obj;
25526 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25527 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25528 return SWIG_Py_Void();
25529 }
25530
25531 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25532 return SWIG_Python_InitShadowInstance(args);
25533 }
25534
25535 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25536 PyObject *resultobj = 0;
25537 wxString const &arg1_defvalue = wxPyEmptyString ;
25538 wxString *arg1 = (wxString *) &arg1_defvalue ;
25539 int arg2 = (int) 0 ;
25540 int arg3 = (int) 0 ;
25541 wxString const &arg4_defvalue = wxPyEmptyString ;
25542 wxString *arg4 = (wxString *) &arg4_defvalue ;
25543 wxMetaFileDC *result = 0 ;
25544 bool temp1 = false ;
25545 int val2 ;
25546 int ecode2 = 0 ;
25547 int val3 ;
25548 int ecode3 = 0 ;
25549 bool temp4 = false ;
25550 PyObject * obj0 = 0 ;
25551 PyObject * obj1 = 0 ;
25552 PyObject * obj2 = 0 ;
25553 PyObject * obj3 = 0 ;
25554 char * kwnames[] = {
25555 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25556 };
25557
25558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25559 if (obj0) {
25560 {
25561 arg1 = wxString_in_helper(obj0);
25562 if (arg1 == NULL) SWIG_fail;
25563 temp1 = true;
25564 }
25565 }
25566 if (obj1) {
25567 ecode2 = SWIG_AsVal_int(obj1, &val2);
25568 if (!SWIG_IsOK(ecode2)) {
25569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25570 }
25571 arg2 = static_cast< int >(val2);
25572 }
25573 if (obj2) {
25574 ecode3 = SWIG_AsVal_int(obj2, &val3);
25575 if (!SWIG_IsOK(ecode3)) {
25576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25577 }
25578 arg3 = static_cast< int >(val3);
25579 }
25580 if (obj3) {
25581 {
25582 arg4 = wxString_in_helper(obj3);
25583 if (arg4 == NULL) SWIG_fail;
25584 temp4 = true;
25585 }
25586 }
25587 {
25588 if (!wxPyCheckForApp()) SWIG_fail;
25589 PyThreadState* __tstate = wxPyBeginAllowThreads();
25590 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25591 wxPyEndAllowThreads(__tstate);
25592 if (PyErr_Occurred()) SWIG_fail;
25593 }
25594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25595 {
25596 if (temp1)
25597 delete arg1;
25598 }
25599 {
25600 if (temp4)
25601 delete arg4;
25602 }
25603 return resultobj;
25604 fail:
25605 {
25606 if (temp1)
25607 delete arg1;
25608 }
25609 {
25610 if (temp4)
25611 delete arg4;
25612 }
25613 return NULL;
25614 }
25615
25616
25617 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25618 PyObject *obj;
25619 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25620 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25621 return SWIG_Py_Void();
25622 }
25623
25624 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25625 return SWIG_Python_InitShadowInstance(args);
25626 }
25627
25628 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25629 PyObject *resultobj = 0;
25630 wxPrintData *arg1 = 0 ;
25631 wxPrinterDC *result = 0 ;
25632 void *argp1 = 0 ;
25633 int res1 = 0 ;
25634 PyObject * obj0 = 0 ;
25635 char * kwnames[] = {
25636 (char *) "printData", NULL
25637 };
25638
25639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25640 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25641 if (!SWIG_IsOK(res1)) {
25642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25643 }
25644 if (!argp1) {
25645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25646 }
25647 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25648 {
25649 if (!wxPyCheckForApp()) SWIG_fail;
25650 PyThreadState* __tstate = wxPyBeginAllowThreads();
25651 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25652 wxPyEndAllowThreads(__tstate);
25653 if (PyErr_Occurred()) SWIG_fail;
25654 }
25655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25656 return resultobj;
25657 fail:
25658 return NULL;
25659 }
25660
25661
25662 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25663 PyObject *obj;
25664 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25665 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25666 return SWIG_Py_Void();
25667 }
25668
25669 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25670 return SWIG_Python_InitShadowInstance(args);
25671 }
25672
25673 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25674 PyObject *resultobj = 0;
25675 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25676 wxGraphicsObject *result = 0 ;
25677 void *argp1 = 0 ;
25678 int res1 = 0 ;
25679 PyObject * obj0 = 0 ;
25680 char * kwnames[] = {
25681 (char *) "renderer", NULL
25682 };
25683
25684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25685 if (obj0) {
25686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25687 if (!SWIG_IsOK(res1)) {
25688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25689 }
25690 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25691 }
25692 {
25693 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25694 if (PyErr_Occurred()) SWIG_fail;
25695 }
25696 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25697 return resultobj;
25698 fail:
25699 return NULL;
25700 }
25701
25702
25703 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25704 PyObject *resultobj = 0;
25705 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25706 void *argp1 = 0 ;
25707 int res1 = 0 ;
25708 PyObject *swig_obj[1] ;
25709
25710 if (!args) SWIG_fail;
25711 swig_obj[0] = args;
25712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25713 if (!SWIG_IsOK(res1)) {
25714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25715 }
25716 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25717 {
25718 delete arg1;
25719
25720 if (PyErr_Occurred()) SWIG_fail;
25721 }
25722 resultobj = SWIG_Py_Void();
25723 return resultobj;
25724 fail:
25725 return NULL;
25726 }
25727
25728
25729 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25730 PyObject *resultobj = 0;
25731 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25732 bool result;
25733 void *argp1 = 0 ;
25734 int res1 = 0 ;
25735 PyObject *swig_obj[1] ;
25736
25737 if (!args) SWIG_fail;
25738 swig_obj[0] = args;
25739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25740 if (!SWIG_IsOK(res1)) {
25741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25742 }
25743 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25744 {
25745 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25746 if (PyErr_Occurred()) SWIG_fail;
25747 }
25748 {
25749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25750 }
25751 return resultobj;
25752 fail:
25753 return NULL;
25754 }
25755
25756
25757 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25758 PyObject *resultobj = 0;
25759 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25760 wxGraphicsRenderer *result = 0 ;
25761 void *argp1 = 0 ;
25762 int res1 = 0 ;
25763 PyObject *swig_obj[1] ;
25764
25765 if (!args) SWIG_fail;
25766 swig_obj[0] = args;
25767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25768 if (!SWIG_IsOK(res1)) {
25769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25770 }
25771 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25772 {
25773 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25774 if (PyErr_Occurred()) SWIG_fail;
25775 }
25776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25777 return resultobj;
25778 fail:
25779 return NULL;
25780 }
25781
25782
25783 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25784 PyObject *obj;
25785 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25786 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25787 return SWIG_Py_Void();
25788 }
25789
25790 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25791 return SWIG_Python_InitShadowInstance(args);
25792 }
25793
25794 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25795 PyObject *resultobj = 0;
25796 wxGraphicsPen *result = 0 ;
25797
25798 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25799 {
25800 result = (wxGraphicsPen *)new wxGraphicsPen();
25801 if (PyErr_Occurred()) SWIG_fail;
25802 }
25803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25804 return resultobj;
25805 fail:
25806 return NULL;
25807 }
25808
25809
25810 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25811 PyObject *resultobj = 0;
25812 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25813 void *argp1 = 0 ;
25814 int res1 = 0 ;
25815 PyObject *swig_obj[1] ;
25816
25817 if (!args) SWIG_fail;
25818 swig_obj[0] = args;
25819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25820 if (!SWIG_IsOK(res1)) {
25821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25822 }
25823 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25824 {
25825 delete arg1;
25826
25827 if (PyErr_Occurred()) SWIG_fail;
25828 }
25829 resultobj = SWIG_Py_Void();
25830 return resultobj;
25831 fail:
25832 return NULL;
25833 }
25834
25835
25836 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25837 PyObject *obj;
25838 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25839 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25840 return SWIG_Py_Void();
25841 }
25842
25843 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25844 return SWIG_Python_InitShadowInstance(args);
25845 }
25846
25847 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25848 PyObject *resultobj = 0;
25849 wxGraphicsBrush *result = 0 ;
25850
25851 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25852 {
25853 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25854 if (PyErr_Occurred()) SWIG_fail;
25855 }
25856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25857 return resultobj;
25858 fail:
25859 return NULL;
25860 }
25861
25862
25863 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25864 PyObject *resultobj = 0;
25865 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25866 void *argp1 = 0 ;
25867 int res1 = 0 ;
25868 PyObject *swig_obj[1] ;
25869
25870 if (!args) SWIG_fail;
25871 swig_obj[0] = args;
25872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25873 if (!SWIG_IsOK(res1)) {
25874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25875 }
25876 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25877 {
25878 delete arg1;
25879
25880 if (PyErr_Occurred()) SWIG_fail;
25881 }
25882 resultobj = SWIG_Py_Void();
25883 return resultobj;
25884 fail:
25885 return NULL;
25886 }
25887
25888
25889 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25890 PyObject *obj;
25891 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25892 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25893 return SWIG_Py_Void();
25894 }
25895
25896 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25897 return SWIG_Python_InitShadowInstance(args);
25898 }
25899
25900 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25901 PyObject *resultobj = 0;
25902 wxGraphicsFont *result = 0 ;
25903
25904 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25905 {
25906 result = (wxGraphicsFont *)new wxGraphicsFont();
25907 if (PyErr_Occurred()) SWIG_fail;
25908 }
25909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25910 return resultobj;
25911 fail:
25912 return NULL;
25913 }
25914
25915
25916 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25917 PyObject *resultobj = 0;
25918 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25919 void *argp1 = 0 ;
25920 int res1 = 0 ;
25921 PyObject *swig_obj[1] ;
25922
25923 if (!args) SWIG_fail;
25924 swig_obj[0] = args;
25925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25926 if (!SWIG_IsOK(res1)) {
25927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25928 }
25929 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25930 {
25931 delete arg1;
25932
25933 if (PyErr_Occurred()) SWIG_fail;
25934 }
25935 resultobj = SWIG_Py_Void();
25936 return resultobj;
25937 fail:
25938 return NULL;
25939 }
25940
25941
25942 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25943 PyObject *obj;
25944 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25945 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25946 return SWIG_Py_Void();
25947 }
25948
25949 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25950 return SWIG_Python_InitShadowInstance(args);
25951 }
25952
25953 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25954 PyObject *resultobj = 0;
25955 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25956 void *argp1 = 0 ;
25957 int res1 = 0 ;
25958 PyObject *swig_obj[1] ;
25959
25960 if (!args) SWIG_fail;
25961 swig_obj[0] = args;
25962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
25963 if (!SWIG_IsOK(res1)) {
25964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25965 }
25966 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25967 {
25968 delete arg1;
25969
25970 if (PyErr_Occurred()) SWIG_fail;
25971 }
25972 resultobj = SWIG_Py_Void();
25973 return resultobj;
25974 fail:
25975 return NULL;
25976 }
25977
25978
25979 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25980 PyObject *resultobj = 0;
25981 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25982 wxGraphicsMatrix *arg2 = 0 ;
25983 void *argp1 = 0 ;
25984 int res1 = 0 ;
25985 void *argp2 = 0 ;
25986 int res2 = 0 ;
25987 PyObject * obj0 = 0 ;
25988 PyObject * obj1 = 0 ;
25989 char * kwnames[] = {
25990 (char *) "self",(char *) "t", NULL
25991 };
25992
25993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25995 if (!SWIG_IsOK(res1)) {
25996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25997 }
25998 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25999 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26000 if (!SWIG_IsOK(res2)) {
26001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26002 }
26003 if (!argp2) {
26004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26005 }
26006 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26007 {
26008 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
26009 if (PyErr_Occurred()) SWIG_fail;
26010 }
26011 resultobj = SWIG_Py_Void();
26012 return resultobj;
26013 fail:
26014 return NULL;
26015 }
26016
26017
26018 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26019 PyObject *resultobj = 0;
26020 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26021 wxDouble arg2 = (wxDouble) 1.0 ;
26022 wxDouble arg3 = (wxDouble) 0.0 ;
26023 wxDouble arg4 = (wxDouble) 0.0 ;
26024 wxDouble arg5 = (wxDouble) 1.0 ;
26025 wxDouble arg6 = (wxDouble) 0.0 ;
26026 wxDouble arg7 = (wxDouble) 0.0 ;
26027 void *argp1 = 0 ;
26028 int res1 = 0 ;
26029 double val2 ;
26030 int ecode2 = 0 ;
26031 double val3 ;
26032 int ecode3 = 0 ;
26033 double val4 ;
26034 int ecode4 = 0 ;
26035 double val5 ;
26036 int ecode5 = 0 ;
26037 double val6 ;
26038 int ecode6 = 0 ;
26039 double val7 ;
26040 int ecode7 = 0 ;
26041 PyObject * obj0 = 0 ;
26042 PyObject * obj1 = 0 ;
26043 PyObject * obj2 = 0 ;
26044 PyObject * obj3 = 0 ;
26045 PyObject * obj4 = 0 ;
26046 PyObject * obj5 = 0 ;
26047 PyObject * obj6 = 0 ;
26048 char * kwnames[] = {
26049 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26050 };
26051
26052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26054 if (!SWIG_IsOK(res1)) {
26055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26056 }
26057 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26058 if (obj1) {
26059 ecode2 = SWIG_AsVal_double(obj1, &val2);
26060 if (!SWIG_IsOK(ecode2)) {
26061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
26062 }
26063 arg2 = static_cast< wxDouble >(val2);
26064 }
26065 if (obj2) {
26066 ecode3 = SWIG_AsVal_double(obj2, &val3);
26067 if (!SWIG_IsOK(ecode3)) {
26068 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
26069 }
26070 arg3 = static_cast< wxDouble >(val3);
26071 }
26072 if (obj3) {
26073 ecode4 = SWIG_AsVal_double(obj3, &val4);
26074 if (!SWIG_IsOK(ecode4)) {
26075 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
26076 }
26077 arg4 = static_cast< wxDouble >(val4);
26078 }
26079 if (obj4) {
26080 ecode5 = SWIG_AsVal_double(obj4, &val5);
26081 if (!SWIG_IsOK(ecode5)) {
26082 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
26083 }
26084 arg5 = static_cast< wxDouble >(val5);
26085 }
26086 if (obj5) {
26087 ecode6 = SWIG_AsVal_double(obj5, &val6);
26088 if (!SWIG_IsOK(ecode6)) {
26089 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
26090 }
26091 arg6 = static_cast< wxDouble >(val6);
26092 }
26093 if (obj6) {
26094 ecode7 = SWIG_AsVal_double(obj6, &val7);
26095 if (!SWIG_IsOK(ecode7)) {
26096 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
26097 }
26098 arg7 = static_cast< wxDouble >(val7);
26099 }
26100 {
26101 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
26102 if (PyErr_Occurred()) SWIG_fail;
26103 }
26104 resultobj = SWIG_Py_Void();
26105 return resultobj;
26106 fail:
26107 return NULL;
26108 }
26109
26110
26111 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26112 PyObject *resultobj = 0;
26113 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26114 wxDouble *arg2 = (wxDouble *) 0 ;
26115 wxDouble *arg3 = (wxDouble *) 0 ;
26116 wxDouble *arg4 = (wxDouble *) 0 ;
26117 wxDouble *arg5 = (wxDouble *) 0 ;
26118 wxDouble *arg6 = (wxDouble *) 0 ;
26119 wxDouble *arg7 = (wxDouble *) 0 ;
26120 void *argp1 = 0 ;
26121 int res1 = 0 ;
26122 wxDouble temp2 ;
26123 int res2 = SWIG_TMPOBJ ;
26124 wxDouble temp3 ;
26125 int res3 = SWIG_TMPOBJ ;
26126 wxDouble temp4 ;
26127 int res4 = SWIG_TMPOBJ ;
26128 wxDouble temp5 ;
26129 int res5 = SWIG_TMPOBJ ;
26130 wxDouble temp6 ;
26131 int res6 = SWIG_TMPOBJ ;
26132 wxDouble temp7 ;
26133 int res7 = SWIG_TMPOBJ ;
26134 PyObject *swig_obj[1] ;
26135
26136 arg2 = &temp2;
26137 arg3 = &temp3;
26138 arg4 = &temp4;
26139 arg5 = &temp5;
26140 arg6 = &temp6;
26141 arg7 = &temp7;
26142 if (!args) SWIG_fail;
26143 swig_obj[0] = args;
26144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26145 if (!SWIG_IsOK(res1)) {
26146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26147 }
26148 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26149 {
26150 (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7);
26151 if (PyErr_Occurred()) SWIG_fail;
26152 }
26153 resultobj = SWIG_Py_Void();
26154 if (SWIG_IsTmpObj(res2)) {
26155 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26156 } else {
26157 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26159 }
26160 if (SWIG_IsTmpObj(res3)) {
26161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26162 } else {
26163 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26164 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26165 }
26166 if (SWIG_IsTmpObj(res4)) {
26167 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26168 } else {
26169 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26170 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26171 }
26172 if (SWIG_IsTmpObj(res5)) {
26173 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26174 } else {
26175 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26176 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26177 }
26178 if (SWIG_IsTmpObj(res6)) {
26179 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26180 } else {
26181 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26182 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26183 }
26184 if (SWIG_IsTmpObj(res7)) {
26185 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
26186 } else {
26187 int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26188 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
26189 }
26190 return resultobj;
26191 fail:
26192 return NULL;
26193 }
26194
26195
26196 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26197 PyObject *resultobj = 0;
26198 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26199 void *argp1 = 0 ;
26200 int res1 = 0 ;
26201 PyObject *swig_obj[1] ;
26202
26203 if (!args) SWIG_fail;
26204 swig_obj[0] = args;
26205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26206 if (!SWIG_IsOK(res1)) {
26207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26208 }
26209 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26210 {
26211 (arg1)->Invert();
26212 if (PyErr_Occurred()) SWIG_fail;
26213 }
26214 resultobj = SWIG_Py_Void();
26215 return resultobj;
26216 fail:
26217 return NULL;
26218 }
26219
26220
26221 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26222 PyObject *resultobj = 0;
26223 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26224 wxGraphicsMatrix *arg2 = 0 ;
26225 bool result;
26226 void *argp1 = 0 ;
26227 int res1 = 0 ;
26228 void *argp2 = 0 ;
26229 int res2 = 0 ;
26230 PyObject * obj0 = 0 ;
26231 PyObject * obj1 = 0 ;
26232 char * kwnames[] = {
26233 (char *) "self",(char *) "t", NULL
26234 };
26235
26236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
26237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26238 if (!SWIG_IsOK(res1)) {
26239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26240 }
26241 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26243 if (!SWIG_IsOK(res2)) {
26244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26245 }
26246 if (!argp2) {
26247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26248 }
26249 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26250 {
26251 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
26252 if (PyErr_Occurred()) SWIG_fail;
26253 }
26254 {
26255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26256 }
26257 return resultobj;
26258 fail:
26259 return NULL;
26260 }
26261
26262
26263 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26264 PyObject *resultobj = 0;
26265 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26266 bool result;
26267 void *argp1 = 0 ;
26268 int res1 = 0 ;
26269 PyObject *swig_obj[1] ;
26270
26271 if (!args) SWIG_fail;
26272 swig_obj[0] = args;
26273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26274 if (!SWIG_IsOK(res1)) {
26275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26276 }
26277 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26278 {
26279 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
26280 if (PyErr_Occurred()) SWIG_fail;
26281 }
26282 {
26283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26284 }
26285 return resultobj;
26286 fail:
26287 return NULL;
26288 }
26289
26290
26291 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26292 PyObject *resultobj = 0;
26293 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26294 wxDouble arg2 ;
26295 wxDouble arg3 ;
26296 void *argp1 = 0 ;
26297 int res1 = 0 ;
26298 double val2 ;
26299 int ecode2 = 0 ;
26300 double val3 ;
26301 int ecode3 = 0 ;
26302 PyObject * obj0 = 0 ;
26303 PyObject * obj1 = 0 ;
26304 PyObject * obj2 = 0 ;
26305 char * kwnames[] = {
26306 (char *) "self",(char *) "dx",(char *) "dy", NULL
26307 };
26308
26309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26311 if (!SWIG_IsOK(res1)) {
26312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26313 }
26314 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26315 ecode2 = SWIG_AsVal_double(obj1, &val2);
26316 if (!SWIG_IsOK(ecode2)) {
26317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
26318 }
26319 arg2 = static_cast< wxDouble >(val2);
26320 ecode3 = SWIG_AsVal_double(obj2, &val3);
26321 if (!SWIG_IsOK(ecode3)) {
26322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
26323 }
26324 arg3 = static_cast< wxDouble >(val3);
26325 {
26326 (arg1)->Translate(arg2,arg3);
26327 if (PyErr_Occurred()) SWIG_fail;
26328 }
26329 resultobj = SWIG_Py_Void();
26330 return resultobj;
26331 fail:
26332 return NULL;
26333 }
26334
26335
26336 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26337 PyObject *resultobj = 0;
26338 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26339 wxDouble arg2 ;
26340 wxDouble arg3 ;
26341 void *argp1 = 0 ;
26342 int res1 = 0 ;
26343 double val2 ;
26344 int ecode2 = 0 ;
26345 double val3 ;
26346 int ecode3 = 0 ;
26347 PyObject * obj0 = 0 ;
26348 PyObject * obj1 = 0 ;
26349 PyObject * obj2 = 0 ;
26350 char * kwnames[] = {
26351 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26352 };
26353
26354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26356 if (!SWIG_IsOK(res1)) {
26357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26358 }
26359 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26360 ecode2 = SWIG_AsVal_double(obj1, &val2);
26361 if (!SWIG_IsOK(ecode2)) {
26362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26363 }
26364 arg2 = static_cast< wxDouble >(val2);
26365 ecode3 = SWIG_AsVal_double(obj2, &val3);
26366 if (!SWIG_IsOK(ecode3)) {
26367 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26368 }
26369 arg3 = static_cast< wxDouble >(val3);
26370 {
26371 (arg1)->Scale(arg2,arg3);
26372 if (PyErr_Occurred()) SWIG_fail;
26373 }
26374 resultobj = SWIG_Py_Void();
26375 return resultobj;
26376 fail:
26377 return NULL;
26378 }
26379
26380
26381 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26382 PyObject *resultobj = 0;
26383 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26384 wxDouble arg2 ;
26385 void *argp1 = 0 ;
26386 int res1 = 0 ;
26387 double val2 ;
26388 int ecode2 = 0 ;
26389 PyObject * obj0 = 0 ;
26390 PyObject * obj1 = 0 ;
26391 char * kwnames[] = {
26392 (char *) "self",(char *) "angle", NULL
26393 };
26394
26395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26397 if (!SWIG_IsOK(res1)) {
26398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26399 }
26400 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26401 ecode2 = SWIG_AsVal_double(obj1, &val2);
26402 if (!SWIG_IsOK(ecode2)) {
26403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26404 }
26405 arg2 = static_cast< wxDouble >(val2);
26406 {
26407 (arg1)->Rotate(arg2);
26408 if (PyErr_Occurred()) SWIG_fail;
26409 }
26410 resultobj = SWIG_Py_Void();
26411 return resultobj;
26412 fail:
26413 return NULL;
26414 }
26415
26416
26417 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26418 PyObject *resultobj = 0;
26419 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26420 wxDouble *arg2 = (wxDouble *) 0 ;
26421 wxDouble *arg3 = (wxDouble *) 0 ;
26422 void *argp1 = 0 ;
26423 int res1 = 0 ;
26424 wxDouble temp2 ;
26425 int res2 = 0 ;
26426 wxDouble temp3 ;
26427 int res3 = 0 ;
26428 PyObject * obj0 = 0 ;
26429 PyObject * obj1 = 0 ;
26430 PyObject * obj2 = 0 ;
26431 char * kwnames[] = {
26432 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26433 };
26434
26435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) 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_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26439 }
26440 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26441 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26442 double val;
26443 int ecode = SWIG_AsVal_double(obj1, &val);
26444 if (!SWIG_IsOK(ecode)) {
26445 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26446 }
26447 temp2 = static_cast< wxDouble >(val);
26448 arg2 = &temp2;
26449 res2 = SWIG_AddTmpMask(ecode);
26450 }
26451 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26452 double val;
26453 int ecode = SWIG_AsVal_double(obj2, &val);
26454 if (!SWIG_IsOK(ecode)) {
26455 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26456 }
26457 temp3 = static_cast< wxDouble >(val);
26458 arg3 = &temp3;
26459 res3 = SWIG_AddTmpMask(ecode);
26460 }
26461 {
26462 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
26463 if (PyErr_Occurred()) SWIG_fail;
26464 }
26465 resultobj = SWIG_Py_Void();
26466 if (SWIG_IsTmpObj(res2)) {
26467 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26468 } else {
26469 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26470 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26471 }
26472 if (SWIG_IsTmpObj(res3)) {
26473 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26474 } else {
26475 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26476 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26477 }
26478 return resultobj;
26479 fail:
26480 return NULL;
26481 }
26482
26483
26484 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26485 PyObject *resultobj = 0;
26486 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26487 wxDouble *arg2 = (wxDouble *) 0 ;
26488 wxDouble *arg3 = (wxDouble *) 0 ;
26489 void *argp1 = 0 ;
26490 int res1 = 0 ;
26491 wxDouble temp2 ;
26492 int res2 = 0 ;
26493 wxDouble temp3 ;
26494 int res3 = 0 ;
26495 PyObject * obj0 = 0 ;
26496 PyObject * obj1 = 0 ;
26497 PyObject * obj2 = 0 ;
26498 char * kwnames[] = {
26499 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26500 };
26501
26502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26504 if (!SWIG_IsOK(res1)) {
26505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26506 }
26507 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26508 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26509 double val;
26510 int ecode = SWIG_AsVal_double(obj1, &val);
26511 if (!SWIG_IsOK(ecode)) {
26512 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26513 }
26514 temp2 = static_cast< wxDouble >(val);
26515 arg2 = &temp2;
26516 res2 = SWIG_AddTmpMask(ecode);
26517 }
26518 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26519 double val;
26520 int ecode = SWIG_AsVal_double(obj2, &val);
26521 if (!SWIG_IsOK(ecode)) {
26522 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26523 }
26524 temp3 = static_cast< wxDouble >(val);
26525 arg3 = &temp3;
26526 res3 = SWIG_AddTmpMask(ecode);
26527 }
26528 {
26529 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
26530 if (PyErr_Occurred()) SWIG_fail;
26531 }
26532 resultobj = SWIG_Py_Void();
26533 if (SWIG_IsTmpObj(res2)) {
26534 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26535 } else {
26536 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26537 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26538 }
26539 if (SWIG_IsTmpObj(res3)) {
26540 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26541 } else {
26542 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26543 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26544 }
26545 return resultobj;
26546 fail:
26547 return NULL;
26548 }
26549
26550
26551 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26552 PyObject *resultobj = 0;
26553 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26554 void *result = 0 ;
26555 void *argp1 = 0 ;
26556 int res1 = 0 ;
26557 PyObject *swig_obj[1] ;
26558
26559 if (!args) SWIG_fail;
26560 swig_obj[0] = args;
26561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26562 if (!SWIG_IsOK(res1)) {
26563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26564 }
26565 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26566 {
26567 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26568 if (PyErr_Occurred()) SWIG_fail;
26569 }
26570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26571 return resultobj;
26572 fail:
26573 return NULL;
26574 }
26575
26576
26577 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26578 PyObject *obj;
26579 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26580 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26581 return SWIG_Py_Void();
26582 }
26583
26584 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26585 PyObject *resultobj = 0;
26586 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26587 void *argp1 = 0 ;
26588 int res1 = 0 ;
26589 PyObject *swig_obj[1] ;
26590
26591 if (!args) SWIG_fail;
26592 swig_obj[0] = args;
26593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
26594 if (!SWIG_IsOK(res1)) {
26595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26596 }
26597 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26598 {
26599 delete arg1;
26600
26601 if (PyErr_Occurred()) SWIG_fail;
26602 }
26603 resultobj = SWIG_Py_Void();
26604 return resultobj;
26605 fail:
26606 return NULL;
26607 }
26608
26609
26610 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26611 PyObject *resultobj = 0;
26612 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26613 wxDouble arg2 ;
26614 wxDouble arg3 ;
26615 void *argp1 = 0 ;
26616 int res1 = 0 ;
26617 double val2 ;
26618 int ecode2 = 0 ;
26619 double val3 ;
26620 int ecode3 = 0 ;
26621
26622 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26624 if (!SWIG_IsOK(res1)) {
26625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26626 }
26627 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26628 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26629 if (!SWIG_IsOK(ecode2)) {
26630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26631 }
26632 arg2 = static_cast< wxDouble >(val2);
26633 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26634 if (!SWIG_IsOK(ecode3)) {
26635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26636 }
26637 arg3 = static_cast< wxDouble >(val3);
26638 {
26639 (arg1)->MoveToPoint(arg2,arg3);
26640 if (PyErr_Occurred()) SWIG_fail;
26641 }
26642 resultobj = SWIG_Py_Void();
26643 return resultobj;
26644 fail:
26645 return NULL;
26646 }
26647
26648
26649 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26650 PyObject *resultobj = 0;
26651 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26652 wxPoint2D *arg2 = 0 ;
26653 void *argp1 = 0 ;
26654 int res1 = 0 ;
26655 wxPoint2D temp2 ;
26656
26657 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26659 if (!SWIG_IsOK(res1)) {
26660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26661 }
26662 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26663 {
26664 arg2 = &temp2;
26665 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26666 }
26667 {
26668 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
26669 if (PyErr_Occurred()) SWIG_fail;
26670 }
26671 resultobj = SWIG_Py_Void();
26672 return resultobj;
26673 fail:
26674 return NULL;
26675 }
26676
26677
26678 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
26679 int argc;
26680 PyObject *argv[4];
26681
26682 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
26683 --argc;
26684 if (argc == 2) {
26685 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
26686 }
26687 if (argc == 3) {
26688 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
26689 }
26690
26691 fail:
26692 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
26693 return NULL;
26694 }
26695
26696
26697 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26698 PyObject *resultobj = 0;
26699 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26700 wxDouble arg2 ;
26701 wxDouble arg3 ;
26702 void *argp1 = 0 ;
26703 int res1 = 0 ;
26704 double val2 ;
26705 int ecode2 = 0 ;
26706 double val3 ;
26707 int ecode3 = 0 ;
26708
26709 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26711 if (!SWIG_IsOK(res1)) {
26712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26713 }
26714 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26715 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26716 if (!SWIG_IsOK(ecode2)) {
26717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26718 }
26719 arg2 = static_cast< wxDouble >(val2);
26720 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26721 if (!SWIG_IsOK(ecode3)) {
26722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26723 }
26724 arg3 = static_cast< wxDouble >(val3);
26725 {
26726 (arg1)->AddLineToPoint(arg2,arg3);
26727 if (PyErr_Occurred()) SWIG_fail;
26728 }
26729 resultobj = SWIG_Py_Void();
26730 return resultobj;
26731 fail:
26732 return NULL;
26733 }
26734
26735
26736 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26737 PyObject *resultobj = 0;
26738 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26739 wxPoint2D *arg2 = 0 ;
26740 void *argp1 = 0 ;
26741 int res1 = 0 ;
26742 wxPoint2D temp2 ;
26743
26744 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26746 if (!SWIG_IsOK(res1)) {
26747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26748 }
26749 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26750 {
26751 arg2 = &temp2;
26752 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26753 }
26754 {
26755 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
26756 if (PyErr_Occurred()) SWIG_fail;
26757 }
26758 resultobj = SWIG_Py_Void();
26759 return resultobj;
26760 fail:
26761 return NULL;
26762 }
26763
26764
26765 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26766 int argc;
26767 PyObject *argv[4];
26768
26769 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26770 --argc;
26771 if (argc == 2) {
26772 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
26773 }
26774 if (argc == 3) {
26775 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
26776 }
26777
26778 fail:
26779 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
26780 return NULL;
26781 }
26782
26783
26784 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26785 PyObject *resultobj = 0;
26786 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26787 wxDouble arg2 ;
26788 wxDouble arg3 ;
26789 wxDouble arg4 ;
26790 wxDouble arg5 ;
26791 wxDouble arg6 ;
26792 wxDouble arg7 ;
26793 void *argp1 = 0 ;
26794 int res1 = 0 ;
26795 double val2 ;
26796 int ecode2 = 0 ;
26797 double val3 ;
26798 int ecode3 = 0 ;
26799 double val4 ;
26800 int ecode4 = 0 ;
26801 double val5 ;
26802 int ecode5 = 0 ;
26803 double val6 ;
26804 int ecode6 = 0 ;
26805 double val7 ;
26806 int ecode7 = 0 ;
26807
26808 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26810 if (!SWIG_IsOK(res1)) {
26811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26812 }
26813 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26814 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26815 if (!SWIG_IsOK(ecode2)) {
26816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26817 }
26818 arg2 = static_cast< wxDouble >(val2);
26819 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26820 if (!SWIG_IsOK(ecode3)) {
26821 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26822 }
26823 arg3 = static_cast< wxDouble >(val3);
26824 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26825 if (!SWIG_IsOK(ecode4)) {
26826 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26827 }
26828 arg4 = static_cast< wxDouble >(val4);
26829 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26830 if (!SWIG_IsOK(ecode5)) {
26831 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26832 }
26833 arg5 = static_cast< wxDouble >(val5);
26834 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26835 if (!SWIG_IsOK(ecode6)) {
26836 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26837 }
26838 arg6 = static_cast< wxDouble >(val6);
26839 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26840 if (!SWIG_IsOK(ecode7)) {
26841 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26842 }
26843 arg7 = static_cast< wxDouble >(val7);
26844 {
26845 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
26846 if (PyErr_Occurred()) SWIG_fail;
26847 }
26848 resultobj = SWIG_Py_Void();
26849 return resultobj;
26850 fail:
26851 return NULL;
26852 }
26853
26854
26855 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26856 PyObject *resultobj = 0;
26857 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26858 wxPoint2D *arg2 = 0 ;
26859 wxPoint2D *arg3 = 0 ;
26860 wxPoint2D *arg4 = 0 ;
26861 void *argp1 = 0 ;
26862 int res1 = 0 ;
26863 wxPoint2D temp2 ;
26864 wxPoint2D temp3 ;
26865 wxPoint2D temp4 ;
26866
26867 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26869 if (!SWIG_IsOK(res1)) {
26870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26871 }
26872 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26873 {
26874 arg2 = &temp2;
26875 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26876 }
26877 {
26878 arg3 = &temp3;
26879 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
26880 }
26881 {
26882 arg4 = &temp4;
26883 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26884 }
26885 {
26886 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
26887 if (PyErr_Occurred()) SWIG_fail;
26888 }
26889 resultobj = SWIG_Py_Void();
26890 return resultobj;
26891 fail:
26892 return NULL;
26893 }
26894
26895
26896 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26897 int argc;
26898 PyObject *argv[8];
26899
26900 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26901 --argc;
26902 if (argc == 4) {
26903 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
26904 }
26905 if (argc == 7) {
26906 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
26907 }
26908
26909 fail:
26910 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
26911 return NULL;
26912 }
26913
26914
26915 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26916 PyObject *resultobj = 0;
26917 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26918 wxGraphicsPath *arg2 = 0 ;
26919 void *argp1 = 0 ;
26920 int res1 = 0 ;
26921 void *argp2 = 0 ;
26922 int res2 = 0 ;
26923 PyObject * obj0 = 0 ;
26924 PyObject * obj1 = 0 ;
26925 char * kwnames[] = {
26926 (char *) "self",(char *) "path", NULL
26927 };
26928
26929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
26930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26931 if (!SWIG_IsOK(res1)) {
26932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26933 }
26934 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26935 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
26936 if (!SWIG_IsOK(res2)) {
26937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26938 }
26939 if (!argp2) {
26940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26941 }
26942 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26943 {
26944 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
26945 if (PyErr_Occurred()) SWIG_fail;
26946 }
26947 resultobj = SWIG_Py_Void();
26948 return resultobj;
26949 fail:
26950 return NULL;
26951 }
26952
26953
26954 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26955 PyObject *resultobj = 0;
26956 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26957 void *argp1 = 0 ;
26958 int res1 = 0 ;
26959 PyObject *swig_obj[1] ;
26960
26961 if (!args) SWIG_fail;
26962 swig_obj[0] = args;
26963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26964 if (!SWIG_IsOK(res1)) {
26965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26966 }
26967 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26968 {
26969 (arg1)->CloseSubpath();
26970 if (PyErr_Occurred()) SWIG_fail;
26971 }
26972 resultobj = SWIG_Py_Void();
26973 return resultobj;
26974 fail:
26975 return NULL;
26976 }
26977
26978
26979 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26980 PyObject *resultobj = 0;
26981 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26982 wxPoint2D result;
26983 void *argp1 = 0 ;
26984 int res1 = 0 ;
26985 PyObject *swig_obj[1] ;
26986
26987 if (!args) SWIG_fail;
26988 swig_obj[0] = args;
26989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26990 if (!SWIG_IsOK(res1)) {
26991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
26992 }
26993 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26994 {
26995 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
26996 if (PyErr_Occurred()) SWIG_fail;
26997 }
26998 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
26999 return resultobj;
27000 fail:
27001 return NULL;
27002 }
27003
27004
27005 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27006 PyObject *resultobj = 0;
27007 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27008 wxDouble arg2 ;
27009 wxDouble arg3 ;
27010 wxDouble arg4 ;
27011 wxDouble arg5 ;
27012 wxDouble arg6 ;
27013 bool arg7 = (bool) true ;
27014 void *argp1 = 0 ;
27015 int res1 = 0 ;
27016 double val2 ;
27017 int ecode2 = 0 ;
27018 double val3 ;
27019 int ecode3 = 0 ;
27020 double val4 ;
27021 int ecode4 = 0 ;
27022 double val5 ;
27023 int ecode5 = 0 ;
27024 double val6 ;
27025 int ecode6 = 0 ;
27026 bool val7 ;
27027 int ecode7 = 0 ;
27028
27029 if ((nobjs < 6) || (nobjs > 7)) SWIG_fail;
27030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27031 if (!SWIG_IsOK(res1)) {
27032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27033 }
27034 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27035 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27036 if (!SWIG_IsOK(ecode2)) {
27037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
27038 }
27039 arg2 = static_cast< wxDouble >(val2);
27040 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27041 if (!SWIG_IsOK(ecode3)) {
27042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27043 }
27044 arg3 = static_cast< wxDouble >(val3);
27045 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27046 if (!SWIG_IsOK(ecode4)) {
27047 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27048 }
27049 arg4 = static_cast< wxDouble >(val4);
27050 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27051 if (!SWIG_IsOK(ecode5)) {
27052 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27053 }
27054 arg5 = static_cast< wxDouble >(val5);
27055 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27056 if (!SWIG_IsOK(ecode6)) {
27057 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
27058 }
27059 arg6 = static_cast< wxDouble >(val6);
27060 if (swig_obj[6]) {
27061 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
27062 if (!SWIG_IsOK(ecode7)) {
27063 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
27064 }
27065 arg7 = static_cast< bool >(val7);
27066 }
27067 {
27068 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
27069 if (PyErr_Occurred()) SWIG_fail;
27070 }
27071 resultobj = SWIG_Py_Void();
27072 return resultobj;
27073 fail:
27074 return NULL;
27075 }
27076
27077
27078 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27079 PyObject *resultobj = 0;
27080 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27081 wxPoint2D *arg2 = 0 ;
27082 wxDouble arg3 ;
27083 wxDouble arg4 ;
27084 wxDouble arg5 ;
27085 bool arg6 = (bool) true ;
27086 void *argp1 = 0 ;
27087 int res1 = 0 ;
27088 wxPoint2D temp2 ;
27089 double val3 ;
27090 int ecode3 = 0 ;
27091 double val4 ;
27092 int ecode4 = 0 ;
27093 double val5 ;
27094 int ecode5 = 0 ;
27095 bool val6 ;
27096 int ecode6 = 0 ;
27097
27098 if ((nobjs < 5) || (nobjs > 6)) SWIG_fail;
27099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27100 if (!SWIG_IsOK(res1)) {
27101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27102 }
27103 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27104 {
27105 arg2 = &temp2;
27106 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27107 }
27108 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27109 if (!SWIG_IsOK(ecode3)) {
27110 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27111 }
27112 arg3 = static_cast< wxDouble >(val3);
27113 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27114 if (!SWIG_IsOK(ecode4)) {
27115 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27116 }
27117 arg4 = static_cast< wxDouble >(val4);
27118 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27119 if (!SWIG_IsOK(ecode5)) {
27120 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27121 }
27122 arg5 = static_cast< wxDouble >(val5);
27123 if (swig_obj[5]) {
27124 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
27125 if (!SWIG_IsOK(ecode6)) {
27126 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
27127 }
27128 arg6 = static_cast< bool >(val6);
27129 }
27130 {
27131 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
27132 if (PyErr_Occurred()) SWIG_fail;
27133 }
27134 resultobj = SWIG_Py_Void();
27135 return resultobj;
27136 fail:
27137 return NULL;
27138 }
27139
27140
27141 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
27142 int argc;
27143 PyObject *argv[8];
27144
27145 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
27146 --argc;
27147 if ((argc >= 5) && (argc <= 6)) {
27148 int _v = 0;
27149 {
27150 {
27151 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
27152 }
27153 }
27154 if (!_v) goto check_1;
27155 if (argc > 5) {
27156 {
27157 {
27158 int res = SWIG_AsVal_bool(argv[5], NULL);
27159 _v = SWIG_CheckState(res);
27160 }
27161 }
27162 if (!_v) goto check_1;
27163 }
27164 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
27165 }
27166 check_1:
27167
27168 if ((argc >= 6) && (argc <= 7)) {
27169 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
27170 }
27171
27172 fail:
27173 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
27174 return NULL;
27175 }
27176
27177
27178 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27179 PyObject *resultobj = 0;
27180 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27181 wxDouble arg2 ;
27182 wxDouble arg3 ;
27183 wxDouble arg4 ;
27184 wxDouble arg5 ;
27185 void *argp1 = 0 ;
27186 int res1 = 0 ;
27187 double val2 ;
27188 int ecode2 = 0 ;
27189 double val3 ;
27190 int ecode3 = 0 ;
27191 double val4 ;
27192 int ecode4 = 0 ;
27193 double val5 ;
27194 int ecode5 = 0 ;
27195 PyObject * obj0 = 0 ;
27196 PyObject * obj1 = 0 ;
27197 PyObject * obj2 = 0 ;
27198 PyObject * obj3 = 0 ;
27199 PyObject * obj4 = 0 ;
27200 char * kwnames[] = {
27201 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
27202 };
27203
27204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27206 if (!SWIG_IsOK(res1)) {
27207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27208 }
27209 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27210 ecode2 = SWIG_AsVal_double(obj1, &val2);
27211 if (!SWIG_IsOK(ecode2)) {
27212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27213 }
27214 arg2 = static_cast< wxDouble >(val2);
27215 ecode3 = SWIG_AsVal_double(obj2, &val3);
27216 if (!SWIG_IsOK(ecode3)) {
27217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27218 }
27219 arg3 = static_cast< wxDouble >(val3);
27220 ecode4 = SWIG_AsVal_double(obj3, &val4);
27221 if (!SWIG_IsOK(ecode4)) {
27222 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27223 }
27224 arg4 = static_cast< wxDouble >(val4);
27225 ecode5 = SWIG_AsVal_double(obj4, &val5);
27226 if (!SWIG_IsOK(ecode5)) {
27227 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27228 }
27229 arg5 = static_cast< wxDouble >(val5);
27230 {
27231 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
27232 if (PyErr_Occurred()) SWIG_fail;
27233 }
27234 resultobj = SWIG_Py_Void();
27235 return resultobj;
27236 fail:
27237 return NULL;
27238 }
27239
27240
27241 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27242 PyObject *resultobj = 0;
27243 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27244 wxDouble arg2 ;
27245 wxDouble arg3 ;
27246 wxDouble arg4 ;
27247 wxDouble arg5 ;
27248 void *argp1 = 0 ;
27249 int res1 = 0 ;
27250 double val2 ;
27251 int ecode2 = 0 ;
27252 double val3 ;
27253 int ecode3 = 0 ;
27254 double val4 ;
27255 int ecode4 = 0 ;
27256 double val5 ;
27257 int ecode5 = 0 ;
27258 PyObject * obj0 = 0 ;
27259 PyObject * obj1 = 0 ;
27260 PyObject * obj2 = 0 ;
27261 PyObject * obj3 = 0 ;
27262 PyObject * obj4 = 0 ;
27263 char * kwnames[] = {
27264 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27265 };
27266
27267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27269 if (!SWIG_IsOK(res1)) {
27270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27271 }
27272 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27273 ecode2 = SWIG_AsVal_double(obj1, &val2);
27274 if (!SWIG_IsOK(ecode2)) {
27275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27276 }
27277 arg2 = static_cast< wxDouble >(val2);
27278 ecode3 = SWIG_AsVal_double(obj2, &val3);
27279 if (!SWIG_IsOK(ecode3)) {
27280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27281 }
27282 arg3 = static_cast< wxDouble >(val3);
27283 ecode4 = SWIG_AsVal_double(obj3, &val4);
27284 if (!SWIG_IsOK(ecode4)) {
27285 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27286 }
27287 arg4 = static_cast< wxDouble >(val4);
27288 ecode5 = SWIG_AsVal_double(obj4, &val5);
27289 if (!SWIG_IsOK(ecode5)) {
27290 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27291 }
27292 arg5 = static_cast< wxDouble >(val5);
27293 {
27294 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
27295 if (PyErr_Occurred()) SWIG_fail;
27296 }
27297 resultobj = SWIG_Py_Void();
27298 return resultobj;
27299 fail:
27300 return NULL;
27301 }
27302
27303
27304 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27305 PyObject *resultobj = 0;
27306 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27307 wxDouble arg2 ;
27308 wxDouble arg3 ;
27309 wxDouble arg4 ;
27310 void *argp1 = 0 ;
27311 int res1 = 0 ;
27312 double val2 ;
27313 int ecode2 = 0 ;
27314 double val3 ;
27315 int ecode3 = 0 ;
27316 double val4 ;
27317 int ecode4 = 0 ;
27318 PyObject * obj0 = 0 ;
27319 PyObject * obj1 = 0 ;
27320 PyObject * obj2 = 0 ;
27321 PyObject * obj3 = 0 ;
27322 char * kwnames[] = {
27323 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
27324 };
27325
27326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27328 if (!SWIG_IsOK(res1)) {
27329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27330 }
27331 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27332 ecode2 = SWIG_AsVal_double(obj1, &val2);
27333 if (!SWIG_IsOK(ecode2)) {
27334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27335 }
27336 arg2 = static_cast< wxDouble >(val2);
27337 ecode3 = SWIG_AsVal_double(obj2, &val3);
27338 if (!SWIG_IsOK(ecode3)) {
27339 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27340 }
27341 arg3 = static_cast< wxDouble >(val3);
27342 ecode4 = SWIG_AsVal_double(obj3, &val4);
27343 if (!SWIG_IsOK(ecode4)) {
27344 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27345 }
27346 arg4 = static_cast< wxDouble >(val4);
27347 {
27348 (arg1)->AddCircle(arg2,arg3,arg4);
27349 if (PyErr_Occurred()) SWIG_fail;
27350 }
27351 resultobj = SWIG_Py_Void();
27352 return resultobj;
27353 fail:
27354 return NULL;
27355 }
27356
27357
27358 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27359 PyObject *resultobj = 0;
27360 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27361 wxDouble arg2 ;
27362 wxDouble arg3 ;
27363 wxDouble arg4 ;
27364 wxDouble arg5 ;
27365 wxDouble arg6 ;
27366 void *argp1 = 0 ;
27367 int res1 = 0 ;
27368 double val2 ;
27369 int ecode2 = 0 ;
27370 double val3 ;
27371 int ecode3 = 0 ;
27372 double val4 ;
27373 int ecode4 = 0 ;
27374 double val5 ;
27375 int ecode5 = 0 ;
27376 double val6 ;
27377 int ecode6 = 0 ;
27378 PyObject * obj0 = 0 ;
27379 PyObject * obj1 = 0 ;
27380 PyObject * obj2 = 0 ;
27381 PyObject * obj3 = 0 ;
27382 PyObject * obj4 = 0 ;
27383 PyObject * obj5 = 0 ;
27384 char * kwnames[] = {
27385 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
27386 };
27387
27388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27390 if (!SWIG_IsOK(res1)) {
27391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27392 }
27393 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27394 ecode2 = SWIG_AsVal_double(obj1, &val2);
27395 if (!SWIG_IsOK(ecode2)) {
27396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27397 }
27398 arg2 = static_cast< wxDouble >(val2);
27399 ecode3 = SWIG_AsVal_double(obj2, &val3);
27400 if (!SWIG_IsOK(ecode3)) {
27401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27402 }
27403 arg3 = static_cast< wxDouble >(val3);
27404 ecode4 = SWIG_AsVal_double(obj3, &val4);
27405 if (!SWIG_IsOK(ecode4)) {
27406 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27407 }
27408 arg4 = static_cast< wxDouble >(val4);
27409 ecode5 = SWIG_AsVal_double(obj4, &val5);
27410 if (!SWIG_IsOK(ecode5)) {
27411 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27412 }
27413 arg5 = static_cast< wxDouble >(val5);
27414 ecode6 = SWIG_AsVal_double(obj5, &val6);
27415 if (!SWIG_IsOK(ecode6)) {
27416 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27417 }
27418 arg6 = static_cast< wxDouble >(val6);
27419 {
27420 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
27421 if (PyErr_Occurred()) SWIG_fail;
27422 }
27423 resultobj = SWIG_Py_Void();
27424 return resultobj;
27425 fail:
27426 return NULL;
27427 }
27428
27429
27430 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27431 PyObject *resultobj = 0;
27432 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27433 wxDouble arg2 ;
27434 wxDouble arg3 ;
27435 wxDouble arg4 ;
27436 wxDouble arg5 ;
27437 void *argp1 = 0 ;
27438 int res1 = 0 ;
27439 double val2 ;
27440 int ecode2 = 0 ;
27441 double val3 ;
27442 int ecode3 = 0 ;
27443 double val4 ;
27444 int ecode4 = 0 ;
27445 double val5 ;
27446 int ecode5 = 0 ;
27447 PyObject * obj0 = 0 ;
27448 PyObject * obj1 = 0 ;
27449 PyObject * obj2 = 0 ;
27450 PyObject * obj3 = 0 ;
27451 PyObject * obj4 = 0 ;
27452 char * kwnames[] = {
27453 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27454 };
27455
27456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27458 if (!SWIG_IsOK(res1)) {
27459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27460 }
27461 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27462 ecode2 = SWIG_AsVal_double(obj1, &val2);
27463 if (!SWIG_IsOK(ecode2)) {
27464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27465 }
27466 arg2 = static_cast< wxDouble >(val2);
27467 ecode3 = SWIG_AsVal_double(obj2, &val3);
27468 if (!SWIG_IsOK(ecode3)) {
27469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27470 }
27471 arg3 = static_cast< wxDouble >(val3);
27472 ecode4 = SWIG_AsVal_double(obj3, &val4);
27473 if (!SWIG_IsOK(ecode4)) {
27474 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27475 }
27476 arg4 = static_cast< wxDouble >(val4);
27477 ecode5 = SWIG_AsVal_double(obj4, &val5);
27478 if (!SWIG_IsOK(ecode5)) {
27479 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27480 }
27481 arg5 = static_cast< wxDouble >(val5);
27482 {
27483 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
27484 if (PyErr_Occurred()) SWIG_fail;
27485 }
27486 resultobj = SWIG_Py_Void();
27487 return resultobj;
27488 fail:
27489 return NULL;
27490 }
27491
27492
27493 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27494 PyObject *resultobj = 0;
27495 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27496 wxDouble arg2 ;
27497 wxDouble arg3 ;
27498 wxDouble arg4 ;
27499 wxDouble arg5 ;
27500 wxDouble arg6 ;
27501 void *argp1 = 0 ;
27502 int res1 = 0 ;
27503 double val2 ;
27504 int ecode2 = 0 ;
27505 double val3 ;
27506 int ecode3 = 0 ;
27507 double val4 ;
27508 int ecode4 = 0 ;
27509 double val5 ;
27510 int ecode5 = 0 ;
27511 double val6 ;
27512 int ecode6 = 0 ;
27513 PyObject * obj0 = 0 ;
27514 PyObject * obj1 = 0 ;
27515 PyObject * obj2 = 0 ;
27516 PyObject * obj3 = 0 ;
27517 PyObject * obj4 = 0 ;
27518 PyObject * obj5 = 0 ;
27519 char * kwnames[] = {
27520 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27521 };
27522
27523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27525 if (!SWIG_IsOK(res1)) {
27526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27527 }
27528 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27529 ecode2 = SWIG_AsVal_double(obj1, &val2);
27530 if (!SWIG_IsOK(ecode2)) {
27531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27532 }
27533 arg2 = static_cast< wxDouble >(val2);
27534 ecode3 = SWIG_AsVal_double(obj2, &val3);
27535 if (!SWIG_IsOK(ecode3)) {
27536 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27537 }
27538 arg3 = static_cast< wxDouble >(val3);
27539 ecode4 = SWIG_AsVal_double(obj3, &val4);
27540 if (!SWIG_IsOK(ecode4)) {
27541 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27542 }
27543 arg4 = static_cast< wxDouble >(val4);
27544 ecode5 = SWIG_AsVal_double(obj4, &val5);
27545 if (!SWIG_IsOK(ecode5)) {
27546 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27547 }
27548 arg5 = static_cast< wxDouble >(val5);
27549 ecode6 = SWIG_AsVal_double(obj5, &val6);
27550 if (!SWIG_IsOK(ecode6)) {
27551 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27552 }
27553 arg6 = static_cast< wxDouble >(val6);
27554 {
27555 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27556 if (PyErr_Occurred()) SWIG_fail;
27557 }
27558 resultobj = SWIG_Py_Void();
27559 return resultobj;
27560 fail:
27561 return NULL;
27562 }
27563
27564
27565 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27566 PyObject *resultobj = 0;
27567 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27568 void *result = 0 ;
27569 void *argp1 = 0 ;
27570 int res1 = 0 ;
27571 PyObject *swig_obj[1] ;
27572
27573 if (!args) SWIG_fail;
27574 swig_obj[0] = args;
27575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27576 if (!SWIG_IsOK(res1)) {
27577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27578 }
27579 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27580 {
27581 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
27582 if (PyErr_Occurred()) SWIG_fail;
27583 }
27584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27585 return resultobj;
27586 fail:
27587 return NULL;
27588 }
27589
27590
27591 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27592 PyObject *resultobj = 0;
27593 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27594 void *arg2 = (void *) 0 ;
27595 void *argp1 = 0 ;
27596 int res1 = 0 ;
27597 int res2 ;
27598 PyObject * obj0 = 0 ;
27599 PyObject * obj1 = 0 ;
27600 char * kwnames[] = {
27601 (char *) "self",(char *) "p", NULL
27602 };
27603
27604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27606 if (!SWIG_IsOK(res1)) {
27607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27608 }
27609 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27610 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27611 if (!SWIG_IsOK(res2)) {
27612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
27613 }
27614 {
27615 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
27616 if (PyErr_Occurred()) SWIG_fail;
27617 }
27618 resultobj = SWIG_Py_Void();
27619 return resultobj;
27620 fail:
27621 return NULL;
27622 }
27623
27624
27625 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27626 PyObject *resultobj = 0;
27627 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27628 wxGraphicsMatrix *arg2 = 0 ;
27629 void *argp1 = 0 ;
27630 int res1 = 0 ;
27631 void *argp2 = 0 ;
27632 int res2 = 0 ;
27633 PyObject * obj0 = 0 ;
27634 PyObject * obj1 = 0 ;
27635 char * kwnames[] = {
27636 (char *) "self",(char *) "matrix", NULL
27637 };
27638
27639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27641 if (!SWIG_IsOK(res1)) {
27642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27643 }
27644 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27646 if (!SWIG_IsOK(res2)) {
27647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27648 }
27649 if (!argp2) {
27650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27651 }
27652 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
27653 {
27654 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
27655 if (PyErr_Occurred()) SWIG_fail;
27656 }
27657 resultobj = SWIG_Py_Void();
27658 return resultobj;
27659 fail:
27660 return NULL;
27661 }
27662
27663
27664 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27665 PyObject *resultobj = 0;
27666 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27667 wxRect2D result;
27668 void *argp1 = 0 ;
27669 int res1 = 0 ;
27670 PyObject *swig_obj[1] ;
27671
27672 if (!args) SWIG_fail;
27673 swig_obj[0] = args;
27674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27675 if (!SWIG_IsOK(res1)) {
27676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27677 }
27678 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27679 {
27680 result = ((wxGraphicsPath const *)arg1)->GetBox();
27681 if (PyErr_Occurred()) SWIG_fail;
27682 }
27683 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
27684 return resultobj;
27685 fail:
27686 return NULL;
27687 }
27688
27689
27690 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27691 PyObject *resultobj = 0;
27692 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27693 wxDouble arg2 ;
27694 wxDouble arg3 ;
27695 int arg4 = (int) wxODDEVEN_RULE ;
27696 bool result;
27697 void *argp1 = 0 ;
27698 int res1 = 0 ;
27699 double val2 ;
27700 int ecode2 = 0 ;
27701 double val3 ;
27702 int ecode3 = 0 ;
27703 int val4 ;
27704 int ecode4 = 0 ;
27705
27706 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27708 if (!SWIG_IsOK(res1)) {
27709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27710 }
27711 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27712 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27713 if (!SWIG_IsOK(ecode2)) {
27714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27715 }
27716 arg2 = static_cast< wxDouble >(val2);
27717 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27718 if (!SWIG_IsOK(ecode3)) {
27719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27720 }
27721 arg3 = static_cast< wxDouble >(val3);
27722 if (swig_obj[3]) {
27723 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27724 if (!SWIG_IsOK(ecode4)) {
27725 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27726 }
27727 arg4 = static_cast< int >(val4);
27728 }
27729 {
27730 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
27731 if (PyErr_Occurred()) SWIG_fail;
27732 }
27733 {
27734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27735 }
27736 return resultobj;
27737 fail:
27738 return NULL;
27739 }
27740
27741
27742 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27743 PyObject *resultobj = 0;
27744 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27745 wxPoint2D *arg2 = 0 ;
27746 int arg3 = (int) wxODDEVEN_RULE ;
27747 bool result;
27748 void *argp1 = 0 ;
27749 int res1 = 0 ;
27750 wxPoint2D temp2 ;
27751 int val3 ;
27752 int ecode3 = 0 ;
27753
27754 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27756 if (!SWIG_IsOK(res1)) {
27757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27758 }
27759 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27760 {
27761 arg2 = &temp2;
27762 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27763 }
27764 if (swig_obj[2]) {
27765 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27766 if (!SWIG_IsOK(ecode3)) {
27767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27768 }
27769 arg3 = static_cast< int >(val3);
27770 }
27771 {
27772 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3);
27773 if (PyErr_Occurred()) SWIG_fail;
27774 }
27775 {
27776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27777 }
27778 return resultobj;
27779 fail:
27780 return NULL;
27781 }
27782
27783
27784 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27785 int argc;
27786 PyObject *argv[5];
27787
27788 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27789 --argc;
27790 if ((argc >= 2) && (argc <= 3)) {
27791 int _v = 0;
27792 {
27793 {
27794 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
27795 }
27796 }
27797 if (!_v) goto check_1;
27798 if (argc > 2) {
27799 {
27800 {
27801 int res = SWIG_AsVal_int(argv[2], NULL);
27802 _v = SWIG_CheckState(res);
27803 }
27804 }
27805 if (!_v) goto check_1;
27806 }
27807 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
27808 }
27809 check_1:
27810
27811 if ((argc >= 3) && (argc <= 4)) {
27812 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
27813 }
27814
27815 fail:
27816 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
27817 return NULL;
27818 }
27819
27820
27821 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27822 PyObject *obj;
27823 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27824 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
27825 return SWIG_Py_Void();
27826 }
27827
27828 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27829 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27830 return 1;
27831 }
27832
27833
27834 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27835 PyObject *pyobj = 0;
27836
27837 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27838 return pyobj;
27839 }
27840
27841
27842 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27843 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27844 return 1;
27845 }
27846
27847
27848 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27849 PyObject *pyobj = 0;
27850
27851 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27852 return pyobj;
27853 }
27854
27855
27856 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27857 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27858 return 1;
27859 }
27860
27861
27862 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27863 PyObject *pyobj = 0;
27864
27865 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27866 return pyobj;
27867 }
27868
27869
27870 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27871 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27872 return 1;
27873 }
27874
27875
27876 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27877 PyObject *pyobj = 0;
27878
27879 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27880 return pyobj;
27881 }
27882
27883
27884 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27885 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27886 return 1;
27887 }
27888
27889
27890 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27891 PyObject *pyobj = 0;
27892
27893 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27894 return pyobj;
27895 }
27896
27897
27898 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27899 PyObject *resultobj = 0;
27900 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27901 void *argp1 = 0 ;
27902 int res1 = 0 ;
27903 PyObject *swig_obj[1] ;
27904
27905 if (!args) SWIG_fail;
27906 swig_obj[0] = args;
27907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27908 if (!SWIG_IsOK(res1)) {
27909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27910 }
27911 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27912 {
27913 delete arg1;
27914
27915 if (PyErr_Occurred()) SWIG_fail;
27916 }
27917 resultobj = SWIG_Py_Void();
27918 return resultobj;
27919 fail:
27920 return NULL;
27921 }
27922
27923
27924 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27925 PyObject *resultobj = 0;
27926 wxWindowDC *arg1 = 0 ;
27927 wxGraphicsContext *result = 0 ;
27928 void *argp1 = 0 ;
27929 int res1 = 0 ;
27930
27931 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27933 if (!SWIG_IsOK(res1)) {
27934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27935 }
27936 if (!argp1) {
27937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27938 }
27939 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27940 {
27941 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27942 if (PyErr_Occurred()) SWIG_fail;
27943 }
27944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27945 return resultobj;
27946 fail:
27947 return NULL;
27948 }
27949
27950
27951 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27952 PyObject *resultobj = 0;
27953 wxWindow *arg1 = (wxWindow *) 0 ;
27954 wxGraphicsContext *result = 0 ;
27955 void *argp1 = 0 ;
27956 int res1 = 0 ;
27957
27958 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27960 if (!SWIG_IsOK(res1)) {
27961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27962 }
27963 arg1 = reinterpret_cast< wxWindow * >(argp1);
27964 {
27965 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27966 if (PyErr_Occurred()) SWIG_fail;
27967 }
27968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27969 return resultobj;
27970 fail:
27971 return NULL;
27972 }
27973
27974
27975 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27976 int argc;
27977 PyObject *argv[2];
27978
27979 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27980 --argc;
27981 if (argc == 1) {
27982 int _v = 0;
27983 {
27984 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27985 _v = SWIG_CheckState(res);
27986 }
27987 if (!_v) goto check_1;
27988 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27989 }
27990 check_1:
27991
27992 if (argc == 1) {
27993 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27994 }
27995
27996 fail:
27997 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27998 return NULL;
27999 }
28000
28001
28002 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28003 PyObject *resultobj = 0;
28004 wxGraphicsContext *result = 0 ;
28005
28006 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
28007 {
28008 result = (wxGraphicsContext *)wxGraphicsContext::Create();
28009 if (PyErr_Occurred()) SWIG_fail;
28010 }
28011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28012 return resultobj;
28013 fail:
28014 return NULL;
28015 }
28016
28017
28018 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28019 PyObject *resultobj = 0;
28020 void *arg1 = (void *) 0 ;
28021 wxGraphicsContext *result = 0 ;
28022 int res1 ;
28023 PyObject * obj0 = 0 ;
28024 char * kwnames[] = {
28025 (char *) "context", NULL
28026 };
28027
28028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28029 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28030 if (!SWIG_IsOK(res1)) {
28031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28032 }
28033 {
28034 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28035 if (PyErr_Occurred()) SWIG_fail;
28036 }
28037 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28038 return resultobj;
28039 fail:
28040 return NULL;
28041 }
28042
28043
28044 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28045 PyObject *resultobj = 0;
28046 void *arg1 = (void *) 0 ;
28047 wxGraphicsContext *result = 0 ;
28048 int res1 ;
28049 PyObject * obj0 = 0 ;
28050 char * kwnames[] = {
28051 (char *) "window", NULL
28052 };
28053
28054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
28055 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28056 if (!SWIG_IsOK(res1)) {
28057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
28058 }
28059 {
28060 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
28061 if (PyErr_Occurred()) SWIG_fail;
28062 }
28063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28064 return resultobj;
28065 fail:
28066 return NULL;
28067 }
28068
28069
28070 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28071 PyObject *resultobj = 0;
28072 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28073 wxGraphicsPath result;
28074 void *argp1 = 0 ;
28075 int res1 = 0 ;
28076 PyObject *swig_obj[1] ;
28077
28078 if (!args) SWIG_fail;
28079 swig_obj[0] = args;
28080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28081 if (!SWIG_IsOK(res1)) {
28082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28083 }
28084 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28085 {
28086 result = (arg1)->CreatePath();
28087 if (PyErr_Occurred()) SWIG_fail;
28088 }
28089 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
28090 return resultobj;
28091 fail:
28092 return NULL;
28093 }
28094
28095
28096 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28097 PyObject *resultobj = 0;
28098 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28099 wxPen *arg2 = 0 ;
28100 wxGraphicsPen result;
28101 void *argp1 = 0 ;
28102 int res1 = 0 ;
28103 void *argp2 = 0 ;
28104 int res2 = 0 ;
28105 PyObject * obj0 = 0 ;
28106 PyObject * obj1 = 0 ;
28107 char * kwnames[] = {
28108 (char *) "self",(char *) "pen", NULL
28109 };
28110
28111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
28112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28113 if (!SWIG_IsOK(res1)) {
28114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28115 }
28116 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28117 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28118 if (!SWIG_IsOK(res2)) {
28119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28120 }
28121 if (!argp2) {
28122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28123 }
28124 arg2 = reinterpret_cast< wxPen * >(argp2);
28125 {
28126 result = (arg1)->CreatePen((wxPen const &)*arg2);
28127 if (PyErr_Occurred()) SWIG_fail;
28128 }
28129 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
28130 return resultobj;
28131 fail:
28132 return NULL;
28133 }
28134
28135
28136 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28137 PyObject *resultobj = 0;
28138 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28139 wxBrush *arg2 = 0 ;
28140 wxGraphicsBrush result;
28141 void *argp1 = 0 ;
28142 int res1 = 0 ;
28143 void *argp2 = 0 ;
28144 int res2 = 0 ;
28145 PyObject * obj0 = 0 ;
28146 PyObject * obj1 = 0 ;
28147 char * kwnames[] = {
28148 (char *) "self",(char *) "brush", NULL
28149 };
28150
28151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28153 if (!SWIG_IsOK(res1)) {
28154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28155 }
28156 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28157 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28158 if (!SWIG_IsOK(res2)) {
28159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28160 }
28161 if (!argp2) {
28162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28163 }
28164 arg2 = reinterpret_cast< wxBrush * >(argp2);
28165 {
28166 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
28167 if (PyErr_Occurred()) SWIG_fail;
28168 }
28169 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28170 return resultobj;
28171 fail:
28172 return NULL;
28173 }
28174
28175
28176 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28177 PyObject *resultobj = 0;
28178 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28179 wxDouble arg2 ;
28180 wxDouble arg3 ;
28181 wxDouble arg4 ;
28182 wxDouble arg5 ;
28183 wxColour *arg6 = 0 ;
28184 wxColour *arg7 = 0 ;
28185 wxGraphicsBrush result;
28186 void *argp1 = 0 ;
28187 int res1 = 0 ;
28188 double val2 ;
28189 int ecode2 = 0 ;
28190 double val3 ;
28191 int ecode3 = 0 ;
28192 double val4 ;
28193 int ecode4 = 0 ;
28194 double val5 ;
28195 int ecode5 = 0 ;
28196 wxColour temp6 ;
28197 wxColour temp7 ;
28198 PyObject * obj0 = 0 ;
28199 PyObject * obj1 = 0 ;
28200 PyObject * obj2 = 0 ;
28201 PyObject * obj3 = 0 ;
28202 PyObject * obj4 = 0 ;
28203 PyObject * obj5 = 0 ;
28204 PyObject * obj6 = 0 ;
28205 char * kwnames[] = {
28206 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
28207 };
28208
28209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28211 if (!SWIG_IsOK(res1)) {
28212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28213 }
28214 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28215 ecode2 = SWIG_AsVal_double(obj1, &val2);
28216 if (!SWIG_IsOK(ecode2)) {
28217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28218 }
28219 arg2 = static_cast< wxDouble >(val2);
28220 ecode3 = SWIG_AsVal_double(obj2, &val3);
28221 if (!SWIG_IsOK(ecode3)) {
28222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28223 }
28224 arg3 = static_cast< wxDouble >(val3);
28225 ecode4 = SWIG_AsVal_double(obj3, &val4);
28226 if (!SWIG_IsOK(ecode4)) {
28227 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28228 }
28229 arg4 = static_cast< wxDouble >(val4);
28230 ecode5 = SWIG_AsVal_double(obj4, &val5);
28231 if (!SWIG_IsOK(ecode5)) {
28232 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28233 }
28234 arg5 = static_cast< wxDouble >(val5);
28235 {
28236 arg6 = &temp6;
28237 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
28238 }
28239 {
28240 arg7 = &temp7;
28241 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28242 }
28243 {
28244 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
28245 if (PyErr_Occurred()) SWIG_fail;
28246 }
28247 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28248 return resultobj;
28249 fail:
28250 return NULL;
28251 }
28252
28253
28254 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28255 PyObject *resultobj = 0;
28256 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28257 wxDouble arg2 ;
28258 wxDouble arg3 ;
28259 wxDouble arg4 ;
28260 wxDouble arg5 ;
28261 wxDouble arg6 ;
28262 wxColour *arg7 = 0 ;
28263 wxColour *arg8 = 0 ;
28264 wxGraphicsBrush result;
28265 void *argp1 = 0 ;
28266 int res1 = 0 ;
28267 double val2 ;
28268 int ecode2 = 0 ;
28269 double val3 ;
28270 int ecode3 = 0 ;
28271 double val4 ;
28272 int ecode4 = 0 ;
28273 double val5 ;
28274 int ecode5 = 0 ;
28275 double val6 ;
28276 int ecode6 = 0 ;
28277 wxColour temp7 ;
28278 wxColour temp8 ;
28279 PyObject * obj0 = 0 ;
28280 PyObject * obj1 = 0 ;
28281 PyObject * obj2 = 0 ;
28282 PyObject * obj3 = 0 ;
28283 PyObject * obj4 = 0 ;
28284 PyObject * obj5 = 0 ;
28285 PyObject * obj6 = 0 ;
28286 PyObject * obj7 = 0 ;
28287 char * kwnames[] = {
28288 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
28289 };
28290
28291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28293 if (!SWIG_IsOK(res1)) {
28294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28295 }
28296 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28297 ecode2 = SWIG_AsVal_double(obj1, &val2);
28298 if (!SWIG_IsOK(ecode2)) {
28299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28300 }
28301 arg2 = static_cast< wxDouble >(val2);
28302 ecode3 = SWIG_AsVal_double(obj2, &val3);
28303 if (!SWIG_IsOK(ecode3)) {
28304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28305 }
28306 arg3 = static_cast< wxDouble >(val3);
28307 ecode4 = SWIG_AsVal_double(obj3, &val4);
28308 if (!SWIG_IsOK(ecode4)) {
28309 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28310 }
28311 arg4 = static_cast< wxDouble >(val4);
28312 ecode5 = SWIG_AsVal_double(obj4, &val5);
28313 if (!SWIG_IsOK(ecode5)) {
28314 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28315 }
28316 arg5 = static_cast< wxDouble >(val5);
28317 ecode6 = SWIG_AsVal_double(obj5, &val6);
28318 if (!SWIG_IsOK(ecode6)) {
28319 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
28320 }
28321 arg6 = static_cast< wxDouble >(val6);
28322 {
28323 arg7 = &temp7;
28324 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28325 }
28326 {
28327 arg8 = &temp8;
28328 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28329 }
28330 {
28331 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
28332 if (PyErr_Occurred()) SWIG_fail;
28333 }
28334 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28335 return resultobj;
28336 fail:
28337 return NULL;
28338 }
28339
28340
28341 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28342 PyObject *resultobj = 0;
28343 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28344 wxFont *arg2 = 0 ;
28345 wxColour const &arg3_defvalue = *wxBLACK ;
28346 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28347 wxGraphicsFont result;
28348 void *argp1 = 0 ;
28349 int res1 = 0 ;
28350 void *argp2 = 0 ;
28351 int res2 = 0 ;
28352 wxColour temp3 ;
28353 PyObject * obj0 = 0 ;
28354 PyObject * obj1 = 0 ;
28355 PyObject * obj2 = 0 ;
28356 char * kwnames[] = {
28357 (char *) "self",(char *) "font",(char *) "col", NULL
28358 };
28359
28360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28362 if (!SWIG_IsOK(res1)) {
28363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28364 }
28365 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28366 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28367 if (!SWIG_IsOK(res2)) {
28368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28369 }
28370 if (!argp2) {
28371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28372 }
28373 arg2 = reinterpret_cast< wxFont * >(argp2);
28374 if (obj2) {
28375 {
28376 arg3 = &temp3;
28377 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28378 }
28379 }
28380 {
28381 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28382 if (PyErr_Occurred()) SWIG_fail;
28383 }
28384 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
28385 return resultobj;
28386 fail:
28387 return NULL;
28388 }
28389
28390
28391 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28392 PyObject *resultobj = 0;
28393 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28394 wxDouble arg2 = (wxDouble) 1.0 ;
28395 wxDouble arg3 = (wxDouble) 0.0 ;
28396 wxDouble arg4 = (wxDouble) 0.0 ;
28397 wxDouble arg5 = (wxDouble) 1.0 ;
28398 wxDouble arg6 = (wxDouble) 0.0 ;
28399 wxDouble arg7 = (wxDouble) 0.0 ;
28400 wxGraphicsMatrix result;
28401 void *argp1 = 0 ;
28402 int res1 = 0 ;
28403 double val2 ;
28404 int ecode2 = 0 ;
28405 double val3 ;
28406 int ecode3 = 0 ;
28407 double val4 ;
28408 int ecode4 = 0 ;
28409 double val5 ;
28410 int ecode5 = 0 ;
28411 double val6 ;
28412 int ecode6 = 0 ;
28413 double val7 ;
28414 int ecode7 = 0 ;
28415 PyObject * obj0 = 0 ;
28416 PyObject * obj1 = 0 ;
28417 PyObject * obj2 = 0 ;
28418 PyObject * obj3 = 0 ;
28419 PyObject * obj4 = 0 ;
28420 PyObject * obj5 = 0 ;
28421 PyObject * obj6 = 0 ;
28422 char * kwnames[] = {
28423 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28424 };
28425
28426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28428 if (!SWIG_IsOK(res1)) {
28429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28430 }
28431 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28432 if (obj1) {
28433 ecode2 = SWIG_AsVal_double(obj1, &val2);
28434 if (!SWIG_IsOK(ecode2)) {
28435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28436 }
28437 arg2 = static_cast< wxDouble >(val2);
28438 }
28439 if (obj2) {
28440 ecode3 = SWIG_AsVal_double(obj2, &val3);
28441 if (!SWIG_IsOK(ecode3)) {
28442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28443 }
28444 arg3 = static_cast< wxDouble >(val3);
28445 }
28446 if (obj3) {
28447 ecode4 = SWIG_AsVal_double(obj3, &val4);
28448 if (!SWIG_IsOK(ecode4)) {
28449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28450 }
28451 arg4 = static_cast< wxDouble >(val4);
28452 }
28453 if (obj4) {
28454 ecode5 = SWIG_AsVal_double(obj4, &val5);
28455 if (!SWIG_IsOK(ecode5)) {
28456 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28457 }
28458 arg5 = static_cast< wxDouble >(val5);
28459 }
28460 if (obj5) {
28461 ecode6 = SWIG_AsVal_double(obj5, &val6);
28462 if (!SWIG_IsOK(ecode6)) {
28463 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28464 }
28465 arg6 = static_cast< wxDouble >(val6);
28466 }
28467 if (obj6) {
28468 ecode7 = SWIG_AsVal_double(obj6, &val7);
28469 if (!SWIG_IsOK(ecode7)) {
28470 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28471 }
28472 arg7 = static_cast< wxDouble >(val7);
28473 }
28474 {
28475 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
28476 if (PyErr_Occurred()) SWIG_fail;
28477 }
28478 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28479 return resultobj;
28480 fail:
28481 return NULL;
28482 }
28483
28484
28485 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28486 PyObject *resultobj = 0;
28487 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28488 void *argp1 = 0 ;
28489 int res1 = 0 ;
28490 PyObject *swig_obj[1] ;
28491
28492 if (!args) SWIG_fail;
28493 swig_obj[0] = args;
28494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28495 if (!SWIG_IsOK(res1)) {
28496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28497 }
28498 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28499 {
28500 (arg1)->PushState();
28501 if (PyErr_Occurred()) SWIG_fail;
28502 }
28503 resultobj = SWIG_Py_Void();
28504 return resultobj;
28505 fail:
28506 return NULL;
28507 }
28508
28509
28510 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28511 PyObject *resultobj = 0;
28512 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28513 void *argp1 = 0 ;
28514 int res1 = 0 ;
28515 PyObject *swig_obj[1] ;
28516
28517 if (!args) SWIG_fail;
28518 swig_obj[0] = args;
28519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28520 if (!SWIG_IsOK(res1)) {
28521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28522 }
28523 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28524 {
28525 (arg1)->PopState();
28526 if (PyErr_Occurred()) SWIG_fail;
28527 }
28528 resultobj = SWIG_Py_Void();
28529 return resultobj;
28530 fail:
28531 return NULL;
28532 }
28533
28534
28535 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28536 PyObject *resultobj = 0;
28537 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28538 wxRegion *arg2 = 0 ;
28539 void *argp1 = 0 ;
28540 int res1 = 0 ;
28541 void *argp2 = 0 ;
28542 int res2 = 0 ;
28543 PyObject * obj0 = 0 ;
28544 PyObject * obj1 = 0 ;
28545 char * kwnames[] = {
28546 (char *) "self",(char *) "region", NULL
28547 };
28548
28549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
28550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28551 if (!SWIG_IsOK(res1)) {
28552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28553 }
28554 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28555 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28556 if (!SWIG_IsOK(res2)) {
28557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28558 }
28559 if (!argp2) {
28560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28561 }
28562 arg2 = reinterpret_cast< wxRegion * >(argp2);
28563 {
28564 (arg1)->Clip((wxRegion const &)*arg2);
28565 if (PyErr_Occurred()) SWIG_fail;
28566 }
28567 resultobj = SWIG_Py_Void();
28568 return resultobj;
28569 fail:
28570 return NULL;
28571 }
28572
28573
28574 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28575 PyObject *resultobj = 0;
28576 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28577 wxDouble arg2 ;
28578 wxDouble arg3 ;
28579 wxDouble arg4 ;
28580 wxDouble arg5 ;
28581 void *argp1 = 0 ;
28582 int res1 = 0 ;
28583 double val2 ;
28584 int ecode2 = 0 ;
28585 double val3 ;
28586 int ecode3 = 0 ;
28587 double val4 ;
28588 int ecode4 = 0 ;
28589 double val5 ;
28590 int ecode5 = 0 ;
28591 PyObject * obj0 = 0 ;
28592 PyObject * obj1 = 0 ;
28593 PyObject * obj2 = 0 ;
28594 PyObject * obj3 = 0 ;
28595 PyObject * obj4 = 0 ;
28596 char * kwnames[] = {
28597 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28598 };
28599
28600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28602 if (!SWIG_IsOK(res1)) {
28603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28604 }
28605 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28606 ecode2 = SWIG_AsVal_double(obj1, &val2);
28607 if (!SWIG_IsOK(ecode2)) {
28608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28609 }
28610 arg2 = static_cast< wxDouble >(val2);
28611 ecode3 = SWIG_AsVal_double(obj2, &val3);
28612 if (!SWIG_IsOK(ecode3)) {
28613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28614 }
28615 arg3 = static_cast< wxDouble >(val3);
28616 ecode4 = SWIG_AsVal_double(obj3, &val4);
28617 if (!SWIG_IsOK(ecode4)) {
28618 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28619 }
28620 arg4 = static_cast< wxDouble >(val4);
28621 ecode5 = SWIG_AsVal_double(obj4, &val5);
28622 if (!SWIG_IsOK(ecode5)) {
28623 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28624 }
28625 arg5 = static_cast< wxDouble >(val5);
28626 {
28627 (arg1)->Clip(arg2,arg3,arg4,arg5);
28628 if (PyErr_Occurred()) SWIG_fail;
28629 }
28630 resultobj = SWIG_Py_Void();
28631 return resultobj;
28632 fail:
28633 return NULL;
28634 }
28635
28636
28637 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28638 PyObject *resultobj = 0;
28639 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28640 void *argp1 = 0 ;
28641 int res1 = 0 ;
28642 PyObject *swig_obj[1] ;
28643
28644 if (!args) SWIG_fail;
28645 swig_obj[0] = args;
28646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28647 if (!SWIG_IsOK(res1)) {
28648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28649 }
28650 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28651 {
28652 (arg1)->ResetClip();
28653 if (PyErr_Occurred()) SWIG_fail;
28654 }
28655 resultobj = SWIG_Py_Void();
28656 return resultobj;
28657 fail:
28658 return NULL;
28659 }
28660
28661
28662 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28663 PyObject *resultobj = 0;
28664 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28665 void *result = 0 ;
28666 void *argp1 = 0 ;
28667 int res1 = 0 ;
28668 PyObject *swig_obj[1] ;
28669
28670 if (!args) SWIG_fail;
28671 swig_obj[0] = args;
28672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28673 if (!SWIG_IsOK(res1)) {
28674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28675 }
28676 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28677 {
28678 result = (void *)(arg1)->GetNativeContext();
28679 if (PyErr_Occurred()) SWIG_fail;
28680 }
28681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28682 return resultobj;
28683 fail:
28684 return NULL;
28685 }
28686
28687
28688 SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28689 PyObject *resultobj = 0;
28690 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28691 int result;
28692 void *argp1 = 0 ;
28693 int res1 = 0 ;
28694 PyObject *swig_obj[1] ;
28695
28696 if (!args) SWIG_fail;
28697 swig_obj[0] = args;
28698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28699 if (!SWIG_IsOK(res1)) {
28700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28701 }
28702 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28703 {
28704 result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction();
28705 if (PyErr_Occurred()) SWIG_fail;
28706 }
28707 resultobj = SWIG_From_int(static_cast< int >(result));
28708 return resultobj;
28709 fail:
28710 return NULL;
28711 }
28712
28713
28714 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28715 PyObject *resultobj = 0;
28716 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28717 int arg2 ;
28718 bool result;
28719 void *argp1 = 0 ;
28720 int res1 = 0 ;
28721 int val2 ;
28722 int ecode2 = 0 ;
28723 PyObject * obj0 = 0 ;
28724 PyObject * obj1 = 0 ;
28725 char * kwnames[] = {
28726 (char *) "self",(char *) "function", NULL
28727 };
28728
28729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
28730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28731 if (!SWIG_IsOK(res1)) {
28732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28733 }
28734 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28735 ecode2 = SWIG_AsVal_int(obj1, &val2);
28736 if (!SWIG_IsOK(ecode2)) {
28737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
28738 }
28739 arg2 = static_cast< int >(val2);
28740 {
28741 result = (bool)(arg1)->SetLogicalFunction(arg2);
28742 if (PyErr_Occurred()) SWIG_fail;
28743 }
28744 {
28745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28746 }
28747 return resultobj;
28748 fail:
28749 return NULL;
28750 }
28751
28752
28753 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28754 PyObject *resultobj = 0;
28755 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28756 wxDouble arg2 ;
28757 wxDouble arg3 ;
28758 void *argp1 = 0 ;
28759 int res1 = 0 ;
28760 double val2 ;
28761 int ecode2 = 0 ;
28762 double val3 ;
28763 int ecode3 = 0 ;
28764 PyObject * obj0 = 0 ;
28765 PyObject * obj1 = 0 ;
28766 PyObject * obj2 = 0 ;
28767 char * kwnames[] = {
28768 (char *) "self",(char *) "dx",(char *) "dy", NULL
28769 };
28770
28771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28773 if (!SWIG_IsOK(res1)) {
28774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28775 }
28776 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28777 ecode2 = SWIG_AsVal_double(obj1, &val2);
28778 if (!SWIG_IsOK(ecode2)) {
28779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28780 }
28781 arg2 = static_cast< wxDouble >(val2);
28782 ecode3 = SWIG_AsVal_double(obj2, &val3);
28783 if (!SWIG_IsOK(ecode3)) {
28784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28785 }
28786 arg3 = static_cast< wxDouble >(val3);
28787 {
28788 (arg1)->Translate(arg2,arg3);
28789 if (PyErr_Occurred()) SWIG_fail;
28790 }
28791 resultobj = SWIG_Py_Void();
28792 return resultobj;
28793 fail:
28794 return NULL;
28795 }
28796
28797
28798 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28799 PyObject *resultobj = 0;
28800 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28801 wxDouble arg2 ;
28802 wxDouble arg3 ;
28803 void *argp1 = 0 ;
28804 int res1 = 0 ;
28805 double val2 ;
28806 int ecode2 = 0 ;
28807 double val3 ;
28808 int ecode3 = 0 ;
28809 PyObject * obj0 = 0 ;
28810 PyObject * obj1 = 0 ;
28811 PyObject * obj2 = 0 ;
28812 char * kwnames[] = {
28813 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28814 };
28815
28816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28818 if (!SWIG_IsOK(res1)) {
28819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28820 }
28821 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28822 ecode2 = SWIG_AsVal_double(obj1, &val2);
28823 if (!SWIG_IsOK(ecode2)) {
28824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28825 }
28826 arg2 = static_cast< wxDouble >(val2);
28827 ecode3 = SWIG_AsVal_double(obj2, &val3);
28828 if (!SWIG_IsOK(ecode3)) {
28829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28830 }
28831 arg3 = static_cast< wxDouble >(val3);
28832 {
28833 (arg1)->Scale(arg2,arg3);
28834 if (PyErr_Occurred()) SWIG_fail;
28835 }
28836 resultobj = SWIG_Py_Void();
28837 return resultobj;
28838 fail:
28839 return NULL;
28840 }
28841
28842
28843 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28844 PyObject *resultobj = 0;
28845 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28846 wxDouble arg2 ;
28847 void *argp1 = 0 ;
28848 int res1 = 0 ;
28849 double val2 ;
28850 int ecode2 = 0 ;
28851 PyObject * obj0 = 0 ;
28852 PyObject * obj1 = 0 ;
28853 char * kwnames[] = {
28854 (char *) "self",(char *) "angle", NULL
28855 };
28856
28857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28859 if (!SWIG_IsOK(res1)) {
28860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28861 }
28862 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28863 ecode2 = SWIG_AsVal_double(obj1, &val2);
28864 if (!SWIG_IsOK(ecode2)) {
28865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28866 }
28867 arg2 = static_cast< wxDouble >(val2);
28868 {
28869 (arg1)->Rotate(arg2);
28870 if (PyErr_Occurred()) SWIG_fail;
28871 }
28872 resultobj = SWIG_Py_Void();
28873 return resultobj;
28874 fail:
28875 return NULL;
28876 }
28877
28878
28879 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28880 PyObject *resultobj = 0;
28881 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28882 wxGraphicsMatrix *arg2 = 0 ;
28883 void *argp1 = 0 ;
28884 int res1 = 0 ;
28885 void *argp2 = 0 ;
28886 int res2 = 0 ;
28887 PyObject * obj0 = 0 ;
28888 PyObject * obj1 = 0 ;
28889 char * kwnames[] = {
28890 (char *) "self",(char *) "matrix", NULL
28891 };
28892
28893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28895 if (!SWIG_IsOK(res1)) {
28896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28897 }
28898 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28899 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28900 if (!SWIG_IsOK(res2)) {
28901 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28902 }
28903 if (!argp2) {
28904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28905 }
28906 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28907 {
28908 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28909 if (PyErr_Occurred()) SWIG_fail;
28910 }
28911 resultobj = SWIG_Py_Void();
28912 return resultobj;
28913 fail:
28914 return NULL;
28915 }
28916
28917
28918 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28919 PyObject *resultobj = 0;
28920 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28921 wxGraphicsMatrix *arg2 = 0 ;
28922 void *argp1 = 0 ;
28923 int res1 = 0 ;
28924 void *argp2 = 0 ;
28925 int res2 = 0 ;
28926 PyObject * obj0 = 0 ;
28927 PyObject * obj1 = 0 ;
28928 char * kwnames[] = {
28929 (char *) "self",(char *) "matrix", NULL
28930 };
28931
28932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28934 if (!SWIG_IsOK(res1)) {
28935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28936 }
28937 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28938 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28939 if (!SWIG_IsOK(res2)) {
28940 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28941 }
28942 if (!argp2) {
28943 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28944 }
28945 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28946 {
28947 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28948 if (PyErr_Occurred()) SWIG_fail;
28949 }
28950 resultobj = SWIG_Py_Void();
28951 return resultobj;
28952 fail:
28953 return NULL;
28954 }
28955
28956
28957 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28958 PyObject *resultobj = 0;
28959 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28960 wxGraphicsMatrix result;
28961 void *argp1 = 0 ;
28962 int res1 = 0 ;
28963 PyObject *swig_obj[1] ;
28964
28965 if (!args) SWIG_fail;
28966 swig_obj[0] = args;
28967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28968 if (!SWIG_IsOK(res1)) {
28969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28970 }
28971 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28972 {
28973 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28974 if (PyErr_Occurred()) SWIG_fail;
28975 }
28976 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28977 return resultobj;
28978 fail:
28979 return NULL;
28980 }
28981
28982
28983 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28984 PyObject *resultobj = 0;
28985 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28986 wxGraphicsPen *arg2 = 0 ;
28987 void *argp1 = 0 ;
28988 int res1 = 0 ;
28989 void *argp2 = 0 ;
28990 int res2 = 0 ;
28991
28992 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28994 if (!SWIG_IsOK(res1)) {
28995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28996 }
28997 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28998 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28999 if (!SWIG_IsOK(res2)) {
29000 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29001 }
29002 if (!argp2) {
29003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29004 }
29005 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
29006 {
29007 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
29008 if (PyErr_Occurred()) SWIG_fail;
29009 }
29010 resultobj = SWIG_Py_Void();
29011 return resultobj;
29012 fail:
29013 return NULL;
29014 }
29015
29016
29017 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29018 PyObject *resultobj = 0;
29019 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29020 wxPen *arg2 = 0 ;
29021 void *argp1 = 0 ;
29022 int res1 = 0 ;
29023 void *argp2 = 0 ;
29024 int res2 = 0 ;
29025
29026 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29028 if (!SWIG_IsOK(res1)) {
29029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29030 }
29031 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29032 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
29033 if (!SWIG_IsOK(res2)) {
29034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29035 }
29036 if (!argp2) {
29037 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29038 }
29039 arg2 = reinterpret_cast< wxPen * >(argp2);
29040 {
29041 (arg1)->SetPen((wxPen const &)*arg2);
29042 if (PyErr_Occurred()) SWIG_fail;
29043 }
29044 resultobj = SWIG_Py_Void();
29045 return resultobj;
29046 fail:
29047 return NULL;
29048 }
29049
29050
29051 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
29052 int argc;
29053 PyObject *argv[3];
29054
29055 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
29056 --argc;
29057 if (argc == 2) {
29058 int _v = 0;
29059 {
29060 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
29061 _v = SWIG_CheckState(res);
29062 }
29063 if (!_v) goto check_1;
29064 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
29065 }
29066 check_1:
29067
29068 if (argc == 2) {
29069 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
29070 }
29071
29072 fail:
29073 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
29074 return NULL;
29075 }
29076
29077
29078 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29079 PyObject *resultobj = 0;
29080 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29081 wxGraphicsBrush *arg2 = 0 ;
29082 void *argp1 = 0 ;
29083 int res1 = 0 ;
29084 void *argp2 = 0 ;
29085 int res2 = 0 ;
29086
29087 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29089 if (!SWIG_IsOK(res1)) {
29090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29091 }
29092 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29093 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29094 if (!SWIG_IsOK(res2)) {
29095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29096 }
29097 if (!argp2) {
29098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29099 }
29100 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
29101 {
29102 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
29103 if (PyErr_Occurred()) SWIG_fail;
29104 }
29105 resultobj = SWIG_Py_Void();
29106 return resultobj;
29107 fail:
29108 return NULL;
29109 }
29110
29111
29112 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29113 PyObject *resultobj = 0;
29114 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29115 wxBrush *arg2 = 0 ;
29116 void *argp1 = 0 ;
29117 int res1 = 0 ;
29118 void *argp2 = 0 ;
29119 int res2 = 0 ;
29120
29121 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29123 if (!SWIG_IsOK(res1)) {
29124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29125 }
29126 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29127 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
29128 if (!SWIG_IsOK(res2)) {
29129 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29130 }
29131 if (!argp2) {
29132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29133 }
29134 arg2 = reinterpret_cast< wxBrush * >(argp2);
29135 {
29136 (arg1)->SetBrush((wxBrush const &)*arg2);
29137 if (PyErr_Occurred()) SWIG_fail;
29138 }
29139 resultobj = SWIG_Py_Void();
29140 return resultobj;
29141 fail:
29142 return NULL;
29143 }
29144
29145
29146 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
29147 int argc;
29148 PyObject *argv[3];
29149
29150 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
29151 --argc;
29152 if (argc == 2) {
29153 int _v = 0;
29154 {
29155 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
29156 _v = SWIG_CheckState(res);
29157 }
29158 if (!_v) goto check_1;
29159 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
29160 }
29161 check_1:
29162
29163 if (argc == 2) {
29164 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
29165 }
29166
29167 fail:
29168 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
29169 return NULL;
29170 }
29171
29172
29173 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29174 PyObject *resultobj = 0;
29175 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29176 wxGraphicsFont *arg2 = 0 ;
29177 void *argp1 = 0 ;
29178 int res1 = 0 ;
29179 void *argp2 = 0 ;
29180 int res2 = 0 ;
29181
29182 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29184 if (!SWIG_IsOK(res1)) {
29185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29186 }
29187 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29188 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
29189 if (!SWIG_IsOK(res2)) {
29190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29191 }
29192 if (!argp2) {
29193 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29194 }
29195 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
29196 {
29197 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
29198 if (PyErr_Occurred()) SWIG_fail;
29199 }
29200 resultobj = SWIG_Py_Void();
29201 return resultobj;
29202 fail:
29203 return NULL;
29204 }
29205
29206
29207 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29208 PyObject *resultobj = 0;
29209 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29210 wxFont *arg2 = 0 ;
29211 wxColour const &arg3_defvalue = *wxBLACK ;
29212 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
29213 void *argp1 = 0 ;
29214 int res1 = 0 ;
29215 void *argp2 = 0 ;
29216 int res2 = 0 ;
29217 wxColour temp3 ;
29218
29219 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
29220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29221 if (!SWIG_IsOK(res1)) {
29222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29223 }
29224 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29225 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
29226 if (!SWIG_IsOK(res2)) {
29227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29228 }
29229 if (!argp2) {
29230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29231 }
29232 arg2 = reinterpret_cast< wxFont * >(argp2);
29233 if (swig_obj[2]) {
29234 {
29235 arg3 = &temp3;
29236 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29237 }
29238 }
29239 {
29240 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
29241 if (PyErr_Occurred()) SWIG_fail;
29242 }
29243 resultobj = SWIG_Py_Void();
29244 return resultobj;
29245 fail:
29246 return NULL;
29247 }
29248
29249
29250 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29251 int argc;
29252 PyObject *argv[4];
29253
29254 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29255 --argc;
29256 if (argc == 2) {
29257 int _v = 0;
29258 {
29259 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29260 _v = SWIG_CheckState(res);
29261 }
29262 if (!_v) goto check_1;
29263 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
29264 }
29265 check_1:
29266
29267 if ((argc >= 2) && (argc <= 3)) {
29268 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
29269 }
29270
29271 fail:
29272 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
29273 return NULL;
29274 }
29275
29276
29277 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29278 PyObject *resultobj = 0;
29279 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29280 wxGraphicsPath *arg2 = 0 ;
29281 void *argp1 = 0 ;
29282 int res1 = 0 ;
29283 void *argp2 = 0 ;
29284 int res2 = 0 ;
29285 PyObject * obj0 = 0 ;
29286 PyObject * obj1 = 0 ;
29287 char * kwnames[] = {
29288 (char *) "self",(char *) "path", NULL
29289 };
29290
29291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29293 if (!SWIG_IsOK(res1)) {
29294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29295 }
29296 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29297 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29298 if (!SWIG_IsOK(res2)) {
29299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29300 }
29301 if (!argp2) {
29302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29303 }
29304 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29305 {
29306 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
29307 if (PyErr_Occurred()) SWIG_fail;
29308 }
29309 resultobj = SWIG_Py_Void();
29310 return resultobj;
29311 fail:
29312 return NULL;
29313 }
29314
29315
29316 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29317 PyObject *resultobj = 0;
29318 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29319 wxGraphicsPath *arg2 = 0 ;
29320 int arg3 = (int) wxODDEVEN_RULE ;
29321 void *argp1 = 0 ;
29322 int res1 = 0 ;
29323 void *argp2 = 0 ;
29324 int res2 = 0 ;
29325 int val3 ;
29326 int ecode3 = 0 ;
29327 PyObject * obj0 = 0 ;
29328 PyObject * obj1 = 0 ;
29329 PyObject * obj2 = 0 ;
29330 char * kwnames[] = {
29331 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29332 };
29333
29334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29336 if (!SWIG_IsOK(res1)) {
29337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29338 }
29339 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29340 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29341 if (!SWIG_IsOK(res2)) {
29342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29343 }
29344 if (!argp2) {
29345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29346 }
29347 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29348 if (obj2) {
29349 ecode3 = SWIG_AsVal_int(obj2, &val3);
29350 if (!SWIG_IsOK(ecode3)) {
29351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29352 }
29353 arg3 = static_cast< int >(val3);
29354 }
29355 {
29356 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
29357 if (PyErr_Occurred()) SWIG_fail;
29358 }
29359 resultobj = SWIG_Py_Void();
29360 return resultobj;
29361 fail:
29362 return NULL;
29363 }
29364
29365
29366 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29367 PyObject *resultobj = 0;
29368 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29369 wxGraphicsPath *arg2 = 0 ;
29370 int arg3 = (int) wxODDEVEN_RULE ;
29371 void *argp1 = 0 ;
29372 int res1 = 0 ;
29373 void *argp2 = 0 ;
29374 int res2 = 0 ;
29375 int val3 ;
29376 int ecode3 = 0 ;
29377 PyObject * obj0 = 0 ;
29378 PyObject * obj1 = 0 ;
29379 PyObject * obj2 = 0 ;
29380 char * kwnames[] = {
29381 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29382 };
29383
29384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29386 if (!SWIG_IsOK(res1)) {
29387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29388 }
29389 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29390 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29391 if (!SWIG_IsOK(res2)) {
29392 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29393 }
29394 if (!argp2) {
29395 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29396 }
29397 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29398 if (obj2) {
29399 ecode3 = SWIG_AsVal_int(obj2, &val3);
29400 if (!SWIG_IsOK(ecode3)) {
29401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29402 }
29403 arg3 = static_cast< int >(val3);
29404 }
29405 {
29406 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
29407 if (PyErr_Occurred()) SWIG_fail;
29408 }
29409 resultobj = SWIG_Py_Void();
29410 return resultobj;
29411 fail:
29412 return NULL;
29413 }
29414
29415
29416 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29417 PyObject *resultobj = 0;
29418 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29419 wxString *arg2 = 0 ;
29420 wxDouble arg3 ;
29421 wxDouble arg4 ;
29422 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
29423 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
29424 void *argp1 = 0 ;
29425 int res1 = 0 ;
29426 bool temp2 = false ;
29427 double val3 ;
29428 int ecode3 = 0 ;
29429 double val4 ;
29430 int ecode4 = 0 ;
29431 void *argp5 = 0 ;
29432 int res5 = 0 ;
29433 PyObject * obj0 = 0 ;
29434 PyObject * obj1 = 0 ;
29435 PyObject * obj2 = 0 ;
29436 PyObject * obj3 = 0 ;
29437 PyObject * obj4 = 0 ;
29438 char * kwnames[] = {
29439 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
29440 };
29441
29442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29444 if (!SWIG_IsOK(res1)) {
29445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29446 }
29447 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29448 {
29449 arg2 = wxString_in_helper(obj1);
29450 if (arg2 == NULL) SWIG_fail;
29451 temp2 = true;
29452 }
29453 ecode3 = SWIG_AsVal_double(obj2, &val3);
29454 if (!SWIG_IsOK(ecode3)) {
29455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29456 }
29457 arg3 = static_cast< wxDouble >(val3);
29458 ecode4 = SWIG_AsVal_double(obj3, &val4);
29459 if (!SWIG_IsOK(ecode4)) {
29460 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29461 }
29462 arg4 = static_cast< wxDouble >(val4);
29463 if (obj4) {
29464 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29465 if (!SWIG_IsOK(res5)) {
29466 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29467 }
29468 if (!argp5) {
29469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29470 }
29471 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29472 }
29473 {
29474 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
29475 if (PyErr_Occurred()) SWIG_fail;
29476 }
29477 resultobj = SWIG_Py_Void();
29478 {
29479 if (temp2)
29480 delete arg2;
29481 }
29482 return resultobj;
29483 fail:
29484 {
29485 if (temp2)
29486 delete arg2;
29487 }
29488 return NULL;
29489 }
29490
29491
29492 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29493 PyObject *resultobj = 0;
29494 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29495 wxString *arg2 = 0 ;
29496 wxDouble arg3 ;
29497 wxDouble arg4 ;
29498 wxDouble arg5 ;
29499 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29500 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
29501 void *argp1 = 0 ;
29502 int res1 = 0 ;
29503 bool temp2 = false ;
29504 double val3 ;
29505 int ecode3 = 0 ;
29506 double val4 ;
29507 int ecode4 = 0 ;
29508 double val5 ;
29509 int ecode5 = 0 ;
29510 void *argp6 = 0 ;
29511 int res6 = 0 ;
29512 PyObject * obj0 = 0 ;
29513 PyObject * obj1 = 0 ;
29514 PyObject * obj2 = 0 ;
29515 PyObject * obj3 = 0 ;
29516 PyObject * obj4 = 0 ;
29517 PyObject * obj5 = 0 ;
29518 char * kwnames[] = {
29519 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
29520 };
29521
29522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29524 if (!SWIG_IsOK(res1)) {
29525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29526 }
29527 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29528 {
29529 arg2 = wxString_in_helper(obj1);
29530 if (arg2 == NULL) SWIG_fail;
29531 temp2 = true;
29532 }
29533 ecode3 = SWIG_AsVal_double(obj2, &val3);
29534 if (!SWIG_IsOK(ecode3)) {
29535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
29536 }
29537 arg3 = static_cast< wxDouble >(val3);
29538 ecode4 = SWIG_AsVal_double(obj3, &val4);
29539 if (!SWIG_IsOK(ecode4)) {
29540 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
29541 }
29542 arg4 = static_cast< wxDouble >(val4);
29543 ecode5 = SWIG_AsVal_double(obj4, &val5);
29544 if (!SWIG_IsOK(ecode5)) {
29545 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
29546 }
29547 arg5 = static_cast< wxDouble >(val5);
29548 if (obj5) {
29549 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29550 if (!SWIG_IsOK(res6)) {
29551 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29552 }
29553 if (!argp6) {
29554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29555 }
29556 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
29557 }
29558 {
29559 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
29560 if (PyErr_Occurred()) SWIG_fail;
29561 }
29562 resultobj = SWIG_Py_Void();
29563 {
29564 if (temp2)
29565 delete arg2;
29566 }
29567 return resultobj;
29568 fail:
29569 {
29570 if (temp2)
29571 delete arg2;
29572 }
29573 return NULL;
29574 }
29575
29576
29577 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29578 PyObject *resultobj = 0;
29579 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29580 wxString *arg2 = 0 ;
29581 wxDouble *arg3 = (wxDouble *) 0 ;
29582 wxDouble *arg4 = (wxDouble *) 0 ;
29583 wxDouble *arg5 = (wxDouble *) 0 ;
29584 wxDouble *arg6 = (wxDouble *) 0 ;
29585 void *argp1 = 0 ;
29586 int res1 = 0 ;
29587 bool temp2 = false ;
29588 wxDouble temp3 ;
29589 int res3 = SWIG_TMPOBJ ;
29590 wxDouble temp4 ;
29591 int res4 = SWIG_TMPOBJ ;
29592 wxDouble temp5 ;
29593 int res5 = SWIG_TMPOBJ ;
29594 wxDouble temp6 ;
29595 int res6 = SWIG_TMPOBJ ;
29596 PyObject * obj0 = 0 ;
29597 PyObject * obj1 = 0 ;
29598 char * kwnames[] = {
29599 (char *) "self",(char *) "text", NULL
29600 };
29601
29602 arg3 = &temp3;
29603 arg4 = &temp4;
29604 arg5 = &temp5;
29605 arg6 = &temp6;
29606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29608 if (!SWIG_IsOK(res1)) {
29609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29610 }
29611 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29612 {
29613 arg2 = wxString_in_helper(obj1);
29614 if (arg2 == NULL) SWIG_fail;
29615 temp2 = true;
29616 }
29617 {
29618 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
29619 if (PyErr_Occurred()) SWIG_fail;
29620 }
29621 resultobj = SWIG_Py_Void();
29622 if (SWIG_IsTmpObj(res3)) {
29623 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29624 } else {
29625 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29626 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29627 }
29628 if (SWIG_IsTmpObj(res4)) {
29629 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29630 } else {
29631 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29632 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29633 }
29634 if (SWIG_IsTmpObj(res5)) {
29635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29636 } else {
29637 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29638 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29639 }
29640 if (SWIG_IsTmpObj(res6)) {
29641 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29642 } else {
29643 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29644 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29645 }
29646 {
29647 if (temp2)
29648 delete arg2;
29649 }
29650 return resultobj;
29651 fail:
29652 {
29653 if (temp2)
29654 delete arg2;
29655 }
29656 return NULL;
29657 }
29658
29659
29660 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29661 PyObject *resultobj = 0;
29662 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29663 wxString *arg2 = 0 ;
29664 PyObject *result = 0 ;
29665 void *argp1 = 0 ;
29666 int res1 = 0 ;
29667 bool temp2 = false ;
29668 PyObject * obj0 = 0 ;
29669 PyObject * obj1 = 0 ;
29670 char * kwnames[] = {
29671 (char *) "self",(char *) "text", NULL
29672 };
29673
29674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29676 if (!SWIG_IsOK(res1)) {
29677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29678 }
29679 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29680 {
29681 arg2 = wxString_in_helper(obj1);
29682 if (arg2 == NULL) SWIG_fail;
29683 temp2 = true;
29684 }
29685 {
29686 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29687 if (PyErr_Occurred()) SWIG_fail;
29688 }
29689 resultobj = result;
29690 {
29691 if (temp2)
29692 delete arg2;
29693 }
29694 return resultobj;
29695 fail:
29696 {
29697 if (temp2)
29698 delete arg2;
29699 }
29700 return NULL;
29701 }
29702
29703
29704 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29705 PyObject *resultobj = 0;
29706 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29707 wxString *arg2 = 0 ;
29708 wxArrayDouble result;
29709 void *argp1 = 0 ;
29710 int res1 = 0 ;
29711 bool temp2 = false ;
29712 PyObject * obj0 = 0 ;
29713 PyObject * obj1 = 0 ;
29714 char * kwnames[] = {
29715 (char *) "self",(char *) "text", NULL
29716 };
29717
29718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
29719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29720 if (!SWIG_IsOK(res1)) {
29721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29722 }
29723 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29724 {
29725 arg2 = wxString_in_helper(obj1);
29726 if (arg2 == NULL) SWIG_fail;
29727 temp2 = true;
29728 }
29729 {
29730 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
29731 if (PyErr_Occurred()) SWIG_fail;
29732 }
29733 {
29734 resultobj = wxArrayDouble2PyList_helper(result);
29735 }
29736 {
29737 if (temp2)
29738 delete arg2;
29739 }
29740 return resultobj;
29741 fail:
29742 {
29743 if (temp2)
29744 delete arg2;
29745 }
29746 return NULL;
29747 }
29748
29749
29750 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29751 PyObject *resultobj = 0;
29752 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29753 wxBitmap *arg2 = 0 ;
29754 wxDouble arg3 ;
29755 wxDouble arg4 ;
29756 wxDouble arg5 ;
29757 wxDouble arg6 ;
29758 void *argp1 = 0 ;
29759 int res1 = 0 ;
29760 void *argp2 = 0 ;
29761 int res2 = 0 ;
29762 double val3 ;
29763 int ecode3 = 0 ;
29764 double val4 ;
29765 int ecode4 = 0 ;
29766 double val5 ;
29767 int ecode5 = 0 ;
29768 double val6 ;
29769 int ecode6 = 0 ;
29770 PyObject * obj0 = 0 ;
29771 PyObject * obj1 = 0 ;
29772 PyObject * obj2 = 0 ;
29773 PyObject * obj3 = 0 ;
29774 PyObject * obj4 = 0 ;
29775 PyObject * obj5 = 0 ;
29776 char * kwnames[] = {
29777 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29778 };
29779
29780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29782 if (!SWIG_IsOK(res1)) {
29783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29784 }
29785 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29786 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29787 if (!SWIG_IsOK(res2)) {
29788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29789 }
29790 if (!argp2) {
29791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29792 }
29793 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29794 ecode3 = SWIG_AsVal_double(obj2, &val3);
29795 if (!SWIG_IsOK(ecode3)) {
29796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29797 }
29798 arg3 = static_cast< wxDouble >(val3);
29799 ecode4 = SWIG_AsVal_double(obj3, &val4);
29800 if (!SWIG_IsOK(ecode4)) {
29801 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29802 }
29803 arg4 = static_cast< wxDouble >(val4);
29804 ecode5 = SWIG_AsVal_double(obj4, &val5);
29805 if (!SWIG_IsOK(ecode5)) {
29806 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29807 }
29808 arg5 = static_cast< wxDouble >(val5);
29809 ecode6 = SWIG_AsVal_double(obj5, &val6);
29810 if (!SWIG_IsOK(ecode6)) {
29811 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29812 }
29813 arg6 = static_cast< wxDouble >(val6);
29814 {
29815 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
29816 if (PyErr_Occurred()) SWIG_fail;
29817 }
29818 resultobj = SWIG_Py_Void();
29819 return resultobj;
29820 fail:
29821 return NULL;
29822 }
29823
29824
29825 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29826 PyObject *resultobj = 0;
29827 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29828 wxIcon *arg2 = 0 ;
29829 wxDouble arg3 ;
29830 wxDouble arg4 ;
29831 wxDouble arg5 ;
29832 wxDouble arg6 ;
29833 void *argp1 = 0 ;
29834 int res1 = 0 ;
29835 void *argp2 = 0 ;
29836 int res2 = 0 ;
29837 double val3 ;
29838 int ecode3 = 0 ;
29839 double val4 ;
29840 int ecode4 = 0 ;
29841 double val5 ;
29842 int ecode5 = 0 ;
29843 double val6 ;
29844 int ecode6 = 0 ;
29845 PyObject * obj0 = 0 ;
29846 PyObject * obj1 = 0 ;
29847 PyObject * obj2 = 0 ;
29848 PyObject * obj3 = 0 ;
29849 PyObject * obj4 = 0 ;
29850 PyObject * obj5 = 0 ;
29851 char * kwnames[] = {
29852 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29853 };
29854
29855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29857 if (!SWIG_IsOK(res1)) {
29858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29859 }
29860 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29861 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29862 if (!SWIG_IsOK(res2)) {
29863 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29864 }
29865 if (!argp2) {
29866 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29867 }
29868 arg2 = reinterpret_cast< wxIcon * >(argp2);
29869 ecode3 = SWIG_AsVal_double(obj2, &val3);
29870 if (!SWIG_IsOK(ecode3)) {
29871 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29872 }
29873 arg3 = static_cast< wxDouble >(val3);
29874 ecode4 = SWIG_AsVal_double(obj3, &val4);
29875 if (!SWIG_IsOK(ecode4)) {
29876 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29877 }
29878 arg4 = static_cast< wxDouble >(val4);
29879 ecode5 = SWIG_AsVal_double(obj4, &val5);
29880 if (!SWIG_IsOK(ecode5)) {
29881 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29882 }
29883 arg5 = static_cast< wxDouble >(val5);
29884 ecode6 = SWIG_AsVal_double(obj5, &val6);
29885 if (!SWIG_IsOK(ecode6)) {
29886 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29887 }
29888 arg6 = static_cast< wxDouble >(val6);
29889 {
29890 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29891 if (PyErr_Occurred()) SWIG_fail;
29892 }
29893 resultobj = SWIG_Py_Void();
29894 return resultobj;
29895 fail:
29896 return NULL;
29897 }
29898
29899
29900 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29901 PyObject *resultobj = 0;
29902 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29903 wxDouble arg2 ;
29904 wxDouble arg3 ;
29905 wxDouble arg4 ;
29906 wxDouble arg5 ;
29907 void *argp1 = 0 ;
29908 int res1 = 0 ;
29909 double val2 ;
29910 int ecode2 = 0 ;
29911 double val3 ;
29912 int ecode3 = 0 ;
29913 double val4 ;
29914 int ecode4 = 0 ;
29915 double val5 ;
29916 int ecode5 = 0 ;
29917 PyObject * obj0 = 0 ;
29918 PyObject * obj1 = 0 ;
29919 PyObject * obj2 = 0 ;
29920 PyObject * obj3 = 0 ;
29921 PyObject * obj4 = 0 ;
29922 char * kwnames[] = {
29923 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29924 };
29925
29926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29928 if (!SWIG_IsOK(res1)) {
29929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29930 }
29931 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29932 ecode2 = SWIG_AsVal_double(obj1, &val2);
29933 if (!SWIG_IsOK(ecode2)) {
29934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29935 }
29936 arg2 = static_cast< wxDouble >(val2);
29937 ecode3 = SWIG_AsVal_double(obj2, &val3);
29938 if (!SWIG_IsOK(ecode3)) {
29939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29940 }
29941 arg3 = static_cast< wxDouble >(val3);
29942 ecode4 = SWIG_AsVal_double(obj3, &val4);
29943 if (!SWIG_IsOK(ecode4)) {
29944 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29945 }
29946 arg4 = static_cast< wxDouble >(val4);
29947 ecode5 = SWIG_AsVal_double(obj4, &val5);
29948 if (!SWIG_IsOK(ecode5)) {
29949 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29950 }
29951 arg5 = static_cast< wxDouble >(val5);
29952 {
29953 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29954 if (PyErr_Occurred()) SWIG_fail;
29955 }
29956 resultobj = SWIG_Py_Void();
29957 return resultobj;
29958 fail:
29959 return NULL;
29960 }
29961
29962
29963 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29964 PyObject *resultobj = 0;
29965 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29966 size_t arg2 ;
29967 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29968 void *argp1 = 0 ;
29969 int res1 = 0 ;
29970 PyObject * obj0 = 0 ;
29971 PyObject * obj1 = 0 ;
29972 char * kwnames[] = {
29973 (char *) "self",(char *) "points", NULL
29974 };
29975
29976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29978 if (!SWIG_IsOK(res1)) {
29979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29980 }
29981 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29982 {
29983 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29984 if (arg3 == NULL) SWIG_fail;
29985 }
29986 {
29987 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29988 if (PyErr_Occurred()) SWIG_fail;
29989 }
29990 resultobj = SWIG_Py_Void();
29991 {
29992 if (arg3) delete [] arg3;
29993 }
29994 return resultobj;
29995 fail:
29996 {
29997 if (arg3) delete [] arg3;
29998 }
29999 return NULL;
30000 }
30001
30002
30003 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30004 PyObject *resultobj = 0;
30005 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30006 PyObject *arg2 = (PyObject *) 0 ;
30007 PyObject *arg3 = (PyObject *) 0 ;
30008 void *argp1 = 0 ;
30009 int res1 = 0 ;
30010 PyObject * obj0 = 0 ;
30011 PyObject * obj1 = 0 ;
30012 PyObject * obj2 = 0 ;
30013 char * kwnames[] = {
30014 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
30015 };
30016
30017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30019 if (!SWIG_IsOK(res1)) {
30020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30021 }
30022 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30023 arg2 = obj1;
30024 arg3 = obj2;
30025 {
30026 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
30027 if (PyErr_Occurred()) SWIG_fail;
30028 }
30029 resultobj = SWIG_Py_Void();
30030 return resultobj;
30031 fail:
30032 return NULL;
30033 }
30034
30035
30036 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30037 PyObject *resultobj = 0;
30038 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30039 size_t arg2 ;
30040 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30041 int arg4 = (int) wxODDEVEN_RULE ;
30042 void *argp1 = 0 ;
30043 int res1 = 0 ;
30044 int val4 ;
30045 int ecode4 = 0 ;
30046 PyObject * obj0 = 0 ;
30047 PyObject * obj1 = 0 ;
30048 PyObject * obj2 = 0 ;
30049 char * kwnames[] = {
30050 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
30051 };
30052
30053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30055 if (!SWIG_IsOK(res1)) {
30056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30057 }
30058 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30059 {
30060 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30061 if (arg3 == NULL) SWIG_fail;
30062 }
30063 if (obj2) {
30064 ecode4 = SWIG_AsVal_int(obj2, &val4);
30065 if (!SWIG_IsOK(ecode4)) {
30066 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
30067 }
30068 arg4 = static_cast< int >(val4);
30069 }
30070 {
30071 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
30072 if (PyErr_Occurred()) SWIG_fail;
30073 }
30074 resultobj = SWIG_Py_Void();
30075 {
30076 if (arg3) delete [] arg3;
30077 }
30078 return resultobj;
30079 fail:
30080 {
30081 if (arg3) delete [] arg3;
30082 }
30083 return NULL;
30084 }
30085
30086
30087 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30088 PyObject *resultobj = 0;
30089 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30090 wxDouble arg2 ;
30091 wxDouble arg3 ;
30092 wxDouble arg4 ;
30093 wxDouble arg5 ;
30094 void *argp1 = 0 ;
30095 int res1 = 0 ;
30096 double val2 ;
30097 int ecode2 = 0 ;
30098 double val3 ;
30099 int ecode3 = 0 ;
30100 double val4 ;
30101 int ecode4 = 0 ;
30102 double val5 ;
30103 int ecode5 = 0 ;
30104 PyObject * obj0 = 0 ;
30105 PyObject * obj1 = 0 ;
30106 PyObject * obj2 = 0 ;
30107 PyObject * obj3 = 0 ;
30108 PyObject * obj4 = 0 ;
30109 char * kwnames[] = {
30110 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30111 };
30112
30113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30115 if (!SWIG_IsOK(res1)) {
30116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30117 }
30118 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30119 ecode2 = SWIG_AsVal_double(obj1, &val2);
30120 if (!SWIG_IsOK(ecode2)) {
30121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30122 }
30123 arg2 = static_cast< wxDouble >(val2);
30124 ecode3 = SWIG_AsVal_double(obj2, &val3);
30125 if (!SWIG_IsOK(ecode3)) {
30126 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', 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_DrawRectangle" "', 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_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30137 }
30138 arg5 = static_cast< wxDouble >(val5);
30139 {
30140 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30141 if (PyErr_Occurred()) SWIG_fail;
30142 }
30143 resultobj = SWIG_Py_Void();
30144 return resultobj;
30145 fail:
30146 return NULL;
30147 }
30148
30149
30150 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30151 PyObject *resultobj = 0;
30152 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30153 wxDouble arg2 ;
30154 wxDouble arg3 ;
30155 wxDouble arg4 ;
30156 wxDouble arg5 ;
30157 void *argp1 = 0 ;
30158 int res1 = 0 ;
30159 double val2 ;
30160 int ecode2 = 0 ;
30161 double val3 ;
30162 int ecode3 = 0 ;
30163 double val4 ;
30164 int ecode4 = 0 ;
30165 double val5 ;
30166 int ecode5 = 0 ;
30167 PyObject * obj0 = 0 ;
30168 PyObject * obj1 = 0 ;
30169 PyObject * obj2 = 0 ;
30170 PyObject * obj3 = 0 ;
30171 PyObject * obj4 = 0 ;
30172 char * kwnames[] = {
30173 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30174 };
30175
30176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30178 if (!SWIG_IsOK(res1)) {
30179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30180 }
30181 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30182 ecode2 = SWIG_AsVal_double(obj1, &val2);
30183 if (!SWIG_IsOK(ecode2)) {
30184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
30185 }
30186 arg2 = static_cast< wxDouble >(val2);
30187 ecode3 = SWIG_AsVal_double(obj2, &val3);
30188 if (!SWIG_IsOK(ecode3)) {
30189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
30190 }
30191 arg3 = static_cast< wxDouble >(val3);
30192 ecode4 = SWIG_AsVal_double(obj3, &val4);
30193 if (!SWIG_IsOK(ecode4)) {
30194 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
30195 }
30196 arg4 = static_cast< wxDouble >(val4);
30197 ecode5 = SWIG_AsVal_double(obj4, &val5);
30198 if (!SWIG_IsOK(ecode5)) {
30199 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
30200 }
30201 arg5 = static_cast< wxDouble >(val5);
30202 {
30203 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
30204 if (PyErr_Occurred()) SWIG_fail;
30205 }
30206 resultobj = SWIG_Py_Void();
30207 return resultobj;
30208 fail:
30209 return NULL;
30210 }
30211
30212
30213 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30214 PyObject *resultobj = 0;
30215 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30216 wxDouble arg2 ;
30217 wxDouble arg3 ;
30218 wxDouble arg4 ;
30219 wxDouble arg5 ;
30220 wxDouble arg6 ;
30221 void *argp1 = 0 ;
30222 int res1 = 0 ;
30223 double val2 ;
30224 int ecode2 = 0 ;
30225 double val3 ;
30226 int ecode3 = 0 ;
30227 double val4 ;
30228 int ecode4 = 0 ;
30229 double val5 ;
30230 int ecode5 = 0 ;
30231 double val6 ;
30232 int ecode6 = 0 ;
30233 PyObject * obj0 = 0 ;
30234 PyObject * obj1 = 0 ;
30235 PyObject * obj2 = 0 ;
30236 PyObject * obj3 = 0 ;
30237 PyObject * obj4 = 0 ;
30238 PyObject * obj5 = 0 ;
30239 char * kwnames[] = {
30240 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
30241 };
30242
30243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30245 if (!SWIG_IsOK(res1)) {
30246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30247 }
30248 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30249 ecode2 = SWIG_AsVal_double(obj1, &val2);
30250 if (!SWIG_IsOK(ecode2)) {
30251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30252 }
30253 arg2 = static_cast< wxDouble >(val2);
30254 ecode3 = SWIG_AsVal_double(obj2, &val3);
30255 if (!SWIG_IsOK(ecode3)) {
30256 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30257 }
30258 arg3 = static_cast< wxDouble >(val3);
30259 ecode4 = SWIG_AsVal_double(obj3, &val4);
30260 if (!SWIG_IsOK(ecode4)) {
30261 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30262 }
30263 arg4 = static_cast< wxDouble >(val4);
30264 ecode5 = SWIG_AsVal_double(obj4, &val5);
30265 if (!SWIG_IsOK(ecode5)) {
30266 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30267 }
30268 arg5 = static_cast< wxDouble >(val5);
30269 ecode6 = SWIG_AsVal_double(obj5, &val6);
30270 if (!SWIG_IsOK(ecode6)) {
30271 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30272 }
30273 arg6 = static_cast< wxDouble >(val6);
30274 {
30275 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
30276 if (PyErr_Occurred()) SWIG_fail;
30277 }
30278 resultobj = SWIG_Py_Void();
30279 return resultobj;
30280 fail:
30281 return NULL;
30282 }
30283
30284
30285 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30286 PyObject *resultobj = 0;
30287 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30288 bool result;
30289 void *argp1 = 0 ;
30290 int res1 = 0 ;
30291 PyObject *swig_obj[1] ;
30292
30293 if (!args) SWIG_fail;
30294 swig_obj[0] = args;
30295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30296 if (!SWIG_IsOK(res1)) {
30297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
30298 }
30299 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30300 {
30301 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30302 if (PyErr_Occurred()) SWIG_fail;
30303 }
30304 {
30305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30306 }
30307 return resultobj;
30308 fail:
30309 return NULL;
30310 }
30311
30312
30313 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30314 PyObject *obj;
30315 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30316 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30317 return SWIG_Py_Void();
30318 }
30319
30320 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30321 PyObject *resultobj = 0;
30322 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30323 void *argp1 = 0 ;
30324 int res1 = 0 ;
30325 PyObject *swig_obj[1] ;
30326
30327 if (!args) SWIG_fail;
30328 swig_obj[0] = args;
30329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30330 if (!SWIG_IsOK(res1)) {
30331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30332 }
30333 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30334 {
30335 delete arg1;
30336
30337 if (PyErr_Occurred()) SWIG_fail;
30338 }
30339 resultobj = SWIG_Py_Void();
30340 return resultobj;
30341 fail:
30342 return NULL;
30343 }
30344
30345
30346 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30347 PyObject *resultobj = 0;
30348 wxGraphicsRenderer *result = 0 ;
30349
30350 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
30351 {
30352 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30353 if (PyErr_Occurred()) SWIG_fail;
30354 }
30355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30356 return resultobj;
30357 fail:
30358 return NULL;
30359 }
30360
30361
30362 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30363 PyObject *resultobj = 0;
30364 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30365 wxWindowDC *arg2 = 0 ;
30366 wxGraphicsContext *result = 0 ;
30367 void *argp1 = 0 ;
30368 int res1 = 0 ;
30369 void *argp2 = 0 ;
30370 int res2 = 0 ;
30371
30372 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30374 if (!SWIG_IsOK(res1)) {
30375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30376 }
30377 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30378 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30379 if (!SWIG_IsOK(res2)) {
30380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30381 }
30382 if (!argp2) {
30383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30384 }
30385 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30386 {
30387 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30388 if (PyErr_Occurred()) SWIG_fail;
30389 }
30390 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30391 return resultobj;
30392 fail:
30393 return NULL;
30394 }
30395
30396
30397 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30398 PyObject *resultobj = 0;
30399 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30400 wxWindow *arg2 = (wxWindow *) 0 ;
30401 wxGraphicsContext *result = 0 ;
30402 void *argp1 = 0 ;
30403 int res1 = 0 ;
30404 void *argp2 = 0 ;
30405 int res2 = 0 ;
30406
30407 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30409 if (!SWIG_IsOK(res1)) {
30410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30411 }
30412 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30413 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30414 if (!SWIG_IsOK(res2)) {
30415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30416 }
30417 arg2 = reinterpret_cast< wxWindow * >(argp2);
30418 {
30419 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30420 if (PyErr_Occurred()) SWIG_fail;
30421 }
30422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30423 return resultobj;
30424 fail:
30425 return NULL;
30426 }
30427
30428
30429 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30430 int argc;
30431 PyObject *argv[3];
30432
30433 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30434 --argc;
30435 if (argc == 2) {
30436 int _v = 0;
30437 {
30438 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30439 _v = SWIG_CheckState(res);
30440 }
30441 if (!_v) goto check_1;
30442 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30443 }
30444 check_1:
30445
30446 if (argc == 2) {
30447 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30448 }
30449
30450 fail:
30451 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30452 return NULL;
30453 }
30454
30455
30456 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30457 PyObject *resultobj = 0;
30458 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30459 wxGraphicsContext *result = 0 ;
30460 void *argp1 = 0 ;
30461 int res1 = 0 ;
30462 PyObject *swig_obj[1] ;
30463
30464 if (!args) SWIG_fail;
30465 swig_obj[0] = args;
30466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30467 if (!SWIG_IsOK(res1)) {
30468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30469 }
30470 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30471 {
30472 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30473 if (PyErr_Occurred()) SWIG_fail;
30474 }
30475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30476 return resultobj;
30477 fail:
30478 return NULL;
30479 }
30480
30481
30482 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30483 PyObject *resultobj = 0;
30484 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30485 void *arg2 = (void *) 0 ;
30486 wxGraphicsContext *result = 0 ;
30487 void *argp1 = 0 ;
30488 int res1 = 0 ;
30489 int res2 ;
30490 PyObject * obj0 = 0 ;
30491 PyObject * obj1 = 0 ;
30492 char * kwnames[] = {
30493 (char *) "self",(char *) "context", NULL
30494 };
30495
30496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30498 if (!SWIG_IsOK(res1)) {
30499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30500 }
30501 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30502 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30503 if (!SWIG_IsOK(res2)) {
30504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
30505 }
30506 {
30507 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
30508 if (PyErr_Occurred()) SWIG_fail;
30509 }
30510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30511 return resultobj;
30512 fail:
30513 return NULL;
30514 }
30515
30516
30517 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30518 PyObject *resultobj = 0;
30519 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30520 void *arg2 = (void *) 0 ;
30521 wxGraphicsContext *result = 0 ;
30522 void *argp1 = 0 ;
30523 int res1 = 0 ;
30524 int res2 ;
30525 PyObject * obj0 = 0 ;
30526 PyObject * obj1 = 0 ;
30527 char * kwnames[] = {
30528 (char *) "self",(char *) "window", NULL
30529 };
30530
30531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30533 if (!SWIG_IsOK(res1)) {
30534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30535 }
30536 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30537 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30538 if (!SWIG_IsOK(res2)) {
30539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
30540 }
30541 {
30542 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
30543 if (PyErr_Occurred()) SWIG_fail;
30544 }
30545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30546 return resultobj;
30547 fail:
30548 return NULL;
30549 }
30550
30551
30552 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30553 PyObject *resultobj = 0;
30554 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30555 wxGraphicsPath result;
30556 void *argp1 = 0 ;
30557 int res1 = 0 ;
30558 PyObject *swig_obj[1] ;
30559
30560 if (!args) SWIG_fail;
30561 swig_obj[0] = args;
30562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30563 if (!SWIG_IsOK(res1)) {
30564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30565 }
30566 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30567 {
30568 result = (arg1)->CreatePath();
30569 if (PyErr_Occurred()) SWIG_fail;
30570 }
30571 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
30572 return resultobj;
30573 fail:
30574 return NULL;
30575 }
30576
30577
30578 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30579 PyObject *resultobj = 0;
30580 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30581 wxDouble arg2 = (wxDouble) 1.0 ;
30582 wxDouble arg3 = (wxDouble) 0.0 ;
30583 wxDouble arg4 = (wxDouble) 0.0 ;
30584 wxDouble arg5 = (wxDouble) 1.0 ;
30585 wxDouble arg6 = (wxDouble) 0.0 ;
30586 wxDouble arg7 = (wxDouble) 0.0 ;
30587 wxGraphicsMatrix result;
30588 void *argp1 = 0 ;
30589 int res1 = 0 ;
30590 double val2 ;
30591 int ecode2 = 0 ;
30592 double val3 ;
30593 int ecode3 = 0 ;
30594 double val4 ;
30595 int ecode4 = 0 ;
30596 double val5 ;
30597 int ecode5 = 0 ;
30598 double val6 ;
30599 int ecode6 = 0 ;
30600 double val7 ;
30601 int ecode7 = 0 ;
30602 PyObject * obj0 = 0 ;
30603 PyObject * obj1 = 0 ;
30604 PyObject * obj2 = 0 ;
30605 PyObject * obj3 = 0 ;
30606 PyObject * obj4 = 0 ;
30607 PyObject * obj5 = 0 ;
30608 PyObject * obj6 = 0 ;
30609 char * kwnames[] = {
30610 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
30611 };
30612
30613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30615 if (!SWIG_IsOK(res1)) {
30616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30617 }
30618 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30619 if (obj1) {
30620 ecode2 = SWIG_AsVal_double(obj1, &val2);
30621 if (!SWIG_IsOK(ecode2)) {
30622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30623 }
30624 arg2 = static_cast< wxDouble >(val2);
30625 }
30626 if (obj2) {
30627 ecode3 = SWIG_AsVal_double(obj2, &val3);
30628 if (!SWIG_IsOK(ecode3)) {
30629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30630 }
30631 arg3 = static_cast< wxDouble >(val3);
30632 }
30633 if (obj3) {
30634 ecode4 = SWIG_AsVal_double(obj3, &val4);
30635 if (!SWIG_IsOK(ecode4)) {
30636 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30637 }
30638 arg4 = static_cast< wxDouble >(val4);
30639 }
30640 if (obj4) {
30641 ecode5 = SWIG_AsVal_double(obj4, &val5);
30642 if (!SWIG_IsOK(ecode5)) {
30643 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30644 }
30645 arg5 = static_cast< wxDouble >(val5);
30646 }
30647 if (obj5) {
30648 ecode6 = SWIG_AsVal_double(obj5, &val6);
30649 if (!SWIG_IsOK(ecode6)) {
30650 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30651 }
30652 arg6 = static_cast< wxDouble >(val6);
30653 }
30654 if (obj6) {
30655 ecode7 = SWIG_AsVal_double(obj6, &val7);
30656 if (!SWIG_IsOK(ecode7)) {
30657 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30658 }
30659 arg7 = static_cast< wxDouble >(val7);
30660 }
30661 {
30662 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
30663 if (PyErr_Occurred()) SWIG_fail;
30664 }
30665 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
30666 return resultobj;
30667 fail:
30668 return NULL;
30669 }
30670
30671
30672 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30673 PyObject *resultobj = 0;
30674 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30675 wxPen *arg2 = 0 ;
30676 wxGraphicsPen result;
30677 void *argp1 = 0 ;
30678 int res1 = 0 ;
30679 void *argp2 = 0 ;
30680 int res2 = 0 ;
30681 PyObject * obj0 = 0 ;
30682 PyObject * obj1 = 0 ;
30683 char * kwnames[] = {
30684 (char *) "self",(char *) "pen", NULL
30685 };
30686
30687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30689 if (!SWIG_IsOK(res1)) {
30690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30691 }
30692 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30694 if (!SWIG_IsOK(res2)) {
30695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30696 }
30697 if (!argp2) {
30698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30699 }
30700 arg2 = reinterpret_cast< wxPen * >(argp2);
30701 {
30702 result = (arg1)->CreatePen((wxPen const &)*arg2);
30703 if (PyErr_Occurred()) SWIG_fail;
30704 }
30705 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30706 return resultobj;
30707 fail:
30708 return NULL;
30709 }
30710
30711
30712 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30713 PyObject *resultobj = 0;
30714 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30715 wxBrush *arg2 = 0 ;
30716 wxGraphicsBrush result;
30717 void *argp1 = 0 ;
30718 int res1 = 0 ;
30719 void *argp2 = 0 ;
30720 int res2 = 0 ;
30721 PyObject * obj0 = 0 ;
30722 PyObject * obj1 = 0 ;
30723 char * kwnames[] = {
30724 (char *) "self",(char *) "brush", NULL
30725 };
30726
30727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30729 if (!SWIG_IsOK(res1)) {
30730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30731 }
30732 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30733 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30734 if (!SWIG_IsOK(res2)) {
30735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30736 }
30737 if (!argp2) {
30738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30739 }
30740 arg2 = reinterpret_cast< wxBrush * >(argp2);
30741 {
30742 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30743 if (PyErr_Occurred()) SWIG_fail;
30744 }
30745 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30746 return resultobj;
30747 fail:
30748 return NULL;
30749 }
30750
30751
30752 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30753 PyObject *resultobj = 0;
30754 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30755 wxDouble arg2 ;
30756 wxDouble arg3 ;
30757 wxDouble arg4 ;
30758 wxDouble arg5 ;
30759 wxColour *arg6 = 0 ;
30760 wxColour *arg7 = 0 ;
30761 wxGraphicsBrush result;
30762 void *argp1 = 0 ;
30763 int res1 = 0 ;
30764 double val2 ;
30765 int ecode2 = 0 ;
30766 double val3 ;
30767 int ecode3 = 0 ;
30768 double val4 ;
30769 int ecode4 = 0 ;
30770 double val5 ;
30771 int ecode5 = 0 ;
30772 wxColour temp6 ;
30773 wxColour temp7 ;
30774 PyObject * obj0 = 0 ;
30775 PyObject * obj1 = 0 ;
30776 PyObject * obj2 = 0 ;
30777 PyObject * obj3 = 0 ;
30778 PyObject * obj4 = 0 ;
30779 PyObject * obj5 = 0 ;
30780 PyObject * obj6 = 0 ;
30781 char * kwnames[] = {
30782 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
30783 };
30784
30785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30787 if (!SWIG_IsOK(res1)) {
30788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30789 }
30790 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30791 ecode2 = SWIG_AsVal_double(obj1, &val2);
30792 if (!SWIG_IsOK(ecode2)) {
30793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30794 }
30795 arg2 = static_cast< wxDouble >(val2);
30796 ecode3 = SWIG_AsVal_double(obj2, &val3);
30797 if (!SWIG_IsOK(ecode3)) {
30798 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30799 }
30800 arg3 = static_cast< wxDouble >(val3);
30801 ecode4 = SWIG_AsVal_double(obj3, &val4);
30802 if (!SWIG_IsOK(ecode4)) {
30803 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30804 }
30805 arg4 = static_cast< wxDouble >(val4);
30806 ecode5 = SWIG_AsVal_double(obj4, &val5);
30807 if (!SWIG_IsOK(ecode5)) {
30808 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30809 }
30810 arg5 = static_cast< wxDouble >(val5);
30811 {
30812 arg6 = &temp6;
30813 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30814 }
30815 {
30816 arg7 = &temp7;
30817 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30818 }
30819 {
30820 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
30821 if (PyErr_Occurred()) SWIG_fail;
30822 }
30823 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30824 return resultobj;
30825 fail:
30826 return NULL;
30827 }
30828
30829
30830 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30831 PyObject *resultobj = 0;
30832 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30833 wxDouble arg2 ;
30834 wxDouble arg3 ;
30835 wxDouble arg4 ;
30836 wxDouble arg5 ;
30837 wxDouble arg6 ;
30838 wxColour *arg7 = 0 ;
30839 wxColour *arg8 = 0 ;
30840 wxGraphicsBrush result;
30841 void *argp1 = 0 ;
30842 int res1 = 0 ;
30843 double val2 ;
30844 int ecode2 = 0 ;
30845 double val3 ;
30846 int ecode3 = 0 ;
30847 double val4 ;
30848 int ecode4 = 0 ;
30849 double val5 ;
30850 int ecode5 = 0 ;
30851 double val6 ;
30852 int ecode6 = 0 ;
30853 wxColour temp7 ;
30854 wxColour temp8 ;
30855 PyObject * obj0 = 0 ;
30856 PyObject * obj1 = 0 ;
30857 PyObject * obj2 = 0 ;
30858 PyObject * obj3 = 0 ;
30859 PyObject * obj4 = 0 ;
30860 PyObject * obj5 = 0 ;
30861 PyObject * obj6 = 0 ;
30862 PyObject * obj7 = 0 ;
30863 char * kwnames[] = {
30864 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
30865 };
30866
30867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30869 if (!SWIG_IsOK(res1)) {
30870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30871 }
30872 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30873 ecode2 = SWIG_AsVal_double(obj1, &val2);
30874 if (!SWIG_IsOK(ecode2)) {
30875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30876 }
30877 arg2 = static_cast< wxDouble >(val2);
30878 ecode3 = SWIG_AsVal_double(obj2, &val3);
30879 if (!SWIG_IsOK(ecode3)) {
30880 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30881 }
30882 arg3 = static_cast< wxDouble >(val3);
30883 ecode4 = SWIG_AsVal_double(obj3, &val4);
30884 if (!SWIG_IsOK(ecode4)) {
30885 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30886 }
30887 arg4 = static_cast< wxDouble >(val4);
30888 ecode5 = SWIG_AsVal_double(obj4, &val5);
30889 if (!SWIG_IsOK(ecode5)) {
30890 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30891 }
30892 arg5 = static_cast< wxDouble >(val5);
30893 ecode6 = SWIG_AsVal_double(obj5, &val6);
30894 if (!SWIG_IsOK(ecode6)) {
30895 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
30896 }
30897 arg6 = static_cast< wxDouble >(val6);
30898 {
30899 arg7 = &temp7;
30900 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30901 }
30902 {
30903 arg8 = &temp8;
30904 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30905 }
30906 {
30907 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
30908 if (PyErr_Occurred()) SWIG_fail;
30909 }
30910 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30911 return resultobj;
30912 fail:
30913 return NULL;
30914 }
30915
30916
30917 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30918 PyObject *resultobj = 0;
30919 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30920 wxFont *arg2 = 0 ;
30921 wxColour const &arg3_defvalue = *wxBLACK ;
30922 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30923 wxGraphicsFont result;
30924 void *argp1 = 0 ;
30925 int res1 = 0 ;
30926 void *argp2 = 0 ;
30927 int res2 = 0 ;
30928 wxColour temp3 ;
30929 PyObject * obj0 = 0 ;
30930 PyObject * obj1 = 0 ;
30931 PyObject * obj2 = 0 ;
30932 char * kwnames[] = {
30933 (char *) "self",(char *) "font",(char *) "col", NULL
30934 };
30935
30936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30938 if (!SWIG_IsOK(res1)) {
30939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30940 }
30941 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30942 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30943 if (!SWIG_IsOK(res2)) {
30944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30945 }
30946 if (!argp2) {
30947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30948 }
30949 arg2 = reinterpret_cast< wxFont * >(argp2);
30950 if (obj2) {
30951 {
30952 arg3 = &temp3;
30953 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30954 }
30955 }
30956 {
30957 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30958 if (PyErr_Occurred()) SWIG_fail;
30959 }
30960 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30961 return resultobj;
30962 fail:
30963 return NULL;
30964 }
30965
30966
30967 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30968 PyObject *obj;
30969 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30970 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
30971 return SWIG_Py_Void();
30972 }
30973
30974 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30975 PyObject *resultobj = 0;
30976 wxWindowDC *arg1 = 0 ;
30977 wxGCDC *result = 0 ;
30978 void *argp1 = 0 ;
30979 int res1 = 0 ;
30980
30981 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30983 if (!SWIG_IsOK(res1)) {
30984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30985 }
30986 if (!argp1) {
30987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30988 }
30989 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30990 {
30991 if (!wxPyCheckForApp()) SWIG_fail;
30992 PyThreadState* __tstate = wxPyBeginAllowThreads();
30993 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30994 wxPyEndAllowThreads(__tstate);
30995 if (PyErr_Occurred()) SWIG_fail;
30996 }
30997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30998 return resultobj;
30999 fail:
31000 return NULL;
31001 }
31002
31003
31004 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31005 PyObject *resultobj = 0;
31006 wxWindow *arg1 = (wxWindow *) 0 ;
31007 wxGCDC *result = 0 ;
31008 void *argp1 = 0 ;
31009 int res1 = 0 ;
31010
31011 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31013 if (!SWIG_IsOK(res1)) {
31014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
31015 }
31016 arg1 = reinterpret_cast< wxWindow * >(argp1);
31017 {
31018 if (!wxPyCheckForApp()) SWIG_fail;
31019 PyThreadState* __tstate = wxPyBeginAllowThreads();
31020 result = (wxGCDC *)new wxGCDC(arg1);
31021 wxPyEndAllowThreads(__tstate);
31022 if (PyErr_Occurred()) SWIG_fail;
31023 }
31024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31025 return resultobj;
31026 fail:
31027 return NULL;
31028 }
31029
31030
31031 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
31032 int argc;
31033 PyObject *argv[2];
31034
31035 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
31036 --argc;
31037 if (argc == 1) {
31038 int _v = 0;
31039 {
31040 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
31041 _v = SWIG_CheckState(res);
31042 }
31043 if (!_v) goto check_1;
31044 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
31045 }
31046 check_1:
31047
31048 if (argc == 1) {
31049 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
31050 }
31051
31052 fail:
31053 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
31054 return NULL;
31055 }
31056
31057
31058 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31059 PyObject *resultobj = 0;
31060 wxGCDC *arg1 = (wxGCDC *) 0 ;
31061 void *argp1 = 0 ;
31062 int res1 = 0 ;
31063 PyObject *swig_obj[1] ;
31064
31065 if (!args) SWIG_fail;
31066 swig_obj[0] = args;
31067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
31068 if (!SWIG_IsOK(res1)) {
31069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
31070 }
31071 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31072 {
31073 delete arg1;
31074
31075 if (PyErr_Occurred()) SWIG_fail;
31076 }
31077 resultobj = SWIG_Py_Void();
31078 return resultobj;
31079 fail:
31080 return NULL;
31081 }
31082
31083
31084 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31085 PyObject *resultobj = 0;
31086 wxGCDC *arg1 = (wxGCDC *) 0 ;
31087 wxGraphicsContext *result = 0 ;
31088 void *argp1 = 0 ;
31089 int res1 = 0 ;
31090 PyObject *swig_obj[1] ;
31091
31092 if (!args) SWIG_fail;
31093 swig_obj[0] = args;
31094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31095 if (!SWIG_IsOK(res1)) {
31096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31097 }
31098 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31099 {
31100 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
31101 if (PyErr_Occurred()) SWIG_fail;
31102 }
31103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31104 return resultobj;
31105 fail:
31106 return NULL;
31107 }
31108
31109
31110 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31111 PyObject *resultobj = 0;
31112 wxGCDC *arg1 = (wxGCDC *) 0 ;
31113 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
31114 void *argp1 = 0 ;
31115 int res1 = 0 ;
31116 void *argp2 = 0 ;
31117 int res2 = 0 ;
31118 PyObject * obj0 = 0 ;
31119 PyObject * obj1 = 0 ;
31120 char * kwnames[] = {
31121 (char *) "self",(char *) "ctx", NULL
31122 };
31123
31124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
31125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31126 if (!SWIG_IsOK(res1)) {
31127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31128 }
31129 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31130 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31131 if (!SWIG_IsOK(res2)) {
31132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
31133 }
31134 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
31135 {
31136 (arg1)->SetGraphicsContext(arg2);
31137 if (PyErr_Occurred()) SWIG_fail;
31138 }
31139 resultobj = SWIG_Py_Void();
31140 return resultobj;
31141 fail:
31142 return NULL;
31143 }
31144
31145
31146 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31147 PyObject *obj;
31148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31149 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
31150 return SWIG_Py_Void();
31151 }
31152
31153 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31154 return SWIG_Python_InitShadowInstance(args);
31155 }
31156
31157 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31158 PyObject *resultobj = 0;
31159 wxOverlay *result = 0 ;
31160
31161 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
31162 {
31163 PyThreadState* __tstate = wxPyBeginAllowThreads();
31164 result = (wxOverlay *)new wxOverlay();
31165 wxPyEndAllowThreads(__tstate);
31166 if (PyErr_Occurred()) SWIG_fail;
31167 }
31168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
31169 return resultobj;
31170 fail:
31171 return NULL;
31172 }
31173
31174
31175 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31176 PyObject *resultobj = 0;
31177 wxOverlay *arg1 = (wxOverlay *) 0 ;
31178 void *argp1 = 0 ;
31179 int res1 = 0 ;
31180 PyObject *swig_obj[1] ;
31181
31182 if (!args) SWIG_fail;
31183 swig_obj[0] = args;
31184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
31185 if (!SWIG_IsOK(res1)) {
31186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
31187 }
31188 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31189 {
31190 PyThreadState* __tstate = wxPyBeginAllowThreads();
31191 delete arg1;
31192
31193 wxPyEndAllowThreads(__tstate);
31194 if (PyErr_Occurred()) SWIG_fail;
31195 }
31196 resultobj = SWIG_Py_Void();
31197 return resultobj;
31198 fail:
31199 return NULL;
31200 }
31201
31202
31203 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31204 PyObject *resultobj = 0;
31205 wxOverlay *arg1 = (wxOverlay *) 0 ;
31206 void *argp1 = 0 ;
31207 int res1 = 0 ;
31208 PyObject *swig_obj[1] ;
31209
31210 if (!args) SWIG_fail;
31211 swig_obj[0] = args;
31212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
31213 if (!SWIG_IsOK(res1)) {
31214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
31215 }
31216 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31217 {
31218 PyThreadState* __tstate = wxPyBeginAllowThreads();
31219 (arg1)->Reset();
31220 wxPyEndAllowThreads(__tstate);
31221 if (PyErr_Occurred()) SWIG_fail;
31222 }
31223 resultobj = SWIG_Py_Void();
31224 return resultobj;
31225 fail:
31226 return NULL;
31227 }
31228
31229
31230 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31231 PyObject *obj;
31232 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31233 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31234 return SWIG_Py_Void();
31235 }
31236
31237 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31238 return SWIG_Python_InitShadowInstance(args);
31239 }
31240
31241 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31242 PyObject *resultobj = 0;
31243 wxOverlay *arg1 = 0 ;
31244 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31245 int arg3 ;
31246 int arg4 ;
31247 int arg5 ;
31248 int arg6 ;
31249 wxDCOverlay *result = 0 ;
31250 void *argp1 = 0 ;
31251 int res1 = 0 ;
31252 void *argp2 = 0 ;
31253 int res2 = 0 ;
31254 int val3 ;
31255 int ecode3 = 0 ;
31256 int val4 ;
31257 int ecode4 = 0 ;
31258 int val5 ;
31259 int ecode5 = 0 ;
31260 int val6 ;
31261 int ecode6 = 0 ;
31262
31263 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31265 if (!SWIG_IsOK(res1)) {
31266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31267 }
31268 if (!argp1) {
31269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31270 }
31271 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31272 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31273 if (!SWIG_IsOK(res2)) {
31274 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31275 }
31276 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31277 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31278 if (!SWIG_IsOK(ecode3)) {
31279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31280 }
31281 arg3 = static_cast< int >(val3);
31282 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31283 if (!SWIG_IsOK(ecode4)) {
31284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31285 }
31286 arg4 = static_cast< int >(val4);
31287 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31288 if (!SWIG_IsOK(ecode5)) {
31289 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31290 }
31291 arg5 = static_cast< int >(val5);
31292 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31293 if (!SWIG_IsOK(ecode6)) {
31294 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31295 }
31296 arg6 = static_cast< int >(val6);
31297 {
31298 PyThreadState* __tstate = wxPyBeginAllowThreads();
31299 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31300 wxPyEndAllowThreads(__tstate);
31301 if (PyErr_Occurred()) SWIG_fail;
31302 }
31303 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31304 return resultobj;
31305 fail:
31306 return NULL;
31307 }
31308
31309
31310 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31311 PyObject *resultobj = 0;
31312 wxOverlay *arg1 = 0 ;
31313 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31314 wxDCOverlay *result = 0 ;
31315 void *argp1 = 0 ;
31316 int res1 = 0 ;
31317 void *argp2 = 0 ;
31318 int res2 = 0 ;
31319
31320 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31322 if (!SWIG_IsOK(res1)) {
31323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31324 }
31325 if (!argp1) {
31326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31327 }
31328 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31329 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31330 if (!SWIG_IsOK(res2)) {
31331 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31332 }
31333 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31334 {
31335 PyThreadState* __tstate = wxPyBeginAllowThreads();
31336 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31337 wxPyEndAllowThreads(__tstate);
31338 if (PyErr_Occurred()) SWIG_fail;
31339 }
31340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31341 return resultobj;
31342 fail:
31343 return NULL;
31344 }
31345
31346
31347 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31348 int argc;
31349 PyObject *argv[7];
31350
31351 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31352 --argc;
31353 if (argc == 2) {
31354 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31355 }
31356 if (argc == 6) {
31357 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31358 }
31359
31360 fail:
31361 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31362 return NULL;
31363 }
31364
31365
31366 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31367 PyObject *resultobj = 0;
31368 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31369 void *argp1 = 0 ;
31370 int res1 = 0 ;
31371 PyObject *swig_obj[1] ;
31372
31373 if (!args) SWIG_fail;
31374 swig_obj[0] = args;
31375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31376 if (!SWIG_IsOK(res1)) {
31377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31378 }
31379 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31380 {
31381 PyThreadState* __tstate = wxPyBeginAllowThreads();
31382 delete arg1;
31383
31384 wxPyEndAllowThreads(__tstate);
31385 if (PyErr_Occurred()) SWIG_fail;
31386 }
31387 resultobj = SWIG_Py_Void();
31388 return resultobj;
31389 fail:
31390 return NULL;
31391 }
31392
31393
31394 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31395 PyObject *resultobj = 0;
31396 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31397 void *argp1 = 0 ;
31398 int res1 = 0 ;
31399 PyObject *swig_obj[1] ;
31400
31401 if (!args) SWIG_fail;
31402 swig_obj[0] = args;
31403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31404 if (!SWIG_IsOK(res1)) {
31405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31406 }
31407 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31408 {
31409 PyThreadState* __tstate = wxPyBeginAllowThreads();
31410 (arg1)->Clear();
31411 wxPyEndAllowThreads(__tstate);
31412 if (PyErr_Occurred()) SWIG_fail;
31413 }
31414 resultobj = SWIG_Py_Void();
31415 return resultobj;
31416 fail:
31417 return NULL;
31418 }
31419
31420
31421 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31422 PyObject *obj;
31423 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31424 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31425 return SWIG_Py_Void();
31426 }
31427
31428 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31429 return SWIG_Python_InitShadowInstance(args);
31430 }
31431
31432 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31433 PyObject *resultobj = 0;
31434 int arg1 ;
31435 int arg2 ;
31436 int arg3 = (int) true ;
31437 int arg4 = (int) 1 ;
31438 wxImageList *result = 0 ;
31439 int val1 ;
31440 int ecode1 = 0 ;
31441 int val2 ;
31442 int ecode2 = 0 ;
31443 int val3 ;
31444 int ecode3 = 0 ;
31445 int val4 ;
31446 int ecode4 = 0 ;
31447 PyObject * obj0 = 0 ;
31448 PyObject * obj1 = 0 ;
31449 PyObject * obj2 = 0 ;
31450 PyObject * obj3 = 0 ;
31451 char * kwnames[] = {
31452 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31453 };
31454
31455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31456 ecode1 = SWIG_AsVal_int(obj0, &val1);
31457 if (!SWIG_IsOK(ecode1)) {
31458 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31459 }
31460 arg1 = static_cast< int >(val1);
31461 ecode2 = SWIG_AsVal_int(obj1, &val2);
31462 if (!SWIG_IsOK(ecode2)) {
31463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31464 }
31465 arg2 = static_cast< int >(val2);
31466 if (obj2) {
31467 ecode3 = SWIG_AsVal_int(obj2, &val3);
31468 if (!SWIG_IsOK(ecode3)) {
31469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31470 }
31471 arg3 = static_cast< int >(val3);
31472 }
31473 if (obj3) {
31474 ecode4 = SWIG_AsVal_int(obj3, &val4);
31475 if (!SWIG_IsOK(ecode4)) {
31476 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31477 }
31478 arg4 = static_cast< int >(val4);
31479 }
31480 {
31481 if (!wxPyCheckForApp()) SWIG_fail;
31482 PyThreadState* __tstate = wxPyBeginAllowThreads();
31483 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31484 wxPyEndAllowThreads(__tstate);
31485 if (PyErr_Occurred()) SWIG_fail;
31486 }
31487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
31488 return resultobj;
31489 fail:
31490 return NULL;
31491 }
31492
31493
31494 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31495 PyObject *resultobj = 0;
31496 wxImageList *arg1 = (wxImageList *) 0 ;
31497 void *argp1 = 0 ;
31498 int res1 = 0 ;
31499 PyObject *swig_obj[1] ;
31500
31501 if (!args) SWIG_fail;
31502 swig_obj[0] = args;
31503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31504 if (!SWIG_IsOK(res1)) {
31505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31506 }
31507 arg1 = reinterpret_cast< wxImageList * >(argp1);
31508 {
31509 PyThreadState* __tstate = wxPyBeginAllowThreads();
31510 delete arg1;
31511
31512 wxPyEndAllowThreads(__tstate);
31513 if (PyErr_Occurred()) SWIG_fail;
31514 }
31515 resultobj = SWIG_Py_Void();
31516 return resultobj;
31517 fail:
31518 return NULL;
31519 }
31520
31521
31522 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31523 PyObject *resultobj = 0;
31524 wxImageList *arg1 = (wxImageList *) 0 ;
31525 wxBitmap *arg2 = 0 ;
31526 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31527 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31528 int result;
31529 void *argp1 = 0 ;
31530 int res1 = 0 ;
31531 void *argp2 = 0 ;
31532 int res2 = 0 ;
31533 void *argp3 = 0 ;
31534 int res3 = 0 ;
31535 PyObject * obj0 = 0 ;
31536 PyObject * obj1 = 0 ;
31537 PyObject * obj2 = 0 ;
31538 char * kwnames[] = {
31539 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31540 };
31541
31542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31544 if (!SWIG_IsOK(res1)) {
31545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31546 }
31547 arg1 = reinterpret_cast< wxImageList * >(argp1);
31548 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31549 if (!SWIG_IsOK(res2)) {
31550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31551 }
31552 if (!argp2) {
31553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31554 }
31555 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31556 if (obj2) {
31557 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31558 if (!SWIG_IsOK(res3)) {
31559 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31560 }
31561 if (!argp3) {
31562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31563 }
31564 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31565 }
31566 {
31567 PyThreadState* __tstate = wxPyBeginAllowThreads();
31568 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31569 wxPyEndAllowThreads(__tstate);
31570 if (PyErr_Occurred()) SWIG_fail;
31571 }
31572 resultobj = SWIG_From_int(static_cast< int >(result));
31573 return resultobj;
31574 fail:
31575 return NULL;
31576 }
31577
31578
31579 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31580 PyObject *resultobj = 0;
31581 wxImageList *arg1 = (wxImageList *) 0 ;
31582 wxBitmap *arg2 = 0 ;
31583 wxColour *arg3 = 0 ;
31584 int result;
31585 void *argp1 = 0 ;
31586 int res1 = 0 ;
31587 void *argp2 = 0 ;
31588 int res2 = 0 ;
31589 wxColour temp3 ;
31590 PyObject * obj0 = 0 ;
31591 PyObject * obj1 = 0 ;
31592 PyObject * obj2 = 0 ;
31593 char * kwnames[] = {
31594 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31595 };
31596
31597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31599 if (!SWIG_IsOK(res1)) {
31600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31601 }
31602 arg1 = reinterpret_cast< wxImageList * >(argp1);
31603 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31604 if (!SWIG_IsOK(res2)) {
31605 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31606 }
31607 if (!argp2) {
31608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31609 }
31610 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31611 {
31612 arg3 = &temp3;
31613 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31614 }
31615 {
31616 PyThreadState* __tstate = wxPyBeginAllowThreads();
31617 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31618 wxPyEndAllowThreads(__tstate);
31619 if (PyErr_Occurred()) SWIG_fail;
31620 }
31621 resultobj = SWIG_From_int(static_cast< int >(result));
31622 return resultobj;
31623 fail:
31624 return NULL;
31625 }
31626
31627
31628 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31629 PyObject *resultobj = 0;
31630 wxImageList *arg1 = (wxImageList *) 0 ;
31631 wxIcon *arg2 = 0 ;
31632 int result;
31633 void *argp1 = 0 ;
31634 int res1 = 0 ;
31635 void *argp2 = 0 ;
31636 int res2 = 0 ;
31637 PyObject * obj0 = 0 ;
31638 PyObject * obj1 = 0 ;
31639 char * kwnames[] = {
31640 (char *) "self",(char *) "icon", NULL
31641 };
31642
31643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31645 if (!SWIG_IsOK(res1)) {
31646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31647 }
31648 arg1 = reinterpret_cast< wxImageList * >(argp1);
31649 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31650 if (!SWIG_IsOK(res2)) {
31651 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31652 }
31653 if (!argp2) {
31654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31655 }
31656 arg2 = reinterpret_cast< wxIcon * >(argp2);
31657 {
31658 PyThreadState* __tstate = wxPyBeginAllowThreads();
31659 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31660 wxPyEndAllowThreads(__tstate);
31661 if (PyErr_Occurred()) SWIG_fail;
31662 }
31663 resultobj = SWIG_From_int(static_cast< int >(result));
31664 return resultobj;
31665 fail:
31666 return NULL;
31667 }
31668
31669
31670 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31671 PyObject *resultobj = 0;
31672 wxImageList *arg1 = (wxImageList *) 0 ;
31673 int arg2 ;
31674 SwigValueWrapper<wxBitmap > result;
31675 void *argp1 = 0 ;
31676 int res1 = 0 ;
31677 int val2 ;
31678 int ecode2 = 0 ;
31679 PyObject * obj0 = 0 ;
31680 PyObject * obj1 = 0 ;
31681 char * kwnames[] = {
31682 (char *) "self",(char *) "index", NULL
31683 };
31684
31685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31687 if (!SWIG_IsOK(res1)) {
31688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31689 }
31690 arg1 = reinterpret_cast< wxImageList * >(argp1);
31691 ecode2 = SWIG_AsVal_int(obj1, &val2);
31692 if (!SWIG_IsOK(ecode2)) {
31693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31694 }
31695 arg2 = static_cast< int >(val2);
31696 {
31697 PyThreadState* __tstate = wxPyBeginAllowThreads();
31698 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31699 wxPyEndAllowThreads(__tstate);
31700 if (PyErr_Occurred()) SWIG_fail;
31701 }
31702 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31703 return resultobj;
31704 fail:
31705 return NULL;
31706 }
31707
31708
31709 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31710 PyObject *resultobj = 0;
31711 wxImageList *arg1 = (wxImageList *) 0 ;
31712 int arg2 ;
31713 wxIcon result;
31714 void *argp1 = 0 ;
31715 int res1 = 0 ;
31716 int val2 ;
31717 int ecode2 = 0 ;
31718 PyObject * obj0 = 0 ;
31719 PyObject * obj1 = 0 ;
31720 char * kwnames[] = {
31721 (char *) "self",(char *) "index", NULL
31722 };
31723
31724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31726 if (!SWIG_IsOK(res1)) {
31727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31728 }
31729 arg1 = reinterpret_cast< wxImageList * >(argp1);
31730 ecode2 = SWIG_AsVal_int(obj1, &val2);
31731 if (!SWIG_IsOK(ecode2)) {
31732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31733 }
31734 arg2 = static_cast< int >(val2);
31735 {
31736 PyThreadState* __tstate = wxPyBeginAllowThreads();
31737 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31738 wxPyEndAllowThreads(__tstate);
31739 if (PyErr_Occurred()) SWIG_fail;
31740 }
31741 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31742 return resultobj;
31743 fail:
31744 return NULL;
31745 }
31746
31747
31748 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31749 PyObject *resultobj = 0;
31750 wxImageList *arg1 = (wxImageList *) 0 ;
31751 int arg2 ;
31752 wxBitmap *arg3 = 0 ;
31753 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31754 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
31755 bool result;
31756 void *argp1 = 0 ;
31757 int res1 = 0 ;
31758 int val2 ;
31759 int ecode2 = 0 ;
31760 void *argp3 = 0 ;
31761 int res3 = 0 ;
31762 void *argp4 = 0 ;
31763 int res4 = 0 ;
31764 PyObject * obj0 = 0 ;
31765 PyObject * obj1 = 0 ;
31766 PyObject * obj2 = 0 ;
31767 PyObject * obj3 = 0 ;
31768 char * kwnames[] = {
31769 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
31770 };
31771
31772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31774 if (!SWIG_IsOK(res1)) {
31775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31776 }
31777 arg1 = reinterpret_cast< wxImageList * >(argp1);
31778 ecode2 = SWIG_AsVal_int(obj1, &val2);
31779 if (!SWIG_IsOK(ecode2)) {
31780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31781 }
31782 arg2 = static_cast< int >(val2);
31783 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31784 if (!SWIG_IsOK(res3)) {
31785 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31786 }
31787 if (!argp3) {
31788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31789 }
31790 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31791 if (obj3) {
31792 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31793 if (!SWIG_IsOK(res4)) {
31794 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31795 }
31796 if (!argp4) {
31797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31798 }
31799 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31800 }
31801 {
31802 PyThreadState* __tstate = wxPyBeginAllowThreads();
31803 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
31804 wxPyEndAllowThreads(__tstate);
31805 if (PyErr_Occurred()) SWIG_fail;
31806 }
31807 {
31808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31809 }
31810 return resultobj;
31811 fail:
31812 return NULL;
31813 }
31814
31815
31816 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31817 PyObject *resultobj = 0;
31818 wxImageList *arg1 = (wxImageList *) 0 ;
31819 int arg2 ;
31820 wxDC *arg3 = 0 ;
31821 int arg4 ;
31822 int arg5 ;
31823 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31824 bool arg7 = (bool) (bool)false ;
31825 bool result;
31826 void *argp1 = 0 ;
31827 int res1 = 0 ;
31828 int val2 ;
31829 int ecode2 = 0 ;
31830 void *argp3 = 0 ;
31831 int res3 = 0 ;
31832 int val4 ;
31833 int ecode4 = 0 ;
31834 int val5 ;
31835 int ecode5 = 0 ;
31836 int val6 ;
31837 int ecode6 = 0 ;
31838 bool val7 ;
31839 int ecode7 = 0 ;
31840 PyObject * obj0 = 0 ;
31841 PyObject * obj1 = 0 ;
31842 PyObject * obj2 = 0 ;
31843 PyObject * obj3 = 0 ;
31844 PyObject * obj4 = 0 ;
31845 PyObject * obj5 = 0 ;
31846 PyObject * obj6 = 0 ;
31847 char * kwnames[] = {
31848 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31849 };
31850
31851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31853 if (!SWIG_IsOK(res1)) {
31854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31855 }
31856 arg1 = reinterpret_cast< wxImageList * >(argp1);
31857 ecode2 = SWIG_AsVal_int(obj1, &val2);
31858 if (!SWIG_IsOK(ecode2)) {
31859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31860 }
31861 arg2 = static_cast< int >(val2);
31862 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31863 if (!SWIG_IsOK(res3)) {
31864 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31865 }
31866 if (!argp3) {
31867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31868 }
31869 arg3 = reinterpret_cast< wxDC * >(argp3);
31870 ecode4 = SWIG_AsVal_int(obj3, &val4);
31871 if (!SWIG_IsOK(ecode4)) {
31872 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31873 }
31874 arg4 = static_cast< int >(val4);
31875 ecode5 = SWIG_AsVal_int(obj4, &val5);
31876 if (!SWIG_IsOK(ecode5)) {
31877 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31878 }
31879 arg5 = static_cast< int >(val5);
31880 if (obj5) {
31881 ecode6 = SWIG_AsVal_int(obj5, &val6);
31882 if (!SWIG_IsOK(ecode6)) {
31883 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31884 }
31885 arg6 = static_cast< int >(val6);
31886 }
31887 if (obj6) {
31888 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31889 if (!SWIG_IsOK(ecode7)) {
31890 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31891 }
31892 arg7 = static_cast< bool >(val7);
31893 }
31894 {
31895 PyThreadState* __tstate = wxPyBeginAllowThreads();
31896 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31897 wxPyEndAllowThreads(__tstate);
31898 if (PyErr_Occurred()) SWIG_fail;
31899 }
31900 {
31901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31902 }
31903 return resultobj;
31904 fail:
31905 return NULL;
31906 }
31907
31908
31909 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31910 PyObject *resultobj = 0;
31911 wxImageList *arg1 = (wxImageList *) 0 ;
31912 int result;
31913 void *argp1 = 0 ;
31914 int res1 = 0 ;
31915 PyObject *swig_obj[1] ;
31916
31917 if (!args) SWIG_fail;
31918 swig_obj[0] = args;
31919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31920 if (!SWIG_IsOK(res1)) {
31921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31922 }
31923 arg1 = reinterpret_cast< wxImageList * >(argp1);
31924 {
31925 PyThreadState* __tstate = wxPyBeginAllowThreads();
31926 result = (int)(arg1)->GetImageCount();
31927 wxPyEndAllowThreads(__tstate);
31928 if (PyErr_Occurred()) SWIG_fail;
31929 }
31930 resultobj = SWIG_From_int(static_cast< int >(result));
31931 return resultobj;
31932 fail:
31933 return NULL;
31934 }
31935
31936
31937 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31938 PyObject *resultobj = 0;
31939 wxImageList *arg1 = (wxImageList *) 0 ;
31940 int arg2 ;
31941 bool result;
31942 void *argp1 = 0 ;
31943 int res1 = 0 ;
31944 int val2 ;
31945 int ecode2 = 0 ;
31946 PyObject * obj0 = 0 ;
31947 PyObject * obj1 = 0 ;
31948 char * kwnames[] = {
31949 (char *) "self",(char *) "index", NULL
31950 };
31951
31952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31954 if (!SWIG_IsOK(res1)) {
31955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31956 }
31957 arg1 = reinterpret_cast< wxImageList * >(argp1);
31958 ecode2 = SWIG_AsVal_int(obj1, &val2);
31959 if (!SWIG_IsOK(ecode2)) {
31960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31961 }
31962 arg2 = static_cast< int >(val2);
31963 {
31964 PyThreadState* __tstate = wxPyBeginAllowThreads();
31965 result = (bool)(arg1)->Remove(arg2);
31966 wxPyEndAllowThreads(__tstate);
31967 if (PyErr_Occurred()) SWIG_fail;
31968 }
31969 {
31970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31971 }
31972 return resultobj;
31973 fail:
31974 return NULL;
31975 }
31976
31977
31978 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31979 PyObject *resultobj = 0;
31980 wxImageList *arg1 = (wxImageList *) 0 ;
31981 bool result;
31982 void *argp1 = 0 ;
31983 int res1 = 0 ;
31984 PyObject *swig_obj[1] ;
31985
31986 if (!args) SWIG_fail;
31987 swig_obj[0] = args;
31988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31989 if (!SWIG_IsOK(res1)) {
31990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31991 }
31992 arg1 = reinterpret_cast< wxImageList * >(argp1);
31993 {
31994 PyThreadState* __tstate = wxPyBeginAllowThreads();
31995 result = (bool)(arg1)->RemoveAll();
31996 wxPyEndAllowThreads(__tstate);
31997 if (PyErr_Occurred()) SWIG_fail;
31998 }
31999 {
32000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32001 }
32002 return resultobj;
32003 fail:
32004 return NULL;
32005 }
32006
32007
32008 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32009 PyObject *resultobj = 0;
32010 wxImageList *arg1 = (wxImageList *) 0 ;
32011 int arg2 ;
32012 int *arg3 = 0 ;
32013 int *arg4 = 0 ;
32014 void *argp1 = 0 ;
32015 int res1 = 0 ;
32016 int val2 ;
32017 int ecode2 = 0 ;
32018 int temp3 ;
32019 int res3 = SWIG_TMPOBJ ;
32020 int temp4 ;
32021 int res4 = SWIG_TMPOBJ ;
32022 PyObject * obj0 = 0 ;
32023 PyObject * obj1 = 0 ;
32024 char * kwnames[] = {
32025 (char *) "self",(char *) "index", NULL
32026 };
32027
32028 arg3 = &temp3;
32029 arg4 = &temp4;
32030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) 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_GetSize" "', 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_GetSize" "', expected argument " "2"" of type '" "int""'");
32039 }
32040 arg2 = static_cast< int >(val2);
32041 {
32042 PyThreadState* __tstate = wxPyBeginAllowThreads();
32043 (arg1)->GetSize(arg2,*arg3,*arg4);
32044 wxPyEndAllowThreads(__tstate);
32045 if (PyErr_Occurred()) SWIG_fail;
32046 }
32047 resultobj = SWIG_Py_Void();
32048 if (SWIG_IsTmpObj(res3)) {
32049 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
32050 } else {
32051 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32052 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
32053 }
32054 if (SWIG_IsTmpObj(res4)) {
32055 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
32056 } else {
32057 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32058 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
32059 }
32060 return resultobj;
32061 fail:
32062 return NULL;
32063 }
32064
32065
32066 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32067 PyObject *obj;
32068 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32069 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
32070 return SWIG_Py_Void();
32071 }
32072
32073 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32074 return SWIG_Python_InitShadowInstance(args);
32075 }
32076
32077 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32078 PyObject *resultobj = 0;
32079 wxStockGDI *result = 0 ;
32080
32081 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
32082 {
32083 PyThreadState* __tstate = wxPyBeginAllowThreads();
32084 result = (wxStockGDI *)new wxStockGDI();
32085 wxPyEndAllowThreads(__tstate);
32086 if (PyErr_Occurred()) SWIG_fail;
32087 }
32088 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
32089 return resultobj;
32090 fail:
32091 return NULL;
32092 }
32093
32094
32095 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32096 PyObject *resultobj = 0;
32097 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32098 void *argp1 = 0 ;
32099 int res1 = 0 ;
32100 PyObject *swig_obj[1] ;
32101
32102 if (!args) SWIG_fail;
32103 swig_obj[0] = args;
32104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
32105 if (!SWIG_IsOK(res1)) {
32106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32107 }
32108 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32109 {
32110 PyThreadState* __tstate = wxPyBeginAllowThreads();
32111 delete arg1;
32112
32113 wxPyEndAllowThreads(__tstate);
32114 if (PyErr_Occurred()) SWIG_fail;
32115 }
32116 resultobj = SWIG_Py_Void();
32117 return resultobj;
32118 fail:
32119 return NULL;
32120 }
32121
32122
32123 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32124 PyObject *resultobj = 0;
32125
32126 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
32127 {
32128 PyThreadState* __tstate = wxPyBeginAllowThreads();
32129 wxStockGDI::DeleteAll();
32130 wxPyEndAllowThreads(__tstate);
32131 if (PyErr_Occurred()) SWIG_fail;
32132 }
32133 resultobj = SWIG_Py_Void();
32134 return resultobj;
32135 fail:
32136 return NULL;
32137 }
32138
32139
32140 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32141 PyObject *resultobj = 0;
32142 wxStockGDI *result = 0 ;
32143
32144 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
32145 {
32146 PyThreadState* __tstate = wxPyBeginAllowThreads();
32147 {
32148 wxStockGDI &_result_ref = wxStockGDI::instance();
32149 result = (wxStockGDI *) &_result_ref;
32150 }
32151 wxPyEndAllowThreads(__tstate);
32152 if (PyErr_Occurred()) SWIG_fail;
32153 }
32154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
32155 return resultobj;
32156 fail:
32157 return NULL;
32158 }
32159
32160
32161 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32162 PyObject *resultobj = 0;
32163 wxStockGDI::Item arg1 ;
32164 wxBrush *result = 0 ;
32165 int val1 ;
32166 int ecode1 = 0 ;
32167 PyObject * obj0 = 0 ;
32168 char * kwnames[] = {
32169 (char *) "item", NULL
32170 };
32171
32172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
32173 ecode1 = SWIG_AsVal_int(obj0, &val1);
32174 if (!SWIG_IsOK(ecode1)) {
32175 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32176 }
32177 arg1 = static_cast< wxStockGDI::Item >(val1);
32178 {
32179 PyThreadState* __tstate = wxPyBeginAllowThreads();
32180 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
32181 wxPyEndAllowThreads(__tstate);
32182 if (PyErr_Occurred()) SWIG_fail;
32183 }
32184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32185 return resultobj;
32186 fail:
32187 return NULL;
32188 }
32189
32190
32191 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32192 PyObject *resultobj = 0;
32193 wxStockGDI::Item arg1 ;
32194 wxColour *result = 0 ;
32195 int val1 ;
32196 int ecode1 = 0 ;
32197 PyObject * obj0 = 0 ;
32198 char * kwnames[] = {
32199 (char *) "item", NULL
32200 };
32201
32202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
32203 ecode1 = SWIG_AsVal_int(obj0, &val1);
32204 if (!SWIG_IsOK(ecode1)) {
32205 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32206 }
32207 arg1 = static_cast< wxStockGDI::Item >(val1);
32208 {
32209 PyThreadState* __tstate = wxPyBeginAllowThreads();
32210 result = (wxColour *)wxStockGDI::GetColour(arg1);
32211 wxPyEndAllowThreads(__tstate);
32212 if (PyErr_Occurred()) SWIG_fail;
32213 }
32214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32215 return resultobj;
32216 fail:
32217 return NULL;
32218 }
32219
32220
32221 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32222 PyObject *resultobj = 0;
32223 wxStockGDI::Item arg1 ;
32224 wxCursor *result = 0 ;
32225 int val1 ;
32226 int ecode1 = 0 ;
32227 PyObject * obj0 = 0 ;
32228 char * kwnames[] = {
32229 (char *) "item", NULL
32230 };
32231
32232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32233 ecode1 = SWIG_AsVal_int(obj0, &val1);
32234 if (!SWIG_IsOK(ecode1)) {
32235 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32236 }
32237 arg1 = static_cast< wxStockGDI::Item >(val1);
32238 {
32239 PyThreadState* __tstate = wxPyBeginAllowThreads();
32240 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32241 wxPyEndAllowThreads(__tstate);
32242 if (PyErr_Occurred()) SWIG_fail;
32243 }
32244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32245 return resultobj;
32246 fail:
32247 return NULL;
32248 }
32249
32250
32251 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32252 PyObject *resultobj = 0;
32253 wxStockGDI::Item arg1 ;
32254 wxPen *result = 0 ;
32255 int val1 ;
32256 int ecode1 = 0 ;
32257 PyObject * obj0 = 0 ;
32258 char * kwnames[] = {
32259 (char *) "item", NULL
32260 };
32261
32262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32263 ecode1 = SWIG_AsVal_int(obj0, &val1);
32264 if (!SWIG_IsOK(ecode1)) {
32265 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32266 }
32267 arg1 = static_cast< wxStockGDI::Item >(val1);
32268 {
32269 PyThreadState* __tstate = wxPyBeginAllowThreads();
32270 result = (wxPen *)wxStockGDI::GetPen(arg1);
32271 wxPyEndAllowThreads(__tstate);
32272 if (PyErr_Occurred()) SWIG_fail;
32273 }
32274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32275 return resultobj;
32276 fail:
32277 return NULL;
32278 }
32279
32280
32281 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32282 PyObject *resultobj = 0;
32283 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32284 wxStockGDI::Item arg2 ;
32285 wxFont *result = 0 ;
32286 void *argp1 = 0 ;
32287 int res1 = 0 ;
32288 int val2 ;
32289 int ecode2 = 0 ;
32290 PyObject * obj0 = 0 ;
32291 PyObject * obj1 = 0 ;
32292 char * kwnames[] = {
32293 (char *) "self",(char *) "item", NULL
32294 };
32295
32296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32298 if (!SWIG_IsOK(res1)) {
32299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32300 }
32301 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32302 ecode2 = SWIG_AsVal_int(obj1, &val2);
32303 if (!SWIG_IsOK(ecode2)) {
32304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32305 }
32306 arg2 = static_cast< wxStockGDI::Item >(val2);
32307 {
32308 PyThreadState* __tstate = wxPyBeginAllowThreads();
32309 result = (wxFont *)(arg1)->GetFont(arg2);
32310 wxPyEndAllowThreads(__tstate);
32311 if (PyErr_Occurred()) SWIG_fail;
32312 }
32313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32314 return resultobj;
32315 fail:
32316 return NULL;
32317 }
32318
32319
32320 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32321 PyObject *obj;
32322 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32323 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32324 return SWIG_Py_Void();
32325 }
32326
32327 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32328 return SWIG_Python_InitShadowInstance(args);
32329 }
32330
32331 SWIGINTERN int NullBitmap_set(PyObject *) {
32332 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32333 return 1;
32334 }
32335
32336
32337 SWIGINTERN PyObject *NullBitmap_get(void) {
32338 PyObject *pyobj = 0;
32339
32340 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32341 return pyobj;
32342 }
32343
32344
32345 SWIGINTERN int NullIcon_set(PyObject *) {
32346 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32347 return 1;
32348 }
32349
32350
32351 SWIGINTERN PyObject *NullIcon_get(void) {
32352 PyObject *pyobj = 0;
32353
32354 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32355 return pyobj;
32356 }
32357
32358
32359 SWIGINTERN int NullCursor_set(PyObject *) {
32360 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32361 return 1;
32362 }
32363
32364
32365 SWIGINTERN PyObject *NullCursor_get(void) {
32366 PyObject *pyobj = 0;
32367
32368 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32369 return pyobj;
32370 }
32371
32372
32373 SWIGINTERN int NullPen_set(PyObject *) {
32374 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32375 return 1;
32376 }
32377
32378
32379 SWIGINTERN PyObject *NullPen_get(void) {
32380 PyObject *pyobj = 0;
32381
32382 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32383 return pyobj;
32384 }
32385
32386
32387 SWIGINTERN int NullBrush_set(PyObject *) {
32388 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32389 return 1;
32390 }
32391
32392
32393 SWIGINTERN PyObject *NullBrush_get(void) {
32394 PyObject *pyobj = 0;
32395
32396 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32397 return pyobj;
32398 }
32399
32400
32401 SWIGINTERN int NullPalette_set(PyObject *) {
32402 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32403 return 1;
32404 }
32405
32406
32407 SWIGINTERN PyObject *NullPalette_get(void) {
32408 PyObject *pyobj = 0;
32409
32410 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32411 return pyobj;
32412 }
32413
32414
32415 SWIGINTERN int NullFont_set(PyObject *) {
32416 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32417 return 1;
32418 }
32419
32420
32421 SWIGINTERN PyObject *NullFont_get(void) {
32422 PyObject *pyobj = 0;
32423
32424 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32425 return pyobj;
32426 }
32427
32428
32429 SWIGINTERN int NullColour_set(PyObject *) {
32430 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32431 return 1;
32432 }
32433
32434
32435 SWIGINTERN PyObject *NullColour_get(void) {
32436 PyObject *pyobj = 0;
32437
32438 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32439 return pyobj;
32440 }
32441
32442
32443 SWIGINTERN int NullIconBundle_set(PyObject *) {
32444 SWIG_Error(SWIG_AttributeError,"Variable NullIconBundle is read-only.");
32445 return 1;
32446 }
32447
32448
32449 SWIGINTERN PyObject *NullIconBundle_get(void) {
32450 PyObject *pyobj = 0;
32451
32452 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIconBundle), SWIGTYPE_p_wxIconBundle, 0 );
32453 return pyobj;
32454 }
32455
32456
32457 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32458 PyObject *resultobj = 0;
32459 wxGDIObjListBase *result = 0 ;
32460
32461 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32462 {
32463 PyThreadState* __tstate = wxPyBeginAllowThreads();
32464 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32465 wxPyEndAllowThreads(__tstate);
32466 if (PyErr_Occurred()) SWIG_fail;
32467 }
32468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32469 return resultobj;
32470 fail:
32471 return NULL;
32472 }
32473
32474
32475 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32476 PyObject *resultobj = 0;
32477 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
32478 void *argp1 = 0 ;
32479 int res1 = 0 ;
32480 PyObject *swig_obj[1] ;
32481
32482 if (!args) SWIG_fail;
32483 swig_obj[0] = args;
32484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
32485 if (!SWIG_IsOK(res1)) {
32486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
32487 }
32488 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
32489 {
32490 PyThreadState* __tstate = wxPyBeginAllowThreads();
32491 delete arg1;
32492
32493 wxPyEndAllowThreads(__tstate);
32494 if (PyErr_Occurred()) SWIG_fail;
32495 }
32496 resultobj = SWIG_Py_Void();
32497 return resultobj;
32498 fail:
32499 return NULL;
32500 }
32501
32502
32503 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32504 PyObject *obj;
32505 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32506 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32507 return SWIG_Py_Void();
32508 }
32509
32510 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32511 return SWIG_Python_InitShadowInstance(args);
32512 }
32513
32514 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32515 PyObject *resultobj = 0;
32516 wxPenList *arg1 = (wxPenList *) 0 ;
32517 wxColour *arg2 = 0 ;
32518 int arg3 ;
32519 int arg4 ;
32520 wxPen *result = 0 ;
32521 void *argp1 = 0 ;
32522 int res1 = 0 ;
32523 wxColour temp2 ;
32524 int val3 ;
32525 int ecode3 = 0 ;
32526 int val4 ;
32527 int ecode4 = 0 ;
32528 PyObject * obj0 = 0 ;
32529 PyObject * obj1 = 0 ;
32530 PyObject * obj2 = 0 ;
32531 PyObject * obj3 = 0 ;
32532 char * kwnames[] = {
32533 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32534 };
32535
32536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32538 if (!SWIG_IsOK(res1)) {
32539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32540 }
32541 arg1 = reinterpret_cast< wxPenList * >(argp1);
32542 {
32543 arg2 = &temp2;
32544 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32545 }
32546 ecode3 = SWIG_AsVal_int(obj2, &val3);
32547 if (!SWIG_IsOK(ecode3)) {
32548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32549 }
32550 arg3 = static_cast< int >(val3);
32551 ecode4 = SWIG_AsVal_int(obj3, &val4);
32552 if (!SWIG_IsOK(ecode4)) {
32553 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32554 }
32555 arg4 = static_cast< int >(val4);
32556 {
32557 PyThreadState* __tstate = wxPyBeginAllowThreads();
32558 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32559 wxPyEndAllowThreads(__tstate);
32560 if (PyErr_Occurred()) SWIG_fail;
32561 }
32562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32563 return resultobj;
32564 fail:
32565 return NULL;
32566 }
32567
32568
32569 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32570 PyObject *obj;
32571 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32572 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32573 return SWIG_Py_Void();
32574 }
32575
32576 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32577 PyObject *resultobj = 0;
32578 wxBrushList *arg1 = (wxBrushList *) 0 ;
32579 wxColour *arg2 = 0 ;
32580 int arg3 = (int) wxSOLID ;
32581 wxBrush *result = 0 ;
32582 void *argp1 = 0 ;
32583 int res1 = 0 ;
32584 wxColour temp2 ;
32585 int val3 ;
32586 int ecode3 = 0 ;
32587 PyObject * obj0 = 0 ;
32588 PyObject * obj1 = 0 ;
32589 PyObject * obj2 = 0 ;
32590 char * kwnames[] = {
32591 (char *) "self",(char *) "colour",(char *) "style", NULL
32592 };
32593
32594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32596 if (!SWIG_IsOK(res1)) {
32597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32598 }
32599 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32600 {
32601 arg2 = &temp2;
32602 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32603 }
32604 if (obj2) {
32605 ecode3 = SWIG_AsVal_int(obj2, &val3);
32606 if (!SWIG_IsOK(ecode3)) {
32607 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32608 }
32609 arg3 = static_cast< int >(val3);
32610 }
32611 {
32612 PyThreadState* __tstate = wxPyBeginAllowThreads();
32613 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32614 wxPyEndAllowThreads(__tstate);
32615 if (PyErr_Occurred()) SWIG_fail;
32616 }
32617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32618 return resultobj;
32619 fail:
32620 return NULL;
32621 }
32622
32623
32624 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32625 PyObject *obj;
32626 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32627 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32628 return SWIG_Py_Void();
32629 }
32630
32631 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32632 PyObject *resultobj = 0;
32633 wxFontList *arg1 = (wxFontList *) 0 ;
32634 int arg2 ;
32635 int arg3 ;
32636 int arg4 ;
32637 int arg5 ;
32638 bool arg6 = (bool) false ;
32639 wxString const &arg7_defvalue = wxPyEmptyString ;
32640 wxString *arg7 = (wxString *) &arg7_defvalue ;
32641 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32642 wxFont *result = 0 ;
32643 void *argp1 = 0 ;
32644 int res1 = 0 ;
32645 int val2 ;
32646 int ecode2 = 0 ;
32647 int val3 ;
32648 int ecode3 = 0 ;
32649 int val4 ;
32650 int ecode4 = 0 ;
32651 int val5 ;
32652 int ecode5 = 0 ;
32653 bool val6 ;
32654 int ecode6 = 0 ;
32655 bool temp7 = false ;
32656 int val8 ;
32657 int ecode8 = 0 ;
32658 PyObject * obj0 = 0 ;
32659 PyObject * obj1 = 0 ;
32660 PyObject * obj2 = 0 ;
32661 PyObject * obj3 = 0 ;
32662 PyObject * obj4 = 0 ;
32663 PyObject * obj5 = 0 ;
32664 PyObject * obj6 = 0 ;
32665 PyObject * obj7 = 0 ;
32666 char * kwnames[] = {
32667 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
32668 };
32669
32670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32672 if (!SWIG_IsOK(res1)) {
32673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32674 }
32675 arg1 = reinterpret_cast< wxFontList * >(argp1);
32676 ecode2 = SWIG_AsVal_int(obj1, &val2);
32677 if (!SWIG_IsOK(ecode2)) {
32678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32679 }
32680 arg2 = static_cast< int >(val2);
32681 ecode3 = SWIG_AsVal_int(obj2, &val3);
32682 if (!SWIG_IsOK(ecode3)) {
32683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32684 }
32685 arg3 = static_cast< int >(val3);
32686 ecode4 = SWIG_AsVal_int(obj3, &val4);
32687 if (!SWIG_IsOK(ecode4)) {
32688 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32689 }
32690 arg4 = static_cast< int >(val4);
32691 ecode5 = SWIG_AsVal_int(obj4, &val5);
32692 if (!SWIG_IsOK(ecode5)) {
32693 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32694 }
32695 arg5 = static_cast< int >(val5);
32696 if (obj5) {
32697 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32698 if (!SWIG_IsOK(ecode6)) {
32699 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32700 }
32701 arg6 = static_cast< bool >(val6);
32702 }
32703 if (obj6) {
32704 {
32705 arg7 = wxString_in_helper(obj6);
32706 if (arg7 == NULL) SWIG_fail;
32707 temp7 = true;
32708 }
32709 }
32710 if (obj7) {
32711 ecode8 = SWIG_AsVal_int(obj7, &val8);
32712 if (!SWIG_IsOK(ecode8)) {
32713 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
32714 }
32715 arg8 = static_cast< wxFontEncoding >(val8);
32716 }
32717 {
32718 PyThreadState* __tstate = wxPyBeginAllowThreads();
32719 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
32720 wxPyEndAllowThreads(__tstate);
32721 if (PyErr_Occurred()) SWIG_fail;
32722 }
32723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32724 {
32725 if (temp7)
32726 delete arg7;
32727 }
32728 return resultobj;
32729 fail:
32730 {
32731 if (temp7)
32732 delete arg7;
32733 }
32734 return NULL;
32735 }
32736
32737
32738 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32739 PyObject *obj;
32740 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32741 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
32742 return SWIG_Py_Void();
32743 }
32744
32745 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32746 PyObject *resultobj = 0;
32747 wxColourDatabase *result = 0 ;
32748
32749 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32750 {
32751 if (!wxPyCheckForApp()) SWIG_fail;
32752 PyThreadState* __tstate = wxPyBeginAllowThreads();
32753 result = (wxColourDatabase *)new wxColourDatabase();
32754 wxPyEndAllowThreads(__tstate);
32755 if (PyErr_Occurred()) SWIG_fail;
32756 }
32757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32758 return resultobj;
32759 fail:
32760 return NULL;
32761 }
32762
32763
32764 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32765 PyObject *resultobj = 0;
32766 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32767 void *argp1 = 0 ;
32768 int res1 = 0 ;
32769 PyObject *swig_obj[1] ;
32770
32771 if (!args) SWIG_fail;
32772 swig_obj[0] = args;
32773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32774 if (!SWIG_IsOK(res1)) {
32775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32776 }
32777 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32778 {
32779 PyThreadState* __tstate = wxPyBeginAllowThreads();
32780 delete arg1;
32781
32782 wxPyEndAllowThreads(__tstate);
32783 if (PyErr_Occurred()) SWIG_fail;
32784 }
32785 resultobj = SWIG_Py_Void();
32786 return resultobj;
32787 fail:
32788 return NULL;
32789 }
32790
32791
32792 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32793 PyObject *resultobj = 0;
32794 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32795 wxString *arg2 = 0 ;
32796 wxColour result;
32797 void *argp1 = 0 ;
32798 int res1 = 0 ;
32799 bool temp2 = false ;
32800 PyObject * obj0 = 0 ;
32801 PyObject * obj1 = 0 ;
32802 char * kwnames[] = {
32803 (char *) "self",(char *) "name", NULL
32804 };
32805
32806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32808 if (!SWIG_IsOK(res1)) {
32809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32810 }
32811 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32812 {
32813 arg2 = wxString_in_helper(obj1);
32814 if (arg2 == NULL) SWIG_fail;
32815 temp2 = true;
32816 }
32817 {
32818 PyThreadState* __tstate = wxPyBeginAllowThreads();
32819 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32820 wxPyEndAllowThreads(__tstate);
32821 if (PyErr_Occurred()) SWIG_fail;
32822 }
32823 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32824 {
32825 if (temp2)
32826 delete arg2;
32827 }
32828 return resultobj;
32829 fail:
32830 {
32831 if (temp2)
32832 delete arg2;
32833 }
32834 return NULL;
32835 }
32836
32837
32838 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32839 PyObject *resultobj = 0;
32840 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32841 wxColour *arg2 = 0 ;
32842 wxString result;
32843 void *argp1 = 0 ;
32844 int res1 = 0 ;
32845 wxColour temp2 ;
32846 PyObject * obj0 = 0 ;
32847 PyObject * obj1 = 0 ;
32848 char * kwnames[] = {
32849 (char *) "self",(char *) "colour", NULL
32850 };
32851
32852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32854 if (!SWIG_IsOK(res1)) {
32855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32856 }
32857 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32858 {
32859 arg2 = &temp2;
32860 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32861 }
32862 {
32863 PyThreadState* __tstate = wxPyBeginAllowThreads();
32864 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32865 wxPyEndAllowThreads(__tstate);
32866 if (PyErr_Occurred()) SWIG_fail;
32867 }
32868 {
32869 #if wxUSE_UNICODE
32870 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32871 #else
32872 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32873 #endif
32874 }
32875 return resultobj;
32876 fail:
32877 return NULL;
32878 }
32879
32880
32881 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32882 PyObject *resultobj = 0;
32883 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32884 wxString *arg2 = 0 ;
32885 wxColour *arg3 = 0 ;
32886 void *argp1 = 0 ;
32887 int res1 = 0 ;
32888 bool temp2 = false ;
32889 wxColour temp3 ;
32890 PyObject * obj0 = 0 ;
32891 PyObject * obj1 = 0 ;
32892 PyObject * obj2 = 0 ;
32893 char * kwnames[] = {
32894 (char *) "self",(char *) "name",(char *) "colour", NULL
32895 };
32896
32897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32899 if (!SWIG_IsOK(res1)) {
32900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32901 }
32902 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32903 {
32904 arg2 = wxString_in_helper(obj1);
32905 if (arg2 == NULL) SWIG_fail;
32906 temp2 = true;
32907 }
32908 {
32909 arg3 = &temp3;
32910 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32911 }
32912 {
32913 PyThreadState* __tstate = wxPyBeginAllowThreads();
32914 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32915 wxPyEndAllowThreads(__tstate);
32916 if (PyErr_Occurred()) SWIG_fail;
32917 }
32918 resultobj = SWIG_Py_Void();
32919 {
32920 if (temp2)
32921 delete arg2;
32922 }
32923 return resultobj;
32924 fail:
32925 {
32926 if (temp2)
32927 delete arg2;
32928 }
32929 return NULL;
32930 }
32931
32932
32933 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32934 PyObject *resultobj = 0;
32935 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32936 wxString *arg2 = 0 ;
32937 int arg3 ;
32938 int arg4 ;
32939 int arg5 ;
32940 void *argp1 = 0 ;
32941 int res1 = 0 ;
32942 bool temp2 = false ;
32943 int val3 ;
32944 int ecode3 = 0 ;
32945 int val4 ;
32946 int ecode4 = 0 ;
32947 int val5 ;
32948 int ecode5 = 0 ;
32949 PyObject * obj0 = 0 ;
32950 PyObject * obj1 = 0 ;
32951 PyObject * obj2 = 0 ;
32952 PyObject * obj3 = 0 ;
32953 PyObject * obj4 = 0 ;
32954 char * kwnames[] = {
32955 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
32956 };
32957
32958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32960 if (!SWIG_IsOK(res1)) {
32961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32962 }
32963 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32964 {
32965 arg2 = wxString_in_helper(obj1);
32966 if (arg2 == NULL) SWIG_fail;
32967 temp2 = true;
32968 }
32969 ecode3 = SWIG_AsVal_int(obj2, &val3);
32970 if (!SWIG_IsOK(ecode3)) {
32971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
32972 }
32973 arg3 = static_cast< int >(val3);
32974 ecode4 = SWIG_AsVal_int(obj3, &val4);
32975 if (!SWIG_IsOK(ecode4)) {
32976 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
32977 }
32978 arg4 = static_cast< int >(val4);
32979 ecode5 = SWIG_AsVal_int(obj4, &val5);
32980 if (!SWIG_IsOK(ecode5)) {
32981 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
32982 }
32983 arg5 = static_cast< int >(val5);
32984 {
32985 PyThreadState* __tstate = wxPyBeginAllowThreads();
32986 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
32987 wxPyEndAllowThreads(__tstate);
32988 if (PyErr_Occurred()) SWIG_fail;
32989 }
32990 resultobj = SWIG_Py_Void();
32991 {
32992 if (temp2)
32993 delete arg2;
32994 }
32995 return resultobj;
32996 fail:
32997 {
32998 if (temp2)
32999 delete arg2;
33000 }
33001 return NULL;
33002 }
33003
33004
33005 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33006 PyObject *obj;
33007 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33008 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33009 return SWIG_Py_Void();
33010 }
33011
33012 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33013 return SWIG_Python_InitShadowInstance(args);
33014 }
33015
33016 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33017 PyObject *resultobj = 0;
33018 wxFontList *result = 0 ;
33019
33020 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
33021 {
33022 PyThreadState* __tstate = wxPyBeginAllowThreads();
33023 result = (wxFontList *)_wxPyInitTheFontList();
33024 wxPyEndAllowThreads(__tstate);
33025 if (PyErr_Occurred()) SWIG_fail;
33026 }
33027 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
33028 return resultobj;
33029 fail:
33030 return NULL;
33031 }
33032
33033
33034 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33035 PyObject *resultobj = 0;
33036 wxPenList *result = 0 ;
33037
33038 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
33039 {
33040 PyThreadState* __tstate = wxPyBeginAllowThreads();
33041 result = (wxPenList *)_wxPyInitThePenList();
33042 wxPyEndAllowThreads(__tstate);
33043 if (PyErr_Occurred()) SWIG_fail;
33044 }
33045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
33046 return resultobj;
33047 fail:
33048 return NULL;
33049 }
33050
33051
33052 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33053 PyObject *resultobj = 0;
33054 wxBrushList *result = 0 ;
33055
33056 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33057 {
33058 PyThreadState* __tstate = wxPyBeginAllowThreads();
33059 result = (wxBrushList *)_wxPyInitTheBrushList();
33060 wxPyEndAllowThreads(__tstate);
33061 if (PyErr_Occurred()) SWIG_fail;
33062 }
33063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33064 return resultobj;
33065 fail:
33066 return NULL;
33067 }
33068
33069
33070 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33071 PyObject *resultobj = 0;
33072 wxColourDatabase *result = 0 ;
33073
33074 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33075 {
33076 PyThreadState* __tstate = wxPyBeginAllowThreads();
33077 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33078 wxPyEndAllowThreads(__tstate);
33079 if (PyErr_Occurred()) SWIG_fail;
33080 }
33081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33082 return resultobj;
33083 fail:
33084 return NULL;
33085 }
33086
33087
33088 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33089 PyObject *resultobj = 0;
33090 wxEffects *result = 0 ;
33091
33092 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33093 {
33094 PyThreadState* __tstate = wxPyBeginAllowThreads();
33095 result = (wxEffects *)new wxEffects();
33096 wxPyEndAllowThreads(__tstate);
33097 if (PyErr_Occurred()) SWIG_fail;
33098 }
33099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33100 return resultobj;
33101 fail:
33102 return NULL;
33103 }
33104
33105
33106 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33107 PyObject *resultobj = 0;
33108 wxEffects *arg1 = (wxEffects *) 0 ;
33109 wxColour result;
33110 void *argp1 = 0 ;
33111 int res1 = 0 ;
33112 PyObject *swig_obj[1] ;
33113
33114 if (!args) SWIG_fail;
33115 swig_obj[0] = args;
33116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33117 if (!SWIG_IsOK(res1)) {
33118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33119 }
33120 arg1 = reinterpret_cast< wxEffects * >(argp1);
33121 {
33122 PyThreadState* __tstate = wxPyBeginAllowThreads();
33123 result = ((wxEffects const *)arg1)->GetHighlightColour();
33124 wxPyEndAllowThreads(__tstate);
33125 if (PyErr_Occurred()) SWIG_fail;
33126 }
33127 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33128 return resultobj;
33129 fail:
33130 return NULL;
33131 }
33132
33133
33134 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33135 PyObject *resultobj = 0;
33136 wxEffects *arg1 = (wxEffects *) 0 ;
33137 wxColour result;
33138 void *argp1 = 0 ;
33139 int res1 = 0 ;
33140 PyObject *swig_obj[1] ;
33141
33142 if (!args) SWIG_fail;
33143 swig_obj[0] = args;
33144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33145 if (!SWIG_IsOK(res1)) {
33146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33147 }
33148 arg1 = reinterpret_cast< wxEffects * >(argp1);
33149 {
33150 PyThreadState* __tstate = wxPyBeginAllowThreads();
33151 result = ((wxEffects const *)arg1)->GetLightShadow();
33152 wxPyEndAllowThreads(__tstate);
33153 if (PyErr_Occurred()) SWIG_fail;
33154 }
33155 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33156 return resultobj;
33157 fail:
33158 return NULL;
33159 }
33160
33161
33162 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33163 PyObject *resultobj = 0;
33164 wxEffects *arg1 = (wxEffects *) 0 ;
33165 wxColour result;
33166 void *argp1 = 0 ;
33167 int res1 = 0 ;
33168 PyObject *swig_obj[1] ;
33169
33170 if (!args) SWIG_fail;
33171 swig_obj[0] = args;
33172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33173 if (!SWIG_IsOK(res1)) {
33174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33175 }
33176 arg1 = reinterpret_cast< wxEffects * >(argp1);
33177 {
33178 PyThreadState* __tstate = wxPyBeginAllowThreads();
33179 result = ((wxEffects const *)arg1)->GetFaceColour();
33180 wxPyEndAllowThreads(__tstate);
33181 if (PyErr_Occurred()) SWIG_fail;
33182 }
33183 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33184 return resultobj;
33185 fail:
33186 return NULL;
33187 }
33188
33189
33190 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33191 PyObject *resultobj = 0;
33192 wxEffects *arg1 = (wxEffects *) 0 ;
33193 wxColour result;
33194 void *argp1 = 0 ;
33195 int res1 = 0 ;
33196 PyObject *swig_obj[1] ;
33197
33198 if (!args) SWIG_fail;
33199 swig_obj[0] = args;
33200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33201 if (!SWIG_IsOK(res1)) {
33202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33203 }
33204 arg1 = reinterpret_cast< wxEffects * >(argp1);
33205 {
33206 PyThreadState* __tstate = wxPyBeginAllowThreads();
33207 result = ((wxEffects const *)arg1)->GetMediumShadow();
33208 wxPyEndAllowThreads(__tstate);
33209 if (PyErr_Occurred()) SWIG_fail;
33210 }
33211 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33212 return resultobj;
33213 fail:
33214 return NULL;
33215 }
33216
33217
33218 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33219 PyObject *resultobj = 0;
33220 wxEffects *arg1 = (wxEffects *) 0 ;
33221 wxColour result;
33222 void *argp1 = 0 ;
33223 int res1 = 0 ;
33224 PyObject *swig_obj[1] ;
33225
33226 if (!args) SWIG_fail;
33227 swig_obj[0] = args;
33228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33229 if (!SWIG_IsOK(res1)) {
33230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33231 }
33232 arg1 = reinterpret_cast< wxEffects * >(argp1);
33233 {
33234 PyThreadState* __tstate = wxPyBeginAllowThreads();
33235 result = ((wxEffects const *)arg1)->GetDarkShadow();
33236 wxPyEndAllowThreads(__tstate);
33237 if (PyErr_Occurred()) SWIG_fail;
33238 }
33239 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33240 return resultobj;
33241 fail:
33242 return NULL;
33243 }
33244
33245
33246 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33247 PyObject *resultobj = 0;
33248 wxEffects *arg1 = (wxEffects *) 0 ;
33249 wxColour *arg2 = 0 ;
33250 void *argp1 = 0 ;
33251 int res1 = 0 ;
33252 wxColour temp2 ;
33253 PyObject * obj0 = 0 ;
33254 PyObject * obj1 = 0 ;
33255 char * kwnames[] = {
33256 (char *) "self",(char *) "c", NULL
33257 };
33258
33259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33261 if (!SWIG_IsOK(res1)) {
33262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33263 }
33264 arg1 = reinterpret_cast< wxEffects * >(argp1);
33265 {
33266 arg2 = &temp2;
33267 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33268 }
33269 {
33270 PyThreadState* __tstate = wxPyBeginAllowThreads();
33271 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33272 wxPyEndAllowThreads(__tstate);
33273 if (PyErr_Occurred()) SWIG_fail;
33274 }
33275 resultobj = SWIG_Py_Void();
33276 return resultobj;
33277 fail:
33278 return NULL;
33279 }
33280
33281
33282 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33283 PyObject *resultobj = 0;
33284 wxEffects *arg1 = (wxEffects *) 0 ;
33285 wxColour *arg2 = 0 ;
33286 void *argp1 = 0 ;
33287 int res1 = 0 ;
33288 wxColour temp2 ;
33289 PyObject * obj0 = 0 ;
33290 PyObject * obj1 = 0 ;
33291 char * kwnames[] = {
33292 (char *) "self",(char *) "c", NULL
33293 };
33294
33295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33297 if (!SWIG_IsOK(res1)) {
33298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33299 }
33300 arg1 = reinterpret_cast< wxEffects * >(argp1);
33301 {
33302 arg2 = &temp2;
33303 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33304 }
33305 {
33306 PyThreadState* __tstate = wxPyBeginAllowThreads();
33307 (arg1)->SetLightShadow((wxColour const &)*arg2);
33308 wxPyEndAllowThreads(__tstate);
33309 if (PyErr_Occurred()) SWIG_fail;
33310 }
33311 resultobj = SWIG_Py_Void();
33312 return resultobj;
33313 fail:
33314 return NULL;
33315 }
33316
33317
33318 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33319 PyObject *resultobj = 0;
33320 wxEffects *arg1 = (wxEffects *) 0 ;
33321 wxColour *arg2 = 0 ;
33322 void *argp1 = 0 ;
33323 int res1 = 0 ;
33324 wxColour temp2 ;
33325 PyObject * obj0 = 0 ;
33326 PyObject * obj1 = 0 ;
33327 char * kwnames[] = {
33328 (char *) "self",(char *) "c", NULL
33329 };
33330
33331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33333 if (!SWIG_IsOK(res1)) {
33334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33335 }
33336 arg1 = reinterpret_cast< wxEffects * >(argp1);
33337 {
33338 arg2 = &temp2;
33339 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33340 }
33341 {
33342 PyThreadState* __tstate = wxPyBeginAllowThreads();
33343 (arg1)->SetFaceColour((wxColour const &)*arg2);
33344 wxPyEndAllowThreads(__tstate);
33345 if (PyErr_Occurred()) SWIG_fail;
33346 }
33347 resultobj = SWIG_Py_Void();
33348 return resultobj;
33349 fail:
33350 return NULL;
33351 }
33352
33353
33354 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33355 PyObject *resultobj = 0;
33356 wxEffects *arg1 = (wxEffects *) 0 ;
33357 wxColour *arg2 = 0 ;
33358 void *argp1 = 0 ;
33359 int res1 = 0 ;
33360 wxColour temp2 ;
33361 PyObject * obj0 = 0 ;
33362 PyObject * obj1 = 0 ;
33363 char * kwnames[] = {
33364 (char *) "self",(char *) "c", NULL
33365 };
33366
33367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33369 if (!SWIG_IsOK(res1)) {
33370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33371 }
33372 arg1 = reinterpret_cast< wxEffects * >(argp1);
33373 {
33374 arg2 = &temp2;
33375 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33376 }
33377 {
33378 PyThreadState* __tstate = wxPyBeginAllowThreads();
33379 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33380 wxPyEndAllowThreads(__tstate);
33381 if (PyErr_Occurred()) SWIG_fail;
33382 }
33383 resultobj = SWIG_Py_Void();
33384 return resultobj;
33385 fail:
33386 return NULL;
33387 }
33388
33389
33390 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33391 PyObject *resultobj = 0;
33392 wxEffects *arg1 = (wxEffects *) 0 ;
33393 wxColour *arg2 = 0 ;
33394 void *argp1 = 0 ;
33395 int res1 = 0 ;
33396 wxColour temp2 ;
33397 PyObject * obj0 = 0 ;
33398 PyObject * obj1 = 0 ;
33399 char * kwnames[] = {
33400 (char *) "self",(char *) "c", NULL
33401 };
33402
33403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33405 if (!SWIG_IsOK(res1)) {
33406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33407 }
33408 arg1 = reinterpret_cast< wxEffects * >(argp1);
33409 {
33410 arg2 = &temp2;
33411 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33412 }
33413 {
33414 PyThreadState* __tstate = wxPyBeginAllowThreads();
33415 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33416 wxPyEndAllowThreads(__tstate);
33417 if (PyErr_Occurred()) SWIG_fail;
33418 }
33419 resultobj = SWIG_Py_Void();
33420 return resultobj;
33421 fail:
33422 return NULL;
33423 }
33424
33425
33426 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33427 PyObject *resultobj = 0;
33428 wxEffects *arg1 = (wxEffects *) 0 ;
33429 wxColour *arg2 = 0 ;
33430 wxColour *arg3 = 0 ;
33431 wxColour *arg4 = 0 ;
33432 wxColour *arg5 = 0 ;
33433 wxColour *arg6 = 0 ;
33434 void *argp1 = 0 ;
33435 int res1 = 0 ;
33436 wxColour temp2 ;
33437 wxColour temp3 ;
33438 wxColour temp4 ;
33439 wxColour temp5 ;
33440 wxColour temp6 ;
33441 PyObject * obj0 = 0 ;
33442 PyObject * obj1 = 0 ;
33443 PyObject * obj2 = 0 ;
33444 PyObject * obj3 = 0 ;
33445 PyObject * obj4 = 0 ;
33446 PyObject * obj5 = 0 ;
33447 char * kwnames[] = {
33448 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33449 };
33450
33451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33453 if (!SWIG_IsOK(res1)) {
33454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33455 }
33456 arg1 = reinterpret_cast< wxEffects * >(argp1);
33457 {
33458 arg2 = &temp2;
33459 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33460 }
33461 {
33462 arg3 = &temp3;
33463 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33464 }
33465 {
33466 arg4 = &temp4;
33467 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33468 }
33469 {
33470 arg5 = &temp5;
33471 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33472 }
33473 {
33474 arg6 = &temp6;
33475 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33476 }
33477 {
33478 PyThreadState* __tstate = wxPyBeginAllowThreads();
33479 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33480 wxPyEndAllowThreads(__tstate);
33481 if (PyErr_Occurred()) SWIG_fail;
33482 }
33483 resultobj = SWIG_Py_Void();
33484 return resultobj;
33485 fail:
33486 return NULL;
33487 }
33488
33489
33490 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33491 PyObject *resultobj = 0;
33492 wxEffects *arg1 = (wxEffects *) 0 ;
33493 wxDC *arg2 = 0 ;
33494 wxRect *arg3 = 0 ;
33495 int arg4 = (int) 1 ;
33496 void *argp1 = 0 ;
33497 int res1 = 0 ;
33498 void *argp2 = 0 ;
33499 int res2 = 0 ;
33500 wxRect temp3 ;
33501 int val4 ;
33502 int ecode4 = 0 ;
33503 PyObject * obj0 = 0 ;
33504 PyObject * obj1 = 0 ;
33505 PyObject * obj2 = 0 ;
33506 PyObject * obj3 = 0 ;
33507 char * kwnames[] = {
33508 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33509 };
33510
33511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33513 if (!SWIG_IsOK(res1)) {
33514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33515 }
33516 arg1 = reinterpret_cast< wxEffects * >(argp1);
33517 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33518 if (!SWIG_IsOK(res2)) {
33519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33520 }
33521 if (!argp2) {
33522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33523 }
33524 arg2 = reinterpret_cast< wxDC * >(argp2);
33525 {
33526 arg3 = &temp3;
33527 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33528 }
33529 if (obj3) {
33530 ecode4 = SWIG_AsVal_int(obj3, &val4);
33531 if (!SWIG_IsOK(ecode4)) {
33532 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33533 }
33534 arg4 = static_cast< int >(val4);
33535 }
33536 {
33537 PyThreadState* __tstate = wxPyBeginAllowThreads();
33538 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33539 wxPyEndAllowThreads(__tstate);
33540 if (PyErr_Occurred()) SWIG_fail;
33541 }
33542 resultobj = SWIG_Py_Void();
33543 return resultobj;
33544 fail:
33545 return NULL;
33546 }
33547
33548
33549 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33550 PyObject *resultobj = 0;
33551 wxEffects *arg1 = (wxEffects *) 0 ;
33552 wxRect *arg2 = 0 ;
33553 wxDC *arg3 = 0 ;
33554 wxBitmap *arg4 = 0 ;
33555 bool result;
33556 void *argp1 = 0 ;
33557 int res1 = 0 ;
33558 wxRect temp2 ;
33559 void *argp3 = 0 ;
33560 int res3 = 0 ;
33561 void *argp4 = 0 ;
33562 int res4 = 0 ;
33563 PyObject * obj0 = 0 ;
33564 PyObject * obj1 = 0 ;
33565 PyObject * obj2 = 0 ;
33566 PyObject * obj3 = 0 ;
33567 char * kwnames[] = {
33568 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33569 };
33570
33571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33573 if (!SWIG_IsOK(res1)) {
33574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33575 }
33576 arg1 = reinterpret_cast< wxEffects * >(argp1);
33577 {
33578 arg2 = &temp2;
33579 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33580 }
33581 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33582 if (!SWIG_IsOK(res3)) {
33583 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33584 }
33585 if (!argp3) {
33586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33587 }
33588 arg3 = reinterpret_cast< wxDC * >(argp3);
33589 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33590 if (!SWIG_IsOK(res4)) {
33591 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33592 }
33593 if (!argp4) {
33594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33595 }
33596 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33597 {
33598 PyThreadState* __tstate = wxPyBeginAllowThreads();
33599 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33600 wxPyEndAllowThreads(__tstate);
33601 if (PyErr_Occurred()) SWIG_fail;
33602 }
33603 {
33604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33605 }
33606 return resultobj;
33607 fail:
33608 return NULL;
33609 }
33610
33611
33612 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33613 PyObject *obj;
33614 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33615 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33616 return SWIG_Py_Void();
33617 }
33618
33619 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33620 return SWIG_Python_InitShadowInstance(args);
33621 }
33622
33623 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33624 PyObject *resultobj = 0;
33625 int arg1 ;
33626 int arg2 ;
33627 bool arg3 ;
33628 wxSplitterRenderParams *result = 0 ;
33629 int val1 ;
33630 int ecode1 = 0 ;
33631 int val2 ;
33632 int ecode2 = 0 ;
33633 bool val3 ;
33634 int ecode3 = 0 ;
33635 PyObject * obj0 = 0 ;
33636 PyObject * obj1 = 0 ;
33637 PyObject * obj2 = 0 ;
33638 char * kwnames[] = {
33639 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33640 };
33641
33642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33643 ecode1 = SWIG_AsVal_int(obj0, &val1);
33644 if (!SWIG_IsOK(ecode1)) {
33645 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33646 }
33647 arg1 = static_cast< int >(val1);
33648 ecode2 = SWIG_AsVal_int(obj1, &val2);
33649 if (!SWIG_IsOK(ecode2)) {
33650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33651 }
33652 arg2 = static_cast< int >(val2);
33653 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33654 if (!SWIG_IsOK(ecode3)) {
33655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33656 }
33657 arg3 = static_cast< bool >(val3);
33658 {
33659 PyThreadState* __tstate = wxPyBeginAllowThreads();
33660 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33661 wxPyEndAllowThreads(__tstate);
33662 if (PyErr_Occurred()) SWIG_fail;
33663 }
33664 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33665 return resultobj;
33666 fail:
33667 return NULL;
33668 }
33669
33670
33671 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33672 PyObject *resultobj = 0;
33673 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33674 void *argp1 = 0 ;
33675 int res1 = 0 ;
33676 PyObject *swig_obj[1] ;
33677
33678 if (!args) SWIG_fail;
33679 swig_obj[0] = args;
33680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33681 if (!SWIG_IsOK(res1)) {
33682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33683 }
33684 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33685 {
33686 PyThreadState* __tstate = wxPyBeginAllowThreads();
33687 delete arg1;
33688
33689 wxPyEndAllowThreads(__tstate);
33690 if (PyErr_Occurred()) SWIG_fail;
33691 }
33692 resultobj = SWIG_Py_Void();
33693 return resultobj;
33694 fail:
33695 return NULL;
33696 }
33697
33698
33699 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33700 PyObject *resultobj = 0;
33701 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33702 int result;
33703 void *argp1 = 0 ;
33704 int res1 = 0 ;
33705 PyObject *swig_obj[1] ;
33706
33707 if (!args) SWIG_fail;
33708 swig_obj[0] = args;
33709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33710 if (!SWIG_IsOK(res1)) {
33711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33712 }
33713 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33714 result = (int)(int) ((arg1)->widthSash);
33715 resultobj = SWIG_From_int(static_cast< int >(result));
33716 return resultobj;
33717 fail:
33718 return NULL;
33719 }
33720
33721
33722 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33723 PyObject *resultobj = 0;
33724 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33725 int result;
33726 void *argp1 = 0 ;
33727 int res1 = 0 ;
33728 PyObject *swig_obj[1] ;
33729
33730 if (!args) SWIG_fail;
33731 swig_obj[0] = args;
33732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33733 if (!SWIG_IsOK(res1)) {
33734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33735 }
33736 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33737 result = (int)(int) ((arg1)->border);
33738 resultobj = SWIG_From_int(static_cast< int >(result));
33739 return resultobj;
33740 fail:
33741 return NULL;
33742 }
33743
33744
33745 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33746 PyObject *resultobj = 0;
33747 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33748 bool result;
33749 void *argp1 = 0 ;
33750 int res1 = 0 ;
33751 PyObject *swig_obj[1] ;
33752
33753 if (!args) SWIG_fail;
33754 swig_obj[0] = args;
33755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33756 if (!SWIG_IsOK(res1)) {
33757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33758 }
33759 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33760 result = (bool)(bool) ((arg1)->isHotSensitive);
33761 resultobj = SWIG_From_bool(static_cast< bool >(result));
33762 return resultobj;
33763 fail:
33764 return NULL;
33765 }
33766
33767
33768 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33769 PyObject *obj;
33770 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33771 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33772 return SWIG_Py_Void();
33773 }
33774
33775 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33776 return SWIG_Python_InitShadowInstance(args);
33777 }
33778
33779 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33780 PyObject *resultobj = 0;
33781 wxHeaderButtonParams *result = 0 ;
33782
33783 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33784 {
33785 PyThreadState* __tstate = wxPyBeginAllowThreads();
33786 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33787 wxPyEndAllowThreads(__tstate);
33788 if (PyErr_Occurred()) SWIG_fail;
33789 }
33790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33791 return resultobj;
33792 fail:
33793 return NULL;
33794 }
33795
33796
33797 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33798 PyObject *resultobj = 0;
33799 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33800 void *argp1 = 0 ;
33801 int res1 = 0 ;
33802 PyObject *swig_obj[1] ;
33803
33804 if (!args) SWIG_fail;
33805 swig_obj[0] = args;
33806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33807 if (!SWIG_IsOK(res1)) {
33808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33809 }
33810 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33811 {
33812 PyThreadState* __tstate = wxPyBeginAllowThreads();
33813 delete arg1;
33814
33815 wxPyEndAllowThreads(__tstate);
33816 if (PyErr_Occurred()) SWIG_fail;
33817 }
33818 resultobj = SWIG_Py_Void();
33819 return resultobj;
33820 fail:
33821 return NULL;
33822 }
33823
33824
33825 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33826 PyObject *resultobj = 0;
33827 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33828 wxColour *arg2 = (wxColour *) 0 ;
33829 void *argp1 = 0 ;
33830 int res1 = 0 ;
33831 wxColour temp2 ;
33832 PyObject *swig_obj[2] ;
33833
33834 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33836 if (!SWIG_IsOK(res1)) {
33837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33838 }
33839 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33840 {
33841 arg2 = &temp2;
33842 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33843 }
33844 if (arg1) (arg1)->m_arrowColour = *arg2;
33845
33846 resultobj = SWIG_Py_Void();
33847 return resultobj;
33848 fail:
33849 return NULL;
33850 }
33851
33852
33853 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33854 PyObject *resultobj = 0;
33855 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33856 wxColour *result = 0 ;
33857 void *argp1 = 0 ;
33858 int res1 = 0 ;
33859 PyObject *swig_obj[1] ;
33860
33861 if (!args) SWIG_fail;
33862 swig_obj[0] = args;
33863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33864 if (!SWIG_IsOK(res1)) {
33865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33866 }
33867 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33868 result = (wxColour *)& ((arg1)->m_arrowColour);
33869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33870 return resultobj;
33871 fail:
33872 return NULL;
33873 }
33874
33875
33876 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33877 PyObject *resultobj = 0;
33878 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33879 wxColour *arg2 = (wxColour *) 0 ;
33880 void *argp1 = 0 ;
33881 int res1 = 0 ;
33882 wxColour temp2 ;
33883 PyObject *swig_obj[2] ;
33884
33885 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33887 if (!SWIG_IsOK(res1)) {
33888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33889 }
33890 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33891 {
33892 arg2 = &temp2;
33893 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33894 }
33895 if (arg1) (arg1)->m_selectionColour = *arg2;
33896
33897 resultobj = SWIG_Py_Void();
33898 return resultobj;
33899 fail:
33900 return NULL;
33901 }
33902
33903
33904 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33905 PyObject *resultobj = 0;
33906 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33907 wxColour *result = 0 ;
33908 void *argp1 = 0 ;
33909 int res1 = 0 ;
33910 PyObject *swig_obj[1] ;
33911
33912 if (!args) SWIG_fail;
33913 swig_obj[0] = args;
33914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33915 if (!SWIG_IsOK(res1)) {
33916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33917 }
33918 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33919 result = (wxColour *)& ((arg1)->m_selectionColour);
33920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33921 return resultobj;
33922 fail:
33923 return NULL;
33924 }
33925
33926
33927 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33928 PyObject *resultobj = 0;
33929 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33930 wxString *arg2 = (wxString *) 0 ;
33931 void *argp1 = 0 ;
33932 int res1 = 0 ;
33933 bool temp2 = false ;
33934 PyObject *swig_obj[2] ;
33935
33936 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33938 if (!SWIG_IsOK(res1)) {
33939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33940 }
33941 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33942 {
33943 arg2 = wxString_in_helper(swig_obj[1]);
33944 if (arg2 == NULL) SWIG_fail;
33945 temp2 = true;
33946 }
33947 if (arg1) (arg1)->m_labelText = *arg2;
33948
33949 resultobj = SWIG_Py_Void();
33950 {
33951 if (temp2)
33952 delete arg2;
33953 }
33954 return resultobj;
33955 fail:
33956 {
33957 if (temp2)
33958 delete arg2;
33959 }
33960 return NULL;
33961 }
33962
33963
33964 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33965 PyObject *resultobj = 0;
33966 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33967 wxString *result = 0 ;
33968 void *argp1 = 0 ;
33969 int res1 = 0 ;
33970 PyObject *swig_obj[1] ;
33971
33972 if (!args) SWIG_fail;
33973 swig_obj[0] = args;
33974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33975 if (!SWIG_IsOK(res1)) {
33976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33977 }
33978 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33979 result = (wxString *)& ((arg1)->m_labelText);
33980 {
33981 #if wxUSE_UNICODE
33982 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33983 #else
33984 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33985 #endif
33986 }
33987 return resultobj;
33988 fail:
33989 return NULL;
33990 }
33991
33992
33993 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33994 PyObject *resultobj = 0;
33995 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33996 wxFont *arg2 = (wxFont *) 0 ;
33997 void *argp1 = 0 ;
33998 int res1 = 0 ;
33999 void *argp2 = 0 ;
34000 int res2 = 0 ;
34001 PyObject *swig_obj[2] ;
34002
34003 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34005 if (!SWIG_IsOK(res1)) {
34006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34007 }
34008 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34009 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34010 if (!SWIG_IsOK(res2)) {
34011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34012 }
34013 arg2 = reinterpret_cast< wxFont * >(argp2);
34014 if (arg1) (arg1)->m_labelFont = *arg2;
34015
34016 resultobj = SWIG_Py_Void();
34017 return resultobj;
34018 fail:
34019 return NULL;
34020 }
34021
34022
34023 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34024 PyObject *resultobj = 0;
34025 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34026 wxFont *result = 0 ;
34027 void *argp1 = 0 ;
34028 int res1 = 0 ;
34029 PyObject *swig_obj[1] ;
34030
34031 if (!args) SWIG_fail;
34032 swig_obj[0] = args;
34033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34034 if (!SWIG_IsOK(res1)) {
34035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34036 }
34037 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34038 result = (wxFont *)& ((arg1)->m_labelFont);
34039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34040 return resultobj;
34041 fail:
34042 return NULL;
34043 }
34044
34045
34046 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34047 PyObject *resultobj = 0;
34048 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34049 wxColour *arg2 = (wxColour *) 0 ;
34050 void *argp1 = 0 ;
34051 int res1 = 0 ;
34052 wxColour temp2 ;
34053 PyObject *swig_obj[2] ;
34054
34055 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34057 if (!SWIG_IsOK(res1)) {
34058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34059 }
34060 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34061 {
34062 arg2 = &temp2;
34063 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34064 }
34065 if (arg1) (arg1)->m_labelColour = *arg2;
34066
34067 resultobj = SWIG_Py_Void();
34068 return resultobj;
34069 fail:
34070 return NULL;
34071 }
34072
34073
34074 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34075 PyObject *resultobj = 0;
34076 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34077 wxColour *result = 0 ;
34078 void *argp1 = 0 ;
34079 int res1 = 0 ;
34080 PyObject *swig_obj[1] ;
34081
34082 if (!args) SWIG_fail;
34083 swig_obj[0] = args;
34084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34085 if (!SWIG_IsOK(res1)) {
34086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34087 }
34088 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34089 result = (wxColour *)& ((arg1)->m_labelColour);
34090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34091 return resultobj;
34092 fail:
34093 return NULL;
34094 }
34095
34096
34097 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34098 PyObject *resultobj = 0;
34099 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34100 wxBitmap *arg2 = (wxBitmap *) 0 ;
34101 void *argp1 = 0 ;
34102 int res1 = 0 ;
34103 void *argp2 = 0 ;
34104 int res2 = 0 ;
34105 PyObject *swig_obj[2] ;
34106
34107 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34109 if (!SWIG_IsOK(res1)) {
34110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34111 }
34112 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34113 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34114 if (!SWIG_IsOK(res2)) {
34115 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34116 }
34117 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34118 if (arg1) (arg1)->m_labelBitmap = *arg2;
34119
34120 resultobj = SWIG_Py_Void();
34121 return resultobj;
34122 fail:
34123 return NULL;
34124 }
34125
34126
34127 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34128 PyObject *resultobj = 0;
34129 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34130 wxBitmap *result = 0 ;
34131 void *argp1 = 0 ;
34132 int res1 = 0 ;
34133 PyObject *swig_obj[1] ;
34134
34135 if (!args) SWIG_fail;
34136 swig_obj[0] = args;
34137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34138 if (!SWIG_IsOK(res1)) {
34139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34140 }
34141 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34142 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34144 return resultobj;
34145 fail:
34146 return NULL;
34147 }
34148
34149
34150 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34151 PyObject *resultobj = 0;
34152 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34153 int arg2 ;
34154 void *argp1 = 0 ;
34155 int res1 = 0 ;
34156 int val2 ;
34157 int ecode2 = 0 ;
34158 PyObject *swig_obj[2] ;
34159
34160 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34162 if (!SWIG_IsOK(res1)) {
34163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34164 }
34165 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34166 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34167 if (!SWIG_IsOK(ecode2)) {
34168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34169 }
34170 arg2 = static_cast< int >(val2);
34171 if (arg1) (arg1)->m_labelAlignment = arg2;
34172
34173 resultobj = SWIG_Py_Void();
34174 return resultobj;
34175 fail:
34176 return NULL;
34177 }
34178
34179
34180 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34181 PyObject *resultobj = 0;
34182 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34183 int result;
34184 void *argp1 = 0 ;
34185 int res1 = 0 ;
34186 PyObject *swig_obj[1] ;
34187
34188 if (!args) SWIG_fail;
34189 swig_obj[0] = args;
34190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34191 if (!SWIG_IsOK(res1)) {
34192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34193 }
34194 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34195 result = (int) ((arg1)->m_labelAlignment);
34196 resultobj = SWIG_From_int(static_cast< int >(result));
34197 return resultobj;
34198 fail:
34199 return NULL;
34200 }
34201
34202
34203 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34204 PyObject *obj;
34205 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34206 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34207 return SWIG_Py_Void();
34208 }
34209
34210 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34211 return SWIG_Python_InitShadowInstance(args);
34212 }
34213
34214 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34215 PyObject *resultobj = 0;
34216 int arg1 ;
34217 int arg2 ;
34218 wxRendererVersion *result = 0 ;
34219 int val1 ;
34220 int ecode1 = 0 ;
34221 int val2 ;
34222 int ecode2 = 0 ;
34223 PyObject * obj0 = 0 ;
34224 PyObject * obj1 = 0 ;
34225 char * kwnames[] = {
34226 (char *) "version_",(char *) "age_", NULL
34227 };
34228
34229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34230 ecode1 = SWIG_AsVal_int(obj0, &val1);
34231 if (!SWIG_IsOK(ecode1)) {
34232 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34233 }
34234 arg1 = static_cast< int >(val1);
34235 ecode2 = SWIG_AsVal_int(obj1, &val2);
34236 if (!SWIG_IsOK(ecode2)) {
34237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34238 }
34239 arg2 = static_cast< int >(val2);
34240 {
34241 PyThreadState* __tstate = wxPyBeginAllowThreads();
34242 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34243 wxPyEndAllowThreads(__tstate);
34244 if (PyErr_Occurred()) SWIG_fail;
34245 }
34246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34247 return resultobj;
34248 fail:
34249 return NULL;
34250 }
34251
34252
34253 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34254 PyObject *resultobj = 0;
34255 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34256 void *argp1 = 0 ;
34257 int res1 = 0 ;
34258 PyObject *swig_obj[1] ;
34259
34260 if (!args) SWIG_fail;
34261 swig_obj[0] = args;
34262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34263 if (!SWIG_IsOK(res1)) {
34264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34265 }
34266 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34267 {
34268 PyThreadState* __tstate = wxPyBeginAllowThreads();
34269 delete arg1;
34270
34271 wxPyEndAllowThreads(__tstate);
34272 if (PyErr_Occurred()) SWIG_fail;
34273 }
34274 resultobj = SWIG_Py_Void();
34275 return resultobj;
34276 fail:
34277 return NULL;
34278 }
34279
34280
34281 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34282 PyObject *resultobj = 0;
34283 wxRendererVersion *arg1 = 0 ;
34284 bool result;
34285 void *argp1 = 0 ;
34286 int res1 = 0 ;
34287 PyObject * obj0 = 0 ;
34288 char * kwnames[] = {
34289 (char *) "ver", NULL
34290 };
34291
34292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34293 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34294 if (!SWIG_IsOK(res1)) {
34295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34296 }
34297 if (!argp1) {
34298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34299 }
34300 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34301 {
34302 PyThreadState* __tstate = wxPyBeginAllowThreads();
34303 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34304 wxPyEndAllowThreads(__tstate);
34305 if (PyErr_Occurred()) SWIG_fail;
34306 }
34307 {
34308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34309 }
34310 return resultobj;
34311 fail:
34312 return NULL;
34313 }
34314
34315
34316 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34317 PyObject *resultobj = 0;
34318 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34319 int result;
34320 void *argp1 = 0 ;
34321 int res1 = 0 ;
34322 PyObject *swig_obj[1] ;
34323
34324 if (!args) SWIG_fail;
34325 swig_obj[0] = args;
34326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34327 if (!SWIG_IsOK(res1)) {
34328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34329 }
34330 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34331 result = (int)(int) ((arg1)->version);
34332 resultobj = SWIG_From_int(static_cast< int >(result));
34333 return resultobj;
34334 fail:
34335 return NULL;
34336 }
34337
34338
34339 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34340 PyObject *resultobj = 0;
34341 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34342 int result;
34343 void *argp1 = 0 ;
34344 int res1 = 0 ;
34345 PyObject *swig_obj[1] ;
34346
34347 if (!args) SWIG_fail;
34348 swig_obj[0] = args;
34349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34350 if (!SWIG_IsOK(res1)) {
34351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34352 }
34353 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34354 result = (int)(int) ((arg1)->age);
34355 resultobj = SWIG_From_int(static_cast< int >(result));
34356 return resultobj;
34357 fail:
34358 return NULL;
34359 }
34360
34361
34362 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34363 PyObject *obj;
34364 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34365 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34366 return SWIG_Py_Void();
34367 }
34368
34369 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34370 return SWIG_Python_InitShadowInstance(args);
34371 }
34372
34373 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34374 PyObject *resultobj = 0;
34375 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34376 wxWindow *arg2 = (wxWindow *) 0 ;
34377 wxDC *arg3 = 0 ;
34378 wxRect *arg4 = 0 ;
34379 int arg5 = (int) 0 ;
34380 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34381 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34382 int result;
34383 void *argp1 = 0 ;
34384 int res1 = 0 ;
34385 void *argp2 = 0 ;
34386 int res2 = 0 ;
34387 void *argp3 = 0 ;
34388 int res3 = 0 ;
34389 wxRect temp4 ;
34390 int val5 ;
34391 int ecode5 = 0 ;
34392 int val6 ;
34393 int ecode6 = 0 ;
34394 void *argp7 = 0 ;
34395 int res7 = 0 ;
34396 PyObject * obj0 = 0 ;
34397 PyObject * obj1 = 0 ;
34398 PyObject * obj2 = 0 ;
34399 PyObject * obj3 = 0 ;
34400 PyObject * obj4 = 0 ;
34401 PyObject * obj5 = 0 ;
34402 PyObject * obj6 = 0 ;
34403 char * kwnames[] = {
34404 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34405 };
34406
34407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34409 if (!SWIG_IsOK(res1)) {
34410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34411 }
34412 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34413 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34414 if (!SWIG_IsOK(res2)) {
34415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34416 }
34417 arg2 = reinterpret_cast< wxWindow * >(argp2);
34418 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34419 if (!SWIG_IsOK(res3)) {
34420 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34421 }
34422 if (!argp3) {
34423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34424 }
34425 arg3 = reinterpret_cast< wxDC * >(argp3);
34426 {
34427 arg4 = &temp4;
34428 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34429 }
34430 if (obj4) {
34431 ecode5 = SWIG_AsVal_int(obj4, &val5);
34432 if (!SWIG_IsOK(ecode5)) {
34433 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34434 }
34435 arg5 = static_cast< int >(val5);
34436 }
34437 if (obj5) {
34438 ecode6 = SWIG_AsVal_int(obj5, &val6);
34439 if (!SWIG_IsOK(ecode6)) {
34440 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34441 }
34442 arg6 = static_cast< wxHeaderSortIconType >(val6);
34443 }
34444 if (obj6) {
34445 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34446 if (!SWIG_IsOK(res7)) {
34447 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34448 }
34449 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34450 }
34451 {
34452 PyThreadState* __tstate = wxPyBeginAllowThreads();
34453 result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34454 wxPyEndAllowThreads(__tstate);
34455 if (PyErr_Occurred()) SWIG_fail;
34456 }
34457 resultobj = SWIG_From_int(static_cast< int >(result));
34458 return resultobj;
34459 fail:
34460 return NULL;
34461 }
34462
34463
34464 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34465 PyObject *resultobj = 0;
34466 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34467 wxWindow *arg2 = (wxWindow *) 0 ;
34468 wxDC *arg3 = 0 ;
34469 wxRect *arg4 = 0 ;
34470 int arg5 = (int) 0 ;
34471 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34472 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34473 int result;
34474 void *argp1 = 0 ;
34475 int res1 = 0 ;
34476 void *argp2 = 0 ;
34477 int res2 = 0 ;
34478 void *argp3 = 0 ;
34479 int res3 = 0 ;
34480 wxRect temp4 ;
34481 int val5 ;
34482 int ecode5 = 0 ;
34483 int val6 ;
34484 int ecode6 = 0 ;
34485 void *argp7 = 0 ;
34486 int res7 = 0 ;
34487 PyObject * obj0 = 0 ;
34488 PyObject * obj1 = 0 ;
34489 PyObject * obj2 = 0 ;
34490 PyObject * obj3 = 0 ;
34491 PyObject * obj4 = 0 ;
34492 PyObject * obj5 = 0 ;
34493 PyObject * obj6 = 0 ;
34494 char * kwnames[] = {
34495 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34496 };
34497
34498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34500 if (!SWIG_IsOK(res1)) {
34501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34502 }
34503 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34504 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34505 if (!SWIG_IsOK(res2)) {
34506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34507 }
34508 arg2 = reinterpret_cast< wxWindow * >(argp2);
34509 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34510 if (!SWIG_IsOK(res3)) {
34511 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34512 }
34513 if (!argp3) {
34514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34515 }
34516 arg3 = reinterpret_cast< wxDC * >(argp3);
34517 {
34518 arg4 = &temp4;
34519 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34520 }
34521 if (obj4) {
34522 ecode5 = SWIG_AsVal_int(obj4, &val5);
34523 if (!SWIG_IsOK(ecode5)) {
34524 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34525 }
34526 arg5 = static_cast< int >(val5);
34527 }
34528 if (obj5) {
34529 ecode6 = SWIG_AsVal_int(obj5, &val6);
34530 if (!SWIG_IsOK(ecode6)) {
34531 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34532 }
34533 arg6 = static_cast< wxHeaderSortIconType >(val6);
34534 }
34535 if (obj6) {
34536 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34537 if (!SWIG_IsOK(res7)) {
34538 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34539 }
34540 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34541 }
34542 {
34543 PyThreadState* __tstate = wxPyBeginAllowThreads();
34544 result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34545 wxPyEndAllowThreads(__tstate);
34546 if (PyErr_Occurred()) SWIG_fail;
34547 }
34548 resultobj = SWIG_From_int(static_cast< int >(result));
34549 return resultobj;
34550 fail:
34551 return NULL;
34552 }
34553
34554
34555 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34556 PyObject *resultobj = 0;
34557 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34558 wxWindow *arg2 = (wxWindow *) 0 ;
34559 int result;
34560 void *argp1 = 0 ;
34561 int res1 = 0 ;
34562 void *argp2 = 0 ;
34563 int res2 = 0 ;
34564 PyObject * obj0 = 0 ;
34565 PyObject * obj1 = 0 ;
34566 char * kwnames[] = {
34567 (char *) "self",(char *) "win", NULL
34568 };
34569
34570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34572 if (!SWIG_IsOK(res1)) {
34573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34574 }
34575 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34576 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34577 if (!SWIG_IsOK(res2)) {
34578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34579 }
34580 arg2 = reinterpret_cast< wxWindow * >(argp2);
34581 {
34582 PyThreadState* __tstate = wxPyBeginAllowThreads();
34583 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34584 wxPyEndAllowThreads(__tstate);
34585 if (PyErr_Occurred()) SWIG_fail;
34586 }
34587 resultobj = SWIG_From_int(static_cast< int >(result));
34588 return resultobj;
34589 fail:
34590 return NULL;
34591 }
34592
34593
34594 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34595 PyObject *resultobj = 0;
34596 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34597 wxWindow *arg2 = (wxWindow *) 0 ;
34598 wxDC *arg3 = 0 ;
34599 wxRect *arg4 = 0 ;
34600 int arg5 = (int) 0 ;
34601 void *argp1 = 0 ;
34602 int res1 = 0 ;
34603 void *argp2 = 0 ;
34604 int res2 = 0 ;
34605 void *argp3 = 0 ;
34606 int res3 = 0 ;
34607 wxRect temp4 ;
34608 int val5 ;
34609 int ecode5 = 0 ;
34610 PyObject * obj0 = 0 ;
34611 PyObject * obj1 = 0 ;
34612 PyObject * obj2 = 0 ;
34613 PyObject * obj3 = 0 ;
34614 PyObject * obj4 = 0 ;
34615 char * kwnames[] = {
34616 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34617 };
34618
34619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34621 if (!SWIG_IsOK(res1)) {
34622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34623 }
34624 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34625 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34626 if (!SWIG_IsOK(res2)) {
34627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34628 }
34629 arg2 = reinterpret_cast< wxWindow * >(argp2);
34630 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34631 if (!SWIG_IsOK(res3)) {
34632 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34633 }
34634 if (!argp3) {
34635 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34636 }
34637 arg3 = reinterpret_cast< wxDC * >(argp3);
34638 {
34639 arg4 = &temp4;
34640 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34641 }
34642 if (obj4) {
34643 ecode5 = SWIG_AsVal_int(obj4, &val5);
34644 if (!SWIG_IsOK(ecode5)) {
34645 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34646 }
34647 arg5 = static_cast< int >(val5);
34648 }
34649 {
34650 PyThreadState* __tstate = wxPyBeginAllowThreads();
34651 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34652 wxPyEndAllowThreads(__tstate);
34653 if (PyErr_Occurred()) SWIG_fail;
34654 }
34655 resultobj = SWIG_Py_Void();
34656 return resultobj;
34657 fail:
34658 return NULL;
34659 }
34660
34661
34662 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34663 PyObject *resultobj = 0;
34664 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34665 wxWindow *arg2 = (wxWindow *) 0 ;
34666 wxDC *arg3 = 0 ;
34667 wxRect *arg4 = 0 ;
34668 int arg5 = (int) 0 ;
34669 void *argp1 = 0 ;
34670 int res1 = 0 ;
34671 void *argp2 = 0 ;
34672 int res2 = 0 ;
34673 void *argp3 = 0 ;
34674 int res3 = 0 ;
34675 wxRect temp4 ;
34676 int val5 ;
34677 int ecode5 = 0 ;
34678 PyObject * obj0 = 0 ;
34679 PyObject * obj1 = 0 ;
34680 PyObject * obj2 = 0 ;
34681 PyObject * obj3 = 0 ;
34682 PyObject * obj4 = 0 ;
34683 char * kwnames[] = {
34684 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34685 };
34686
34687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34689 if (!SWIG_IsOK(res1)) {
34690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34691 }
34692 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34693 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34694 if (!SWIG_IsOK(res2)) {
34695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34696 }
34697 arg2 = reinterpret_cast< wxWindow * >(argp2);
34698 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34699 if (!SWIG_IsOK(res3)) {
34700 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34701 }
34702 if (!argp3) {
34703 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34704 }
34705 arg3 = reinterpret_cast< wxDC * >(argp3);
34706 {
34707 arg4 = &temp4;
34708 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34709 }
34710 if (obj4) {
34711 ecode5 = SWIG_AsVal_int(obj4, &val5);
34712 if (!SWIG_IsOK(ecode5)) {
34713 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34714 }
34715 arg5 = static_cast< int >(val5);
34716 }
34717 {
34718 PyThreadState* __tstate = wxPyBeginAllowThreads();
34719 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34720 wxPyEndAllowThreads(__tstate);
34721 if (PyErr_Occurred()) SWIG_fail;
34722 }
34723 resultobj = SWIG_Py_Void();
34724 return resultobj;
34725 fail:
34726 return NULL;
34727 }
34728
34729
34730 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34731 PyObject *resultobj = 0;
34732 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34733 wxWindow *arg2 = (wxWindow *) 0 ;
34734 wxDC *arg3 = 0 ;
34735 wxSize *arg4 = 0 ;
34736 int arg5 ;
34737 wxOrientation arg6 ;
34738 int arg7 = (int) 0 ;
34739 void *argp1 = 0 ;
34740 int res1 = 0 ;
34741 void *argp2 = 0 ;
34742 int res2 = 0 ;
34743 void *argp3 = 0 ;
34744 int res3 = 0 ;
34745 wxSize temp4 ;
34746 int val5 ;
34747 int ecode5 = 0 ;
34748 int val6 ;
34749 int ecode6 = 0 ;
34750 int val7 ;
34751 int ecode7 = 0 ;
34752 PyObject * obj0 = 0 ;
34753 PyObject * obj1 = 0 ;
34754 PyObject * obj2 = 0 ;
34755 PyObject * obj3 = 0 ;
34756 PyObject * obj4 = 0 ;
34757 PyObject * obj5 = 0 ;
34758 PyObject * obj6 = 0 ;
34759 char * kwnames[] = {
34760 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34761 };
34762
34763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34765 if (!SWIG_IsOK(res1)) {
34766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34767 }
34768 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34769 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34770 if (!SWIG_IsOK(res2)) {
34771 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34772 }
34773 arg2 = reinterpret_cast< wxWindow * >(argp2);
34774 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34775 if (!SWIG_IsOK(res3)) {
34776 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34777 }
34778 if (!argp3) {
34779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34780 }
34781 arg3 = reinterpret_cast< wxDC * >(argp3);
34782 {
34783 arg4 = &temp4;
34784 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34785 }
34786 ecode5 = SWIG_AsVal_int(obj4, &val5);
34787 if (!SWIG_IsOK(ecode5)) {
34788 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34789 }
34790 arg5 = static_cast< int >(val5);
34791 ecode6 = SWIG_AsVal_int(obj5, &val6);
34792 if (!SWIG_IsOK(ecode6)) {
34793 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34794 }
34795 arg6 = static_cast< wxOrientation >(val6);
34796 if (obj6) {
34797 ecode7 = SWIG_AsVal_int(obj6, &val7);
34798 if (!SWIG_IsOK(ecode7)) {
34799 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34800 }
34801 arg7 = static_cast< int >(val7);
34802 }
34803 {
34804 PyThreadState* __tstate = wxPyBeginAllowThreads();
34805 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34806 wxPyEndAllowThreads(__tstate);
34807 if (PyErr_Occurred()) SWIG_fail;
34808 }
34809 resultobj = SWIG_Py_Void();
34810 return resultobj;
34811 fail:
34812 return NULL;
34813 }
34814
34815
34816 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34817 PyObject *resultobj = 0;
34818 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34819 wxWindow *arg2 = (wxWindow *) 0 ;
34820 wxDC *arg3 = 0 ;
34821 wxRect *arg4 = 0 ;
34822 int arg5 = (int) 0 ;
34823 void *argp1 = 0 ;
34824 int res1 = 0 ;
34825 void *argp2 = 0 ;
34826 int res2 = 0 ;
34827 void *argp3 = 0 ;
34828 int res3 = 0 ;
34829 wxRect temp4 ;
34830 int val5 ;
34831 int ecode5 = 0 ;
34832 PyObject * obj0 = 0 ;
34833 PyObject * obj1 = 0 ;
34834 PyObject * obj2 = 0 ;
34835 PyObject * obj3 = 0 ;
34836 PyObject * obj4 = 0 ;
34837 char * kwnames[] = {
34838 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34839 };
34840
34841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34843 if (!SWIG_IsOK(res1)) {
34844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34845 }
34846 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34847 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34848 if (!SWIG_IsOK(res2)) {
34849 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34850 }
34851 arg2 = reinterpret_cast< wxWindow * >(argp2);
34852 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34853 if (!SWIG_IsOK(res3)) {
34854 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34855 }
34856 if (!argp3) {
34857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34858 }
34859 arg3 = reinterpret_cast< wxDC * >(argp3);
34860 {
34861 arg4 = &temp4;
34862 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34863 }
34864 if (obj4) {
34865 ecode5 = SWIG_AsVal_int(obj4, &val5);
34866 if (!SWIG_IsOK(ecode5)) {
34867 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34868 }
34869 arg5 = static_cast< int >(val5);
34870 }
34871 {
34872 PyThreadState* __tstate = wxPyBeginAllowThreads();
34873 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34874 wxPyEndAllowThreads(__tstate);
34875 if (PyErr_Occurred()) SWIG_fail;
34876 }
34877 resultobj = SWIG_Py_Void();
34878 return resultobj;
34879 fail:
34880 return NULL;
34881 }
34882
34883
34884 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34885 PyObject *resultobj = 0;
34886 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34887 wxWindow *arg2 = (wxWindow *) 0 ;
34888 wxDC *arg3 = 0 ;
34889 wxRect *arg4 = 0 ;
34890 int arg5 = (int) 0 ;
34891 void *argp1 = 0 ;
34892 int res1 = 0 ;
34893 void *argp2 = 0 ;
34894 int res2 = 0 ;
34895 void *argp3 = 0 ;
34896 int res3 = 0 ;
34897 wxRect temp4 ;
34898 int val5 ;
34899 int ecode5 = 0 ;
34900 PyObject * obj0 = 0 ;
34901 PyObject * obj1 = 0 ;
34902 PyObject * obj2 = 0 ;
34903 PyObject * obj3 = 0 ;
34904 PyObject * obj4 = 0 ;
34905 char * kwnames[] = {
34906 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34907 };
34908
34909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34911 if (!SWIG_IsOK(res1)) {
34912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34913 }
34914 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34915 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34916 if (!SWIG_IsOK(res2)) {
34917 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34918 }
34919 arg2 = reinterpret_cast< wxWindow * >(argp2);
34920 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34921 if (!SWIG_IsOK(res3)) {
34922 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34923 }
34924 if (!argp3) {
34925 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34926 }
34927 arg3 = reinterpret_cast< wxDC * >(argp3);
34928 {
34929 arg4 = &temp4;
34930 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34931 }
34932 if (obj4) {
34933 ecode5 = SWIG_AsVal_int(obj4, &val5);
34934 if (!SWIG_IsOK(ecode5)) {
34935 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34936 }
34937 arg5 = static_cast< int >(val5);
34938 }
34939 {
34940 PyThreadState* __tstate = wxPyBeginAllowThreads();
34941 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34942 wxPyEndAllowThreads(__tstate);
34943 if (PyErr_Occurred()) SWIG_fail;
34944 }
34945 resultobj = SWIG_Py_Void();
34946 return resultobj;
34947 fail:
34948 return NULL;
34949 }
34950
34951
34952 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34953 PyObject *resultobj = 0;
34954 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34955 wxWindow *arg2 = (wxWindow *) 0 ;
34956 wxDC *arg3 = 0 ;
34957 wxRect *arg4 = 0 ;
34958 int arg5 = (int) 0 ;
34959 void *argp1 = 0 ;
34960 int res1 = 0 ;
34961 void *argp2 = 0 ;
34962 int res2 = 0 ;
34963 void *argp3 = 0 ;
34964 int res3 = 0 ;
34965 wxRect temp4 ;
34966 int val5 ;
34967 int ecode5 = 0 ;
34968 PyObject * obj0 = 0 ;
34969 PyObject * obj1 = 0 ;
34970 PyObject * obj2 = 0 ;
34971 PyObject * obj3 = 0 ;
34972 PyObject * obj4 = 0 ;
34973 char * kwnames[] = {
34974 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34975 };
34976
34977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34979 if (!SWIG_IsOK(res1)) {
34980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34981 }
34982 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34983 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34984 if (!SWIG_IsOK(res2)) {
34985 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
34986 }
34987 arg2 = reinterpret_cast< wxWindow * >(argp2);
34988 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34989 if (!SWIG_IsOK(res3)) {
34990 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34991 }
34992 if (!argp3) {
34993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34994 }
34995 arg3 = reinterpret_cast< wxDC * >(argp3);
34996 {
34997 arg4 = &temp4;
34998 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34999 }
35000 if (obj4) {
35001 ecode5 = SWIG_AsVal_int(obj4, &val5);
35002 if (!SWIG_IsOK(ecode5)) {
35003 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
35004 }
35005 arg5 = static_cast< int >(val5);
35006 }
35007 {
35008 PyThreadState* __tstate = wxPyBeginAllowThreads();
35009 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35010 wxPyEndAllowThreads(__tstate);
35011 if (PyErr_Occurred()) SWIG_fail;
35012 }
35013 resultobj = SWIG_Py_Void();
35014 return resultobj;
35015 fail:
35016 return NULL;
35017 }
35018
35019
35020 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35021 PyObject *resultobj = 0;
35022 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35023 wxWindow *arg2 = (wxWindow *) 0 ;
35024 wxDC *arg3 = 0 ;
35025 wxRect *arg4 = 0 ;
35026 int arg5 = (int) 0 ;
35027 void *argp1 = 0 ;
35028 int res1 = 0 ;
35029 void *argp2 = 0 ;
35030 int res2 = 0 ;
35031 void *argp3 = 0 ;
35032 int res3 = 0 ;
35033 wxRect temp4 ;
35034 int val5 ;
35035 int ecode5 = 0 ;
35036 PyObject * obj0 = 0 ;
35037 PyObject * obj1 = 0 ;
35038 PyObject * obj2 = 0 ;
35039 PyObject * obj3 = 0 ;
35040 PyObject * obj4 = 0 ;
35041 char * kwnames[] = {
35042 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35043 };
35044
35045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35047 if (!SWIG_IsOK(res1)) {
35048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35049 }
35050 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35051 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35052 if (!SWIG_IsOK(res2)) {
35053 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35054 }
35055 arg2 = reinterpret_cast< wxWindow * >(argp2);
35056 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35057 if (!SWIG_IsOK(res3)) {
35058 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35059 }
35060 if (!argp3) {
35061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35062 }
35063 arg3 = reinterpret_cast< wxDC * >(argp3);
35064 {
35065 arg4 = &temp4;
35066 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35067 }
35068 if (obj4) {
35069 ecode5 = SWIG_AsVal_int(obj4, &val5);
35070 if (!SWIG_IsOK(ecode5)) {
35071 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35072 }
35073 arg5 = static_cast< int >(val5);
35074 }
35075 {
35076 PyThreadState* __tstate = wxPyBeginAllowThreads();
35077 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35078 wxPyEndAllowThreads(__tstate);
35079 if (PyErr_Occurred()) SWIG_fail;
35080 }
35081 resultobj = SWIG_Py_Void();
35082 return resultobj;
35083 fail:
35084 return NULL;
35085 }
35086
35087
35088 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35089 PyObject *resultobj = 0;
35090 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35091 wxWindow *arg2 = (wxWindow *) 0 ;
35092 wxDC *arg3 = 0 ;
35093 wxRect *arg4 = 0 ;
35094 int arg5 = (int) 0 ;
35095 void *argp1 = 0 ;
35096 int res1 = 0 ;
35097 void *argp2 = 0 ;
35098 int res2 = 0 ;
35099 void *argp3 = 0 ;
35100 int res3 = 0 ;
35101 wxRect temp4 ;
35102 int val5 ;
35103 int ecode5 = 0 ;
35104 PyObject * obj0 = 0 ;
35105 PyObject * obj1 = 0 ;
35106 PyObject * obj2 = 0 ;
35107 PyObject * obj3 = 0 ;
35108 PyObject * obj4 = 0 ;
35109 char * kwnames[] = {
35110 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35111 };
35112
35113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35115 if (!SWIG_IsOK(res1)) {
35116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35117 }
35118 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35119 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35120 if (!SWIG_IsOK(res2)) {
35121 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
35122 }
35123 arg2 = reinterpret_cast< wxWindow * >(argp2);
35124 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35125 if (!SWIG_IsOK(res3)) {
35126 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35127 }
35128 if (!argp3) {
35129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35130 }
35131 arg3 = reinterpret_cast< wxDC * >(argp3);
35132 {
35133 arg4 = &temp4;
35134 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35135 }
35136 if (obj4) {
35137 ecode5 = SWIG_AsVal_int(obj4, &val5);
35138 if (!SWIG_IsOK(ecode5)) {
35139 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
35140 }
35141 arg5 = static_cast< int >(val5);
35142 }
35143 {
35144 PyThreadState* __tstate = wxPyBeginAllowThreads();
35145 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
35146 wxPyEndAllowThreads(__tstate);
35147 if (PyErr_Occurred()) SWIG_fail;
35148 }
35149 resultobj = SWIG_Py_Void();
35150 return resultobj;
35151 fail:
35152 return NULL;
35153 }
35154
35155
35156 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35157 PyObject *resultobj = 0;
35158 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35159 wxWindow *arg2 = (wxWindow *) 0 ;
35160 SwigValueWrapper<wxSplitterRenderParams > result;
35161 void *argp1 = 0 ;
35162 int res1 = 0 ;
35163 void *argp2 = 0 ;
35164 int res2 = 0 ;
35165 PyObject * obj0 = 0 ;
35166 PyObject * obj1 = 0 ;
35167 char * kwnames[] = {
35168 (char *) "self",(char *) "win", NULL
35169 };
35170
35171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35173 if (!SWIG_IsOK(res1)) {
35174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35175 }
35176 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35177 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35178 if (!SWIG_IsOK(res2)) {
35179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35180 }
35181 arg2 = reinterpret_cast< wxWindow * >(argp2);
35182 {
35183 PyThreadState* __tstate = wxPyBeginAllowThreads();
35184 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35185 wxPyEndAllowThreads(__tstate);
35186 if (PyErr_Occurred()) SWIG_fail;
35187 }
35188 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35189 return resultobj;
35190 fail:
35191 return NULL;
35192 }
35193
35194
35195 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35196 PyObject *resultobj = 0;
35197 wxRendererNative *result = 0 ;
35198
35199 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35200 {
35201 if (!wxPyCheckForApp()) SWIG_fail;
35202 PyThreadState* __tstate = wxPyBeginAllowThreads();
35203 {
35204 wxRendererNative &_result_ref = wxRendererNative::Get();
35205 result = (wxRendererNative *) &_result_ref;
35206 }
35207 wxPyEndAllowThreads(__tstate);
35208 if (PyErr_Occurred()) SWIG_fail;
35209 }
35210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35211 return resultobj;
35212 fail:
35213 return NULL;
35214 }
35215
35216
35217 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35218 PyObject *resultobj = 0;
35219 wxRendererNative *result = 0 ;
35220
35221 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35222 {
35223 if (!wxPyCheckForApp()) SWIG_fail;
35224 PyThreadState* __tstate = wxPyBeginAllowThreads();
35225 {
35226 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35227 result = (wxRendererNative *) &_result_ref;
35228 }
35229 wxPyEndAllowThreads(__tstate);
35230 if (PyErr_Occurred()) SWIG_fail;
35231 }
35232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35233 return resultobj;
35234 fail:
35235 return NULL;
35236 }
35237
35238
35239 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35240 PyObject *resultobj = 0;
35241 wxRendererNative *result = 0 ;
35242
35243 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35244 {
35245 if (!wxPyCheckForApp()) SWIG_fail;
35246 PyThreadState* __tstate = wxPyBeginAllowThreads();
35247 {
35248 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35249 result = (wxRendererNative *) &_result_ref;
35250 }
35251 wxPyEndAllowThreads(__tstate);
35252 if (PyErr_Occurred()) SWIG_fail;
35253 }
35254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35255 return resultobj;
35256 fail:
35257 return NULL;
35258 }
35259
35260
35261 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35262 PyObject *resultobj = 0;
35263 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35264 wxRendererNative *result = 0 ;
35265 void *argp1 = 0 ;
35266 int res1 = 0 ;
35267 PyObject * obj0 = 0 ;
35268 char * kwnames[] = {
35269 (char *) "renderer", NULL
35270 };
35271
35272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35274 if (!SWIG_IsOK(res1)) {
35275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35276 }
35277 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35278 {
35279 if (!wxPyCheckForApp()) SWIG_fail;
35280 PyThreadState* __tstate = wxPyBeginAllowThreads();
35281 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35282 wxPyEndAllowThreads(__tstate);
35283 if (PyErr_Occurred()) SWIG_fail;
35284 }
35285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35286 return resultobj;
35287 fail:
35288 return NULL;
35289 }
35290
35291
35292 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35293 PyObject *resultobj = 0;
35294 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35295 SwigValueWrapper<wxRendererVersion > result;
35296 void *argp1 = 0 ;
35297 int res1 = 0 ;
35298 PyObject *swig_obj[1] ;
35299
35300 if (!args) SWIG_fail;
35301 swig_obj[0] = args;
35302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35303 if (!SWIG_IsOK(res1)) {
35304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35305 }
35306 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35307 {
35308 PyThreadState* __tstate = wxPyBeginAllowThreads();
35309 result = ((wxRendererNative const *)arg1)->GetVersion();
35310 wxPyEndAllowThreads(__tstate);
35311 if (PyErr_Occurred()) SWIG_fail;
35312 }
35313 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35314 return resultobj;
35315 fail:
35316 return NULL;
35317 }
35318
35319
35320 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35321 PyObject *obj;
35322 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35323 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35324 return SWIG_Py_Void();
35325 }
35326
35327 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35328 PyObject *resultobj = 0;
35329 wxPseudoDC *result = 0 ;
35330
35331 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35332 {
35333 PyThreadState* __tstate = wxPyBeginAllowThreads();
35334 result = (wxPseudoDC *)new wxPseudoDC();
35335 wxPyEndAllowThreads(__tstate);
35336 if (PyErr_Occurred()) SWIG_fail;
35337 }
35338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35339 return resultobj;
35340 fail:
35341 return NULL;
35342 }
35343
35344
35345 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35346 PyObject *resultobj = 0;
35347 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35348 void *argp1 = 0 ;
35349 int res1 = 0 ;
35350 PyObject *swig_obj[1] ;
35351
35352 if (!args) SWIG_fail;
35353 swig_obj[0] = args;
35354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35355 if (!SWIG_IsOK(res1)) {
35356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35357 }
35358 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35359 {
35360 PyThreadState* __tstate = wxPyBeginAllowThreads();
35361 (arg1)->BeginDrawing();
35362 wxPyEndAllowThreads(__tstate);
35363 if (PyErr_Occurred()) SWIG_fail;
35364 }
35365 resultobj = SWIG_Py_Void();
35366 return resultobj;
35367 fail:
35368 return NULL;
35369 }
35370
35371
35372 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35373 PyObject *resultobj = 0;
35374 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35375 void *argp1 = 0 ;
35376 int res1 = 0 ;
35377 PyObject *swig_obj[1] ;
35378
35379 if (!args) SWIG_fail;
35380 swig_obj[0] = args;
35381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35382 if (!SWIG_IsOK(res1)) {
35383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35384 }
35385 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35386 {
35387 PyThreadState* __tstate = wxPyBeginAllowThreads();
35388 (arg1)->EndDrawing();
35389 wxPyEndAllowThreads(__tstate);
35390 if (PyErr_Occurred()) SWIG_fail;
35391 }
35392 resultobj = SWIG_Py_Void();
35393 return resultobj;
35394 fail:
35395 return NULL;
35396 }
35397
35398
35399 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35400 PyObject *resultobj = 0;
35401 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35402 void *argp1 = 0 ;
35403 int res1 = 0 ;
35404 PyObject *swig_obj[1] ;
35405
35406 if (!args) SWIG_fail;
35407 swig_obj[0] = args;
35408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35409 if (!SWIG_IsOK(res1)) {
35410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35411 }
35412 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35413 {
35414 PyThreadState* __tstate = wxPyBeginAllowThreads();
35415 delete arg1;
35416
35417 wxPyEndAllowThreads(__tstate);
35418 if (PyErr_Occurred()) SWIG_fail;
35419 }
35420 resultobj = SWIG_Py_Void();
35421 return resultobj;
35422 fail:
35423 return NULL;
35424 }
35425
35426
35427 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35428 PyObject *resultobj = 0;
35429 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35430 void *argp1 = 0 ;
35431 int res1 = 0 ;
35432 PyObject *swig_obj[1] ;
35433
35434 if (!args) SWIG_fail;
35435 swig_obj[0] = args;
35436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35437 if (!SWIG_IsOK(res1)) {
35438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35439 }
35440 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35441 {
35442 PyThreadState* __tstate = wxPyBeginAllowThreads();
35443 (arg1)->RemoveAll();
35444 wxPyEndAllowThreads(__tstate);
35445 if (PyErr_Occurred()) SWIG_fail;
35446 }
35447 resultobj = SWIG_Py_Void();
35448 return resultobj;
35449 fail:
35450 return NULL;
35451 }
35452
35453
35454 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35455 PyObject *resultobj = 0;
35456 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35457 int result;
35458 void *argp1 = 0 ;
35459 int res1 = 0 ;
35460 PyObject *swig_obj[1] ;
35461
35462 if (!args) SWIG_fail;
35463 swig_obj[0] = args;
35464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35465 if (!SWIG_IsOK(res1)) {
35466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35467 }
35468 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35469 {
35470 PyThreadState* __tstate = wxPyBeginAllowThreads();
35471 result = (int)(arg1)->GetLen();
35472 wxPyEndAllowThreads(__tstate);
35473 if (PyErr_Occurred()) SWIG_fail;
35474 }
35475 resultobj = SWIG_From_int(static_cast< int >(result));
35476 return resultobj;
35477 fail:
35478 return NULL;
35479 }
35480
35481
35482 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35483 PyObject *resultobj = 0;
35484 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35485 int arg2 ;
35486 void *argp1 = 0 ;
35487 int res1 = 0 ;
35488 int val2 ;
35489 int ecode2 = 0 ;
35490 PyObject * obj0 = 0 ;
35491 PyObject * obj1 = 0 ;
35492 char * kwnames[] = {
35493 (char *) "self",(char *) "id", NULL
35494 };
35495
35496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35498 if (!SWIG_IsOK(res1)) {
35499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35500 }
35501 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35502 ecode2 = SWIG_AsVal_int(obj1, &val2);
35503 if (!SWIG_IsOK(ecode2)) {
35504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35505 }
35506 arg2 = static_cast< int >(val2);
35507 {
35508 PyThreadState* __tstate = wxPyBeginAllowThreads();
35509 (arg1)->SetId(arg2);
35510 wxPyEndAllowThreads(__tstate);
35511 if (PyErr_Occurred()) SWIG_fail;
35512 }
35513 resultobj = SWIG_Py_Void();
35514 return resultobj;
35515 fail:
35516 return NULL;
35517 }
35518
35519
35520 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35521 PyObject *resultobj = 0;
35522 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35523 int arg2 ;
35524 void *argp1 = 0 ;
35525 int res1 = 0 ;
35526 int val2 ;
35527 int ecode2 = 0 ;
35528 PyObject * obj0 = 0 ;
35529 PyObject * obj1 = 0 ;
35530 char * kwnames[] = {
35531 (char *) "self",(char *) "id", NULL
35532 };
35533
35534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35536 if (!SWIG_IsOK(res1)) {
35537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35538 }
35539 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35540 ecode2 = SWIG_AsVal_int(obj1, &val2);
35541 if (!SWIG_IsOK(ecode2)) {
35542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35543 }
35544 arg2 = static_cast< int >(val2);
35545 {
35546 PyThreadState* __tstate = wxPyBeginAllowThreads();
35547 (arg1)->ClearId(arg2);
35548 wxPyEndAllowThreads(__tstate);
35549 if (PyErr_Occurred()) SWIG_fail;
35550 }
35551 resultobj = SWIG_Py_Void();
35552 return resultobj;
35553 fail:
35554 return NULL;
35555 }
35556
35557
35558 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35559 PyObject *resultobj = 0;
35560 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35561 int arg2 ;
35562 void *argp1 = 0 ;
35563 int res1 = 0 ;
35564 int val2 ;
35565 int ecode2 = 0 ;
35566 PyObject * obj0 = 0 ;
35567 PyObject * obj1 = 0 ;
35568 char * kwnames[] = {
35569 (char *) "self",(char *) "id", NULL
35570 };
35571
35572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35574 if (!SWIG_IsOK(res1)) {
35575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35576 }
35577 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35578 ecode2 = SWIG_AsVal_int(obj1, &val2);
35579 if (!SWIG_IsOK(ecode2)) {
35580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35581 }
35582 arg2 = static_cast< int >(val2);
35583 {
35584 PyThreadState* __tstate = wxPyBeginAllowThreads();
35585 (arg1)->RemoveId(arg2);
35586 wxPyEndAllowThreads(__tstate);
35587 if (PyErr_Occurred()) SWIG_fail;
35588 }
35589 resultobj = SWIG_Py_Void();
35590 return resultobj;
35591 fail:
35592 return NULL;
35593 }
35594
35595
35596 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35597 PyObject *resultobj = 0;
35598 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35599 int arg2 ;
35600 int arg3 ;
35601 int arg4 ;
35602 void *argp1 = 0 ;
35603 int res1 = 0 ;
35604 int val2 ;
35605 int ecode2 = 0 ;
35606 int val3 ;
35607 int ecode3 = 0 ;
35608 int val4 ;
35609 int ecode4 = 0 ;
35610 PyObject * obj0 = 0 ;
35611 PyObject * obj1 = 0 ;
35612 PyObject * obj2 = 0 ;
35613 PyObject * obj3 = 0 ;
35614 char * kwnames[] = {
35615 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35616 };
35617
35618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35620 if (!SWIG_IsOK(res1)) {
35621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35622 }
35623 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35624 ecode2 = SWIG_AsVal_int(obj1, &val2);
35625 if (!SWIG_IsOK(ecode2)) {
35626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35627 }
35628 arg2 = static_cast< int >(val2);
35629 ecode3 = SWIG_AsVal_int(obj2, &val3);
35630 if (!SWIG_IsOK(ecode3)) {
35631 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35632 }
35633 arg3 = static_cast< int >(val3);
35634 ecode4 = SWIG_AsVal_int(obj3, &val4);
35635 if (!SWIG_IsOK(ecode4)) {
35636 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35637 }
35638 arg4 = static_cast< int >(val4);
35639 {
35640 PyThreadState* __tstate = wxPyBeginAllowThreads();
35641 (arg1)->TranslateId(arg2,arg3,arg4);
35642 wxPyEndAllowThreads(__tstate);
35643 if (PyErr_Occurred()) SWIG_fail;
35644 }
35645 resultobj = SWIG_Py_Void();
35646 return resultobj;
35647 fail:
35648 return NULL;
35649 }
35650
35651
35652 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35653 PyObject *resultobj = 0;
35654 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35655 int arg2 ;
35656 bool arg3 = (bool) true ;
35657 void *argp1 = 0 ;
35658 int res1 = 0 ;
35659 int val2 ;
35660 int ecode2 = 0 ;
35661 bool val3 ;
35662 int ecode3 = 0 ;
35663 PyObject * obj0 = 0 ;
35664 PyObject * obj1 = 0 ;
35665 PyObject * obj2 = 0 ;
35666 char * kwnames[] = {
35667 (char *) "self",(char *) "id",(char *) "greyout", NULL
35668 };
35669
35670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35672 if (!SWIG_IsOK(res1)) {
35673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35674 }
35675 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35676 ecode2 = SWIG_AsVal_int(obj1, &val2);
35677 if (!SWIG_IsOK(ecode2)) {
35678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35679 }
35680 arg2 = static_cast< int >(val2);
35681 if (obj2) {
35682 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35683 if (!SWIG_IsOK(ecode3)) {
35684 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35685 }
35686 arg3 = static_cast< bool >(val3);
35687 }
35688 {
35689 PyThreadState* __tstate = wxPyBeginAllowThreads();
35690 (arg1)->SetIdGreyedOut(arg2,arg3);
35691 wxPyEndAllowThreads(__tstate);
35692 if (PyErr_Occurred()) SWIG_fail;
35693 }
35694 resultobj = SWIG_Py_Void();
35695 return resultobj;
35696 fail:
35697 return NULL;
35698 }
35699
35700
35701 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35702 PyObject *resultobj = 0;
35703 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35704 int arg2 ;
35705 bool result;
35706 void *argp1 = 0 ;
35707 int res1 = 0 ;
35708 int val2 ;
35709 int ecode2 = 0 ;
35710 PyObject * obj0 = 0 ;
35711 PyObject * obj1 = 0 ;
35712 char * kwnames[] = {
35713 (char *) "self",(char *) "id", NULL
35714 };
35715
35716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35718 if (!SWIG_IsOK(res1)) {
35719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35720 }
35721 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35722 ecode2 = SWIG_AsVal_int(obj1, &val2);
35723 if (!SWIG_IsOK(ecode2)) {
35724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35725 }
35726 arg2 = static_cast< int >(val2);
35727 {
35728 PyThreadState* __tstate = wxPyBeginAllowThreads();
35729 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35730 wxPyEndAllowThreads(__tstate);
35731 if (PyErr_Occurred()) SWIG_fail;
35732 }
35733 {
35734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35735 }
35736 return resultobj;
35737 fail:
35738 return NULL;
35739 }
35740
35741
35742 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35743 PyObject *resultobj = 0;
35744 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35745 int arg2 ;
35746 int arg3 ;
35747 int arg4 = (int) 1 ;
35748 wxColour const &arg5_defvalue = *wxWHITE ;
35749 wxColour *arg5 = (wxColour *) &arg5_defvalue ;
35750 PyObject *result = 0 ;
35751 void *argp1 = 0 ;
35752 int res1 = 0 ;
35753 int val2 ;
35754 int ecode2 = 0 ;
35755 int val3 ;
35756 int ecode3 = 0 ;
35757 int val4 ;
35758 int ecode4 = 0 ;
35759 wxColour temp5 ;
35760 PyObject * obj0 = 0 ;
35761 PyObject * obj1 = 0 ;
35762 PyObject * obj2 = 0 ;
35763 PyObject * obj3 = 0 ;
35764 PyObject * obj4 = 0 ;
35765 char * kwnames[] = {
35766 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35767 };
35768
35769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35771 if (!SWIG_IsOK(res1)) {
35772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35773 }
35774 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35775 ecode2 = SWIG_AsVal_int(obj1, &val2);
35776 if (!SWIG_IsOK(ecode2)) {
35777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35778 }
35779 arg2 = static_cast< int >(val2);
35780 ecode3 = SWIG_AsVal_int(obj2, &val3);
35781 if (!SWIG_IsOK(ecode3)) {
35782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35783 }
35784 arg3 = static_cast< int >(val3);
35785 if (obj3) {
35786 ecode4 = SWIG_AsVal_int(obj3, &val4);
35787 if (!SWIG_IsOK(ecode4)) {
35788 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35789 }
35790 arg4 = static_cast< int >(val4);
35791 }
35792 if (obj4) {
35793 {
35794 arg5 = &temp5;
35795 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
35796 }
35797 }
35798 {
35799 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColour const &)*arg5);
35800 if (PyErr_Occurred()) SWIG_fail;
35801 }
35802 resultobj = result;
35803 return resultobj;
35804 fail:
35805 return NULL;
35806 }
35807
35808
35809 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35810 PyObject *resultobj = 0;
35811 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35812 int arg2 ;
35813 int arg3 ;
35814 PyObject *result = 0 ;
35815 void *argp1 = 0 ;
35816 int res1 = 0 ;
35817 int val2 ;
35818 int ecode2 = 0 ;
35819 int val3 ;
35820 int ecode3 = 0 ;
35821 PyObject * obj0 = 0 ;
35822 PyObject * obj1 = 0 ;
35823 PyObject * obj2 = 0 ;
35824 char * kwnames[] = {
35825 (char *) "self",(char *) "x",(char *) "y", NULL
35826 };
35827
35828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35830 if (!SWIG_IsOK(res1)) {
35831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35832 }
35833 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35834 ecode2 = SWIG_AsVal_int(obj1, &val2);
35835 if (!SWIG_IsOK(ecode2)) {
35836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35837 }
35838 arg2 = static_cast< int >(val2);
35839 ecode3 = SWIG_AsVal_int(obj2, &val3);
35840 if (!SWIG_IsOK(ecode3)) {
35841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35842 }
35843 arg3 = static_cast< int >(val3);
35844 {
35845 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35846 if (PyErr_Occurred()) SWIG_fail;
35847 }
35848 resultobj = result;
35849 return resultobj;
35850 fail:
35851 return NULL;
35852 }
35853
35854
35855 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35856 PyObject *resultobj = 0;
35857 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35858 int arg2 ;
35859 wxDC *arg3 = (wxDC *) 0 ;
35860 void *argp1 = 0 ;
35861 int res1 = 0 ;
35862 int val2 ;
35863 int ecode2 = 0 ;
35864 void *argp3 = 0 ;
35865 int res3 = 0 ;
35866 PyObject * obj0 = 0 ;
35867 PyObject * obj1 = 0 ;
35868 PyObject * obj2 = 0 ;
35869 char * kwnames[] = {
35870 (char *) "self",(char *) "id",(char *) "dc", NULL
35871 };
35872
35873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35875 if (!SWIG_IsOK(res1)) {
35876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35877 }
35878 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35879 ecode2 = SWIG_AsVal_int(obj1, &val2);
35880 if (!SWIG_IsOK(ecode2)) {
35881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35882 }
35883 arg2 = static_cast< int >(val2);
35884 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35885 if (!SWIG_IsOK(res3)) {
35886 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35887 }
35888 arg3 = reinterpret_cast< wxDC * >(argp3);
35889 {
35890 PyThreadState* __tstate = wxPyBeginAllowThreads();
35891 (arg1)->DrawIdToDC(arg2,arg3);
35892 wxPyEndAllowThreads(__tstate);
35893 if (PyErr_Occurred()) SWIG_fail;
35894 }
35895 resultobj = SWIG_Py_Void();
35896 return resultobj;
35897 fail:
35898 return NULL;
35899 }
35900
35901
35902 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35903 PyObject *resultobj = 0;
35904 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35905 int arg2 ;
35906 wxRect *arg3 = 0 ;
35907 void *argp1 = 0 ;
35908 int res1 = 0 ;
35909 int val2 ;
35910 int ecode2 = 0 ;
35911 wxRect temp3 ;
35912 PyObject * obj0 = 0 ;
35913 PyObject * obj1 = 0 ;
35914 PyObject * obj2 = 0 ;
35915 char * kwnames[] = {
35916 (char *) "self",(char *) "id",(char *) "rect", NULL
35917 };
35918
35919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35921 if (!SWIG_IsOK(res1)) {
35922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35923 }
35924 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35925 ecode2 = SWIG_AsVal_int(obj1, &val2);
35926 if (!SWIG_IsOK(ecode2)) {
35927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35928 }
35929 arg2 = static_cast< int >(val2);
35930 {
35931 arg3 = &temp3;
35932 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35933 }
35934 {
35935 PyThreadState* __tstate = wxPyBeginAllowThreads();
35936 (arg1)->SetIdBounds(arg2,*arg3);
35937 wxPyEndAllowThreads(__tstate);
35938 if (PyErr_Occurred()) SWIG_fail;
35939 }
35940 resultobj = SWIG_Py_Void();
35941 return resultobj;
35942 fail:
35943 return NULL;
35944 }
35945
35946
35947 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35948 PyObject *resultobj = 0;
35949 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35950 int arg2 ;
35951 wxRect result;
35952 void *argp1 = 0 ;
35953 int res1 = 0 ;
35954 int val2 ;
35955 int ecode2 = 0 ;
35956 PyObject * obj0 = 0 ;
35957 PyObject * obj1 = 0 ;
35958 char * kwnames[] = {
35959 (char *) "self",(char *) "id", NULL
35960 };
35961
35962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35964 if (!SWIG_IsOK(res1)) {
35965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35966 }
35967 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35968 ecode2 = SWIG_AsVal_int(obj1, &val2);
35969 if (!SWIG_IsOK(ecode2)) {
35970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35971 }
35972 arg2 = static_cast< int >(val2);
35973 {
35974 PyThreadState* __tstate = wxPyBeginAllowThreads();
35975 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35976 wxPyEndAllowThreads(__tstate);
35977 if (PyErr_Occurred()) SWIG_fail;
35978 }
35979 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35980 return resultobj;
35981 fail:
35982 return NULL;
35983 }
35984
35985
35986 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35987 PyObject *resultobj = 0;
35988 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35989 wxDC *arg2 = (wxDC *) 0 ;
35990 wxRect *arg3 = 0 ;
35991 void *argp1 = 0 ;
35992 int res1 = 0 ;
35993 void *argp2 = 0 ;
35994 int res2 = 0 ;
35995 wxRect temp3 ;
35996 PyObject * obj0 = 0 ;
35997 PyObject * obj1 = 0 ;
35998 PyObject * obj2 = 0 ;
35999 char * kwnames[] = {
36000 (char *) "self",(char *) "dc",(char *) "rect", NULL
36001 };
36002
36003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36005 if (!SWIG_IsOK(res1)) {
36006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36007 }
36008 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36009 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36010 if (!SWIG_IsOK(res2)) {
36011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36012 }
36013 arg2 = reinterpret_cast< wxDC * >(argp2);
36014 {
36015 arg3 = &temp3;
36016 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36017 }
36018 {
36019 PyThreadState* __tstate = wxPyBeginAllowThreads();
36020 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36021 wxPyEndAllowThreads(__tstate);
36022 if (PyErr_Occurred()) SWIG_fail;
36023 }
36024 resultobj = SWIG_Py_Void();
36025 return resultobj;
36026 fail:
36027 return NULL;
36028 }
36029
36030
36031 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36032 PyObject *resultobj = 0;
36033 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36034 wxDC *arg2 = (wxDC *) 0 ;
36035 wxRegion *arg3 = 0 ;
36036 void *argp1 = 0 ;
36037 int res1 = 0 ;
36038 void *argp2 = 0 ;
36039 int res2 = 0 ;
36040 void *argp3 = 0 ;
36041 int res3 = 0 ;
36042 PyObject * obj0 = 0 ;
36043 PyObject * obj1 = 0 ;
36044 PyObject * obj2 = 0 ;
36045 char * kwnames[] = {
36046 (char *) "self",(char *) "dc",(char *) "region", NULL
36047 };
36048
36049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36051 if (!SWIG_IsOK(res1)) {
36052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36053 }
36054 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36055 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36056 if (!SWIG_IsOK(res2)) {
36057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36058 }
36059 arg2 = reinterpret_cast< wxDC * >(argp2);
36060 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36061 if (!SWIG_IsOK(res3)) {
36062 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36063 }
36064 if (!argp3) {
36065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36066 }
36067 arg3 = reinterpret_cast< wxRegion * >(argp3);
36068 {
36069 PyThreadState* __tstate = wxPyBeginAllowThreads();
36070 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36071 wxPyEndAllowThreads(__tstate);
36072 if (PyErr_Occurred()) SWIG_fail;
36073 }
36074 resultobj = SWIG_Py_Void();
36075 return resultobj;
36076 fail:
36077 return NULL;
36078 }
36079
36080
36081 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36082 PyObject *resultobj = 0;
36083 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36084 wxDC *arg2 = (wxDC *) 0 ;
36085 void *argp1 = 0 ;
36086 int res1 = 0 ;
36087 void *argp2 = 0 ;
36088 int res2 = 0 ;
36089 PyObject * obj0 = 0 ;
36090 PyObject * obj1 = 0 ;
36091 char * kwnames[] = {
36092 (char *) "self",(char *) "dc", NULL
36093 };
36094
36095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36097 if (!SWIG_IsOK(res1)) {
36098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36099 }
36100 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36101 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36102 if (!SWIG_IsOK(res2)) {
36103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36104 }
36105 arg2 = reinterpret_cast< wxDC * >(argp2);
36106 {
36107 PyThreadState* __tstate = wxPyBeginAllowThreads();
36108 (arg1)->DrawToDC(arg2);
36109 wxPyEndAllowThreads(__tstate);
36110 if (PyErr_Occurred()) SWIG_fail;
36111 }
36112 resultobj = SWIG_Py_Void();
36113 return resultobj;
36114 fail:
36115 return NULL;
36116 }
36117
36118
36119 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36120 PyObject *resultobj = 0;
36121 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36122 int arg2 ;
36123 int arg3 ;
36124 wxColour *arg4 = 0 ;
36125 int arg5 = (int) wxFLOOD_SURFACE ;
36126 void *argp1 = 0 ;
36127 int res1 = 0 ;
36128 int val2 ;
36129 int ecode2 = 0 ;
36130 int val3 ;
36131 int ecode3 = 0 ;
36132 wxColour temp4 ;
36133 int val5 ;
36134 int ecode5 = 0 ;
36135 PyObject * obj0 = 0 ;
36136 PyObject * obj1 = 0 ;
36137 PyObject * obj2 = 0 ;
36138 PyObject * obj3 = 0 ;
36139 PyObject * obj4 = 0 ;
36140 char * kwnames[] = {
36141 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36142 };
36143
36144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36146 if (!SWIG_IsOK(res1)) {
36147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36148 }
36149 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36150 ecode2 = SWIG_AsVal_int(obj1, &val2);
36151 if (!SWIG_IsOK(ecode2)) {
36152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36153 }
36154 arg2 = static_cast< int >(val2);
36155 ecode3 = SWIG_AsVal_int(obj2, &val3);
36156 if (!SWIG_IsOK(ecode3)) {
36157 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36158 }
36159 arg3 = static_cast< int >(val3);
36160 {
36161 arg4 = &temp4;
36162 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36163 }
36164 if (obj4) {
36165 ecode5 = SWIG_AsVal_int(obj4, &val5);
36166 if (!SWIG_IsOK(ecode5)) {
36167 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36168 }
36169 arg5 = static_cast< int >(val5);
36170 }
36171 {
36172 PyThreadState* __tstate = wxPyBeginAllowThreads();
36173 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36174 wxPyEndAllowThreads(__tstate);
36175 if (PyErr_Occurred()) SWIG_fail;
36176 }
36177 resultobj = SWIG_Py_Void();
36178 return resultobj;
36179 fail:
36180 return NULL;
36181 }
36182
36183
36184 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36185 PyObject *resultobj = 0;
36186 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36187 wxPoint *arg2 = 0 ;
36188 wxColour *arg3 = 0 ;
36189 int arg4 = (int) wxFLOOD_SURFACE ;
36190 void *argp1 = 0 ;
36191 int res1 = 0 ;
36192 wxPoint temp2 ;
36193 wxColour temp3 ;
36194 int val4 ;
36195 int ecode4 = 0 ;
36196 PyObject * obj0 = 0 ;
36197 PyObject * obj1 = 0 ;
36198 PyObject * obj2 = 0 ;
36199 PyObject * obj3 = 0 ;
36200 char * kwnames[] = {
36201 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36202 };
36203
36204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36206 if (!SWIG_IsOK(res1)) {
36207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36208 }
36209 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36210 {
36211 arg2 = &temp2;
36212 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36213 }
36214 {
36215 arg3 = &temp3;
36216 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36217 }
36218 if (obj3) {
36219 ecode4 = SWIG_AsVal_int(obj3, &val4);
36220 if (!SWIG_IsOK(ecode4)) {
36221 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36222 }
36223 arg4 = static_cast< int >(val4);
36224 }
36225 {
36226 PyThreadState* __tstate = wxPyBeginAllowThreads();
36227 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36228 wxPyEndAllowThreads(__tstate);
36229 if (PyErr_Occurred()) SWIG_fail;
36230 }
36231 resultobj = SWIG_Py_Void();
36232 return resultobj;
36233 fail:
36234 return NULL;
36235 }
36236
36237
36238 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36239 PyObject *resultobj = 0;
36240 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36241 int arg2 ;
36242 int arg3 ;
36243 int arg4 ;
36244 int arg5 ;
36245 void *argp1 = 0 ;
36246 int res1 = 0 ;
36247 int val2 ;
36248 int ecode2 = 0 ;
36249 int val3 ;
36250 int ecode3 = 0 ;
36251 int val4 ;
36252 int ecode4 = 0 ;
36253 int val5 ;
36254 int ecode5 = 0 ;
36255 PyObject * obj0 = 0 ;
36256 PyObject * obj1 = 0 ;
36257 PyObject * obj2 = 0 ;
36258 PyObject * obj3 = 0 ;
36259 PyObject * obj4 = 0 ;
36260 char * kwnames[] = {
36261 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36262 };
36263
36264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36266 if (!SWIG_IsOK(res1)) {
36267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36268 }
36269 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36270 ecode2 = SWIG_AsVal_int(obj1, &val2);
36271 if (!SWIG_IsOK(ecode2)) {
36272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36273 }
36274 arg2 = static_cast< int >(val2);
36275 ecode3 = SWIG_AsVal_int(obj2, &val3);
36276 if (!SWIG_IsOK(ecode3)) {
36277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36278 }
36279 arg3 = static_cast< int >(val3);
36280 ecode4 = SWIG_AsVal_int(obj3, &val4);
36281 if (!SWIG_IsOK(ecode4)) {
36282 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36283 }
36284 arg4 = static_cast< int >(val4);
36285 ecode5 = SWIG_AsVal_int(obj4, &val5);
36286 if (!SWIG_IsOK(ecode5)) {
36287 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36288 }
36289 arg5 = static_cast< int >(val5);
36290 {
36291 PyThreadState* __tstate = wxPyBeginAllowThreads();
36292 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36293 wxPyEndAllowThreads(__tstate);
36294 if (PyErr_Occurred()) SWIG_fail;
36295 }
36296 resultobj = SWIG_Py_Void();
36297 return resultobj;
36298 fail:
36299 return NULL;
36300 }
36301
36302
36303 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36304 PyObject *resultobj = 0;
36305 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36306 wxPoint *arg2 = 0 ;
36307 wxPoint *arg3 = 0 ;
36308 void *argp1 = 0 ;
36309 int res1 = 0 ;
36310 wxPoint temp2 ;
36311 wxPoint temp3 ;
36312 PyObject * obj0 = 0 ;
36313 PyObject * obj1 = 0 ;
36314 PyObject * obj2 = 0 ;
36315 char * kwnames[] = {
36316 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36317 };
36318
36319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36321 if (!SWIG_IsOK(res1)) {
36322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36323 }
36324 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36325 {
36326 arg2 = &temp2;
36327 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36328 }
36329 {
36330 arg3 = &temp3;
36331 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36332 }
36333 {
36334 PyThreadState* __tstate = wxPyBeginAllowThreads();
36335 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36336 wxPyEndAllowThreads(__tstate);
36337 if (PyErr_Occurred()) SWIG_fail;
36338 }
36339 resultobj = SWIG_Py_Void();
36340 return resultobj;
36341 fail:
36342 return NULL;
36343 }
36344
36345
36346 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36347 PyObject *resultobj = 0;
36348 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36349 int arg2 ;
36350 int arg3 ;
36351 void *argp1 = 0 ;
36352 int res1 = 0 ;
36353 int val2 ;
36354 int ecode2 = 0 ;
36355 int val3 ;
36356 int ecode3 = 0 ;
36357 PyObject * obj0 = 0 ;
36358 PyObject * obj1 = 0 ;
36359 PyObject * obj2 = 0 ;
36360 char * kwnames[] = {
36361 (char *) "self",(char *) "x",(char *) "y", NULL
36362 };
36363
36364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36366 if (!SWIG_IsOK(res1)) {
36367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36368 }
36369 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36370 ecode2 = SWIG_AsVal_int(obj1, &val2);
36371 if (!SWIG_IsOK(ecode2)) {
36372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36373 }
36374 arg2 = static_cast< int >(val2);
36375 ecode3 = SWIG_AsVal_int(obj2, &val3);
36376 if (!SWIG_IsOK(ecode3)) {
36377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36378 }
36379 arg3 = static_cast< int >(val3);
36380 {
36381 PyThreadState* __tstate = wxPyBeginAllowThreads();
36382 (arg1)->CrossHair(arg2,arg3);
36383 wxPyEndAllowThreads(__tstate);
36384 if (PyErr_Occurred()) SWIG_fail;
36385 }
36386 resultobj = SWIG_Py_Void();
36387 return resultobj;
36388 fail:
36389 return NULL;
36390 }
36391
36392
36393 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36394 PyObject *resultobj = 0;
36395 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36396 wxPoint *arg2 = 0 ;
36397 void *argp1 = 0 ;
36398 int res1 = 0 ;
36399 wxPoint temp2 ;
36400 PyObject * obj0 = 0 ;
36401 PyObject * obj1 = 0 ;
36402 char * kwnames[] = {
36403 (char *) "self",(char *) "pt", NULL
36404 };
36405
36406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36408 if (!SWIG_IsOK(res1)) {
36409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36410 }
36411 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36412 {
36413 arg2 = &temp2;
36414 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36415 }
36416 {
36417 PyThreadState* __tstate = wxPyBeginAllowThreads();
36418 (arg1)->CrossHair((wxPoint const &)*arg2);
36419 wxPyEndAllowThreads(__tstate);
36420 if (PyErr_Occurred()) SWIG_fail;
36421 }
36422 resultobj = SWIG_Py_Void();
36423 return resultobj;
36424 fail:
36425 return NULL;
36426 }
36427
36428
36429 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36430 PyObject *resultobj = 0;
36431 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36432 int arg2 ;
36433 int arg3 ;
36434 int arg4 ;
36435 int arg5 ;
36436 int arg6 ;
36437 int arg7 ;
36438 void *argp1 = 0 ;
36439 int res1 = 0 ;
36440 int val2 ;
36441 int ecode2 = 0 ;
36442 int val3 ;
36443 int ecode3 = 0 ;
36444 int val4 ;
36445 int ecode4 = 0 ;
36446 int val5 ;
36447 int ecode5 = 0 ;
36448 int val6 ;
36449 int ecode6 = 0 ;
36450 int val7 ;
36451 int ecode7 = 0 ;
36452 PyObject * obj0 = 0 ;
36453 PyObject * obj1 = 0 ;
36454 PyObject * obj2 = 0 ;
36455 PyObject * obj3 = 0 ;
36456 PyObject * obj4 = 0 ;
36457 PyObject * obj5 = 0 ;
36458 PyObject * obj6 = 0 ;
36459 char * kwnames[] = {
36460 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36461 };
36462
36463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36465 if (!SWIG_IsOK(res1)) {
36466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36467 }
36468 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36469 ecode2 = SWIG_AsVal_int(obj1, &val2);
36470 if (!SWIG_IsOK(ecode2)) {
36471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36472 }
36473 arg2 = static_cast< int >(val2);
36474 ecode3 = SWIG_AsVal_int(obj2, &val3);
36475 if (!SWIG_IsOK(ecode3)) {
36476 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36477 }
36478 arg3 = static_cast< int >(val3);
36479 ecode4 = SWIG_AsVal_int(obj3, &val4);
36480 if (!SWIG_IsOK(ecode4)) {
36481 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36482 }
36483 arg4 = static_cast< int >(val4);
36484 ecode5 = SWIG_AsVal_int(obj4, &val5);
36485 if (!SWIG_IsOK(ecode5)) {
36486 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36487 }
36488 arg5 = static_cast< int >(val5);
36489 ecode6 = SWIG_AsVal_int(obj5, &val6);
36490 if (!SWIG_IsOK(ecode6)) {
36491 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36492 }
36493 arg6 = static_cast< int >(val6);
36494 ecode7 = SWIG_AsVal_int(obj6, &val7);
36495 if (!SWIG_IsOK(ecode7)) {
36496 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36497 }
36498 arg7 = static_cast< int >(val7);
36499 {
36500 PyThreadState* __tstate = wxPyBeginAllowThreads();
36501 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36502 wxPyEndAllowThreads(__tstate);
36503 if (PyErr_Occurred()) SWIG_fail;
36504 }
36505 resultobj = SWIG_Py_Void();
36506 return resultobj;
36507 fail:
36508 return NULL;
36509 }
36510
36511
36512 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36513 PyObject *resultobj = 0;
36514 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36515 wxPoint *arg2 = 0 ;
36516 wxPoint *arg3 = 0 ;
36517 wxPoint *arg4 = 0 ;
36518 void *argp1 = 0 ;
36519 int res1 = 0 ;
36520 wxPoint temp2 ;
36521 wxPoint temp3 ;
36522 wxPoint temp4 ;
36523 PyObject * obj0 = 0 ;
36524 PyObject * obj1 = 0 ;
36525 PyObject * obj2 = 0 ;
36526 PyObject * obj3 = 0 ;
36527 char * kwnames[] = {
36528 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36529 };
36530
36531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36533 if (!SWIG_IsOK(res1)) {
36534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36535 }
36536 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36537 {
36538 arg2 = &temp2;
36539 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36540 }
36541 {
36542 arg3 = &temp3;
36543 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36544 }
36545 {
36546 arg4 = &temp4;
36547 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36548 }
36549 {
36550 PyThreadState* __tstate = wxPyBeginAllowThreads();
36551 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36552 wxPyEndAllowThreads(__tstate);
36553 if (PyErr_Occurred()) SWIG_fail;
36554 }
36555 resultobj = SWIG_Py_Void();
36556 return resultobj;
36557 fail:
36558 return NULL;
36559 }
36560
36561
36562 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36563 PyObject *resultobj = 0;
36564 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36565 int arg2 ;
36566 int arg3 ;
36567 int arg4 ;
36568 int arg5 ;
36569 void *argp1 = 0 ;
36570 int res1 = 0 ;
36571 int val2 ;
36572 int ecode2 = 0 ;
36573 int val3 ;
36574 int ecode3 = 0 ;
36575 int val4 ;
36576 int ecode4 = 0 ;
36577 int val5 ;
36578 int ecode5 = 0 ;
36579 PyObject * obj0 = 0 ;
36580 PyObject * obj1 = 0 ;
36581 PyObject * obj2 = 0 ;
36582 PyObject * obj3 = 0 ;
36583 PyObject * obj4 = 0 ;
36584 char * kwnames[] = {
36585 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36586 };
36587
36588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36590 if (!SWIG_IsOK(res1)) {
36591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36592 }
36593 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36594 ecode2 = SWIG_AsVal_int(obj1, &val2);
36595 if (!SWIG_IsOK(ecode2)) {
36596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36597 }
36598 arg2 = static_cast< int >(val2);
36599 ecode3 = SWIG_AsVal_int(obj2, &val3);
36600 if (!SWIG_IsOK(ecode3)) {
36601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36602 }
36603 arg3 = static_cast< int >(val3);
36604 ecode4 = SWIG_AsVal_int(obj3, &val4);
36605 if (!SWIG_IsOK(ecode4)) {
36606 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36607 }
36608 arg4 = static_cast< int >(val4);
36609 ecode5 = SWIG_AsVal_int(obj4, &val5);
36610 if (!SWIG_IsOK(ecode5)) {
36611 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36612 }
36613 arg5 = static_cast< int >(val5);
36614 {
36615 PyThreadState* __tstate = wxPyBeginAllowThreads();
36616 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36617 wxPyEndAllowThreads(__tstate);
36618 if (PyErr_Occurred()) SWIG_fail;
36619 }
36620 resultobj = SWIG_Py_Void();
36621 return resultobj;
36622 fail:
36623 return NULL;
36624 }
36625
36626
36627 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36628 PyObject *resultobj = 0;
36629 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36630 wxRect *arg2 = 0 ;
36631 void *argp1 = 0 ;
36632 int res1 = 0 ;
36633 wxRect temp2 ;
36634 PyObject * obj0 = 0 ;
36635 PyObject * obj1 = 0 ;
36636 char * kwnames[] = {
36637 (char *) "self",(char *) "rect", NULL
36638 };
36639
36640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36642 if (!SWIG_IsOK(res1)) {
36643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36644 }
36645 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36646 {
36647 arg2 = &temp2;
36648 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36649 }
36650 {
36651 PyThreadState* __tstate = wxPyBeginAllowThreads();
36652 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36653 wxPyEndAllowThreads(__tstate);
36654 if (PyErr_Occurred()) SWIG_fail;
36655 }
36656 resultobj = SWIG_Py_Void();
36657 return resultobj;
36658 fail:
36659 return NULL;
36660 }
36661
36662
36663 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36664 PyObject *resultobj = 0;
36665 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36666 int arg2 ;
36667 int arg3 ;
36668 int arg4 ;
36669 int arg5 ;
36670 double arg6 ;
36671 double arg7 ;
36672 void *argp1 = 0 ;
36673 int res1 = 0 ;
36674 int val2 ;
36675 int ecode2 = 0 ;
36676 int val3 ;
36677 int ecode3 = 0 ;
36678 int val4 ;
36679 int ecode4 = 0 ;
36680 int val5 ;
36681 int ecode5 = 0 ;
36682 double val6 ;
36683 int ecode6 = 0 ;
36684 double val7 ;
36685 int ecode7 = 0 ;
36686 PyObject * obj0 = 0 ;
36687 PyObject * obj1 = 0 ;
36688 PyObject * obj2 = 0 ;
36689 PyObject * obj3 = 0 ;
36690 PyObject * obj4 = 0 ;
36691 PyObject * obj5 = 0 ;
36692 PyObject * obj6 = 0 ;
36693 char * kwnames[] = {
36694 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36695 };
36696
36697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36699 if (!SWIG_IsOK(res1)) {
36700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36701 }
36702 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36703 ecode2 = SWIG_AsVal_int(obj1, &val2);
36704 if (!SWIG_IsOK(ecode2)) {
36705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36706 }
36707 arg2 = static_cast< int >(val2);
36708 ecode3 = SWIG_AsVal_int(obj2, &val3);
36709 if (!SWIG_IsOK(ecode3)) {
36710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36711 }
36712 arg3 = static_cast< int >(val3);
36713 ecode4 = SWIG_AsVal_int(obj3, &val4);
36714 if (!SWIG_IsOK(ecode4)) {
36715 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36716 }
36717 arg4 = static_cast< int >(val4);
36718 ecode5 = SWIG_AsVal_int(obj4, &val5);
36719 if (!SWIG_IsOK(ecode5)) {
36720 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36721 }
36722 arg5 = static_cast< int >(val5);
36723 ecode6 = SWIG_AsVal_double(obj5, &val6);
36724 if (!SWIG_IsOK(ecode6)) {
36725 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36726 }
36727 arg6 = static_cast< double >(val6);
36728 ecode7 = SWIG_AsVal_double(obj6, &val7);
36729 if (!SWIG_IsOK(ecode7)) {
36730 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36731 }
36732 arg7 = static_cast< double >(val7);
36733 {
36734 PyThreadState* __tstate = wxPyBeginAllowThreads();
36735 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36736 wxPyEndAllowThreads(__tstate);
36737 if (PyErr_Occurred()) SWIG_fail;
36738 }
36739 resultobj = SWIG_Py_Void();
36740 return resultobj;
36741 fail:
36742 return NULL;
36743 }
36744
36745
36746 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36747 PyObject *resultobj = 0;
36748 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36749 wxPoint *arg2 = 0 ;
36750 wxSize *arg3 = 0 ;
36751 double arg4 ;
36752 double arg5 ;
36753 void *argp1 = 0 ;
36754 int res1 = 0 ;
36755 wxPoint temp2 ;
36756 wxSize temp3 ;
36757 double val4 ;
36758 int ecode4 = 0 ;
36759 double val5 ;
36760 int ecode5 = 0 ;
36761 PyObject * obj0 = 0 ;
36762 PyObject * obj1 = 0 ;
36763 PyObject * obj2 = 0 ;
36764 PyObject * obj3 = 0 ;
36765 PyObject * obj4 = 0 ;
36766 char * kwnames[] = {
36767 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36768 };
36769
36770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36772 if (!SWIG_IsOK(res1)) {
36773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36774 }
36775 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36776 {
36777 arg2 = &temp2;
36778 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36779 }
36780 {
36781 arg3 = &temp3;
36782 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36783 }
36784 ecode4 = SWIG_AsVal_double(obj3, &val4);
36785 if (!SWIG_IsOK(ecode4)) {
36786 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36787 }
36788 arg4 = static_cast< double >(val4);
36789 ecode5 = SWIG_AsVal_double(obj4, &val5);
36790 if (!SWIG_IsOK(ecode5)) {
36791 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36792 }
36793 arg5 = static_cast< double >(val5);
36794 {
36795 PyThreadState* __tstate = wxPyBeginAllowThreads();
36796 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36797 wxPyEndAllowThreads(__tstate);
36798 if (PyErr_Occurred()) SWIG_fail;
36799 }
36800 resultobj = SWIG_Py_Void();
36801 return resultobj;
36802 fail:
36803 return NULL;
36804 }
36805
36806
36807 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36808 PyObject *resultobj = 0;
36809 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36810 int arg2 ;
36811 int arg3 ;
36812 void *argp1 = 0 ;
36813 int res1 = 0 ;
36814 int val2 ;
36815 int ecode2 = 0 ;
36816 int val3 ;
36817 int ecode3 = 0 ;
36818 PyObject * obj0 = 0 ;
36819 PyObject * obj1 = 0 ;
36820 PyObject * obj2 = 0 ;
36821 char * kwnames[] = {
36822 (char *) "self",(char *) "x",(char *) "y", NULL
36823 };
36824
36825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36827 if (!SWIG_IsOK(res1)) {
36828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36829 }
36830 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36831 ecode2 = SWIG_AsVal_int(obj1, &val2);
36832 if (!SWIG_IsOK(ecode2)) {
36833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36834 }
36835 arg2 = static_cast< int >(val2);
36836 ecode3 = SWIG_AsVal_int(obj2, &val3);
36837 if (!SWIG_IsOK(ecode3)) {
36838 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36839 }
36840 arg3 = static_cast< int >(val3);
36841 {
36842 PyThreadState* __tstate = wxPyBeginAllowThreads();
36843 (arg1)->DrawPoint(arg2,arg3);
36844 wxPyEndAllowThreads(__tstate);
36845 if (PyErr_Occurred()) SWIG_fail;
36846 }
36847 resultobj = SWIG_Py_Void();
36848 return resultobj;
36849 fail:
36850 return NULL;
36851 }
36852
36853
36854 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36855 PyObject *resultobj = 0;
36856 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36857 wxPoint *arg2 = 0 ;
36858 void *argp1 = 0 ;
36859 int res1 = 0 ;
36860 wxPoint temp2 ;
36861 PyObject * obj0 = 0 ;
36862 PyObject * obj1 = 0 ;
36863 char * kwnames[] = {
36864 (char *) "self",(char *) "pt", NULL
36865 };
36866
36867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36869 if (!SWIG_IsOK(res1)) {
36870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36871 }
36872 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36873 {
36874 arg2 = &temp2;
36875 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36876 }
36877 {
36878 PyThreadState* __tstate = wxPyBeginAllowThreads();
36879 (arg1)->DrawPoint((wxPoint const &)*arg2);
36880 wxPyEndAllowThreads(__tstate);
36881 if (PyErr_Occurred()) SWIG_fail;
36882 }
36883 resultobj = SWIG_Py_Void();
36884 return resultobj;
36885 fail:
36886 return NULL;
36887 }
36888
36889
36890 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36891 PyObject *resultobj = 0;
36892 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36893 int arg2 ;
36894 int arg3 ;
36895 int arg4 ;
36896 int arg5 ;
36897 void *argp1 = 0 ;
36898 int res1 = 0 ;
36899 int val2 ;
36900 int ecode2 = 0 ;
36901 int val3 ;
36902 int ecode3 = 0 ;
36903 int val4 ;
36904 int ecode4 = 0 ;
36905 int val5 ;
36906 int ecode5 = 0 ;
36907 PyObject * obj0 = 0 ;
36908 PyObject * obj1 = 0 ;
36909 PyObject * obj2 = 0 ;
36910 PyObject * obj3 = 0 ;
36911 PyObject * obj4 = 0 ;
36912 char * kwnames[] = {
36913 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36914 };
36915
36916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36918 if (!SWIG_IsOK(res1)) {
36919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36920 }
36921 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36922 ecode2 = SWIG_AsVal_int(obj1, &val2);
36923 if (!SWIG_IsOK(ecode2)) {
36924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36925 }
36926 arg2 = static_cast< int >(val2);
36927 ecode3 = SWIG_AsVal_int(obj2, &val3);
36928 if (!SWIG_IsOK(ecode3)) {
36929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36930 }
36931 arg3 = static_cast< int >(val3);
36932 ecode4 = SWIG_AsVal_int(obj3, &val4);
36933 if (!SWIG_IsOK(ecode4)) {
36934 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36935 }
36936 arg4 = static_cast< int >(val4);
36937 ecode5 = SWIG_AsVal_int(obj4, &val5);
36938 if (!SWIG_IsOK(ecode5)) {
36939 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36940 }
36941 arg5 = static_cast< int >(val5);
36942 {
36943 PyThreadState* __tstate = wxPyBeginAllowThreads();
36944 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36945 wxPyEndAllowThreads(__tstate);
36946 if (PyErr_Occurred()) SWIG_fail;
36947 }
36948 resultobj = SWIG_Py_Void();
36949 return resultobj;
36950 fail:
36951 return NULL;
36952 }
36953
36954
36955 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36956 PyObject *resultobj = 0;
36957 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36958 wxRect *arg2 = 0 ;
36959 void *argp1 = 0 ;
36960 int res1 = 0 ;
36961 wxRect temp2 ;
36962 PyObject * obj0 = 0 ;
36963 PyObject * obj1 = 0 ;
36964 char * kwnames[] = {
36965 (char *) "self",(char *) "rect", NULL
36966 };
36967
36968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36970 if (!SWIG_IsOK(res1)) {
36971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36972 }
36973 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36974 {
36975 arg2 = &temp2;
36976 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36977 }
36978 {
36979 PyThreadState* __tstate = wxPyBeginAllowThreads();
36980 (arg1)->DrawRectangle((wxRect const &)*arg2);
36981 wxPyEndAllowThreads(__tstate);
36982 if (PyErr_Occurred()) SWIG_fail;
36983 }
36984 resultobj = SWIG_Py_Void();
36985 return resultobj;
36986 fail:
36987 return NULL;
36988 }
36989
36990
36991 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36992 PyObject *resultobj = 0;
36993 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36994 wxPoint *arg2 = 0 ;
36995 wxSize *arg3 = 0 ;
36996 void *argp1 = 0 ;
36997 int res1 = 0 ;
36998 wxPoint temp2 ;
36999 wxSize temp3 ;
37000 PyObject * obj0 = 0 ;
37001 PyObject * obj1 = 0 ;
37002 PyObject * obj2 = 0 ;
37003 char * kwnames[] = {
37004 (char *) "self",(char *) "pt",(char *) "sz", NULL
37005 };
37006
37007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37009 if (!SWIG_IsOK(res1)) {
37010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37011 }
37012 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37013 {
37014 arg2 = &temp2;
37015 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37016 }
37017 {
37018 arg3 = &temp3;
37019 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37020 }
37021 {
37022 PyThreadState* __tstate = wxPyBeginAllowThreads();
37023 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37024 wxPyEndAllowThreads(__tstate);
37025 if (PyErr_Occurred()) SWIG_fail;
37026 }
37027 resultobj = SWIG_Py_Void();
37028 return resultobj;
37029 fail:
37030 return NULL;
37031 }
37032
37033
37034 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37035 PyObject *resultobj = 0;
37036 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37037 int arg2 ;
37038 int arg3 ;
37039 int arg4 ;
37040 int arg5 ;
37041 double arg6 ;
37042 void *argp1 = 0 ;
37043 int res1 = 0 ;
37044 int val2 ;
37045 int ecode2 = 0 ;
37046 int val3 ;
37047 int ecode3 = 0 ;
37048 int val4 ;
37049 int ecode4 = 0 ;
37050 int val5 ;
37051 int ecode5 = 0 ;
37052 double val6 ;
37053 int ecode6 = 0 ;
37054 PyObject * obj0 = 0 ;
37055 PyObject * obj1 = 0 ;
37056 PyObject * obj2 = 0 ;
37057 PyObject * obj3 = 0 ;
37058 PyObject * obj4 = 0 ;
37059 PyObject * obj5 = 0 ;
37060 char * kwnames[] = {
37061 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37062 };
37063
37064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37066 if (!SWIG_IsOK(res1)) {
37067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37068 }
37069 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37070 ecode2 = SWIG_AsVal_int(obj1, &val2);
37071 if (!SWIG_IsOK(ecode2)) {
37072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37073 }
37074 arg2 = static_cast< int >(val2);
37075 ecode3 = SWIG_AsVal_int(obj2, &val3);
37076 if (!SWIG_IsOK(ecode3)) {
37077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37078 }
37079 arg3 = static_cast< int >(val3);
37080 ecode4 = SWIG_AsVal_int(obj3, &val4);
37081 if (!SWIG_IsOK(ecode4)) {
37082 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37083 }
37084 arg4 = static_cast< int >(val4);
37085 ecode5 = SWIG_AsVal_int(obj4, &val5);
37086 if (!SWIG_IsOK(ecode5)) {
37087 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37088 }
37089 arg5 = static_cast< int >(val5);
37090 ecode6 = SWIG_AsVal_double(obj5, &val6);
37091 if (!SWIG_IsOK(ecode6)) {
37092 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37093 }
37094 arg6 = static_cast< double >(val6);
37095 {
37096 PyThreadState* __tstate = wxPyBeginAllowThreads();
37097 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37098 wxPyEndAllowThreads(__tstate);
37099 if (PyErr_Occurred()) SWIG_fail;
37100 }
37101 resultobj = SWIG_Py_Void();
37102 return resultobj;
37103 fail:
37104 return NULL;
37105 }
37106
37107
37108 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37109 PyObject *resultobj = 0;
37110 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37111 wxRect *arg2 = 0 ;
37112 double arg3 ;
37113 void *argp1 = 0 ;
37114 int res1 = 0 ;
37115 wxRect temp2 ;
37116 double val3 ;
37117 int ecode3 = 0 ;
37118 PyObject * obj0 = 0 ;
37119 PyObject * obj1 = 0 ;
37120 PyObject * obj2 = 0 ;
37121 char * kwnames[] = {
37122 (char *) "self",(char *) "r",(char *) "radius", NULL
37123 };
37124
37125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37127 if (!SWIG_IsOK(res1)) {
37128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37129 }
37130 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37131 {
37132 arg2 = &temp2;
37133 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37134 }
37135 ecode3 = SWIG_AsVal_double(obj2, &val3);
37136 if (!SWIG_IsOK(ecode3)) {
37137 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37138 }
37139 arg3 = static_cast< double >(val3);
37140 {
37141 PyThreadState* __tstate = wxPyBeginAllowThreads();
37142 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37143 wxPyEndAllowThreads(__tstate);
37144 if (PyErr_Occurred()) SWIG_fail;
37145 }
37146 resultobj = SWIG_Py_Void();
37147 return resultobj;
37148 fail:
37149 return NULL;
37150 }
37151
37152
37153 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37154 PyObject *resultobj = 0;
37155 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37156 wxPoint *arg2 = 0 ;
37157 wxSize *arg3 = 0 ;
37158 double arg4 ;
37159 void *argp1 = 0 ;
37160 int res1 = 0 ;
37161 wxPoint temp2 ;
37162 wxSize temp3 ;
37163 double val4 ;
37164 int ecode4 = 0 ;
37165 PyObject * obj0 = 0 ;
37166 PyObject * obj1 = 0 ;
37167 PyObject * obj2 = 0 ;
37168 PyObject * obj3 = 0 ;
37169 char * kwnames[] = {
37170 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37171 };
37172
37173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37175 if (!SWIG_IsOK(res1)) {
37176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37177 }
37178 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37179 {
37180 arg2 = &temp2;
37181 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37182 }
37183 {
37184 arg3 = &temp3;
37185 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37186 }
37187 ecode4 = SWIG_AsVal_double(obj3, &val4);
37188 if (!SWIG_IsOK(ecode4)) {
37189 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37190 }
37191 arg4 = static_cast< double >(val4);
37192 {
37193 PyThreadState* __tstate = wxPyBeginAllowThreads();
37194 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37195 wxPyEndAllowThreads(__tstate);
37196 if (PyErr_Occurred()) SWIG_fail;
37197 }
37198 resultobj = SWIG_Py_Void();
37199 return resultobj;
37200 fail:
37201 return NULL;
37202 }
37203
37204
37205 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37206 PyObject *resultobj = 0;
37207 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37208 int arg2 ;
37209 int arg3 ;
37210 int arg4 ;
37211 void *argp1 = 0 ;
37212 int res1 = 0 ;
37213 int val2 ;
37214 int ecode2 = 0 ;
37215 int val3 ;
37216 int ecode3 = 0 ;
37217 int val4 ;
37218 int ecode4 = 0 ;
37219 PyObject * obj0 = 0 ;
37220 PyObject * obj1 = 0 ;
37221 PyObject * obj2 = 0 ;
37222 PyObject * obj3 = 0 ;
37223 char * kwnames[] = {
37224 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37225 };
37226
37227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37229 if (!SWIG_IsOK(res1)) {
37230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37231 }
37232 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37233 ecode2 = SWIG_AsVal_int(obj1, &val2);
37234 if (!SWIG_IsOK(ecode2)) {
37235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37236 }
37237 arg2 = static_cast< int >(val2);
37238 ecode3 = SWIG_AsVal_int(obj2, &val3);
37239 if (!SWIG_IsOK(ecode3)) {
37240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37241 }
37242 arg3 = static_cast< int >(val3);
37243 ecode4 = SWIG_AsVal_int(obj3, &val4);
37244 if (!SWIG_IsOK(ecode4)) {
37245 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37246 }
37247 arg4 = static_cast< int >(val4);
37248 {
37249 PyThreadState* __tstate = wxPyBeginAllowThreads();
37250 (arg1)->DrawCircle(arg2,arg3,arg4);
37251 wxPyEndAllowThreads(__tstate);
37252 if (PyErr_Occurred()) SWIG_fail;
37253 }
37254 resultobj = SWIG_Py_Void();
37255 return resultobj;
37256 fail:
37257 return NULL;
37258 }
37259
37260
37261 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37262 PyObject *resultobj = 0;
37263 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37264 wxPoint *arg2 = 0 ;
37265 int arg3 ;
37266 void *argp1 = 0 ;
37267 int res1 = 0 ;
37268 wxPoint temp2 ;
37269 int val3 ;
37270 int ecode3 = 0 ;
37271 PyObject * obj0 = 0 ;
37272 PyObject * obj1 = 0 ;
37273 PyObject * obj2 = 0 ;
37274 char * kwnames[] = {
37275 (char *) "self",(char *) "pt",(char *) "radius", NULL
37276 };
37277
37278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37280 if (!SWIG_IsOK(res1)) {
37281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37282 }
37283 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37284 {
37285 arg2 = &temp2;
37286 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37287 }
37288 ecode3 = SWIG_AsVal_int(obj2, &val3);
37289 if (!SWIG_IsOK(ecode3)) {
37290 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37291 }
37292 arg3 = static_cast< int >(val3);
37293 {
37294 PyThreadState* __tstate = wxPyBeginAllowThreads();
37295 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37296 wxPyEndAllowThreads(__tstate);
37297 if (PyErr_Occurred()) SWIG_fail;
37298 }
37299 resultobj = SWIG_Py_Void();
37300 return resultobj;
37301 fail:
37302 return NULL;
37303 }
37304
37305
37306 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37307 PyObject *resultobj = 0;
37308 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37309 int arg2 ;
37310 int arg3 ;
37311 int arg4 ;
37312 int arg5 ;
37313 void *argp1 = 0 ;
37314 int res1 = 0 ;
37315 int val2 ;
37316 int ecode2 = 0 ;
37317 int val3 ;
37318 int ecode3 = 0 ;
37319 int val4 ;
37320 int ecode4 = 0 ;
37321 int val5 ;
37322 int ecode5 = 0 ;
37323 PyObject * obj0 = 0 ;
37324 PyObject * obj1 = 0 ;
37325 PyObject * obj2 = 0 ;
37326 PyObject * obj3 = 0 ;
37327 PyObject * obj4 = 0 ;
37328 char * kwnames[] = {
37329 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37330 };
37331
37332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37334 if (!SWIG_IsOK(res1)) {
37335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37336 }
37337 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37338 ecode2 = SWIG_AsVal_int(obj1, &val2);
37339 if (!SWIG_IsOK(ecode2)) {
37340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37341 }
37342 arg2 = static_cast< int >(val2);
37343 ecode3 = SWIG_AsVal_int(obj2, &val3);
37344 if (!SWIG_IsOK(ecode3)) {
37345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37346 }
37347 arg3 = static_cast< int >(val3);
37348 ecode4 = SWIG_AsVal_int(obj3, &val4);
37349 if (!SWIG_IsOK(ecode4)) {
37350 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37351 }
37352 arg4 = static_cast< int >(val4);
37353 ecode5 = SWIG_AsVal_int(obj4, &val5);
37354 if (!SWIG_IsOK(ecode5)) {
37355 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37356 }
37357 arg5 = static_cast< int >(val5);
37358 {
37359 PyThreadState* __tstate = wxPyBeginAllowThreads();
37360 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37361 wxPyEndAllowThreads(__tstate);
37362 if (PyErr_Occurred()) SWIG_fail;
37363 }
37364 resultobj = SWIG_Py_Void();
37365 return resultobj;
37366 fail:
37367 return NULL;
37368 }
37369
37370
37371 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37372 PyObject *resultobj = 0;
37373 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37374 wxRect *arg2 = 0 ;
37375 void *argp1 = 0 ;
37376 int res1 = 0 ;
37377 wxRect temp2 ;
37378 PyObject * obj0 = 0 ;
37379 PyObject * obj1 = 0 ;
37380 char * kwnames[] = {
37381 (char *) "self",(char *) "rect", NULL
37382 };
37383
37384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37386 if (!SWIG_IsOK(res1)) {
37387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37388 }
37389 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37390 {
37391 arg2 = &temp2;
37392 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37393 }
37394 {
37395 PyThreadState* __tstate = wxPyBeginAllowThreads();
37396 (arg1)->DrawEllipse((wxRect const &)*arg2);
37397 wxPyEndAllowThreads(__tstate);
37398 if (PyErr_Occurred()) SWIG_fail;
37399 }
37400 resultobj = SWIG_Py_Void();
37401 return resultobj;
37402 fail:
37403 return NULL;
37404 }
37405
37406
37407 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37408 PyObject *resultobj = 0;
37409 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37410 wxPoint *arg2 = 0 ;
37411 wxSize *arg3 = 0 ;
37412 void *argp1 = 0 ;
37413 int res1 = 0 ;
37414 wxPoint temp2 ;
37415 wxSize temp3 ;
37416 PyObject * obj0 = 0 ;
37417 PyObject * obj1 = 0 ;
37418 PyObject * obj2 = 0 ;
37419 char * kwnames[] = {
37420 (char *) "self",(char *) "pt",(char *) "sz", NULL
37421 };
37422
37423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37425 if (!SWIG_IsOK(res1)) {
37426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37427 }
37428 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37429 {
37430 arg2 = &temp2;
37431 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37432 }
37433 {
37434 arg3 = &temp3;
37435 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37436 }
37437 {
37438 PyThreadState* __tstate = wxPyBeginAllowThreads();
37439 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37440 wxPyEndAllowThreads(__tstate);
37441 if (PyErr_Occurred()) SWIG_fail;
37442 }
37443 resultobj = SWIG_Py_Void();
37444 return resultobj;
37445 fail:
37446 return NULL;
37447 }
37448
37449
37450 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37451 PyObject *resultobj = 0;
37452 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37453 wxIcon *arg2 = 0 ;
37454 int arg3 ;
37455 int arg4 ;
37456 void *argp1 = 0 ;
37457 int res1 = 0 ;
37458 void *argp2 = 0 ;
37459 int res2 = 0 ;
37460 int val3 ;
37461 int ecode3 = 0 ;
37462 int val4 ;
37463 int ecode4 = 0 ;
37464 PyObject * obj0 = 0 ;
37465 PyObject * obj1 = 0 ;
37466 PyObject * obj2 = 0 ;
37467 PyObject * obj3 = 0 ;
37468 char * kwnames[] = {
37469 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37470 };
37471
37472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37474 if (!SWIG_IsOK(res1)) {
37475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37476 }
37477 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37478 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37479 if (!SWIG_IsOK(res2)) {
37480 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37481 }
37482 if (!argp2) {
37483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37484 }
37485 arg2 = reinterpret_cast< wxIcon * >(argp2);
37486 ecode3 = SWIG_AsVal_int(obj2, &val3);
37487 if (!SWIG_IsOK(ecode3)) {
37488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37489 }
37490 arg3 = static_cast< int >(val3);
37491 ecode4 = SWIG_AsVal_int(obj3, &val4);
37492 if (!SWIG_IsOK(ecode4)) {
37493 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37494 }
37495 arg4 = static_cast< int >(val4);
37496 {
37497 PyThreadState* __tstate = wxPyBeginAllowThreads();
37498 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37499 wxPyEndAllowThreads(__tstate);
37500 if (PyErr_Occurred()) SWIG_fail;
37501 }
37502 resultobj = SWIG_Py_Void();
37503 return resultobj;
37504 fail:
37505 return NULL;
37506 }
37507
37508
37509 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37510 PyObject *resultobj = 0;
37511 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37512 wxIcon *arg2 = 0 ;
37513 wxPoint *arg3 = 0 ;
37514 void *argp1 = 0 ;
37515 int res1 = 0 ;
37516 void *argp2 = 0 ;
37517 int res2 = 0 ;
37518 wxPoint temp3 ;
37519 PyObject * obj0 = 0 ;
37520 PyObject * obj1 = 0 ;
37521 PyObject * obj2 = 0 ;
37522 char * kwnames[] = {
37523 (char *) "self",(char *) "icon",(char *) "pt", NULL
37524 };
37525
37526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37528 if (!SWIG_IsOK(res1)) {
37529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37530 }
37531 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37532 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37533 if (!SWIG_IsOK(res2)) {
37534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37535 }
37536 if (!argp2) {
37537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37538 }
37539 arg2 = reinterpret_cast< wxIcon * >(argp2);
37540 {
37541 arg3 = &temp3;
37542 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37543 }
37544 {
37545 PyThreadState* __tstate = wxPyBeginAllowThreads();
37546 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37547 wxPyEndAllowThreads(__tstate);
37548 if (PyErr_Occurred()) SWIG_fail;
37549 }
37550 resultobj = SWIG_Py_Void();
37551 return resultobj;
37552 fail:
37553 return NULL;
37554 }
37555
37556
37557 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37558 PyObject *resultobj = 0;
37559 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37560 wxBitmap *arg2 = 0 ;
37561 int arg3 ;
37562 int arg4 ;
37563 bool arg5 = (bool) false ;
37564 void *argp1 = 0 ;
37565 int res1 = 0 ;
37566 void *argp2 = 0 ;
37567 int res2 = 0 ;
37568 int val3 ;
37569 int ecode3 = 0 ;
37570 int val4 ;
37571 int ecode4 = 0 ;
37572 bool val5 ;
37573 int ecode5 = 0 ;
37574 PyObject * obj0 = 0 ;
37575 PyObject * obj1 = 0 ;
37576 PyObject * obj2 = 0 ;
37577 PyObject * obj3 = 0 ;
37578 PyObject * obj4 = 0 ;
37579 char * kwnames[] = {
37580 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37581 };
37582
37583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37585 if (!SWIG_IsOK(res1)) {
37586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37587 }
37588 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37589 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37590 if (!SWIG_IsOK(res2)) {
37591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37592 }
37593 if (!argp2) {
37594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37595 }
37596 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37597 ecode3 = SWIG_AsVal_int(obj2, &val3);
37598 if (!SWIG_IsOK(ecode3)) {
37599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37600 }
37601 arg3 = static_cast< int >(val3);
37602 ecode4 = SWIG_AsVal_int(obj3, &val4);
37603 if (!SWIG_IsOK(ecode4)) {
37604 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37605 }
37606 arg4 = static_cast< int >(val4);
37607 if (obj4) {
37608 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37609 if (!SWIG_IsOK(ecode5)) {
37610 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37611 }
37612 arg5 = static_cast< bool >(val5);
37613 }
37614 {
37615 PyThreadState* __tstate = wxPyBeginAllowThreads();
37616 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37617 wxPyEndAllowThreads(__tstate);
37618 if (PyErr_Occurred()) SWIG_fail;
37619 }
37620 resultobj = SWIG_Py_Void();
37621 return resultobj;
37622 fail:
37623 return NULL;
37624 }
37625
37626
37627 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37628 PyObject *resultobj = 0;
37629 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37630 wxBitmap *arg2 = 0 ;
37631 wxPoint *arg3 = 0 ;
37632 bool arg4 = (bool) false ;
37633 void *argp1 = 0 ;
37634 int res1 = 0 ;
37635 void *argp2 = 0 ;
37636 int res2 = 0 ;
37637 wxPoint temp3 ;
37638 bool val4 ;
37639 int ecode4 = 0 ;
37640 PyObject * obj0 = 0 ;
37641 PyObject * obj1 = 0 ;
37642 PyObject * obj2 = 0 ;
37643 PyObject * obj3 = 0 ;
37644 char * kwnames[] = {
37645 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37646 };
37647
37648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37650 if (!SWIG_IsOK(res1)) {
37651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37652 }
37653 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37654 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37655 if (!SWIG_IsOK(res2)) {
37656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37657 }
37658 if (!argp2) {
37659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37660 }
37661 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37662 {
37663 arg3 = &temp3;
37664 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37665 }
37666 if (obj3) {
37667 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37668 if (!SWIG_IsOK(ecode4)) {
37669 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37670 }
37671 arg4 = static_cast< bool >(val4);
37672 }
37673 {
37674 PyThreadState* __tstate = wxPyBeginAllowThreads();
37675 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37676 wxPyEndAllowThreads(__tstate);
37677 if (PyErr_Occurred()) SWIG_fail;
37678 }
37679 resultobj = SWIG_Py_Void();
37680 return resultobj;
37681 fail:
37682 return NULL;
37683 }
37684
37685
37686 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37687 PyObject *resultobj = 0;
37688 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37689 wxString *arg2 = 0 ;
37690 int arg3 ;
37691 int arg4 ;
37692 void *argp1 = 0 ;
37693 int res1 = 0 ;
37694 bool temp2 = false ;
37695 int val3 ;
37696 int ecode3 = 0 ;
37697 int val4 ;
37698 int ecode4 = 0 ;
37699 PyObject * obj0 = 0 ;
37700 PyObject * obj1 = 0 ;
37701 PyObject * obj2 = 0 ;
37702 PyObject * obj3 = 0 ;
37703 char * kwnames[] = {
37704 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37705 };
37706
37707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37709 if (!SWIG_IsOK(res1)) {
37710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37711 }
37712 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37713 {
37714 arg2 = wxString_in_helper(obj1);
37715 if (arg2 == NULL) SWIG_fail;
37716 temp2 = true;
37717 }
37718 ecode3 = SWIG_AsVal_int(obj2, &val3);
37719 if (!SWIG_IsOK(ecode3)) {
37720 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37721 }
37722 arg3 = static_cast< int >(val3);
37723 ecode4 = SWIG_AsVal_int(obj3, &val4);
37724 if (!SWIG_IsOK(ecode4)) {
37725 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37726 }
37727 arg4 = static_cast< int >(val4);
37728 {
37729 PyThreadState* __tstate = wxPyBeginAllowThreads();
37730 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37731 wxPyEndAllowThreads(__tstate);
37732 if (PyErr_Occurred()) SWIG_fail;
37733 }
37734 resultobj = SWIG_Py_Void();
37735 {
37736 if (temp2)
37737 delete arg2;
37738 }
37739 return resultobj;
37740 fail:
37741 {
37742 if (temp2)
37743 delete arg2;
37744 }
37745 return NULL;
37746 }
37747
37748
37749 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37750 PyObject *resultobj = 0;
37751 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37752 wxString *arg2 = 0 ;
37753 wxPoint *arg3 = 0 ;
37754 void *argp1 = 0 ;
37755 int res1 = 0 ;
37756 bool temp2 = false ;
37757 wxPoint temp3 ;
37758 PyObject * obj0 = 0 ;
37759 PyObject * obj1 = 0 ;
37760 PyObject * obj2 = 0 ;
37761 char * kwnames[] = {
37762 (char *) "self",(char *) "text",(char *) "pt", NULL
37763 };
37764
37765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37767 if (!SWIG_IsOK(res1)) {
37768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37769 }
37770 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37771 {
37772 arg2 = wxString_in_helper(obj1);
37773 if (arg2 == NULL) SWIG_fail;
37774 temp2 = true;
37775 }
37776 {
37777 arg3 = &temp3;
37778 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37779 }
37780 {
37781 PyThreadState* __tstate = wxPyBeginAllowThreads();
37782 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37783 wxPyEndAllowThreads(__tstate);
37784 if (PyErr_Occurred()) SWIG_fail;
37785 }
37786 resultobj = SWIG_Py_Void();
37787 {
37788 if (temp2)
37789 delete arg2;
37790 }
37791 return resultobj;
37792 fail:
37793 {
37794 if (temp2)
37795 delete arg2;
37796 }
37797 return NULL;
37798 }
37799
37800
37801 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37802 PyObject *resultobj = 0;
37803 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37804 wxString *arg2 = 0 ;
37805 int arg3 ;
37806 int arg4 ;
37807 double arg5 ;
37808 void *argp1 = 0 ;
37809 int res1 = 0 ;
37810 bool temp2 = false ;
37811 int val3 ;
37812 int ecode3 = 0 ;
37813 int val4 ;
37814 int ecode4 = 0 ;
37815 double val5 ;
37816 int ecode5 = 0 ;
37817 PyObject * obj0 = 0 ;
37818 PyObject * obj1 = 0 ;
37819 PyObject * obj2 = 0 ;
37820 PyObject * obj3 = 0 ;
37821 PyObject * obj4 = 0 ;
37822 char * kwnames[] = {
37823 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37824 };
37825
37826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37828 if (!SWIG_IsOK(res1)) {
37829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37830 }
37831 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37832 {
37833 arg2 = wxString_in_helper(obj1);
37834 if (arg2 == NULL) SWIG_fail;
37835 temp2 = true;
37836 }
37837 ecode3 = SWIG_AsVal_int(obj2, &val3);
37838 if (!SWIG_IsOK(ecode3)) {
37839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37840 }
37841 arg3 = static_cast< int >(val3);
37842 ecode4 = SWIG_AsVal_int(obj3, &val4);
37843 if (!SWIG_IsOK(ecode4)) {
37844 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37845 }
37846 arg4 = static_cast< int >(val4);
37847 ecode5 = SWIG_AsVal_double(obj4, &val5);
37848 if (!SWIG_IsOK(ecode5)) {
37849 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37850 }
37851 arg5 = static_cast< double >(val5);
37852 {
37853 PyThreadState* __tstate = wxPyBeginAllowThreads();
37854 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37855 wxPyEndAllowThreads(__tstate);
37856 if (PyErr_Occurred()) SWIG_fail;
37857 }
37858 resultobj = SWIG_Py_Void();
37859 {
37860 if (temp2)
37861 delete arg2;
37862 }
37863 return resultobj;
37864 fail:
37865 {
37866 if (temp2)
37867 delete arg2;
37868 }
37869 return NULL;
37870 }
37871
37872
37873 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37874 PyObject *resultobj = 0;
37875 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37876 wxString *arg2 = 0 ;
37877 wxPoint *arg3 = 0 ;
37878 double arg4 ;
37879 void *argp1 = 0 ;
37880 int res1 = 0 ;
37881 bool temp2 = false ;
37882 wxPoint temp3 ;
37883 double val4 ;
37884 int ecode4 = 0 ;
37885 PyObject * obj0 = 0 ;
37886 PyObject * obj1 = 0 ;
37887 PyObject * obj2 = 0 ;
37888 PyObject * obj3 = 0 ;
37889 char * kwnames[] = {
37890 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37891 };
37892
37893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37895 if (!SWIG_IsOK(res1)) {
37896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37897 }
37898 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37899 {
37900 arg2 = wxString_in_helper(obj1);
37901 if (arg2 == NULL) SWIG_fail;
37902 temp2 = true;
37903 }
37904 {
37905 arg3 = &temp3;
37906 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37907 }
37908 ecode4 = SWIG_AsVal_double(obj3, &val4);
37909 if (!SWIG_IsOK(ecode4)) {
37910 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37911 }
37912 arg4 = static_cast< double >(val4);
37913 {
37914 PyThreadState* __tstate = wxPyBeginAllowThreads();
37915 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37916 wxPyEndAllowThreads(__tstate);
37917 if (PyErr_Occurred()) SWIG_fail;
37918 }
37919 resultobj = SWIG_Py_Void();
37920 {
37921 if (temp2)
37922 delete arg2;
37923 }
37924 return resultobj;
37925 fail:
37926 {
37927 if (temp2)
37928 delete arg2;
37929 }
37930 return NULL;
37931 }
37932
37933
37934 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37935 PyObject *resultobj = 0;
37936 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37937 int arg2 ;
37938 wxPoint *arg3 = (wxPoint *) 0 ;
37939 int arg4 = (int) 0 ;
37940 int arg5 = (int) 0 ;
37941 void *argp1 = 0 ;
37942 int res1 = 0 ;
37943 int val4 ;
37944 int ecode4 = 0 ;
37945 int val5 ;
37946 int ecode5 = 0 ;
37947 PyObject * obj0 = 0 ;
37948 PyObject * obj1 = 0 ;
37949 PyObject * obj2 = 0 ;
37950 PyObject * obj3 = 0 ;
37951 char * kwnames[] = {
37952 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37953 };
37954
37955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37957 if (!SWIG_IsOK(res1)) {
37958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37959 }
37960 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37961 {
37962 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37963 if (arg3 == NULL) SWIG_fail;
37964 }
37965 if (obj2) {
37966 ecode4 = SWIG_AsVal_int(obj2, &val4);
37967 if (!SWIG_IsOK(ecode4)) {
37968 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37969 }
37970 arg4 = static_cast< int >(val4);
37971 }
37972 if (obj3) {
37973 ecode5 = SWIG_AsVal_int(obj3, &val5);
37974 if (!SWIG_IsOK(ecode5)) {
37975 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37976 }
37977 arg5 = static_cast< int >(val5);
37978 }
37979 {
37980 PyThreadState* __tstate = wxPyBeginAllowThreads();
37981 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37982 wxPyEndAllowThreads(__tstate);
37983 if (PyErr_Occurred()) SWIG_fail;
37984 }
37985 resultobj = SWIG_Py_Void();
37986 {
37987 if (arg3) delete [] arg3;
37988 }
37989 return resultobj;
37990 fail:
37991 {
37992 if (arg3) delete [] arg3;
37993 }
37994 return NULL;
37995 }
37996
37997
37998 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37999 PyObject *resultobj = 0;
38000 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38001 int arg2 ;
38002 wxPoint *arg3 = (wxPoint *) 0 ;
38003 int arg4 = (int) 0 ;
38004 int arg5 = (int) 0 ;
38005 int arg6 = (int) wxODDEVEN_RULE ;
38006 void *argp1 = 0 ;
38007 int res1 = 0 ;
38008 int val4 ;
38009 int ecode4 = 0 ;
38010 int val5 ;
38011 int ecode5 = 0 ;
38012 int val6 ;
38013 int ecode6 = 0 ;
38014 PyObject * obj0 = 0 ;
38015 PyObject * obj1 = 0 ;
38016 PyObject * obj2 = 0 ;
38017 PyObject * obj3 = 0 ;
38018 PyObject * obj4 = 0 ;
38019 char * kwnames[] = {
38020 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38021 };
38022
38023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38025 if (!SWIG_IsOK(res1)) {
38026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38027 }
38028 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38029 {
38030 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38031 if (arg3 == NULL) SWIG_fail;
38032 }
38033 if (obj2) {
38034 ecode4 = SWIG_AsVal_int(obj2, &val4);
38035 if (!SWIG_IsOK(ecode4)) {
38036 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38037 }
38038 arg4 = static_cast< int >(val4);
38039 }
38040 if (obj3) {
38041 ecode5 = SWIG_AsVal_int(obj3, &val5);
38042 if (!SWIG_IsOK(ecode5)) {
38043 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38044 }
38045 arg5 = static_cast< int >(val5);
38046 }
38047 if (obj4) {
38048 ecode6 = SWIG_AsVal_int(obj4, &val6);
38049 if (!SWIG_IsOK(ecode6)) {
38050 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38051 }
38052 arg6 = static_cast< int >(val6);
38053 }
38054 {
38055 PyThreadState* __tstate = wxPyBeginAllowThreads();
38056 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38057 wxPyEndAllowThreads(__tstate);
38058 if (PyErr_Occurred()) SWIG_fail;
38059 }
38060 resultobj = SWIG_Py_Void();
38061 {
38062 if (arg3) delete [] arg3;
38063 }
38064 return resultobj;
38065 fail:
38066 {
38067 if (arg3) delete [] arg3;
38068 }
38069 return NULL;
38070 }
38071
38072
38073 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38074 PyObject *resultobj = 0;
38075 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38076 wxString *arg2 = 0 ;
38077 wxRect *arg3 = 0 ;
38078 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38079 int arg5 = (int) -1 ;
38080 void *argp1 = 0 ;
38081 int res1 = 0 ;
38082 bool temp2 = false ;
38083 wxRect temp3 ;
38084 int val4 ;
38085 int ecode4 = 0 ;
38086 int val5 ;
38087 int ecode5 = 0 ;
38088 PyObject * obj0 = 0 ;
38089 PyObject * obj1 = 0 ;
38090 PyObject * obj2 = 0 ;
38091 PyObject * obj3 = 0 ;
38092 PyObject * obj4 = 0 ;
38093 char * kwnames[] = {
38094 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38095 };
38096
38097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38099 if (!SWIG_IsOK(res1)) {
38100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38101 }
38102 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38103 {
38104 arg2 = wxString_in_helper(obj1);
38105 if (arg2 == NULL) SWIG_fail;
38106 temp2 = true;
38107 }
38108 {
38109 arg3 = &temp3;
38110 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38111 }
38112 if (obj3) {
38113 ecode4 = SWIG_AsVal_int(obj3, &val4);
38114 if (!SWIG_IsOK(ecode4)) {
38115 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38116 }
38117 arg4 = static_cast< int >(val4);
38118 }
38119 if (obj4) {
38120 ecode5 = SWIG_AsVal_int(obj4, &val5);
38121 if (!SWIG_IsOK(ecode5)) {
38122 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38123 }
38124 arg5 = static_cast< int >(val5);
38125 }
38126 {
38127 PyThreadState* __tstate = wxPyBeginAllowThreads();
38128 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38129 wxPyEndAllowThreads(__tstate);
38130 if (PyErr_Occurred()) SWIG_fail;
38131 }
38132 resultobj = SWIG_Py_Void();
38133 {
38134 if (temp2)
38135 delete arg2;
38136 }
38137 return resultobj;
38138 fail:
38139 {
38140 if (temp2)
38141 delete arg2;
38142 }
38143 return NULL;
38144 }
38145
38146
38147 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38148 PyObject *resultobj = 0;
38149 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38150 wxString *arg2 = 0 ;
38151 wxBitmap *arg3 = 0 ;
38152 wxRect *arg4 = 0 ;
38153 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38154 int arg6 = (int) -1 ;
38155 void *argp1 = 0 ;
38156 int res1 = 0 ;
38157 bool temp2 = false ;
38158 void *argp3 = 0 ;
38159 int res3 = 0 ;
38160 wxRect temp4 ;
38161 int val5 ;
38162 int ecode5 = 0 ;
38163 int val6 ;
38164 int ecode6 = 0 ;
38165 PyObject * obj0 = 0 ;
38166 PyObject * obj1 = 0 ;
38167 PyObject * obj2 = 0 ;
38168 PyObject * obj3 = 0 ;
38169 PyObject * obj4 = 0 ;
38170 PyObject * obj5 = 0 ;
38171 char * kwnames[] = {
38172 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38173 };
38174
38175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38177 if (!SWIG_IsOK(res1)) {
38178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38179 }
38180 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38181 {
38182 arg2 = wxString_in_helper(obj1);
38183 if (arg2 == NULL) SWIG_fail;
38184 temp2 = true;
38185 }
38186 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38187 if (!SWIG_IsOK(res3)) {
38188 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38189 }
38190 if (!argp3) {
38191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38192 }
38193 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38194 {
38195 arg4 = &temp4;
38196 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38197 }
38198 if (obj4) {
38199 ecode5 = SWIG_AsVal_int(obj4, &val5);
38200 if (!SWIG_IsOK(ecode5)) {
38201 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38202 }
38203 arg5 = static_cast< int >(val5);
38204 }
38205 if (obj5) {
38206 ecode6 = SWIG_AsVal_int(obj5, &val6);
38207 if (!SWIG_IsOK(ecode6)) {
38208 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38209 }
38210 arg6 = static_cast< int >(val6);
38211 }
38212 {
38213 PyThreadState* __tstate = wxPyBeginAllowThreads();
38214 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38215 wxPyEndAllowThreads(__tstate);
38216 if (PyErr_Occurred()) SWIG_fail;
38217 }
38218 resultobj = SWIG_Py_Void();
38219 {
38220 if (temp2)
38221 delete arg2;
38222 }
38223 return resultobj;
38224 fail:
38225 {
38226 if (temp2)
38227 delete arg2;
38228 }
38229 return NULL;
38230 }
38231
38232
38233 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38234 PyObject *resultobj = 0;
38235 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38236 int arg2 ;
38237 wxPoint *arg3 = (wxPoint *) 0 ;
38238 void *argp1 = 0 ;
38239 int res1 = 0 ;
38240 PyObject * obj0 = 0 ;
38241 PyObject * obj1 = 0 ;
38242 char * kwnames[] = {
38243 (char *) "self",(char *) "points", NULL
38244 };
38245
38246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38248 if (!SWIG_IsOK(res1)) {
38249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38250 }
38251 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38252 {
38253 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38254 if (arg3 == NULL) SWIG_fail;
38255 }
38256 {
38257 PyThreadState* __tstate = wxPyBeginAllowThreads();
38258 (arg1)->DrawSpline(arg2,arg3);
38259 wxPyEndAllowThreads(__tstate);
38260 if (PyErr_Occurred()) SWIG_fail;
38261 }
38262 resultobj = SWIG_Py_Void();
38263 {
38264 if (arg3) delete [] arg3;
38265 }
38266 return resultobj;
38267 fail:
38268 {
38269 if (arg3) delete [] arg3;
38270 }
38271 return NULL;
38272 }
38273
38274
38275 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38276 PyObject *resultobj = 0;
38277 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38278 void *argp1 = 0 ;
38279 int res1 = 0 ;
38280 PyObject *swig_obj[1] ;
38281
38282 if (!args) SWIG_fail;
38283 swig_obj[0] = args;
38284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38285 if (!SWIG_IsOK(res1)) {
38286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38287 }
38288 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38289 {
38290 PyThreadState* __tstate = wxPyBeginAllowThreads();
38291 (arg1)->Clear();
38292 wxPyEndAllowThreads(__tstate);
38293 if (PyErr_Occurred()) SWIG_fail;
38294 }
38295 resultobj = SWIG_Py_Void();
38296 return resultobj;
38297 fail:
38298 return NULL;
38299 }
38300
38301
38302 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38303 PyObject *resultobj = 0;
38304 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38305 wxFont *arg2 = 0 ;
38306 void *argp1 = 0 ;
38307 int res1 = 0 ;
38308 void *argp2 = 0 ;
38309 int res2 = 0 ;
38310 PyObject * obj0 = 0 ;
38311 PyObject * obj1 = 0 ;
38312 char * kwnames[] = {
38313 (char *) "self",(char *) "font", NULL
38314 };
38315
38316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38318 if (!SWIG_IsOK(res1)) {
38319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38320 }
38321 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38322 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38323 if (!SWIG_IsOK(res2)) {
38324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38325 }
38326 if (!argp2) {
38327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38328 }
38329 arg2 = reinterpret_cast< wxFont * >(argp2);
38330 {
38331 PyThreadState* __tstate = wxPyBeginAllowThreads();
38332 (arg1)->SetFont((wxFont const &)*arg2);
38333 wxPyEndAllowThreads(__tstate);
38334 if (PyErr_Occurred()) SWIG_fail;
38335 }
38336 resultobj = SWIG_Py_Void();
38337 return resultobj;
38338 fail:
38339 return NULL;
38340 }
38341
38342
38343 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38344 PyObject *resultobj = 0;
38345 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38346 wxPen *arg2 = 0 ;
38347 void *argp1 = 0 ;
38348 int res1 = 0 ;
38349 void *argp2 = 0 ;
38350 int res2 = 0 ;
38351 PyObject * obj0 = 0 ;
38352 PyObject * obj1 = 0 ;
38353 char * kwnames[] = {
38354 (char *) "self",(char *) "pen", NULL
38355 };
38356
38357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38359 if (!SWIG_IsOK(res1)) {
38360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38361 }
38362 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38363 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38364 if (!SWIG_IsOK(res2)) {
38365 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38366 }
38367 if (!argp2) {
38368 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38369 }
38370 arg2 = reinterpret_cast< wxPen * >(argp2);
38371 {
38372 PyThreadState* __tstate = wxPyBeginAllowThreads();
38373 (arg1)->SetPen((wxPen const &)*arg2);
38374 wxPyEndAllowThreads(__tstate);
38375 if (PyErr_Occurred()) SWIG_fail;
38376 }
38377 resultobj = SWIG_Py_Void();
38378 return resultobj;
38379 fail:
38380 return NULL;
38381 }
38382
38383
38384 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38385 PyObject *resultobj = 0;
38386 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38387 wxBrush *arg2 = 0 ;
38388 void *argp1 = 0 ;
38389 int res1 = 0 ;
38390 void *argp2 = 0 ;
38391 int res2 = 0 ;
38392 PyObject * obj0 = 0 ;
38393 PyObject * obj1 = 0 ;
38394 char * kwnames[] = {
38395 (char *) "self",(char *) "brush", NULL
38396 };
38397
38398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38400 if (!SWIG_IsOK(res1)) {
38401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38402 }
38403 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38404 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38405 if (!SWIG_IsOK(res2)) {
38406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38407 }
38408 if (!argp2) {
38409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38410 }
38411 arg2 = reinterpret_cast< wxBrush * >(argp2);
38412 {
38413 PyThreadState* __tstate = wxPyBeginAllowThreads();
38414 (arg1)->SetBrush((wxBrush const &)*arg2);
38415 wxPyEndAllowThreads(__tstate);
38416 if (PyErr_Occurred()) SWIG_fail;
38417 }
38418 resultobj = SWIG_Py_Void();
38419 return resultobj;
38420 fail:
38421 return NULL;
38422 }
38423
38424
38425 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38426 PyObject *resultobj = 0;
38427 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38428 wxBrush *arg2 = 0 ;
38429 void *argp1 = 0 ;
38430 int res1 = 0 ;
38431 void *argp2 = 0 ;
38432 int res2 = 0 ;
38433 PyObject * obj0 = 0 ;
38434 PyObject * obj1 = 0 ;
38435 char * kwnames[] = {
38436 (char *) "self",(char *) "brush", NULL
38437 };
38438
38439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38441 if (!SWIG_IsOK(res1)) {
38442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38443 }
38444 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38445 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38446 if (!SWIG_IsOK(res2)) {
38447 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38448 }
38449 if (!argp2) {
38450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38451 }
38452 arg2 = reinterpret_cast< wxBrush * >(argp2);
38453 {
38454 PyThreadState* __tstate = wxPyBeginAllowThreads();
38455 (arg1)->SetBackground((wxBrush const &)*arg2);
38456 wxPyEndAllowThreads(__tstate);
38457 if (PyErr_Occurred()) SWIG_fail;
38458 }
38459 resultobj = SWIG_Py_Void();
38460 return resultobj;
38461 fail:
38462 return NULL;
38463 }
38464
38465
38466 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38467 PyObject *resultobj = 0;
38468 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38469 int arg2 ;
38470 void *argp1 = 0 ;
38471 int res1 = 0 ;
38472 int val2 ;
38473 int ecode2 = 0 ;
38474 PyObject * obj0 = 0 ;
38475 PyObject * obj1 = 0 ;
38476 char * kwnames[] = {
38477 (char *) "self",(char *) "mode", NULL
38478 };
38479
38480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38482 if (!SWIG_IsOK(res1)) {
38483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38484 }
38485 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38486 ecode2 = SWIG_AsVal_int(obj1, &val2);
38487 if (!SWIG_IsOK(ecode2)) {
38488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38489 }
38490 arg2 = static_cast< int >(val2);
38491 {
38492 PyThreadState* __tstate = wxPyBeginAllowThreads();
38493 (arg1)->SetBackgroundMode(arg2);
38494 wxPyEndAllowThreads(__tstate);
38495 if (PyErr_Occurred()) SWIG_fail;
38496 }
38497 resultobj = SWIG_Py_Void();
38498 return resultobj;
38499 fail:
38500 return NULL;
38501 }
38502
38503
38504 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38505 PyObject *resultobj = 0;
38506 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38507 wxPalette *arg2 = 0 ;
38508 void *argp1 = 0 ;
38509 int res1 = 0 ;
38510 void *argp2 = 0 ;
38511 int res2 = 0 ;
38512 PyObject * obj0 = 0 ;
38513 PyObject * obj1 = 0 ;
38514 char * kwnames[] = {
38515 (char *) "self",(char *) "palette", NULL
38516 };
38517
38518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38520 if (!SWIG_IsOK(res1)) {
38521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38522 }
38523 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38524 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38525 if (!SWIG_IsOK(res2)) {
38526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38527 }
38528 if (!argp2) {
38529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38530 }
38531 arg2 = reinterpret_cast< wxPalette * >(argp2);
38532 {
38533 PyThreadState* __tstate = wxPyBeginAllowThreads();
38534 (arg1)->SetPalette((wxPalette const &)*arg2);
38535 wxPyEndAllowThreads(__tstate);
38536 if (PyErr_Occurred()) SWIG_fail;
38537 }
38538 resultobj = SWIG_Py_Void();
38539 return resultobj;
38540 fail:
38541 return NULL;
38542 }
38543
38544
38545 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38546 PyObject *resultobj = 0;
38547 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38548 wxColour *arg2 = 0 ;
38549 void *argp1 = 0 ;
38550 int res1 = 0 ;
38551 wxColour temp2 ;
38552 PyObject * obj0 = 0 ;
38553 PyObject * obj1 = 0 ;
38554 char * kwnames[] = {
38555 (char *) "self",(char *) "colour", NULL
38556 };
38557
38558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38560 if (!SWIG_IsOK(res1)) {
38561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38562 }
38563 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38564 {
38565 arg2 = &temp2;
38566 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38567 }
38568 {
38569 PyThreadState* __tstate = wxPyBeginAllowThreads();
38570 (arg1)->SetTextForeground((wxColour const &)*arg2);
38571 wxPyEndAllowThreads(__tstate);
38572 if (PyErr_Occurred()) SWIG_fail;
38573 }
38574 resultobj = SWIG_Py_Void();
38575 return resultobj;
38576 fail:
38577 return NULL;
38578 }
38579
38580
38581 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38582 PyObject *resultobj = 0;
38583 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38584 wxColour *arg2 = 0 ;
38585 void *argp1 = 0 ;
38586 int res1 = 0 ;
38587 wxColour temp2 ;
38588 PyObject * obj0 = 0 ;
38589 PyObject * obj1 = 0 ;
38590 char * kwnames[] = {
38591 (char *) "self",(char *) "colour", NULL
38592 };
38593
38594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38596 if (!SWIG_IsOK(res1)) {
38597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38598 }
38599 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38600 {
38601 arg2 = &temp2;
38602 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38603 }
38604 {
38605 PyThreadState* __tstate = wxPyBeginAllowThreads();
38606 (arg1)->SetTextBackground((wxColour const &)*arg2);
38607 wxPyEndAllowThreads(__tstate);
38608 if (PyErr_Occurred()) SWIG_fail;
38609 }
38610 resultobj = SWIG_Py_Void();
38611 return resultobj;
38612 fail:
38613 return NULL;
38614 }
38615
38616
38617 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38618 PyObject *resultobj = 0;
38619 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38620 int arg2 ;
38621 void *argp1 = 0 ;
38622 int res1 = 0 ;
38623 int val2 ;
38624 int ecode2 = 0 ;
38625 PyObject * obj0 = 0 ;
38626 PyObject * obj1 = 0 ;
38627 char * kwnames[] = {
38628 (char *) "self",(char *) "function", NULL
38629 };
38630
38631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38633 if (!SWIG_IsOK(res1)) {
38634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38635 }
38636 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38637 ecode2 = SWIG_AsVal_int(obj1, &val2);
38638 if (!SWIG_IsOK(ecode2)) {
38639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38640 }
38641 arg2 = static_cast< int >(val2);
38642 {
38643 PyThreadState* __tstate = wxPyBeginAllowThreads();
38644 (arg1)->SetLogicalFunction(arg2);
38645 wxPyEndAllowThreads(__tstate);
38646 if (PyErr_Occurred()) SWIG_fail;
38647 }
38648 resultobj = SWIG_Py_Void();
38649 return resultobj;
38650 fail:
38651 return NULL;
38652 }
38653
38654
38655 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38656 PyObject *obj;
38657 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38658 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38659 return SWIG_Py_Void();
38660 }
38661
38662 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38663 return SWIG_Python_InitShadowInstance(args);
38664 }
38665
38666 static PyMethodDef SwigMethods[] = {
38667 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38668 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38669 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38670 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38671 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38672 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38673 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38674 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38675 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38676 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38677 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38678 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
38679 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
38680 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
38681 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38682 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38683 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38684 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38685 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38686 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38687 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38688 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
38689 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38690 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38691 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38692 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38693 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38694 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38695 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38696 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
38697 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
38698 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38699 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38700 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38701 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38702 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38703 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38704 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38705 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38706 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
38707 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
38708 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38709 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38710 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38711 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38712 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38713 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38714 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38715 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38716 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
38717 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38718 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38719 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38720 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38721 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38722 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38723 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38724 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38725 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38726 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38727 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38728 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38729 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38730 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
38731 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
38732 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38733 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38734 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38735 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38736 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38737 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38738 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38739 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
38741 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
38742 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38743 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38744 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38745 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38746 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38747 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38748 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38749 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38750 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38751 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38752 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38753 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38754 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38755 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38756 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38757 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38758 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38759 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38760 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38761 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38762 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38763 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38764 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
38765 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38766 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38767 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38768 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38769 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38770 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38771 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38772 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38773 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38774 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38775 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38776 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38777 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38778 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38779 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38780 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38781 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38782 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38783 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38784 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38785 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38786 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38787 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38788 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38789 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38790 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38791 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38792 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38793 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38794 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38795 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38796 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38797 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38798 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38799 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38800 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38801 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38802 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38803 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38804 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38805 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38806 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38807 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38808 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38809 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38810 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38811 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38812 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38813 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
38814 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38815 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38816 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38817 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38818 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38820 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38821 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38823 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38824 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38825 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
38826 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38827 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38828 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38829 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38830 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38831 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38832 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38833 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38834 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38835 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38836 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38837 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38838 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38839 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38840 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38841 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38842 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38843 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38844 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38845 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38846 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38847 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38848 { (char *)"IconBundle_IsOk", (PyCFunction)_wrap_IconBundle_IsOk, METH_O, NULL},
38849 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38850 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38851 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38852 { (char *)"IconBundle_GetIconOfExactSize", (PyCFunction) _wrap_IconBundle_GetIconOfExactSize, METH_VARARGS | METH_KEYWORDS, NULL},
38853 { (char *)"IconBundle_GetIconCount", (PyCFunction)_wrap_IconBundle_GetIconCount, METH_O, NULL},
38854 { (char *)"IconBundle_GetIconByIndex", (PyCFunction) _wrap_IconBundle_GetIconByIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38855 { (char *)"IconBundle_IsEmpty", (PyCFunction)_wrap_IconBundle_IsEmpty, METH_O, NULL},
38856 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38857 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38858 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38859 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38860 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38861 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38862 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
38863 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38864 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38865 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38866 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38867 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38868 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38869 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38870 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38871 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38872 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38873 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38874 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38875 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38876 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38877 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38878 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38879 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38880 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
38881 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38882 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38883 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38884 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38885 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38886 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38887 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38888 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38889 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38890 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38891 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38892 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38893 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38894 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38895 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38896 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38897 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38898 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38899 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38900 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38901 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38902 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38903 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38904 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38905 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38906 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38907 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38908 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38909 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38910 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38911 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38912 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38913 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38914 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38915 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38916 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38917 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38918 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38919 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38920 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38921 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38922 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38923 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38924 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38925 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38926 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38927 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38928 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38931 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38932 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38933 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38934 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38935 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38936 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38937 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38938 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38939 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38940 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38941 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38942 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38943 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38944 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38945 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38946 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38947 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38948 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38949 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38950 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38951 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38952 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38953 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38954 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38955 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38956 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38957 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38958 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38959 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38960 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38961 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38962 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38963 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38964 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38965 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38966 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38967 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38968 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38969 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38970 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38971 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38972 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38973 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
38974 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38975 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38976 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38977 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38978 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38979 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38980 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38981 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38982 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38983 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38984 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38985 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38986 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38987 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38988 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38989 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38990 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38991 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38992 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38993 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38994 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38995 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38996 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38997 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38998 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38999 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39000 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39001 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39002 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39003 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39004 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39005 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39006 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39007 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39008 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39009 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39010 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39011 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39012 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39013 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
39014 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39015 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39016 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
39017 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39018 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39019 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39020 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39021 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39022 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39023 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39024 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39025 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39026 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39027 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39028 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39029 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39030 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39031 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39032 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39033 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39034 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39035 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39036 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39037 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39038 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39039 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
39040 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39041 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39042 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39043 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39044 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39045 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39046 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39047 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39048 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39049 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
39050 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39051 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39052 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39055 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39056 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
39057 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39058 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39059 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39060 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39061 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39062 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39063 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39064 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39065 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39066 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39067 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39068 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39069 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39072 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39073 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39074 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39075 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39076 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39078 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39079 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39080 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39081 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39082 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39083 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39084 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39085 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39086 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39087 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39088 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39089 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39090 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39091 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39093 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39094 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39095 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39096 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39097 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39098 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39099 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39100 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39101 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39102 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39103 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39104 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39105 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39106 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39107 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39108 { (char *)"DC_StretchBlit", (PyCFunction) _wrap_DC_StretchBlit, METH_VARARGS | METH_KEYWORDS, NULL},
39109 { (char *)"DC_StretchBlitPointSize", (PyCFunction) _wrap_DC_StretchBlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39110 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39111 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39112 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39113 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39114 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39115 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39116 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39117 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39118 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39119 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39120 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39121 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39122 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39123 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39124 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39125 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39126 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39127 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39128 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39129 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39130 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39131 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39132 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39133 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39134 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39135 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39136 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39137 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39138 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39140 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39141 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39142 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39143 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39144 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39145 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39146 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39147 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39148 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39149 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39150 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39151 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39152 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39153 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39154 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39155 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
39156 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
39157 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39158 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39159 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39160 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39161 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39162 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39163 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39164 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39167 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39168 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39169 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39170 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39171 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39172 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39173 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39174 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39176 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39177 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39178 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39179 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39180 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39181 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39182 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39183 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39184 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39185 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39186 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39187 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39188 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39189 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39190 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39191 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
39192 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39193 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
39194 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39195 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39196 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39197 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39198 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39199 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
39201 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39202 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39203 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39204 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39205 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39207 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39208 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39209 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39210 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39211 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39212 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39213 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39214 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39215 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39216 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
39217 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39218 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39219 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39220 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39221 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39222 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
39223 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39224 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39225 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
39226 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39227 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39228 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39229 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39230 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39231 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
39232 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39233 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39234 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39235 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39236 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39237 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
39238 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39239 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39240 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
39241 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39242 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
39243 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39244 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39245 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39246 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39247 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39248 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39249 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39250 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
39251 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
39252 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39253 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39254 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39255 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39256 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39257 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39258 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39259 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39260 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39261 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39262 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39263 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39264 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39265 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39266 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39267 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39268 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39269 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39270 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
39271 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39272 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39273 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39274 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39275 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39276 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39277 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39278 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39279 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39280 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39281 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39282 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39283 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39284 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39285 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39286 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39287 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39288 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
39289 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39290 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
39291 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39292 { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL},
39293 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39294 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39295 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39296 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39297 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39298 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39299 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39300 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39301 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39302 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
39303 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
39304 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39305 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39306 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39307 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
39308 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39309 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
39310 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
39311 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39312 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39313 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39314 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39315 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39316 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39317 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39318 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39319 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39320 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39321 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
39322 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
39323 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
39324 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
39325 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
39326 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
39327 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39328 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
39329 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39330 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39331 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39332 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39333 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39334 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39335 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39336 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
39337 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39338 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
39339 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39340 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
39341 { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL},
39342 { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39343 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39344 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39345 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39346 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39347 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39348 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
39349 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39350 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39351 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
39352 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39353 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39354 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
39355 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39356 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39357 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39358 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39359 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39360 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39361 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39362 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
39363 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
39364 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
39365 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39366 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39367 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39368 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39369 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
39370 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
39371 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39372 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39373 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39374 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
39375 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39376 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39377 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39378 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39379 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39380 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39381 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39382 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39383 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39384 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
39385 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
39386 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
39387 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39388 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
39389 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39390 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
39391 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39392 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39393 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39394 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39395 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39396 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39397 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39398 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39399 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39400 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
39401 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39402 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39403 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39404 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39405 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39406 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39407 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39408 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39409 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39410 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39411 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39412 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39413 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39414 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39415 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
39416 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39417 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39418 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39419 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39420 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39421 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39422 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39423 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39424 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39425 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39426 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39427 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39428 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39429 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39430 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
39431 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39432 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
39433 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39434 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
39435 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39436 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
39437 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39438 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39439 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39440 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39441 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39442 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39443 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39444 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
39445 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39446 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39447 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39448 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
39449 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39450 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39451 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39452 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39453 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39454 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39455 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39456 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39457 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39458 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39459 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39460 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39461 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39462 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39463 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39464 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39465 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39466 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39467 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39468 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39469 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39470 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39471 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
39472 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39473 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39474 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39475 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39476 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39477 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39478 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39479 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39480 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39481 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39482 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39483 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39484 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39485 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39486 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39487 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39488 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39489 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
39490 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39491 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39492 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39493 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39494 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39495 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39496 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39497 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
39498 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39499 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39500 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39501 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39502 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39503 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39504 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
39505 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39506 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39507 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39508 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39509 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39510 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39511 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39512 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39513 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39514 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
39515 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39516 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39517 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39518 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39519 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39520 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39521 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39522 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39523 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39524 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
39525 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39526 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39527 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39528 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
39529 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39530 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39531 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39532 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39533 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39534 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39535 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39536 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39537 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39538 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39539 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39540 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39541 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39542 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39543 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39544 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39545 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39546 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39547 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39548 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39549 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39550 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39551 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39552 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39553 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39554 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39555 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39556 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39557 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39558 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39559 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39560 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39561 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39562 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39563 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39565 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39566 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39567 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39568 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39569 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39570 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39571 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39572 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39573 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39574 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39575 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39576 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39577 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39578 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39579 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39580 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39581 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39582 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39583 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39584 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
39585 { NULL, NULL, 0, NULL }
39586 };
39587
39588
39589 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39590
39591 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39592 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39593 }
39594 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39595 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39596 }
39597 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39598 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39599 }
39600 static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39601 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39602 }
39603 static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39604 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39605 }
39606 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39607 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39608 }
39609 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39610 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39611 }
39612 static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39613 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39614 }
39615 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39616 return (void *)((wxLocale *) ((wxPyLocale *) x));
39617 }
39618 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39619 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39620 }
39621 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39622 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39623 }
39624 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39625 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39626 }
39627 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39628 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39629 }
39630 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39631 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39632 }
39633 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39634 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39635 }
39636 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39637 return (void *)((wxGDIObject *) ((wxIcon *) x));
39638 }
39639 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39640 return (void *)((wxGDIObject *) ((wxPalette *) x));
39641 }
39642 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39643 return (void *)((wxGDIObject *) ((wxPen *) x));
39644 }
39645 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39646 return (void *)((wxGDIObject *) ((wxFont *) x));
39647 }
39648 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39649 return (void *)((wxGDIObject *) ((wxCursor *) x));
39650 }
39651 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39652 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39653 }
39654 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39655 return (void *)((wxGDIObject *) ((wxRegion *) x));
39656 }
39657 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39658 return (void *)((wxGDIObject *) ((wxBrush *) x));
39659 }
39660 static void *_p_wxGCDCTo_p_wxDC(void *x) {
39661 return (void *)((wxDC *) ((wxGCDC *) x));
39662 }
39663 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39664 return (void *)((wxDC *) ((wxScreenDC *) x));
39665 }
39666 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
39667 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39668 }
39669 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39670 return (void *)((wxDC *) ((wxMirrorDC *) x));
39671 }
39672 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39673 return (void *)((wxDC *) ((wxWindowDC *) x));
39674 }
39675 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39676 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39677 }
39678 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39679 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39680 }
39681 static void *_p_wxClientDCTo_p_wxDC(void *x) {
39682 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
39683 }
39684 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
39685 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39686 }
39687 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
39688 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39689 }
39690 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39691 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39692 }
39693 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39694 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39695 }
39696 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39697 return (void *)((wxDC *) ((wxPrinterDC *) x));
39698 }
39699 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39700 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39701 }
39702 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39703 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39704 }
39705 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39706 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39707 }
39708 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39709 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39710 }
39711 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39712 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39713 }
39714 static void *_p_wxPenTo_p_wxObject(void *x) {
39715 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39716 }
39717 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39718 return (void *)((wxObject *) ((wxRegionIterator *) x));
39719 }
39720 static void *_p_wxEventBlockerTo_p_wxObject(void *x) {
39721 return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x));
39722 }
39723 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39724 return (void *)((wxObject *) ((wxSizerItem *) x));
39725 }
39726 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39727 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39728 }
39729 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39730 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39731 }
39732 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39733 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39734 }
39735 static void *_p_wxIconTo_p_wxObject(void *x) {
39736 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39737 }
39738 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39739 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39740 }
39741 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39742 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39743 }
39744 static void *_p_wxSizerTo_p_wxObject(void *x) {
39745 return (void *)((wxObject *) ((wxSizer *) x));
39746 }
39747 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39748 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39749 }
39750 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39751 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39752 }
39753 static void *_p_wxEventTo_p_wxObject(void *x) {
39754 return (void *)((wxObject *) ((wxEvent *) x));
39755 }
39756 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39757 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39758 }
39759 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39760 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39761 }
39762 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39763 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39764 }
39765 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39766 return (void *)((wxObject *) ((wxPseudoDC *) x));
39767 }
39768 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39769 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39770 }
39771 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39772 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39773 }
39774 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39775 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39776 }
39777 static void *_p_wxDCTo_p_wxObject(void *x) {
39778 return (void *)((wxObject *) ((wxDC *) x));
39779 }
39780 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39781 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39782 }
39783 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39784 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39785 }
39786 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39787 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39788 }
39789 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39790 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39791 }
39792 static void *_p_wxControlTo_p_wxObject(void *x) {
39793 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39794 }
39795 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39796 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39797 }
39798 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39799 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39800 }
39801 static void *_p_wxClientDCTo_p_wxObject(void *x) {
39802 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
39803 }
39804 static void *_p_wxFSFileTo_p_wxObject(void *x) {
39805 return (void *)((wxObject *) ((wxFSFile *) x));
39806 }
39807 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
39808 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
39809 }
39810 static void *_p_wxRegionTo_p_wxObject(void *x) {
39811 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39812 }
39813 static void *_p_wxPySizerTo_p_wxObject(void *x) {
39814 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39815 }
39816 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39817 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39818 }
39819 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39820 return (void *)((wxObject *) ((wxGDIObject *) x));
39821 }
39822 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39823 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39824 }
39825 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39826 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39827 }
39828 static void *_p_wxEffectsTo_p_wxObject(void *x) {
39829 return (void *)((wxObject *) ((wxEffects *) x));
39830 }
39831 static void *_p_wxPyEventTo_p_wxObject(void *x) {
39832 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39833 }
39834 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39835 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39836 }
39837 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39838 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39839 }
39840 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39841 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39842 }
39843 static void *_p_wxShowEventTo_p_wxObject(void *x) {
39844 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39845 }
39846 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39847 return (void *)((wxObject *) ((wxMenuItem *) x));
39848 }
39849 static void *_p_wxDateEventTo_p_wxObject(void *x) {
39850 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39851 }
39852 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39853 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39854 }
39855 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39856 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39857 }
39858 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39859 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39860 }
39861 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39862 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39863 }
39864 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39865 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39866 }
39867 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39868 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39869 }
39870 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39871 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39872 }
39873 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39874 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39875 }
39876 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39877 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39878 }
39879 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39880 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39881 }
39882 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39883 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39884 }
39885 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39886 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39887 }
39888 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39889 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39890 }
39891 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39892 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39893 }
39894 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39895 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39896 }
39897 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39898 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39899 }
39900 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39901 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39902 }
39903 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39904 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39905 }
39906 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39907 return (void *)((wxObject *) ((wxImageHandler *) x));
39908 }
39909 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39910 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39911 }
39912 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39913 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39914 }
39915 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39916 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39917 }
39918 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39919 return (void *)((wxObject *) ((wxEvtHandler *) x));
39920 }
39921 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39922 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39923 }
39924 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39925 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39926 }
39927 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
39928 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39929 }
39930 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39931 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
39932 }
39933 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39934 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39935 }
39936 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39937 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39938 }
39939 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39940 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39941 }
39942 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39943 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39944 }
39945 static void *_p_wxImageTo_p_wxObject(void *x) {
39946 return (void *)((wxObject *) ((wxImage *) x));
39947 }
39948 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39949 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39950 }
39951 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39952 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39953 }
39954 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39955 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39956 }
39957 static void *_p_wxPaletteTo_p_wxObject(void *x) {
39958 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39959 }
39960 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
39961 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39962 }
39963 static void *_p_wxImageListTo_p_wxObject(void *x) {
39964 return (void *)((wxObject *) ((wxImageList *) x));
39965 }
39966 static void *_p_wxGCDCTo_p_wxObject(void *x) {
39967 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39968 }
39969 static void *_p_wxCursorTo_p_wxObject(void *x) {
39970 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39971 }
39972 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39973 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39974 }
39975 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39976 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39977 }
39978 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39979 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39980 }
39981 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39982 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39983 }
39984 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39985 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39986 }
39987 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39988 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39989 }
39990 static void *_p_wxWindowTo_p_wxObject(void *x) {
39991 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39992 }
39993 static void *_p_wxMenuTo_p_wxObject(void *x) {
39994 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39995 }
39996 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39997 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39998 }
39999 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40000 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40001 }
40002 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40003 return (void *)((wxObject *) ((wxFileSystem *) x));
40004 }
40005 static void *_p_wxBitmapTo_p_wxObject(void *x) {
40006 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40007 }
40008 static void *_p_wxMaskTo_p_wxObject(void *x) {
40009 return (void *)((wxObject *) ((wxMask *) x));
40010 }
40011 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40012 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40013 }
40014 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40015 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40016 }
40017 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40018 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40019 }
40020 static void *_p_wxPyAppTo_p_wxObject(void *x) {
40021 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40022 }
40023 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40024 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40025 }
40026 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40027 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40028 }
40029 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40030 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40031 }
40032 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40033 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40034 }
40035 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40036 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40037 }
40038 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40039 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40040 }
40041 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40042 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40043 }
40044 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40045 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40046 }
40047 static void *_p_wxFontTo_p_wxObject(void *x) {
40048 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40049 }
40050 static void *_p_wxBrushTo_p_wxObject(void *x) {
40051 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40052 }
40053 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40054 return (void *)((wxObject *) ((wxMetaFile *) x));
40055 }
40056 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40057 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40058 }
40059 static void *_p_wxColourTo_p_wxObject(void *x) {
40060 return (void *)((wxObject *) ((wxColour *) x));
40061 }
40062 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40063 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40064 }
40065 static void *_p_wxValidatorTo_p_wxObject(void *x) {
40066 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40067 }
40068 static void *_p_wxControlTo_p_wxWindow(void *x) {
40069 return (void *)((wxWindow *) ((wxControl *) x));
40070 }
40071 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40072 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40073 }
40074 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40075 return (void *)((wxWindow *) ((wxMenuBar *) x));
40076 }
40077 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40078 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40079 }
40080 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40081 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40082 }
40083 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
40084 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
40085 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
40086 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};
40087 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40088 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40089 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40090 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
40091 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
40092 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40093 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
40094 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
40095 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40096 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40097 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40098 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40099 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
40100 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
40101 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40102 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40103 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40104 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
40105 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40106 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
40107 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
40108 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40109 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
40110 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40111 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40112 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40113 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40114 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40115 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40116 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
40117 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
40118 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
40119 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
40120 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
40121 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
40122 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40123 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40124 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
40125 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
40126 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40127 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
40128 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
40129 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40130 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40131 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40132 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40133 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40134 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40135 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40136 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40137 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40138 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40139 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40140 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40141 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40142 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
40143 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40144 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
40145 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40146 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
40147 static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0};
40148 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
40149 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
40150 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40151 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40152 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40153 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40154 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40155 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40156 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40157 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40158 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
40159 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40160 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40161 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
40162 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
40163 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40164 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40165 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40166 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40167 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40168 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40169 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40170 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40171 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40172 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40173 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40174 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40175 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40176 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40177 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40178 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40179 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40180 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40181 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40182 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40183 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40184 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
40185 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40186 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
40187 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
40188 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40189 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40190 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40191 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40192 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40193 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
40194 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
40195 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
40196 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
40197 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
40198 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40199 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40200 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
40201 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
40202 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
40203 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
40204 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40205 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40206 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40207 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40208 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40209 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40210 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40211 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40212 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40213 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40214 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40215 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40216 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40217 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40218 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40219 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40220 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40221 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40222 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40223 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
40224 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
40225 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40226 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40227 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40228 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40229 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
40230 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
40231 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
40232 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
40233 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40234 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40235 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
40236 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
40237 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
40238 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
40239 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
40240 static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0};
40241 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40242 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40243 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40244 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40245 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40246 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40247 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
40248 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
40249 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40250 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40251 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40252
40253 static swig_type_info *swig_type_initial[] = {
40254 &_swigt__p_buffer,
40255 &_swigt__p_char,
40256 &_swigt__p_double,
40257 &_swigt__p_form_ops_t,
40258 &_swigt__p_int,
40259 &_swigt__p_unsigned_char,
40260 &_swigt__p_unsigned_int,
40261 &_swigt__p_unsigned_long,
40262 &_swigt__p_void,
40263 &_swigt__p_wxANIHandler,
40264 &_swigt__p_wxAcceleratorTable,
40265 &_swigt__p_wxActivateEvent,
40266 &_swigt__p_wxAlphaPixelData,
40267 &_swigt__p_wxAlphaPixelData_Accessor,
40268 &_swigt__p_wxAutoBufferedPaintDC,
40269 &_swigt__p_wxBMPHandler,
40270 &_swigt__p_wxBitmap,
40271 &_swigt__p_wxBoxSizer,
40272 &_swigt__p_wxBrush,
40273 &_swigt__p_wxBrushList,
40274 &_swigt__p_wxBufferedDC,
40275 &_swigt__p_wxBufferedPaintDC,
40276 &_swigt__p_wxCURHandler,
40277 &_swigt__p_wxChildFocusEvent,
40278 &_swigt__p_wxClientDC,
40279 &_swigt__p_wxClipboardTextEvent,
40280 &_swigt__p_wxCloseEvent,
40281 &_swigt__p_wxColour,
40282 &_swigt__p_wxColourDatabase,
40283 &_swigt__p_wxCommandEvent,
40284 &_swigt__p_wxContextMenuEvent,
40285 &_swigt__p_wxControl,
40286 &_swigt__p_wxControlWithItems,
40287 &_swigt__p_wxCursor,
40288 &_swigt__p_wxDC,
40289 &_swigt__p_wxDCBrushChanger,
40290 &_swigt__p_wxDCClipper,
40291 &_swigt__p_wxDCOverlay,
40292 &_swigt__p_wxDCPenChanger,
40293 &_swigt__p_wxDCTextColourChanger,
40294 &_swigt__p_wxDash,
40295 &_swigt__p_wxDateEvent,
40296 &_swigt__p_wxDisplayChangedEvent,
40297 &_swigt__p_wxDropFilesEvent,
40298 &_swigt__p_wxDuplexMode,
40299 &_swigt__p_wxEffects,
40300 &_swigt__p_wxEncodingConverter,
40301 &_swigt__p_wxEraseEvent,
40302 &_swigt__p_wxEvent,
40303 &_swigt__p_wxEventBlocker,
40304 &_swigt__p_wxEvtHandler,
40305 &_swigt__p_wxFSFile,
40306 &_swigt__p_wxFileSystem,
40307 &_swigt__p_wxFlexGridSizer,
40308 &_swigt__p_wxFocusEvent,
40309 &_swigt__p_wxFont,
40310 &_swigt__p_wxFontList,
40311 &_swigt__p_wxFontMapper,
40312 &_swigt__p_wxGBSizerItem,
40313 &_swigt__p_wxGCDC,
40314 &_swigt__p_wxGDIObjListBase,
40315 &_swigt__p_wxGDIObject,
40316 &_swigt__p_wxGIFHandler,
40317 &_swigt__p_wxGraphicsBrush,
40318 &_swigt__p_wxGraphicsContext,
40319 &_swigt__p_wxGraphicsFont,
40320 &_swigt__p_wxGraphicsMatrix,
40321 &_swigt__p_wxGraphicsObject,
40322 &_swigt__p_wxGraphicsPath,
40323 &_swigt__p_wxGraphicsPen,
40324 &_swigt__p_wxGraphicsRenderer,
40325 &_swigt__p_wxGridBagSizer,
40326 &_swigt__p_wxGridSizer,
40327 &_swigt__p_wxHeaderButtonParams,
40328 &_swigt__p_wxICOHandler,
40329 &_swigt__p_wxIcon,
40330 &_swigt__p_wxIconBundle,
40331 &_swigt__p_wxIconLocation,
40332 &_swigt__p_wxIconizeEvent,
40333 &_swigt__p_wxIdleEvent,
40334 &_swigt__p_wxImage,
40335 &_swigt__p_wxImageHandler,
40336 &_swigt__p_wxImageList,
40337 &_swigt__p_wxIndividualLayoutConstraint,
40338 &_swigt__p_wxInitDialogEvent,
40339 &_swigt__p_wxJPEGHandler,
40340 &_swigt__p_wxKeyEvent,
40341 &_swigt__p_wxLanguageInfo,
40342 &_swigt__p_wxLayoutConstraints,
40343 &_swigt__p_wxLocale,
40344 &_swigt__p_wxMask,
40345 &_swigt__p_wxMaximizeEvent,
40346 &_swigt__p_wxMemoryDC,
40347 &_swigt__p_wxMenu,
40348 &_swigt__p_wxMenuBar,
40349 &_swigt__p_wxMenuEvent,
40350 &_swigt__p_wxMenuItem,
40351 &_swigt__p_wxMetaFile,
40352 &_swigt__p_wxMetaFileDC,
40353 &_swigt__p_wxMirrorDC,
40354 &_swigt__p_wxMouseCaptureChangedEvent,
40355 &_swigt__p_wxMouseCaptureLostEvent,
40356 &_swigt__p_wxMouseEvent,
40357 &_swigt__p_wxMoveEvent,
40358 &_swigt__p_wxNativeEncodingInfo,
40359 &_swigt__p_wxNativeFontInfo,
40360 &_swigt__p_wxNativePixelData,
40361 &_swigt__p_wxNativePixelData_Accessor,
40362 &_swigt__p_wxNavigationKeyEvent,
40363 &_swigt__p_wxNcPaintEvent,
40364 &_swigt__p_wxNotifyEvent,
40365 &_swigt__p_wxObject,
40366 &_swigt__p_wxOverlay,
40367 &_swigt__p_wxPCXHandler,
40368 &_swigt__p_wxPNGHandler,
40369 &_swigt__p_wxPNMHandler,
40370 &_swigt__p_wxPaintDC,
40371 &_swigt__p_wxPaintEvent,
40372 &_swigt__p_wxPalette,
40373 &_swigt__p_wxPaletteChangedEvent,
40374 &_swigt__p_wxPaperSize,
40375 &_swigt__p_wxPen,
40376 &_swigt__p_wxPenList,
40377 &_swigt__p_wxPixelDataBase,
40378 &_swigt__p_wxPoint,
40379 &_swigt__p_wxPoint2D,
40380 &_swigt__p_wxPostScriptDC,
40381 &_swigt__p_wxPrintData,
40382 &_swigt__p_wxPrinterDC,
40383 &_swigt__p_wxPseudoDC,
40384 &_swigt__p_wxPyApp,
40385 &_swigt__p_wxPyCommandEvent,
40386 &_swigt__p_wxPyEvent,
40387 &_swigt__p_wxPyFontEnumerator,
40388 &_swigt__p_wxPyImageHandler,
40389 &_swigt__p_wxPyLocale,
40390 &_swigt__p_wxPySizer,
40391 &_swigt__p_wxPyValidator,
40392 &_swigt__p_wxQueryNewPaletteEvent,
40393 &_swigt__p_wxRect,
40394 &_swigt__p_wxRect2D,
40395 &_swigt__p_wxRegion,
40396 &_swigt__p_wxRegionIterator,
40397 &_swigt__p_wxRendererNative,
40398 &_swigt__p_wxRendererVersion,
40399 &_swigt__p_wxScreenDC,
40400 &_swigt__p_wxScrollEvent,
40401 &_swigt__p_wxScrollWinEvent,
40402 &_swigt__p_wxSetCursorEvent,
40403 &_swigt__p_wxShowEvent,
40404 &_swigt__p_wxSize,
40405 &_swigt__p_wxSizeEvent,
40406 &_swigt__p_wxSizer,
40407 &_swigt__p_wxSizerItem,
40408 &_swigt__p_wxSplitterRenderParams,
40409 &_swigt__p_wxStaticBoxSizer,
40410 &_swigt__p_wxStdDialogButtonSizer,
40411 &_swigt__p_wxStockGDI,
40412 &_swigt__p_wxString,
40413 &_swigt__p_wxSysColourChangedEvent,
40414 &_swigt__p_wxTGAHandler,
40415 &_swigt__p_wxTIFFHandler,
40416 &_swigt__p_wxUpdateUIEvent,
40417 &_swigt__p_wxValidator,
40418 &_swigt__p_wxWindow,
40419 &_swigt__p_wxWindowCreateEvent,
40420 &_swigt__p_wxWindowDC,
40421 &_swigt__p_wxWindowDestroyEvent,
40422 &_swigt__p_wxXPMHandler,
40423 };
40424
40425 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
40426 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40427 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40428 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40429 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40430 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40431 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40432 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
40433 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
40434 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40435 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40436 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40437 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40438 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40439 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40440 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}};
40441 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40442 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}};
40443 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40444 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40445 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
40446 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}};
40447 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40448 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
40449 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
40450 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40451 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
40452 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40453 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40454 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40455 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40456 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40457 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40458 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
40459 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
40460 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}};
40461 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}};
40462 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
40463 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
40464 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40465 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40466 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}};
40467 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
40468 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40469 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
40470 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
40471 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40472 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40473 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40474 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40475 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40476 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
40477 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}};
40478 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
40479 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}};
40480 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40481 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40482 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40483 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40484 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
40485 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40486 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40487 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
40488 static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}};
40489 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40490 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40491 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40492 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40493 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40494 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40495 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40496 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40497 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40498 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40499 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40500 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40501 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40502 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
40503 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
40504 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40505 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40506 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40507 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40508 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40509 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40510 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40511 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40512 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40513 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40514 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40515 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40516 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40517 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40518 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40519 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40520 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40521 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40522 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40523 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40524 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40525 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
40526 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40527 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
40528 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
40529 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40530 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40531 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40532 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40533 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40534 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
40535 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
40536 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
40537 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
40538 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
40539 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40540 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40541 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
40542 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
40543 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
40544 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
40545 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40546 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40547 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40548 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40549 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40550 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40551 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40552 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40553 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40554 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40555 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40556 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40557 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40558 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40559 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40560 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40561 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40562 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40563 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40564 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
40565 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_wxEventBlocker, _p_wxEventBlockerTo_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_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_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_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_wxDateEvent, _p_wxDateEventTo_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}};
40566 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
40567 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40568 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40569 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40570 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40571 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
40572 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}};
40573 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
40574 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
40575 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40576 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40577 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
40578 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
40579 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
40580 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
40581 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
40582 static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}};
40583 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40584 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40585 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40586 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40587 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40588 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40589 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
40590 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
40591 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40592 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}};
40593 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}};
40594
40595 static swig_cast_info *swig_cast_initial[] = {
40596 _swigc__p_buffer,
40597 _swigc__p_char,
40598 _swigc__p_double,
40599 _swigc__p_form_ops_t,
40600 _swigc__p_int,
40601 _swigc__p_unsigned_char,
40602 _swigc__p_unsigned_int,
40603 _swigc__p_unsigned_long,
40604 _swigc__p_void,
40605 _swigc__p_wxANIHandler,
40606 _swigc__p_wxAcceleratorTable,
40607 _swigc__p_wxActivateEvent,
40608 _swigc__p_wxAlphaPixelData,
40609 _swigc__p_wxAlphaPixelData_Accessor,
40610 _swigc__p_wxAutoBufferedPaintDC,
40611 _swigc__p_wxBMPHandler,
40612 _swigc__p_wxBitmap,
40613 _swigc__p_wxBoxSizer,
40614 _swigc__p_wxBrush,
40615 _swigc__p_wxBrushList,
40616 _swigc__p_wxBufferedDC,
40617 _swigc__p_wxBufferedPaintDC,
40618 _swigc__p_wxCURHandler,
40619 _swigc__p_wxChildFocusEvent,
40620 _swigc__p_wxClientDC,
40621 _swigc__p_wxClipboardTextEvent,
40622 _swigc__p_wxCloseEvent,
40623 _swigc__p_wxColour,
40624 _swigc__p_wxColourDatabase,
40625 _swigc__p_wxCommandEvent,
40626 _swigc__p_wxContextMenuEvent,
40627 _swigc__p_wxControl,
40628 _swigc__p_wxControlWithItems,
40629 _swigc__p_wxCursor,
40630 _swigc__p_wxDC,
40631 _swigc__p_wxDCBrushChanger,
40632 _swigc__p_wxDCClipper,
40633 _swigc__p_wxDCOverlay,
40634 _swigc__p_wxDCPenChanger,
40635 _swigc__p_wxDCTextColourChanger,
40636 _swigc__p_wxDash,
40637 _swigc__p_wxDateEvent,
40638 _swigc__p_wxDisplayChangedEvent,
40639 _swigc__p_wxDropFilesEvent,
40640 _swigc__p_wxDuplexMode,
40641 _swigc__p_wxEffects,
40642 _swigc__p_wxEncodingConverter,
40643 _swigc__p_wxEraseEvent,
40644 _swigc__p_wxEvent,
40645 _swigc__p_wxEventBlocker,
40646 _swigc__p_wxEvtHandler,
40647 _swigc__p_wxFSFile,
40648 _swigc__p_wxFileSystem,
40649 _swigc__p_wxFlexGridSizer,
40650 _swigc__p_wxFocusEvent,
40651 _swigc__p_wxFont,
40652 _swigc__p_wxFontList,
40653 _swigc__p_wxFontMapper,
40654 _swigc__p_wxGBSizerItem,
40655 _swigc__p_wxGCDC,
40656 _swigc__p_wxGDIObjListBase,
40657 _swigc__p_wxGDIObject,
40658 _swigc__p_wxGIFHandler,
40659 _swigc__p_wxGraphicsBrush,
40660 _swigc__p_wxGraphicsContext,
40661 _swigc__p_wxGraphicsFont,
40662 _swigc__p_wxGraphicsMatrix,
40663 _swigc__p_wxGraphicsObject,
40664 _swigc__p_wxGraphicsPath,
40665 _swigc__p_wxGraphicsPen,
40666 _swigc__p_wxGraphicsRenderer,
40667 _swigc__p_wxGridBagSizer,
40668 _swigc__p_wxGridSizer,
40669 _swigc__p_wxHeaderButtonParams,
40670 _swigc__p_wxICOHandler,
40671 _swigc__p_wxIcon,
40672 _swigc__p_wxIconBundle,
40673 _swigc__p_wxIconLocation,
40674 _swigc__p_wxIconizeEvent,
40675 _swigc__p_wxIdleEvent,
40676 _swigc__p_wxImage,
40677 _swigc__p_wxImageHandler,
40678 _swigc__p_wxImageList,
40679 _swigc__p_wxIndividualLayoutConstraint,
40680 _swigc__p_wxInitDialogEvent,
40681 _swigc__p_wxJPEGHandler,
40682 _swigc__p_wxKeyEvent,
40683 _swigc__p_wxLanguageInfo,
40684 _swigc__p_wxLayoutConstraints,
40685 _swigc__p_wxLocale,
40686 _swigc__p_wxMask,
40687 _swigc__p_wxMaximizeEvent,
40688 _swigc__p_wxMemoryDC,
40689 _swigc__p_wxMenu,
40690 _swigc__p_wxMenuBar,
40691 _swigc__p_wxMenuEvent,
40692 _swigc__p_wxMenuItem,
40693 _swigc__p_wxMetaFile,
40694 _swigc__p_wxMetaFileDC,
40695 _swigc__p_wxMirrorDC,
40696 _swigc__p_wxMouseCaptureChangedEvent,
40697 _swigc__p_wxMouseCaptureLostEvent,
40698 _swigc__p_wxMouseEvent,
40699 _swigc__p_wxMoveEvent,
40700 _swigc__p_wxNativeEncodingInfo,
40701 _swigc__p_wxNativeFontInfo,
40702 _swigc__p_wxNativePixelData,
40703 _swigc__p_wxNativePixelData_Accessor,
40704 _swigc__p_wxNavigationKeyEvent,
40705 _swigc__p_wxNcPaintEvent,
40706 _swigc__p_wxNotifyEvent,
40707 _swigc__p_wxObject,
40708 _swigc__p_wxOverlay,
40709 _swigc__p_wxPCXHandler,
40710 _swigc__p_wxPNGHandler,
40711 _swigc__p_wxPNMHandler,
40712 _swigc__p_wxPaintDC,
40713 _swigc__p_wxPaintEvent,
40714 _swigc__p_wxPalette,
40715 _swigc__p_wxPaletteChangedEvent,
40716 _swigc__p_wxPaperSize,
40717 _swigc__p_wxPen,
40718 _swigc__p_wxPenList,
40719 _swigc__p_wxPixelDataBase,
40720 _swigc__p_wxPoint,
40721 _swigc__p_wxPoint2D,
40722 _swigc__p_wxPostScriptDC,
40723 _swigc__p_wxPrintData,
40724 _swigc__p_wxPrinterDC,
40725 _swigc__p_wxPseudoDC,
40726 _swigc__p_wxPyApp,
40727 _swigc__p_wxPyCommandEvent,
40728 _swigc__p_wxPyEvent,
40729 _swigc__p_wxPyFontEnumerator,
40730 _swigc__p_wxPyImageHandler,
40731 _swigc__p_wxPyLocale,
40732 _swigc__p_wxPySizer,
40733 _swigc__p_wxPyValidator,
40734 _swigc__p_wxQueryNewPaletteEvent,
40735 _swigc__p_wxRect,
40736 _swigc__p_wxRect2D,
40737 _swigc__p_wxRegion,
40738 _swigc__p_wxRegionIterator,
40739 _swigc__p_wxRendererNative,
40740 _swigc__p_wxRendererVersion,
40741 _swigc__p_wxScreenDC,
40742 _swigc__p_wxScrollEvent,
40743 _swigc__p_wxScrollWinEvent,
40744 _swigc__p_wxSetCursorEvent,
40745 _swigc__p_wxShowEvent,
40746 _swigc__p_wxSize,
40747 _swigc__p_wxSizeEvent,
40748 _swigc__p_wxSizer,
40749 _swigc__p_wxSizerItem,
40750 _swigc__p_wxSplitterRenderParams,
40751 _swigc__p_wxStaticBoxSizer,
40752 _swigc__p_wxStdDialogButtonSizer,
40753 _swigc__p_wxStockGDI,
40754 _swigc__p_wxString,
40755 _swigc__p_wxSysColourChangedEvent,
40756 _swigc__p_wxTGAHandler,
40757 _swigc__p_wxTIFFHandler,
40758 _swigc__p_wxUpdateUIEvent,
40759 _swigc__p_wxValidator,
40760 _swigc__p_wxWindow,
40761 _swigc__p_wxWindowCreateEvent,
40762 _swigc__p_wxWindowDC,
40763 _swigc__p_wxWindowDestroyEvent,
40764 _swigc__p_wxXPMHandler,
40765 };
40766
40767
40768 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40769
40770 static swig_const_info swig_const_table[] = {
40771 {0, 0, 0, 0.0, 0, 0}};
40772
40773 #ifdef __cplusplus
40774 }
40775 #endif
40776 /* -----------------------------------------------------------------------------
40777 * Type initialization:
40778 * This problem is tough by the requirement that no dynamic
40779 * memory is used. Also, since swig_type_info structures store pointers to
40780 * swig_cast_info structures and swig_cast_info structures store pointers back
40781 * to swig_type_info structures, we need some lookup code at initialization.
40782 * The idea is that swig generates all the structures that are needed.
40783 * The runtime then collects these partially filled structures.
40784 * The SWIG_InitializeModule function takes these initial arrays out of
40785 * swig_module, and does all the lookup, filling in the swig_module.types
40786 * array with the correct data and linking the correct swig_cast_info
40787 * structures together.
40788 *
40789 * The generated swig_type_info structures are assigned staticly to an initial
40790 * array. We just loop though that array, and handle each type individually.
40791 * First we lookup if this type has been already loaded, and if so, use the
40792 * loaded structure instead of the generated one. Then we have to fill in the
40793 * cast linked list. The cast data is initially stored in something like a
40794 * two-dimensional array. Each row corresponds to a type (there are the same
40795 * number of rows as there are in the swig_type_initial array). Each entry in
40796 * a column is one of the swig_cast_info structures for that type.
40797 * The cast_initial array is actually an array of arrays, because each row has
40798 * a variable number of columns. So to actually build the cast linked list,
40799 * we find the array of casts associated with the type, and loop through it
40800 * adding the casts to the list. The one last trick we need to do is making
40801 * sure the type pointer in the swig_cast_info struct is correct.
40802 *
40803 * First off, we lookup the cast->type name to see if it is already loaded.
40804 * There are three cases to handle:
40805 * 1) If the cast->type has already been loaded AND the type we are adding
40806 * casting info to has not been loaded (it is in this module), THEN we
40807 * replace the cast->type pointer with the type pointer that has already
40808 * been loaded.
40809 * 2) If BOTH types (the one we are adding casting info to, and the
40810 * cast->type) are loaded, THEN the cast info has already been loaded by
40811 * the previous module so we just ignore it.
40812 * 3) Finally, if cast->type has not already been loaded, then we add that
40813 * swig_cast_info to the linked list (because the cast->type) pointer will
40814 * be correct.
40815 * ----------------------------------------------------------------------------- */
40816
40817 #ifdef __cplusplus
40818 extern "C" {
40819 #if 0
40820 } /* c-mode */
40821 #endif
40822 #endif
40823
40824 #if 0
40825 #define SWIGRUNTIME_DEBUG
40826 #endif
40827
40828 SWIGRUNTIME void
40829 SWIG_InitializeModule(void *clientdata) {
40830 size_t i;
40831 swig_module_info *module_head;
40832 static int init_run = 0;
40833
40834 clientdata = clientdata;
40835
40836 if (init_run) return;
40837 init_run = 1;
40838
40839 /* Initialize the swig_module */
40840 swig_module.type_initial = swig_type_initial;
40841 swig_module.cast_initial = swig_cast_initial;
40842
40843 /* Try and load any already created modules */
40844 module_head = SWIG_GetModule(clientdata);
40845 if (module_head) {
40846 swig_module.next = module_head->next;
40847 module_head->next = &swig_module;
40848 } else {
40849 /* This is the first module loaded */
40850 swig_module.next = &swig_module;
40851 SWIG_SetModule(clientdata, &swig_module);
40852 }
40853
40854 /* Now work on filling in swig_module.types */
40855 #ifdef SWIGRUNTIME_DEBUG
40856 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40857 #endif
40858 for (i = 0; i < swig_module.size; ++i) {
40859 swig_type_info *type = 0;
40860 swig_type_info *ret;
40861 swig_cast_info *cast;
40862
40863 #ifdef SWIGRUNTIME_DEBUG
40864 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40865 #endif
40866
40867 /* if there is another module already loaded */
40868 if (swig_module.next != &swig_module) {
40869 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
40870 }
40871 if (type) {
40872 /* Overwrite clientdata field */
40873 #ifdef SWIGRUNTIME_DEBUG
40874 printf("SWIG_InitializeModule: found type %s\n", type->name);
40875 #endif
40876 if (swig_module.type_initial[i]->clientdata) {
40877 type->clientdata = swig_module.type_initial[i]->clientdata;
40878 #ifdef SWIGRUNTIME_DEBUG
40879 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40880 #endif
40881 }
40882 } else {
40883 type = swig_module.type_initial[i];
40884 }
40885
40886 /* Insert casting types */
40887 cast = swig_module.cast_initial[i];
40888 while (cast->type) {
40889 /* Don't need to add information already in the list */
40890 ret = 0;
40891 #ifdef SWIGRUNTIME_DEBUG
40892 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40893 #endif
40894 if (swig_module.next != &swig_module) {
40895 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40896 #ifdef SWIGRUNTIME_DEBUG
40897 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40898 #endif
40899 }
40900 if (ret) {
40901 if (type == swig_module.type_initial[i]) {
40902 #ifdef SWIGRUNTIME_DEBUG
40903 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40904 #endif
40905 cast->type = ret;
40906 ret = 0;
40907 } else {
40908 /* Check for casting already in the list */
40909 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40910 #ifdef SWIGRUNTIME_DEBUG
40911 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40912 #endif
40913 if (!ocast) ret = 0;
40914 }
40915 }
40916
40917 if (!ret) {
40918 #ifdef SWIGRUNTIME_DEBUG
40919 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40920 #endif
40921 if (type->cast) {
40922 type->cast->prev = cast;
40923 cast->next = type->cast;
40924 }
40925 type->cast = cast;
40926 }
40927 cast++;
40928 }
40929 /* Set entry in modules->types array equal to the type */
40930 swig_module.types[i] = type;
40931 }
40932 swig_module.types[i] = 0;
40933
40934 #ifdef SWIGRUNTIME_DEBUG
40935 printf("**** SWIG_InitializeModule: Cast List ******\n");
40936 for (i = 0; i < swig_module.size; ++i) {
40937 int j = 0;
40938 swig_cast_info *cast = swig_module.cast_initial[i];
40939 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40940 while (cast->type) {
40941 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40942 cast++;
40943 ++j;
40944 }
40945 printf("---- Total casts: %d\n",j);
40946 }
40947 printf("**** SWIG_InitializeModule: Cast List ******\n");
40948 #endif
40949 }
40950
40951 /* This function will propagate the clientdata field of type to
40952 * any new swig_type_info structures that have been added into the list
40953 * of equivalent types. It is like calling
40954 * SWIG_TypeClientData(type, clientdata) a second time.
40955 */
40956 SWIGRUNTIME void
40957 SWIG_PropagateClientData(void) {
40958 size_t i;
40959 swig_cast_info *equiv;
40960 static int init_run = 0;
40961
40962 if (init_run) return;
40963 init_run = 1;
40964
40965 for (i = 0; i < swig_module.size; i++) {
40966 if (swig_module.types[i]->clientdata) {
40967 equiv = swig_module.types[i]->cast;
40968 while (equiv) {
40969 if (!equiv->converter) {
40970 if (equiv->type && !equiv->type->clientdata)
40971 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40972 }
40973 equiv = equiv->next;
40974 }
40975 }
40976 }
40977 }
40978
40979 #ifdef __cplusplus
40980 #if 0
40981 {
40982 /* c-mode */
40983 #endif
40984 }
40985 #endif
40986
40987
40988
40989 #ifdef __cplusplus
40990 extern "C" {
40991 #endif
40992
40993 /* Python-specific SWIG API */
40994 #define SWIG_newvarlink() SWIG_Python_newvarlink()
40995 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40996 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40997
40998 /* -----------------------------------------------------------------------------
40999 * global variable support code.
41000 * ----------------------------------------------------------------------------- */
41001
41002 typedef struct swig_globalvar {
41003 char *name; /* Name of global variable */
41004 PyObject *(*get_attr)(void); /* Return the current value */
41005 int (*set_attr)(PyObject *); /* Set the value */
41006 struct swig_globalvar *next;
41007 } swig_globalvar;
41008
41009 typedef struct swig_varlinkobject {
41010 PyObject_HEAD
41011 swig_globalvar *vars;
41012 } swig_varlinkobject;
41013
41014 SWIGINTERN PyObject *
41015 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41016 return PyString_FromString("<Swig global variables>");
41017 }
41018
41019 SWIGINTERN PyObject *
41020 swig_varlink_str(swig_varlinkobject *v) {
41021 PyObject *str = PyString_FromString("(");
41022 swig_globalvar *var;
41023 for (var = v->vars; var; var=var->next) {
41024 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41025 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41026 }
41027 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41028 return str;
41029 }
41030
41031 SWIGINTERN int
41032 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41033 PyObject *str = swig_varlink_str(v);
41034 fprintf(fp,"Swig global variables ");
41035 fprintf(fp,"%s\n", PyString_AsString(str));
41036 Py_DECREF(str);
41037 return 0;
41038 }
41039
41040 SWIGINTERN void
41041 swig_varlink_dealloc(swig_varlinkobject *v) {
41042 swig_globalvar *var = v->vars;
41043 while (var) {
41044 swig_globalvar *n = var->next;
41045 free(var->name);
41046 free(var);
41047 var = n;
41048 }
41049 }
41050
41051 SWIGINTERN PyObject *
41052 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41053 PyObject *res = NULL;
41054 swig_globalvar *var = v->vars;
41055 while (var) {
41056 if (strcmp(var->name,n) == 0) {
41057 res = (*var->get_attr)();
41058 break;
41059 }
41060 var = var->next;
41061 }
41062 if (res == NULL && !PyErr_Occurred()) {
41063 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41064 }
41065 return res;
41066 }
41067
41068 SWIGINTERN int
41069 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41070 int res = 1;
41071 swig_globalvar *var = v->vars;
41072 while (var) {
41073 if (strcmp(var->name,n) == 0) {
41074 res = (*var->set_attr)(p);
41075 break;
41076 }
41077 var = var->next;
41078 }
41079 if (res == 1 && !PyErr_Occurred()) {
41080 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41081 }
41082 return res;
41083 }
41084
41085 SWIGINTERN PyTypeObject*
41086 swig_varlink_type(void) {
41087 static char varlink__doc__[] = "Swig var link object";
41088 static PyTypeObject varlink_type;
41089 static int type_init = 0;
41090 if (!type_init) {
41091 const PyTypeObject tmp
41092 = {
41093 PyObject_HEAD_INIT(NULL)
41094 0, /* Number of items in variable part (ob_size) */
41095 (char *)"swigvarlink", /* Type name (tp_name) */
41096 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41097 0, /* Itemsize (tp_itemsize) */
41098 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41099 (printfunc) swig_varlink_print, /* Print (tp_print) */
41100 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41101 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41102 0, /* tp_compare */
41103 (reprfunc) swig_varlink_repr, /* tp_repr */
41104 0, /* tp_as_number */
41105 0, /* tp_as_sequence */
41106 0, /* tp_as_mapping */
41107 0, /* tp_hash */
41108 0, /* tp_call */
41109 (reprfunc)swig_varlink_str, /* tp_str */
41110 0, /* tp_getattro */
41111 0, /* tp_setattro */
41112 0, /* tp_as_buffer */
41113 0, /* tp_flags */
41114 varlink__doc__, /* tp_doc */
41115 0, /* tp_traverse */
41116 0, /* tp_clear */
41117 0, /* tp_richcompare */
41118 0, /* tp_weaklistoffset */
41119 #if PY_VERSION_HEX >= 0x02020000
41120 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41121 #endif
41122 #if PY_VERSION_HEX >= 0x02030000
41123 0, /* tp_del */
41124 #endif
41125 #ifdef COUNT_ALLOCS
41126 0,0,0,0 /* tp_alloc -> tp_next */
41127 #endif
41128 };
41129 varlink_type = tmp;
41130 varlink_type.ob_type = &PyType_Type;
41131 type_init = 1;
41132 }
41133 return &varlink_type;
41134 }
41135
41136 /* Create a variable linking object for use later */
41137 SWIGINTERN PyObject *
41138 SWIG_Python_newvarlink(void) {
41139 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41140 if (result) {
41141 result->vars = 0;
41142 }
41143 return ((PyObject*) result);
41144 }
41145
41146 SWIGINTERN void
41147 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41148 swig_varlinkobject *v = (swig_varlinkobject *) p;
41149 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41150 if (gv) {
41151 size_t size = strlen(name)+1;
41152 gv->name = (char *)malloc(size);
41153 if (gv->name) {
41154 strncpy(gv->name,name,size);
41155 gv->get_attr = get_attr;
41156 gv->set_attr = set_attr;
41157 gv->next = v->vars;
41158 }
41159 }
41160 v->vars = gv;
41161 }
41162
41163 SWIGINTERN PyObject *
41164 SWIG_globals() {
41165 static PyObject *_SWIG_globals = 0;
41166 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41167 return _SWIG_globals;
41168 }
41169
41170 /* -----------------------------------------------------------------------------
41171 * constants/methods manipulation
41172 * ----------------------------------------------------------------------------- */
41173
41174 /* Install Constants */
41175 SWIGINTERN void
41176 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41177 PyObject *obj = 0;
41178 size_t i;
41179 for (i = 0; constants[i].type; ++i) {
41180 switch(constants[i].type) {
41181 case SWIG_PY_POINTER:
41182 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41183 break;
41184 case SWIG_PY_BINARY:
41185 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41186 break;
41187 default:
41188 obj = 0;
41189 break;
41190 }
41191 if (obj) {
41192 PyDict_SetItemString(d, constants[i].name, obj);
41193 Py_DECREF(obj);
41194 }
41195 }
41196 }
41197
41198 /* -----------------------------------------------------------------------------*/
41199 /* Fix SwigMethods to carry the callback ptrs when needed */
41200 /* -----------------------------------------------------------------------------*/
41201
41202 SWIGINTERN void
41203 SWIG_Python_FixMethods(PyMethodDef *methods,
41204 swig_const_info *const_table,
41205 swig_type_info **types,
41206 swig_type_info **types_initial) {
41207 size_t i;
41208 for (i = 0; methods[i].ml_name; ++i) {
41209 const char *c = methods[i].ml_doc;
41210 if (c && (c = strstr(c, "swig_ptr: "))) {
41211 int j;
41212 swig_const_info *ci = 0;
41213 const char *name = c + 10;
41214 for (j = 0; const_table[j].type; ++j) {
41215 if (strncmp(const_table[j].name, name,
41216 strlen(const_table[j].name)) == 0) {
41217 ci = &(const_table[j]);
41218 break;
41219 }
41220 }
41221 if (ci) {
41222 size_t shift = (ci->ptype) - types;
41223 swig_type_info *ty = types_initial[shift];
41224 size_t ldoc = (c - methods[i].ml_doc);
41225 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41226 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41227 if (ndoc) {
41228 char *buff = ndoc;
41229 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41230 if (ptr) {
41231 strncpy(buff, methods[i].ml_doc, ldoc);
41232 buff += ldoc;
41233 strncpy(buff, "swig_ptr: ", 10);
41234 buff += 10;
41235 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41236 methods[i].ml_doc = ndoc;
41237 }
41238 }
41239 }
41240 }
41241 }
41242 }
41243
41244 #ifdef __cplusplus
41245 }
41246 #endif
41247
41248 /* -----------------------------------------------------------------------------*
41249 * Partial Init method
41250 * -----------------------------------------------------------------------------*/
41251
41252 #ifdef __cplusplus
41253 extern "C"
41254 #endif
41255 SWIGEXPORT void SWIG_init(void) {
41256 PyObject *m, *d;
41257
41258 /* Fix SwigMethods to carry the callback ptrs when needed */
41259 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41260
41261 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41262 d = PyModule_GetDict(m);
41263
41264 SWIG_InitializeModule(0);
41265 SWIG_InstallConstants(d,swig_const_table);
41266
41267
41268 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41269 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41270 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
41271 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41272 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
41273 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41274 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41275 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41276 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41277 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41278 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41279 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41280 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41281 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41282 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41283 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41284 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41285 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41286 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41287 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41288 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41289 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41290 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41291 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41292 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41293 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41294 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41295 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41296 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41297 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41298 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41299 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41300 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41301 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41302 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41303 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41304 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41305 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41306 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41307 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41308 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41309 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41310 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41311 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41312 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41313 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41314 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41315 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41316 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41317 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41318 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41319 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41320 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41321 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41322 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41323 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41324 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41325 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41326 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41327 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41328 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41329 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41330 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41331 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41332 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41333 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41334 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41335 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41336 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41337 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41338 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41339 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41340 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41341 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41342 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41343 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41344 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41345 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41346 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41347 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41348 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41349 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41350 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41351 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41352 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41353 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41354 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41355 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41356 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41357 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41358 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41359 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41360 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41361 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41362 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41363 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41364 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41365 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41366 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41367 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41368 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41369 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41370 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41371 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41372 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41373 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41374 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41375 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41376 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41377 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41378 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41379 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41380 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41381 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41382 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41383 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41384 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41385 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41386 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41387 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41388 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41389 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41390 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41391 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41392 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41393 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41394 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41395 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41396 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41397 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41398 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41399 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41400
41401 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41402
41403 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41404 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41405 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41406 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41407 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41408 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41409 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41410 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41411 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41412 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41413 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41414 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41415 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41416 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41417 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41418 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41419 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41420 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41421 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41422 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41423 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41424 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41425 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41426 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41427 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41428 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41429 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41430 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41431 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41432 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41433 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41434 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41435 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41436 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41437 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41438 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41439 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41440 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41441 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41442 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41443 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41444 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41445 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41446 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41447 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41448 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41449 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41450 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41451 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41452 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41453 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41454 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41455 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41456 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41457 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41458 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41459 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41460 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41461 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41462 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41463 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41464 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41465 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41466 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41467 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41468 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41469 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41470 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41471 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41472 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41473 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41474 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41475 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41476 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41477 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41478 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41479 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41480 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41481 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41482 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41483 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41484 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41485 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41486 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41487 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41488 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41489 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41490 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41491 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41492 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41493 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41494 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41495 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41496 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41497 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41498 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41499 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41500 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41501 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41502 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41503 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41504 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41505 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41506 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41507 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41508 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41509 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41510 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41511 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41512 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41513 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41514 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41515 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41516 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41517 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41518 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41519 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41520 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41521 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41522 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41523 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41524 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41525 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41526 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41527 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41528 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41529 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41530 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41531 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41532 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41533 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41534 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41535 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41536 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41537 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41538 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41539 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41540 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41541 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41542 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41543 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41544 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41545 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41546 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41547 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41548 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41549 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41550 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41551 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41552 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41553 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41554 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41555 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41556 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41557 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41558 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41559 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41560 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41561 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41562 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41563 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41564 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41565 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41566 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41567 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41568 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41569 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41570 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41571 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41572 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41573 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41574 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41575 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41576 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41577 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41578 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41579 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41580 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41581 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41582 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41583 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41584 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41585 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41586 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41587 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41588 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41589 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41590 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41591 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41592 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41593 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41594 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41595 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41596 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41597 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41598 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41599 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41600 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41601 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41602 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41603 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41604 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41605 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41606 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41607 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41608 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41609 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41610 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41611 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41612 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41613 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41614 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41615 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41616 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41617 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41618 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41619 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41620 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41621 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41622 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41623 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41624 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41625 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41626 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41627 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41628 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41629 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41630 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41631 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41632 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41633 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41634 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41635 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41636 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41637 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41638 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41639 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41640 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41641 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41642 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41643 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41644 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41645 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41646 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41647 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41648 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41649 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41650 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
41651 SWIG_Python_SetConstant(d, "BUFFER_USES_SHARED_BUFFER",SWIG_From_int(static_cast< int >(wxBUFFER_USES_SHARED_BUFFER)));
41652 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41653 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41654 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41655 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
41656 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41657 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
41658 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41659 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41660 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41661 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41662 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41663 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41664 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
41665 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41666 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41667 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41668 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41669 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41670 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41671 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41672 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41673 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41674 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41675 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41676 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41677 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41678 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41679 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41680 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41681 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41682 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41683 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41684 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41685 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41686 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41687 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41688 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41689 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41690 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41691 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41692 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41693 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41694 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41695 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41696 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41697 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41698 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41699 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
41700 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41701 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41702 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41703 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41704 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41705 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41706 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41707 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
41708 SWIG_addvarlink(SWIG_globals(),(char*)"NullIconBundle",NullIconBundle_get, NullIconBundle_set);
41709 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41710 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41711 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
41712 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
41713 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41714 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41715 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
41716 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
41717 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41718 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41719 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41720 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41721 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41722 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41723 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
41724 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41725 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41726 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
41727 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41728 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41729
41730 // Work around a chicken/egg problem in drawlist.cpp
41731 wxPyDrawList_SetAPIPtr();
41732
41733 }
41734