]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
Added wx.combo.BitmapComboBox
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_wxChar swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxClientDC swig_types[25]
2492 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493 #define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494 #define SWIGTYPE_p_wxColor swig_types[28]
2495 #define SWIGTYPE_p_wxColour swig_types[29]
2496 #define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497 #define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498 #define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499 #define SWIGTYPE_p_wxControl swig_types[33]
2500 #define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501 #define SWIGTYPE_p_wxCursor swig_types[35]
2502 #define SWIGTYPE_p_wxDC swig_types[36]
2503 #define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504 #define SWIGTYPE_p_wxDCClipper swig_types[38]
2505 #define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506 #define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507 #define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508 #define SWIGTYPE_p_wxDash swig_types[42]
2509 #define SWIGTYPE_p_wxDateEvent swig_types[43]
2510 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513 #define SWIGTYPE_p_wxEffects swig_types[47]
2514 #define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515 #define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516 #define SWIGTYPE_p_wxEvent swig_types[50]
2517 #define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518 #define SWIGTYPE_p_wxFSFile swig_types[52]
2519 #define SWIGTYPE_p_wxFileSystem swig_types[53]
2520 #define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521 #define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522 #define SWIGTYPE_p_wxFont swig_types[56]
2523 #define SWIGTYPE_p_wxFontList swig_types[57]
2524 #define SWIGTYPE_p_wxFontMapper swig_types[58]
2525 #define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526 #define SWIGTYPE_p_wxGCDC swig_types[60]
2527 #define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528 #define SWIGTYPE_p_wxGDIObject swig_types[62]
2529 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530 #define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531 #define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532 #define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533 #define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534 #define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535 #define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536 #define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537 #define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538 #define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539 #define SWIGTYPE_p_wxGridSizer swig_types[73]
2540 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541 #define SWIGTYPE_p_wxICOHandler swig_types[75]
2542 #define SWIGTYPE_p_wxIcon swig_types[76]
2543 #define SWIGTYPE_p_wxIconBundle swig_types[77]
2544 #define SWIGTYPE_p_wxIconLocation swig_types[78]
2545 #define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546 #define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547 #define SWIGTYPE_p_wxImage swig_types[81]
2548 #define SWIGTYPE_p_wxImageHandler swig_types[82]
2549 #define SWIGTYPE_p_wxImageList swig_types[83]
2550 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551 #define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552 #define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553 #define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554 #define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555 #define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556 #define SWIGTYPE_p_wxLocale swig_types[90]
2557 #define SWIGTYPE_p_wxMask swig_types[91]
2558 #define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560 #define SWIGTYPE_p_wxMenu swig_types[94]
2561 #define SWIGTYPE_p_wxMenuBar swig_types[95]
2562 #define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563 #define SWIGTYPE_p_wxMenuItem swig_types[97]
2564 #define SWIGTYPE_p_wxMetaFile swig_types[98]
2565 #define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566 #define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572 #define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573 #define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577 #define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578 #define SWIGTYPE_p_wxObject swig_types[112]
2579 #define SWIGTYPE_p_wxOverlay swig_types[113]
2580 #define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583 #define SWIGTYPE_p_wxPaintDC swig_types[117]
2584 #define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585 #define SWIGTYPE_p_wxPalette swig_types[119]
2586 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPaperSize swig_types[121]
2588 #define SWIGTYPE_p_wxPen swig_types[122]
2589 #define SWIGTYPE_p_wxPenList swig_types[123]
2590 #define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591 #define SWIGTYPE_p_wxPoint swig_types[125]
2592 #define SWIGTYPE_p_wxPoint2D swig_types[126]
2593 #define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594 #define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595 #define SWIGTYPE_p_wxPrintData swig_types[129]
2596 #define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597 #define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598 #define SWIGTYPE_p_wxPyApp swig_types[132]
2599 #define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600 #define SWIGTYPE_p_wxPyEvent swig_types[134]
2601 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602 #define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603 #define SWIGTYPE_p_wxPyLocale swig_types[137]
2604 #define SWIGTYPE_p_wxPySizer swig_types[138]
2605 #define SWIGTYPE_p_wxPyValidator swig_types[139]
2606 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607 #define SWIGTYPE_p_wxRect swig_types[141]
2608 #define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609 #define SWIGTYPE_p_wxRegion swig_types[143]
2610 #define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611 #define SWIGTYPE_p_wxRendererNative swig_types[145]
2612 #define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613 #define SWIGTYPE_p_wxScreenDC swig_types[147]
2614 #define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615 #define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616 #define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617 #define SWIGTYPE_p_wxShowEvent swig_types[151]
2618 #define SWIGTYPE_p_wxSize swig_types[152]
2619 #define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620 #define SWIGTYPE_p_wxSizer swig_types[154]
2621 #define SWIGTYPE_p_wxSizerItem swig_types[155]
2622 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625 #define SWIGTYPE_p_wxStockGDI swig_types[159]
2626 #define SWIGTYPE_p_wxString swig_types[160]
2627 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
2628 #define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629 #define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631 #define SWIGTYPE_p_wxValidator swig_types[165]
2632 #define SWIGTYPE_p_wxWindow swig_types[166]
2633 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634 #define SWIGTYPE_p_wxWindowDC swig_types[168]
2635 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636 #define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637 static swig_type_info *swig_types[172];
2638 static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
2639 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2641
2642 /* -------- TYPES TABLE (END) -------- */
2643
2644 #if (PY_VERSION_HEX <= 0x02000000)
2645 # if !defined(SWIG_PYTHON_CLASSIC)
2646 # error "This python version requires to use swig with the '-classic' option"
2647 # endif
2648 #endif
2649 #if (PY_VERSION_HEX <= 0x02020000)
2650 # error "This python version requires to use swig with the '-nomodern' option"
2651 #endif
2652 #if (PY_VERSION_HEX <= 0x02020000)
2653 # error "This python version requires to use swig with the '-nomodernargs' option"
2654 #endif
2655 #ifndef METH_O
2656 # error "This python version requires to use swig with the '-nofastunpack' option"
2657 #endif
2658
2659 /*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662 #define SWIG_init init_gdi_
2663
2664 #define SWIG_name "_gdi_"
2665
2666 #define SWIGVERSION 0x010329
2667
2668
2669 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2671
2672
2673 #include <stdexcept>
2674
2675
2676 namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
2684 }
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
2689 }
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
2719 }
2720
2721
2722 namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
2731 }
2732 };
2733 }
2734
2735
2736 #include "wx/wxPython/wxPython.h"
2737 #include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745 SWIGINTERNINLINE PyObject *
2746 SWIG_From_int (int value)
2747 {
2748 return SWIG_From_long (value);
2749 }
2750
2751
2752 #include <limits.h>
2753 #ifndef LLONG_MIN
2754 # define LLONG_MIN LONG_LONG_MIN
2755 #endif
2756 #ifndef LLONG_MAX
2757 # define LLONG_MAX LONG_LONG_MAX
2758 #endif
2759 #ifndef ULLONG_MAX
2760 # define ULLONG_MAX ULONG_LONG_MAX
2761 #endif
2762
2763
2764 SWIGINTERN int
2765 SWIG_AsVal_long (PyObject* obj, long* val)
2766 {
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772 }
2773
2774
2775 SWIGINTERN int
2776 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2777 {
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2780 return SWIG_TypeError;
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
2784 return SWIG_OK;
2785 }
2786
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790 {
2791 unsigned long v;
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
2796 } else {
2797 if (val) *val = static_cast< unsigned char >(v);
2798 }
2799 }
2800 return res;
2801 }
2802
2803
2804 SWIGINTERNINLINE PyObject*
2805 SWIG_From_unsigned_SS_long (unsigned long value)
2806 {
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2809 }
2810
2811
2812 SWIGINTERNINLINE PyObject *
2813 SWIG_From_unsigned_SS_char (unsigned char value)
2814 {
2815 return SWIG_From_unsigned_SS_long (value);
2816 }
2817
2818 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
2836
2837 SWIGINTERN int
2838 SWIG_AsVal_bool (PyObject *obj, bool *val)
2839 {
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852 }
2853
2854 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
2859 int alpha = wxALPHA_OPAQUE;
2860 if (self->IsOk()) {
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
2864 alpha = self->Alpha();
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2871 return rv;
2872 }
2873 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
2876
2877 SWIGINTERN int
2878 SWIG_AsVal_int (PyObject * obj, int *val)
2879 {
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
2890 }
2891
2892 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
2905 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2909
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
2924 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2926
2927 #include <wx/rawbmp.h>
2928
2929
2930 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2931 // appears to me that the other platforms are already doing it, so I'll just
2932 // automatically do it for wxMSW here.
2933 #ifdef __WXMSW__
2934 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2935 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2936 #else
2937 #define wxPy_premultiply(p, a) (p)
2938 #define wxPy_unpremultiply(p, a) (p)
2939 #endif
2940
2941
2942 #include <wx/image.h>
2943
2944 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2945 char** cArray = NULL;
2946 int count;
2947
2948 if (!PyList_Check(listOfStrings)) {
2949 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2950 return NULL;
2951 }
2952 count = PyList_Size(listOfStrings);
2953 cArray = new char*[count];
2954
2955 for(int x=0; x<count; x++) {
2956 // TODO: Need some validation and error checking here
2957 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2958 }
2959 return cArray;
2960 }
2961
2962
2963 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2964 char** cArray = NULL;
2965 wxBitmap* bmp;
2966
2967 cArray = ConvertListOfStrings(listOfStrings);
2968 if (! cArray)
2969 return NULL;
2970 bmp = new wxBitmap(cArray);
2971 delete [] cArray;
2972 return bmp;
2973 }
2974 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2975 char* buf;
2976 Py_ssize_t length;
2977 PyString_AsStringAndSize(bits, &buf, &length);
2978 return new wxBitmap(buf, width, height, depth);
2979 }
2980 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2981 wxSize size(self->GetWidth(), self->GetHeight());
2982 return size;
2983 }
2984 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2985 wxMask *mask = new wxMask(*self, colour);
2986 self->SetMask(mask);
2987 }
2988 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2989 self->SetWidth(size.x);
2990 self->SetHeight(size.y);
2991 }
2992 SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2993 int height=self->GetHeight();
2994 int width=self->GetWidth();
2995
2996 if (DATASIZE != width * height * 3) {
2997 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2998 }
2999 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3000 if (! pixData) {
3001 // raise an exception...
3002 wxPyErr_SetString(PyExc_RuntimeError,
3003 "Failed to gain raw access to bitmap data.");
3004 return;
3005 }
3006
3007 wxNativePixelData::Iterator p(pixData);
3008 for (int y=0; y<height; y++) {
3009 wxNativePixelData::Iterator rowStart = p;
3010 for (int x=0; x<width; x++) {
3011 p.Red() = *(data++);
3012 p.Green() = *(data++);
3013 p.Blue() = *(data++);
3014 ++p;
3015 }
3016 p = rowStart;
3017 p.OffsetY(pixData, 1);
3018 }
3019 }
3020 SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3021 int height=self->GetHeight();
3022 int width=self->GetWidth();
3023
3024 if (DATASIZE != width * height * 4) {
3025 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3026 }
3027 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3028 if (! pixData) {
3029 // raise an exception...
3030 wxPyErr_SetString(PyExc_RuntimeError,
3031 "Failed to gain raw access to bitmap data.");
3032 return;
3033 }
3034
3035 pixData.UseAlpha();
3036 wxAlphaPixelData::Iterator p(pixData);
3037 for (int y=0; y<height; y++) {
3038 wxAlphaPixelData::Iterator rowStart = p;
3039 for (int x=0; x<width; x++) {
3040 byte a = data[3];
3041 p.Red() = wxPy_premultiply(*(data++), a);
3042 p.Green() = wxPy_premultiply(*(data++), a);
3043 p.Blue() = wxPy_premultiply(*(data++), a);
3044 p.Alpha() = a; data++;
3045 ++p;
3046 }
3047 p = rowStart;
3048 p.OffsetY(pixData, 1);
3049 }
3050 }
3051 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3052 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
3053
3054 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3055 buffer data, int DATASIZE,
3056 buffer alpha, int ALPHASIZE)
3057 {
3058 if (DATASIZE != width*height*3) {
3059 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3060 return NULL;
3061 }
3062
3063 if (ALPHASIZE != width*height) {
3064 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3065 return NULL;
3066 }
3067
3068 wxBitmap* bmp = new wxBitmap(width, height, 32);
3069 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3070 if (! pixData) {
3071 // raise an exception...
3072 wxPyErr_SetString(PyExc_RuntimeError,
3073 "Failed to gain raw access to bitmap data.");
3074 return NULL;
3075 }
3076
3077 pixData.UseAlpha();
3078 wxAlphaPixelData::Iterator p(pixData);
3079 for (int y=0; y<height; y++) {
3080 wxAlphaPixelData::Iterator rowStart = p;
3081 for (int x=0; x<width; x++) {
3082 byte a = *(alpha++);
3083 p.Red() = wxPy_premultiply(*(data++), a);
3084 p.Green() = wxPy_premultiply(*(data++), a);
3085 p.Blue() = wxPy_premultiply(*(data++), a);
3086 p.Alpha() = a;
3087 ++p;
3088 }
3089 p = rowStart;
3090 p.OffsetY(pixData, 1);
3091 }
3092 return bmp;
3093 }
3094
3095 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3096 {
3097 if (DATASIZE != width*height*3) {
3098 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3099 return NULL;
3100 }
3101
3102 wxBitmap* bmp = new wxBitmap(width, height, 24);
3103 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3104 if (! pixData) {
3105 // raise an exception...
3106 wxPyErr_SetString(PyExc_RuntimeError,
3107 "Failed to gain raw access to bitmap data.");
3108 return NULL;
3109 }
3110
3111 wxNativePixelData::Iterator p(pixData);
3112 for (int y=0; y<height; y++) {
3113 wxNativePixelData::Iterator rowStart = p;
3114 for (int x=0; x<width; x++) {
3115 p.Red() = *(data++);
3116 p.Green() = *(data++);
3117 p.Blue() = *(data++);
3118 ++p;
3119 }
3120 p = rowStart;
3121 p.OffsetY(pixData, 1);
3122 }
3123 return bmp;
3124 }
3125
3126
3127 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3128 {
3129 if (DATASIZE != width*height*4) {
3130 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3131 return NULL;
3132 }
3133
3134 wxBitmap* bmp = new wxBitmap(width, height, 32);
3135 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3136 if (! pixData) {
3137 // raise an exception...
3138 wxPyErr_SetString(PyExc_RuntimeError,
3139 "Failed to gain raw access to bitmap data.");
3140 return NULL;
3141 }
3142
3143 pixData.UseAlpha();
3144 wxAlphaPixelData::Iterator p(pixData);
3145 for (int y=0; y<height; y++) {
3146 wxAlphaPixelData::Iterator rowStart = p;
3147 for (int x=0; x<width; x++) {
3148 byte a = data[3];
3149 p.Red() = wxPy_premultiply(*(data++), a);
3150 p.Green() = wxPy_premultiply(*(data++), a);
3151 p.Blue() = wxPy_premultiply(*(data++), a);
3152 p.Alpha() = a; data++;
3153 ++p;
3154 }
3155 p = rowStart;
3156 p.OffsetY(pixData, 1);
3157 }
3158 return bmp;
3159 }
3160
3161
3162 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3163
3164 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3165 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3166 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3167 self->Red() = red;
3168 self->Green() = green;
3169 self->Blue() = blue;
3170 }
3171 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3172 PyObject* rv = PyTuple_New(3);
3173 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3174 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3175 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3176 return rv;
3177 }
3178
3179 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3180
3181 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3182 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3183 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3184 self->Red() = wxPy_premultiply(red, alpha);
3185 self->Green() = wxPy_premultiply(green, alpha);
3186 self->Blue() = wxPy_premultiply(blue, alpha);
3187 self->Alpha() = alpha;
3188 }
3189 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3190 PyObject* rv = PyTuple_New(4);
3191 int red = self->Red();
3192 int green = self->Green();
3193 int blue = self->Blue();
3194 int alpha = self->Alpha();
3195
3196 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3197 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3198 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3199 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3200 return rv;
3201 }
3202 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3203 if ( !colour.IsOk() )
3204 return new wxMask(bitmap, *wxBLACK);
3205 else
3206 return new wxMask(bitmap, colour);
3207 }
3208
3209 #include <wx/iconbndl.h>
3210
3211 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3212 wxIcon* icon = new wxIcon();
3213 icon->CopyFromBitmap(bmp);
3214 return icon;
3215 }
3216 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3217 char** cArray = NULL;
3218 wxIcon* icon;
3219
3220 cArray = ConvertListOfStrings(listOfStrings);
3221 if (! cArray)
3222 return NULL;
3223 icon = new wxIcon(cArray);
3224 delete [] cArray;
3225 return icon;
3226 }
3227 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3228
3229
3230
3231 return new wxIconLocation(*filename);
3232
3233 }
3234 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3235
3236
3237
3238 // do nothing
3239
3240 }
3241 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3242
3243
3244
3245 return -1;
3246
3247 }
3248 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3249 #ifdef __WXGTK__
3250 wxImage img(cursorName, type);
3251 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3252 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3253 return new wxCursor(img);
3254 #else
3255 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3256 #endif
3257 }
3258
3259
3260 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3261 (*self) ++;
3262 }
3263 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3264 return self->operator bool();
3265 }
3266
3267 #include <wx/fontutil.h>
3268 #include <wx/fontmap.h>
3269 #include <wx/fontenum.h>
3270
3271 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3272 return self->ToString();
3273 }
3274
3275 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3276 static wxNativeEncodingInfo info;
3277 if ( wxGetNativeFontEncoding(encoding, &info) )
3278 return &info;
3279 else
3280 return NULL;
3281 }
3282
3283
3284 SWIGINTERNINLINE PyObject *
3285 SWIG_From_size_t (size_t value)
3286 {
3287 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3288 }
3289
3290
3291 SWIGINTERNINLINE int
3292 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3293 {
3294 unsigned long v;
3295 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3296 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3297 return res;
3298 }
3299
3300 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3301 wxFontEncoding alt_enc;
3302 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3303 return PyInt_FromLong(alt_enc);
3304 else {
3305 Py_INCREF(Py_None);
3306 return Py_None;
3307 }
3308 }
3309 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3310 wxNativeFontInfo nfi;
3311 nfi.FromString(info);
3312 return new wxFont(nfi);
3313 }
3314 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3315 return wxFont::New(pointSize, family, flags, face, encoding);
3316 }
3317 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3318 return wxFontBase::New(pixelSize, family,
3319 style, weight, underlined,
3320 face, encoding);
3321 }
3322 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3323 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3324 }
3325 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3326 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3327
3328 class wxPyFontEnumerator : public wxFontEnumerator {
3329 public:
3330 wxPyFontEnumerator() {}
3331 ~wxPyFontEnumerator() {}
3332
3333 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3334 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3335
3336 PYPRIVATE;
3337 };
3338
3339 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3340 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3341
3342
3343 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3344 PyObject* ret;
3345 wxArrayString arr = wxFontEnumerator::GetEncodings();
3346 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3347 ret = wxArrayString2PyList_helper(arr);
3348 wxPyEndBlockThreads(blocked);
3349 return ret;
3350 }
3351 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3352 PyObject* ret;
3353 wxArrayString arr = wxFontEnumerator::GetFacenames();
3354 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3355 ret = wxArrayString2PyList_helper(arr);
3356 wxPyEndBlockThreads(blocked);
3357 return ret;
3358 }
3359
3360 #include <locale.h>
3361
3362 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3363 wxLocale* loc;
3364 if (language == -1)
3365 loc = new wxLocale();
3366 else
3367 loc = new wxLocale(language, flags);
3368 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3369 // for the floating point conversions and such to work right.
3370 #if PY_VERSION_HEX < 0x02040000
3371 setlocale(LC_NUMERIC, "C");
3372 #endif
3373 return loc;
3374 }
3375 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3376 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3377 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3378 // for the floating point conversions and such to work right.
3379 #if PY_VERSION_HEX < 0x02040000
3380 setlocale(LC_NUMERIC, "C");
3381 #endif
3382 return rc;
3383 }
3384 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3385 bool rc = self->Init(language, flags);
3386 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3387 // for the floating point conversions and such to work right.
3388 #if PY_VERSION_HEX < 0x02040000
3389 setlocale(LC_NUMERIC, "C");
3390 #endif
3391 return rc;
3392 }
3393
3394 class wxPyLocale : public wxLocale
3395 {
3396 public:
3397 wxPyLocale();
3398
3399 wxPyLocale(const wxChar *szName, // name (for messages)
3400 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3401 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3402 bool bLoadDefault = true, // preload wxstd.mo?
3403 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3404
3405 wxPyLocale(int language, // wxLanguage id or custom language
3406 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3407
3408 ~wxPyLocale();
3409
3410 virtual const wxChar *GetString(const wxChar *szOrigString,
3411 const wxChar *szDomain = NULL) const;
3412 virtual const wxChar *GetString(const wxChar *szOrigString,
3413 const wxChar *szOrigString2, size_t n,
3414 const wxChar *szDomain = NULL) const;
3415
3416 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3417 const wxChar *szDomain = NULL) const;
3418 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3419 const wxChar *szOrigString2, size_t n,
3420 const wxChar *szDomain = NULL) const;
3421
3422 PYPRIVATE;
3423 private:
3424 DECLARE_NO_COPY_CLASS(wxPyLocale)
3425 };
3426
3427 wxPyLocale::wxPyLocale() : wxLocale()
3428 {
3429 }
3430
3431 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3432 const wxChar *szShort, // dir prefix (for msg files)
3433 const wxChar *szLocale, // locale (for setlocale)
3434 bool bLoadDefault, // preload wxstd.mo?
3435 bool bConvertEncoding) // convert Win<->Unix if necessary?
3436 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3437 {
3438 }
3439
3440 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3441 int flags) : wxLocale(language, flags)
3442 {
3443 }
3444
3445 wxPyLocale::~wxPyLocale()
3446 {
3447 }
3448
3449 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3450 const wxChar *szDomain) const
3451 {
3452 wxChar *str = GetSingularString(szOrigString, szDomain);
3453 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3454 }
3455
3456 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3457 const wxChar *szOrigString2, size_t n,
3458 const wxChar *szDomain) const
3459 {
3460 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3461 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3462 }
3463
3464 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3465 const wxChar *szDomain) const
3466 {
3467 bool found;
3468 static wxString str;
3469 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3470 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3471 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3472 PyObject* param1 = wx2PyString(szOrigString);
3473 PyObject* param2 = wx2PyString(szDomain);
3474 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3475 Py_DECREF(param1);
3476 Py_DECREF(param2);
3477 if (ret) {
3478 str = Py2wxString(ret);
3479 Py_DECREF(ret);
3480 }
3481 }
3482 wxPyEndBlockThreads(blocked);
3483 return (found ? (wxChar*)str.c_str() : NULL);
3484 }
3485
3486 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3487 const wxChar *szOrigString2, size_t n,
3488 const wxChar *szDomain) const
3489 {
3490 bool found;
3491 static wxString str;
3492 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3493 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3494 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3495 PyObject* param1 = wx2PyString(szOrigString);
3496 PyObject* param2 = wx2PyString(szOrigString2);
3497 PyObject* param4 = wx2PyString(szDomain);
3498 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3499 Py_DECREF(param1);
3500 Py_DECREF(param2);
3501 Py_DECREF(param4);
3502 if( ret) {
3503 str = Py2wxString(ret);
3504 Py_DECREF(ret);
3505 }
3506 }
3507 wxPyEndBlockThreads(blocked);
3508 return (found ? (wxChar*)str.c_str() : NULL);
3509 }
3510
3511 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3512 wxPyLocale* loc;
3513 if (language == -1)
3514 loc = new wxPyLocale();
3515 else
3516 loc = new wxPyLocale(language, flags);
3517 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3518 // for the floating point conversions and such to work right.
3519 #if PY_VERSION_HEX < 0x02040000
3520 setlocale(LC_NUMERIC, "C");
3521 #endif
3522 return loc;
3523 }
3524
3525 #include "wx/wxPython/pydrawxxx.h"
3526
3527 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3528 wxColour col;
3529 self->GetPixel(x, y, &col);
3530 return col;
3531 }
3532 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3533 wxColour col;
3534 self->GetPixel(pt, &col);
3535 return col;
3536 }
3537
3538 SWIGINTERN int
3539 SWIG_AsVal_double (PyObject *obj, double* val)
3540 {
3541 if (PyNumber_Check(obj)) {
3542 if (val) *val = PyFloat_AsDouble(obj);
3543 return SWIG_OK;
3544 }
3545 return SWIG_TypeError;
3546 }
3547
3548 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3549 wxRect rv;
3550 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3551 return rv;
3552 }
3553 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3554 wxRect rect;
3555 self->GetClippingBox(rect);
3556 return rect;
3557 }
3558 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3559 wxArrayInt widths;
3560 self->GetPartialTextExtents(text, widths);
3561 return widths;
3562 }
3563
3564 #define SWIG_From_double PyFloat_FromDouble
3565
3566 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3567 self->SetLogicalOrigin(point.x, point.y);
3568 }
3569 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3570 self->SetDeviceOrigin(point.x, point.y);
3571 }
3572 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3573 self->CalcBoundingBox(point.x, point.y);
3574 }
3575 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3576 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3577 }
3578 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3579 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3580 }
3581 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3582 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3583 }
3584 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3585 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3586 }
3587 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3588 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3589 }
3590 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3591 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3592 }
3593
3594 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3595 *x1 = dc->MinX();
3596 *y1 = dc->MinY();
3597 *x2 = dc->MaxX();
3598 *y2 = dc->MaxY();
3599 }
3600
3601
3602 #include <wx/dcbuffer.h>
3603
3604
3605 #include <wx/dcps.h>
3606
3607
3608 class wxMetaFile : public wxObject {
3609 public:
3610 wxMetaFile(const wxString&)
3611 { wxPyRaiseNotImplemented(); }
3612 };
3613
3614 class wxMetaFileDC : public wxClientDC {
3615 public:
3616 wxMetaFileDC(const wxString&, int, int, const wxString&)
3617 { wxPyRaiseNotImplemented(); }
3618 };
3619
3620
3621
3622 class wxPrinterDC : public wxClientDC {
3623 public:
3624 wxPrinterDC(const wxPrintData&)
3625 { wxPyRaiseNotImplemented(); }
3626
3627 };
3628
3629
3630 #include <wx/graphics.h>
3631
3632
3633 #if !wxUSE_GRAPHICS_CONTEXT
3634 // C++ stub classes for platforms or build configurations that don't have
3635 // wxGraphicsContext yet.
3636
3637 class wxGraphicsRenderer;
3638 class wxGraphicsMatrix;
3639
3640
3641 class wxGraphicsObject : public wxObject
3642 {
3643 public :
3644 wxGraphicsObject() {}
3645 wxGraphicsObject( wxGraphicsRenderer* ) {
3646 PyErr_SetString(PyExc_NotImplementedError,
3647 "wx.GraphicsObject is not available on this platform.");
3648 }
3649 wxGraphicsObject( const wxGraphicsObject& ) {}
3650 virtual ~wxGraphicsObject() {}
3651 bool IsNull() const { return false; }
3652 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3653 } ;
3654
3655
3656
3657 class wxGraphicsPen : public wxGraphicsObject
3658 {
3659 public:
3660 wxGraphicsPen() {}
3661 virtual ~wxGraphicsPen() {}
3662 } ;
3663 wxGraphicsPen wxNullGraphicsPen;
3664
3665
3666
3667 class wxGraphicsBrush : public wxGraphicsObject
3668 {
3669 public :
3670 wxGraphicsBrush() {}
3671 virtual ~wxGraphicsBrush() {}
3672 } ;
3673 wxGraphicsBrush wxNullGraphicsBrush;
3674
3675
3676
3677 class wxGraphicsFont : public wxGraphicsObject
3678 {
3679 public :
3680 wxGraphicsFont() {}
3681 virtual ~wxGraphicsFont() {}
3682 } ;
3683 wxGraphicsFont wxNullGraphicsFont;
3684
3685
3686
3687 class wxGraphicsPath : public wxGraphicsObject
3688 {
3689 public :
3690 wxGraphicsPath() { }
3691 wxGraphicsPath(wxGraphicsRenderer* ) {
3692 PyErr_SetString(PyExc_NotImplementedError,
3693 "wx.GraphicsPath is not available on this platform.");
3694 }
3695 virtual ~wxGraphicsPath() {}
3696
3697 void MoveToPoint( wxDouble, wxDouble ) {}
3698 void MoveToPoint( const wxPoint2DDouble& ) {}
3699 void AddLineToPoint( wxDouble, wxDouble ) {}
3700 void AddLineToPoint( const wxPoint2DDouble& ) {}
3701 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3702 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3703 void AddPath( const wxGraphicsPath& ) {}
3704 void CloseSubpath() {}
3705 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3706 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
3707 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3708 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3709
3710 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3711 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3712 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3713 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3714
3715 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3716 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3717 void * GetNativePath() const { return NULL; }
3718 void UnGetNativePath(void *) const {}
3719 void Transform( const wxGraphicsMatrix& ) {}
3720 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3721 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
3722
3723 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3724 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
3725 };
3726 wxGraphicsPath wxNullGraphicsPath;
3727
3728
3729 class wxGraphicsMatrix : public wxGraphicsObject
3730 {
3731 public :
3732 wxGraphicsMatrix() { }
3733 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3734 PyErr_SetString(PyExc_NotImplementedError,
3735 "wx.GraphicsMatrix is not available on this platform.");
3736 }
3737 virtual ~wxGraphicsMatrix() {}
3738 virtual void Concat( const wxGraphicsMatrix & ) {}
3739 virtual void Copy( const wxGraphicsMatrix & ) {}
3740 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3741 wxDouble , wxDouble ) {}
3742 virtual void Invert() {}
3743 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3744 virtual bool IsIdentity() const { return false; }
3745 virtual void Translate( wxDouble , wxDouble ) {}
3746 virtual void Scale( wxDouble , wxDouble ) {}
3747 virtual void Rotate( wxDouble ) {}
3748 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3749 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
3750 virtual void * GetNativeMatrix() const { return NULL; }
3751 };
3752 wxGraphicsMatrix wxNullGraphicsMatrix;
3753
3754
3755 class wxGraphicsContext : public wxGraphicsObject
3756 {
3757 public:
3758
3759 wxGraphicsContext(wxGraphicsRenderer* ) {
3760 PyErr_SetString(PyExc_NotImplementedError,
3761 "wx.GraphicsContext is not available on this platform.");
3762 }
3763
3764 virtual ~wxGraphicsContext() {}
3765
3766 static wxGraphicsContext* Create() {
3767 PyErr_SetString(PyExc_NotImplementedError,
3768 "wx.GraphicsContext is not available on this platform.");
3769 return NULL;
3770 }
3771 static wxGraphicsContext* Create( const wxWindowDC& ) {
3772 PyErr_SetString(PyExc_NotImplementedError,
3773 "wx.GraphicsContext is not available on this platform.");
3774 return NULL;
3775 }
3776
3777 static wxGraphicsContext* CreateFromNative( void * ) {
3778 PyErr_SetString(PyExc_NotImplementedError,
3779 "wx.GraphicsContext is not available on this platform.");
3780 return NULL;
3781 }
3782
3783 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3784 PyErr_SetString(PyExc_NotImplementedError,
3785 "wx.GraphicsContext is not available on this platform.");
3786 return NULL;
3787 }
3788
3789 static wxGraphicsContext* Create( wxWindow* ) {
3790 PyErr_SetString(PyExc_NotImplementedError,
3791 "wx.GraphicsContext is not available on this platform.");
3792 return NULL;
3793 }
3794
3795 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3796
3797 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3798
3799 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3800
3801 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3802 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3803
3804 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3805 wxDouble xc, wxDouble yc, wxDouble radius,
3806 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
3807
3808 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
3809
3810 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3811 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
3812
3813 virtual void PushState() {}
3814 virtual void PopState() {}
3815 virtual void Clip( const wxRegion & ) {}
3816 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3817 virtual void ResetClip() {}
3818 virtual void * GetNativeContext() { return NULL; }
3819 virtual void Translate( wxDouble , wxDouble ) {}
3820 virtual void Scale( wxDouble , wxDouble ) {}
3821 virtual void Rotate( wxDouble ) {}
3822 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3823 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3824 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
3825
3826 virtual void SetPen( const wxGraphicsPen& ) {}
3827 void SetPen( const wxPen& ) {}
3828
3829 virtual void SetBrush( const wxGraphicsBrush& ) {}
3830 void SetBrush( const wxBrush& ) {}
3831
3832 virtual void SetFont( const wxGraphicsFont& ) {}
3833 void SetFont( const wxFont&, const wxColour& ) {}
3834
3835 virtual void StrokePath( const wxGraphicsPath & ) {}
3836 virtual void FillPath( const wxGraphicsPath &, int ) {}
3837 virtual void DrawPath( const wxGraphicsPath &, int ) {}
3838
3839 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3840 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3841 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3842 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
3843 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3844 wxDouble *, wxDouble * ) const {}
3845 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3846
3847 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3848 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3849
3850 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3851 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3852 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3853 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3854 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3855 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3856 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3857 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3858 virtual bool ShouldOffset() const { return false; }
3859 };
3860
3861
3862 class wxGraphicsRenderer : public wxObject
3863 {
3864 public :
3865 wxGraphicsRenderer() {
3866 PyErr_SetString(PyExc_NotImplementedError,
3867 "wx.GraphicsRenderer is not available on this platform.");
3868 }
3869
3870 virtual ~wxGraphicsRenderer() {}
3871
3872 static wxGraphicsRenderer* GetDefaultRenderer() {
3873 PyErr_SetString(PyExc_NotImplementedError,
3874 "wx.GraphicsRenderer is not available on this platform.");
3875 return NULL;
3876 }
3877
3878 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3879 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3880 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3881 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3882 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
3883
3884 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3885
3886 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3887 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
3888
3889 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3890 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3891 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3892 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3893 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3894 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3895 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
3896 };
3897
3898
3899
3900 class wxGCDC: public wxWindowDC
3901 {
3902 public:
3903 wxGCDC(const wxWindowDC&) {
3904 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3905 PyErr_SetString(PyExc_NotImplementedError,
3906 "wxGCDC is not available on this platform.");
3907 wxPyEndBlockThreads(blocked);
3908 }
3909
3910 wxGCDC(const wxWindow*) {
3911 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3912 PyErr_SetString(PyExc_NotImplementedError,
3913 "wxGCDC is not available on this platform.");
3914 wxPyEndBlockThreads(blocked);
3915 }
3916
3917 wxGCDC() {
3918 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3919 PyErr_SetString(PyExc_NotImplementedError,
3920 "wxGCDC is not available on this platform.");
3921 wxPyEndBlockThreads(blocked);
3922 }
3923
3924 virtual ~wxGCDC() {}
3925
3926 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3927 void SetGraphicsContext( wxGraphicsContext* ) {}
3928 };
3929
3930 #endif
3931
3932 SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3933 if ( !backgroundBrush.IsNull() )
3934 self->DrawText(str, x, y, backgroundBrush);
3935 else
3936 self->DrawText(str, x, y);
3937 }
3938 SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3939 if ( !backgroundBrush.IsNull() )
3940 self->DrawText(str, x, y, angle, backgroundBrush);
3941 else
3942 self->DrawText(str, x, y, angle);
3943 }
3944 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3945 wxDouble width = 0.0,
3946 height = 0.0;
3947 self->GetTextExtent(text, &width, &height, NULL, NULL);
3948 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3949 PyObject* rv = PyTuple_New(2);
3950 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3951 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3952 return rv;
3953 }
3954 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3955 wxArrayDouble widths;
3956 self->GetPartialTextExtents(text, widths);
3957 return widths;
3958 }
3959 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3960 size_t c1, c2, count;
3961 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3962 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3963
3964 if ( beginP != NULL && endP != NULL )
3965 {
3966 count = wxMin(c1, c2);
3967 self->StrokeLines(count, beginP, endP);
3968 }
3969 delete [] beginP;
3970 delete [] endP;
3971 }
3972
3973 #include "wx/dcgraph.h"
3974
3975
3976 #include <wx/overlay.h>
3977
3978
3979
3980 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3981 self->AddColour(name, wxColour(red, green, blue));
3982 }
3983
3984 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3985 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3986 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3987 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3988
3989
3990 #include <wx/effects.h>
3991
3992
3993 #include "wx/renderer.h"
3994
3995
3996 SWIGINTERNINLINE PyObject*
3997 SWIG_From_bool (bool value)
3998 {
3999 return PyBool_FromLong(value ? 1 : 0);
4000 }
4001
4002
4003 #include "wx/wxPython/pseudodc.h"
4004
4005 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
4006 wxRect rect;
4007 self->GetIdBounds(id, rect);
4008 return rect;
4009 }
4010 #ifdef __cplusplus
4011 extern "C" {
4012 #endif
4013 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4014 PyObject *resultobj = 0;
4015 wxGDIObject *result = 0 ;
4016
4017 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4018 {
4019 if (!wxPyCheckForApp()) SWIG_fail;
4020 PyThreadState* __tstate = wxPyBeginAllowThreads();
4021 result = (wxGDIObject *)new wxGDIObject();
4022 wxPyEndAllowThreads(__tstate);
4023 if (PyErr_Occurred()) SWIG_fail;
4024 }
4025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4026 return resultobj;
4027 fail:
4028 return NULL;
4029 }
4030
4031
4032 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4033 PyObject *resultobj = 0;
4034 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4035 void *argp1 = 0 ;
4036 int res1 = 0 ;
4037 PyObject *swig_obj[1] ;
4038
4039 if (!args) SWIG_fail;
4040 swig_obj[0] = args;
4041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4042 if (!SWIG_IsOK(res1)) {
4043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4044 }
4045 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4046 {
4047 PyThreadState* __tstate = wxPyBeginAllowThreads();
4048 delete arg1;
4049
4050 wxPyEndAllowThreads(__tstate);
4051 if (PyErr_Occurred()) SWIG_fail;
4052 }
4053 resultobj = SWIG_Py_Void();
4054 return resultobj;
4055 fail:
4056 return NULL;
4057 }
4058
4059
4060 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4061 PyObject *resultobj = 0;
4062 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4063 bool result;
4064 void *argp1 = 0 ;
4065 int res1 = 0 ;
4066 PyObject *swig_obj[1] ;
4067
4068 if (!args) SWIG_fail;
4069 swig_obj[0] = args;
4070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4071 if (!SWIG_IsOK(res1)) {
4072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4073 }
4074 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4075 {
4076 PyThreadState* __tstate = wxPyBeginAllowThreads();
4077 result = (bool)(arg1)->IsNull();
4078 wxPyEndAllowThreads(__tstate);
4079 if (PyErr_Occurred()) SWIG_fail;
4080 }
4081 {
4082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4083 }
4084 return resultobj;
4085 fail:
4086 return NULL;
4087 }
4088
4089
4090 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4091 PyObject *obj;
4092 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4093 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4094 return SWIG_Py_Void();
4095 }
4096
4097 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4098 return SWIG_Python_InitShadowInstance(args);
4099 }
4100
4101 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4102 PyObject *resultobj = 0;
4103 byte arg1 = (byte) 0 ;
4104 byte arg2 = (byte) 0 ;
4105 byte arg3 = (byte) 0 ;
4106 byte arg4 = (byte) wxALPHA_OPAQUE ;
4107 wxColour *result = 0 ;
4108 unsigned char val1 ;
4109 int ecode1 = 0 ;
4110 unsigned char val2 ;
4111 int ecode2 = 0 ;
4112 unsigned char val3 ;
4113 int ecode3 = 0 ;
4114 unsigned char val4 ;
4115 int ecode4 = 0 ;
4116 PyObject * obj0 = 0 ;
4117 PyObject * obj1 = 0 ;
4118 PyObject * obj2 = 0 ;
4119 PyObject * obj3 = 0 ;
4120 char * kwnames[] = {
4121 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4122 };
4123
4124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4125 if (obj0) {
4126 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4127 if (!SWIG_IsOK(ecode1)) {
4128 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4129 }
4130 arg1 = static_cast< byte >(val1);
4131 }
4132 if (obj1) {
4133 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4134 if (!SWIG_IsOK(ecode2)) {
4135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4136 }
4137 arg2 = static_cast< byte >(val2);
4138 }
4139 if (obj2) {
4140 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4141 if (!SWIG_IsOK(ecode3)) {
4142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4143 }
4144 arg3 = static_cast< byte >(val3);
4145 }
4146 if (obj3) {
4147 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4148 if (!SWIG_IsOK(ecode4)) {
4149 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4150 }
4151 arg4 = static_cast< byte >(val4);
4152 }
4153 {
4154 PyThreadState* __tstate = wxPyBeginAllowThreads();
4155 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4156 wxPyEndAllowThreads(__tstate);
4157 if (PyErr_Occurred()) SWIG_fail;
4158 }
4159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4160 return resultobj;
4161 fail:
4162 return NULL;
4163 }
4164
4165
4166 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4167 PyObject *resultobj = 0;
4168 wxString *arg1 = 0 ;
4169 wxColour *result = 0 ;
4170 bool temp1 = false ;
4171 PyObject * obj0 = 0 ;
4172 char * kwnames[] = {
4173 (char *) "colorName", NULL
4174 };
4175
4176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4177 {
4178 arg1 = wxString_in_helper(obj0);
4179 if (arg1 == NULL) SWIG_fail;
4180 temp1 = true;
4181 }
4182 {
4183 if (!wxPyCheckForApp()) SWIG_fail;
4184 PyThreadState* __tstate = wxPyBeginAllowThreads();
4185 result = (wxColour *)new wxColour((wxString const &)*arg1);
4186 wxPyEndAllowThreads(__tstate);
4187 if (PyErr_Occurred()) SWIG_fail;
4188 }
4189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4190 {
4191 if (temp1)
4192 delete arg1;
4193 }
4194 return resultobj;
4195 fail:
4196 {
4197 if (temp1)
4198 delete arg1;
4199 }
4200 return NULL;
4201 }
4202
4203
4204 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4205 PyObject *resultobj = 0;
4206 unsigned long arg1 ;
4207 wxColour *result = 0 ;
4208 unsigned long val1 ;
4209 int ecode1 = 0 ;
4210 PyObject * obj0 = 0 ;
4211 char * kwnames[] = {
4212 (char *) "colRGB", NULL
4213 };
4214
4215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4216 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4217 if (!SWIG_IsOK(ecode1)) {
4218 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4219 }
4220 arg1 = static_cast< unsigned long >(val1);
4221 {
4222 PyThreadState* __tstate = wxPyBeginAllowThreads();
4223 result = (wxColour *)new wxColour(arg1);
4224 wxPyEndAllowThreads(__tstate);
4225 if (PyErr_Occurred()) SWIG_fail;
4226 }
4227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4228 return resultobj;
4229 fail:
4230 return NULL;
4231 }
4232
4233
4234 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4235 PyObject *resultobj = 0;
4236 wxColour *arg1 = (wxColour *) 0 ;
4237 void *argp1 = 0 ;
4238 int res1 = 0 ;
4239 PyObject *swig_obj[1] ;
4240
4241 if (!args) SWIG_fail;
4242 swig_obj[0] = args;
4243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4244 if (!SWIG_IsOK(res1)) {
4245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4246 }
4247 arg1 = reinterpret_cast< wxColour * >(argp1);
4248 {
4249 PyThreadState* __tstate = wxPyBeginAllowThreads();
4250 delete arg1;
4251
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 resultobj = SWIG_Py_Void();
4256 return resultobj;
4257 fail:
4258 return NULL;
4259 }
4260
4261
4262 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4263 PyObject *resultobj = 0;
4264 wxColour *arg1 = (wxColour *) 0 ;
4265 byte result;
4266 void *argp1 = 0 ;
4267 int res1 = 0 ;
4268 PyObject *swig_obj[1] ;
4269
4270 if (!args) SWIG_fail;
4271 swig_obj[0] = args;
4272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4273 if (!SWIG_IsOK(res1)) {
4274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4275 }
4276 arg1 = reinterpret_cast< wxColour * >(argp1);
4277 {
4278 PyThreadState* __tstate = wxPyBeginAllowThreads();
4279 result = (byte)(arg1)->Red();
4280 wxPyEndAllowThreads(__tstate);
4281 if (PyErr_Occurred()) SWIG_fail;
4282 }
4283 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4284 return resultobj;
4285 fail:
4286 return NULL;
4287 }
4288
4289
4290 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4291 PyObject *resultobj = 0;
4292 wxColour *arg1 = (wxColour *) 0 ;
4293 byte result;
4294 void *argp1 = 0 ;
4295 int res1 = 0 ;
4296 PyObject *swig_obj[1] ;
4297
4298 if (!args) SWIG_fail;
4299 swig_obj[0] = args;
4300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4301 if (!SWIG_IsOK(res1)) {
4302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4303 }
4304 arg1 = reinterpret_cast< wxColour * >(argp1);
4305 {
4306 PyThreadState* __tstate = wxPyBeginAllowThreads();
4307 result = (byte)(arg1)->Green();
4308 wxPyEndAllowThreads(__tstate);
4309 if (PyErr_Occurred()) SWIG_fail;
4310 }
4311 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4312 return resultobj;
4313 fail:
4314 return NULL;
4315 }
4316
4317
4318 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4319 PyObject *resultobj = 0;
4320 wxColour *arg1 = (wxColour *) 0 ;
4321 byte result;
4322 void *argp1 = 0 ;
4323 int res1 = 0 ;
4324 PyObject *swig_obj[1] ;
4325
4326 if (!args) SWIG_fail;
4327 swig_obj[0] = args;
4328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4329 if (!SWIG_IsOK(res1)) {
4330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4331 }
4332 arg1 = reinterpret_cast< wxColour * >(argp1);
4333 {
4334 PyThreadState* __tstate = wxPyBeginAllowThreads();
4335 result = (byte)(arg1)->Blue();
4336 wxPyEndAllowThreads(__tstate);
4337 if (PyErr_Occurred()) SWIG_fail;
4338 }
4339 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4340 return resultobj;
4341 fail:
4342 return NULL;
4343 }
4344
4345
4346 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4347 PyObject *resultobj = 0;
4348 wxColour *arg1 = (wxColour *) 0 ;
4349 byte result;
4350 void *argp1 = 0 ;
4351 int res1 = 0 ;
4352 PyObject *swig_obj[1] ;
4353
4354 if (!args) SWIG_fail;
4355 swig_obj[0] = args;
4356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4357 if (!SWIG_IsOK(res1)) {
4358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4359 }
4360 arg1 = reinterpret_cast< wxColour * >(argp1);
4361 {
4362 PyThreadState* __tstate = wxPyBeginAllowThreads();
4363 result = (byte)(arg1)->Alpha();
4364 wxPyEndAllowThreads(__tstate);
4365 if (PyErr_Occurred()) SWIG_fail;
4366 }
4367 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4368 return resultobj;
4369 fail:
4370 return NULL;
4371 }
4372
4373
4374 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4375 PyObject *resultobj = 0;
4376 wxColour *arg1 = (wxColour *) 0 ;
4377 bool result;
4378 void *argp1 = 0 ;
4379 int res1 = 0 ;
4380 PyObject *swig_obj[1] ;
4381
4382 if (!args) SWIG_fail;
4383 swig_obj[0] = args;
4384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4385 if (!SWIG_IsOK(res1)) {
4386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4387 }
4388 arg1 = reinterpret_cast< wxColour * >(argp1);
4389 {
4390 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391 result = (bool)(arg1)->IsOk();
4392 wxPyEndAllowThreads(__tstate);
4393 if (PyErr_Occurred()) SWIG_fail;
4394 }
4395 {
4396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4397 }
4398 return resultobj;
4399 fail:
4400 return NULL;
4401 }
4402
4403
4404 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4405 PyObject *resultobj = 0;
4406 wxColour *arg1 = (wxColour *) 0 ;
4407 byte arg2 ;
4408 byte arg3 ;
4409 byte arg4 ;
4410 byte arg5 = (byte) wxALPHA_OPAQUE ;
4411 void *argp1 = 0 ;
4412 int res1 = 0 ;
4413 unsigned char val2 ;
4414 int ecode2 = 0 ;
4415 unsigned char val3 ;
4416 int ecode3 = 0 ;
4417 unsigned char val4 ;
4418 int ecode4 = 0 ;
4419 unsigned char val5 ;
4420 int ecode5 = 0 ;
4421 PyObject * obj0 = 0 ;
4422 PyObject * obj1 = 0 ;
4423 PyObject * obj2 = 0 ;
4424 PyObject * obj3 = 0 ;
4425 PyObject * obj4 = 0 ;
4426 char * kwnames[] = {
4427 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4428 };
4429
4430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4432 if (!SWIG_IsOK(res1)) {
4433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4434 }
4435 arg1 = reinterpret_cast< wxColour * >(argp1);
4436 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4437 if (!SWIG_IsOK(ecode2)) {
4438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4439 }
4440 arg2 = static_cast< byte >(val2);
4441 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4442 if (!SWIG_IsOK(ecode3)) {
4443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4444 }
4445 arg3 = static_cast< byte >(val3);
4446 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4447 if (!SWIG_IsOK(ecode4)) {
4448 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4449 }
4450 arg4 = static_cast< byte >(val4);
4451 if (obj4) {
4452 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4453 if (!SWIG_IsOK(ecode5)) {
4454 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4455 }
4456 arg5 = static_cast< byte >(val5);
4457 }
4458 {
4459 PyThreadState* __tstate = wxPyBeginAllowThreads();
4460 (arg1)->Set(arg2,arg3,arg4,arg5);
4461 wxPyEndAllowThreads(__tstate);
4462 if (PyErr_Occurred()) SWIG_fail;
4463 }
4464 resultobj = SWIG_Py_Void();
4465 return resultobj;
4466 fail:
4467 return NULL;
4468 }
4469
4470
4471 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4472 PyObject *resultobj = 0;
4473 wxColour *arg1 = (wxColour *) 0 ;
4474 unsigned long arg2 ;
4475 void *argp1 = 0 ;
4476 int res1 = 0 ;
4477 unsigned long val2 ;
4478 int ecode2 = 0 ;
4479 PyObject * obj0 = 0 ;
4480 PyObject * obj1 = 0 ;
4481 char * kwnames[] = {
4482 (char *) "self",(char *) "colRGB", NULL
4483 };
4484
4485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4487 if (!SWIG_IsOK(res1)) {
4488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4489 }
4490 arg1 = reinterpret_cast< wxColour * >(argp1);
4491 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4492 if (!SWIG_IsOK(ecode2)) {
4493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4494 }
4495 arg2 = static_cast< unsigned long >(val2);
4496 {
4497 PyThreadState* __tstate = wxPyBeginAllowThreads();
4498 (arg1)->Set(arg2);
4499 wxPyEndAllowThreads(__tstate);
4500 if (PyErr_Occurred()) SWIG_fail;
4501 }
4502 resultobj = SWIG_Py_Void();
4503 return resultobj;
4504 fail:
4505 return NULL;
4506 }
4507
4508
4509 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4510 PyObject *resultobj = 0;
4511 wxColour *arg1 = (wxColour *) 0 ;
4512 wxString *arg2 = 0 ;
4513 void *argp1 = 0 ;
4514 int res1 = 0 ;
4515 bool temp2 = false ;
4516 PyObject * obj0 = 0 ;
4517 PyObject * obj1 = 0 ;
4518 char * kwnames[] = {
4519 (char *) "self",(char *) "colourName", NULL
4520 };
4521
4522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4524 if (!SWIG_IsOK(res1)) {
4525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4526 }
4527 arg1 = reinterpret_cast< wxColour * >(argp1);
4528 {
4529 arg2 = wxString_in_helper(obj1);
4530 if (arg2 == NULL) SWIG_fail;
4531 temp2 = true;
4532 }
4533 {
4534 PyThreadState* __tstate = wxPyBeginAllowThreads();
4535 (arg1)->Set((wxString const &)*arg2);
4536 wxPyEndAllowThreads(__tstate);
4537 if (PyErr_Occurred()) SWIG_fail;
4538 }
4539 resultobj = SWIG_Py_Void();
4540 {
4541 if (temp2)
4542 delete arg2;
4543 }
4544 return resultobj;
4545 fail:
4546 {
4547 if (temp2)
4548 delete arg2;
4549 }
4550 return NULL;
4551 }
4552
4553
4554 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4555 PyObject *resultobj = 0;
4556 wxColour *arg1 = (wxColour *) 0 ;
4557 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4558 wxString result;
4559 void *argp1 = 0 ;
4560 int res1 = 0 ;
4561 long val2 ;
4562 int ecode2 = 0 ;
4563 PyObject * obj0 = 0 ;
4564 PyObject * obj1 = 0 ;
4565 char * kwnames[] = {
4566 (char *) "self",(char *) "flags", NULL
4567 };
4568
4569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4571 if (!SWIG_IsOK(res1)) {
4572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4573 }
4574 arg1 = reinterpret_cast< wxColour * >(argp1);
4575 if (obj1) {
4576 ecode2 = SWIG_AsVal_long(obj1, &val2);
4577 if (!SWIG_IsOK(ecode2)) {
4578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4579 }
4580 arg2 = static_cast< long >(val2);
4581 }
4582 {
4583 PyThreadState* __tstate = wxPyBeginAllowThreads();
4584 result = ((wxColour const *)arg1)->GetAsString(arg2);
4585 wxPyEndAllowThreads(__tstate);
4586 if (PyErr_Occurred()) SWIG_fail;
4587 }
4588 {
4589 #if wxUSE_UNICODE
4590 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4591 #else
4592 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4593 #endif
4594 }
4595 return resultobj;
4596 fail:
4597 return NULL;
4598 }
4599
4600
4601 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4602 PyObject *resultobj = 0;
4603 wxColour *arg1 = (wxColour *) 0 ;
4604 long result;
4605 void *argp1 = 0 ;
4606 int res1 = 0 ;
4607 PyObject *swig_obj[1] ;
4608
4609 if (!args) SWIG_fail;
4610 swig_obj[0] = args;
4611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4612 if (!SWIG_IsOK(res1)) {
4613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4614 }
4615 arg1 = reinterpret_cast< wxColour * >(argp1);
4616 {
4617 PyThreadState* __tstate = wxPyBeginAllowThreads();
4618 result = (long)((wxColour const *)arg1)->GetPixel();
4619 wxPyEndAllowThreads(__tstate);
4620 if (PyErr_Occurred()) SWIG_fail;
4621 }
4622 resultobj = SWIG_From_long(static_cast< long >(result));
4623 return resultobj;
4624 fail:
4625 return NULL;
4626 }
4627
4628
4629 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4630 PyObject *resultobj = 0;
4631 wxColour *arg1 = (wxColour *) 0 ;
4632 PyObject *arg2 = (PyObject *) 0 ;
4633 bool result;
4634 void *argp1 = 0 ;
4635 int res1 = 0 ;
4636 PyObject * obj0 = 0 ;
4637 PyObject * obj1 = 0 ;
4638 char * kwnames[] = {
4639 (char *) "self",(char *) "other", NULL
4640 };
4641
4642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4644 if (!SWIG_IsOK(res1)) {
4645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4646 }
4647 arg1 = reinterpret_cast< wxColour * >(argp1);
4648 arg2 = obj1;
4649 {
4650 result = (bool)wxColour___eq__(arg1,arg2);
4651 if (PyErr_Occurred()) SWIG_fail;
4652 }
4653 {
4654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4655 }
4656 return resultobj;
4657 fail:
4658 return NULL;
4659 }
4660
4661
4662 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4663 PyObject *resultobj = 0;
4664 wxColour *arg1 = (wxColour *) 0 ;
4665 PyObject *arg2 = (PyObject *) 0 ;
4666 bool result;
4667 void *argp1 = 0 ;
4668 int res1 = 0 ;
4669 PyObject * obj0 = 0 ;
4670 PyObject * obj1 = 0 ;
4671 char * kwnames[] = {
4672 (char *) "self",(char *) "other", NULL
4673 };
4674
4675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4677 if (!SWIG_IsOK(res1)) {
4678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4679 }
4680 arg1 = reinterpret_cast< wxColour * >(argp1);
4681 arg2 = obj1;
4682 {
4683 result = (bool)wxColour___ne__(arg1,arg2);
4684 if (PyErr_Occurred()) SWIG_fail;
4685 }
4686 {
4687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4688 }
4689 return resultobj;
4690 fail:
4691 return NULL;
4692 }
4693
4694
4695 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4696 PyObject *resultobj = 0;
4697 wxColour *arg1 = (wxColour *) 0 ;
4698 bool arg2 = (bool) false ;
4699 PyObject *result = 0 ;
4700 void *argp1 = 0 ;
4701 int res1 = 0 ;
4702 bool val2 ;
4703 int ecode2 = 0 ;
4704 PyObject * obj0 = 0 ;
4705 PyObject * obj1 = 0 ;
4706 char * kwnames[] = {
4707 (char *) "self",(char *) "includeAlpha", NULL
4708 };
4709
4710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4712 if (!SWIG_IsOK(res1)) {
4713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4714 }
4715 arg1 = reinterpret_cast< wxColour * >(argp1);
4716 if (obj1) {
4717 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4718 if (!SWIG_IsOK(ecode2)) {
4719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4720 }
4721 arg2 = static_cast< bool >(val2);
4722 }
4723 {
4724 result = (PyObject *)wxColour_Get(arg1,arg2);
4725 if (PyErr_Occurred()) SWIG_fail;
4726 }
4727 resultobj = result;
4728 return resultobj;
4729 fail:
4730 return NULL;
4731 }
4732
4733
4734 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4735 PyObject *resultobj = 0;
4736 wxColour *arg1 = (wxColour *) 0 ;
4737 unsigned long result;
4738 void *argp1 = 0 ;
4739 int res1 = 0 ;
4740 PyObject *swig_obj[1] ;
4741
4742 if (!args) SWIG_fail;
4743 swig_obj[0] = args;
4744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4745 if (!SWIG_IsOK(res1)) {
4746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4747 }
4748 arg1 = reinterpret_cast< wxColour * >(argp1);
4749 {
4750 result = (unsigned long)wxColour_GetRGB(arg1);
4751 if (PyErr_Occurred()) SWIG_fail;
4752 }
4753 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4754 return resultobj;
4755 fail:
4756 return NULL;
4757 }
4758
4759
4760 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4761 PyObject *obj;
4762 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4763 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4764 return SWIG_Py_Void();
4765 }
4766
4767 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4768 return SWIG_Python_InitShadowInstance(args);
4769 }
4770
4771 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4772 PyObject *resultobj = 0;
4773 int arg1 ;
4774 unsigned char *arg2 = (unsigned char *) 0 ;
4775 unsigned char *arg3 = (unsigned char *) 0 ;
4776 unsigned char *arg4 = (unsigned char *) 0 ;
4777 wxPalette *result = 0 ;
4778 int val1 ;
4779 int ecode1 = 0 ;
4780 void *argp2 = 0 ;
4781 int res2 = 0 ;
4782 void *argp3 = 0 ;
4783 int res3 = 0 ;
4784 void *argp4 = 0 ;
4785 int res4 = 0 ;
4786 PyObject * obj0 = 0 ;
4787 PyObject * obj1 = 0 ;
4788 PyObject * obj2 = 0 ;
4789 PyObject * obj3 = 0 ;
4790 char * kwnames[] = {
4791 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4792 };
4793
4794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4795 ecode1 = SWIG_AsVal_int(obj0, &val1);
4796 if (!SWIG_IsOK(ecode1)) {
4797 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4798 }
4799 arg1 = static_cast< int >(val1);
4800 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4801 if (!SWIG_IsOK(res2)) {
4802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4803 }
4804 arg2 = reinterpret_cast< unsigned char * >(argp2);
4805 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4806 if (!SWIG_IsOK(res3)) {
4807 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4808 }
4809 arg3 = reinterpret_cast< unsigned char * >(argp3);
4810 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4811 if (!SWIG_IsOK(res4)) {
4812 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4813 }
4814 arg4 = reinterpret_cast< unsigned char * >(argp4);
4815 {
4816 if (!wxPyCheckForApp()) SWIG_fail;
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4819 wxPyEndAllowThreads(__tstate);
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4823 return resultobj;
4824 fail:
4825 return NULL;
4826 }
4827
4828
4829 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4830 PyObject *resultobj = 0;
4831 wxPalette *arg1 = (wxPalette *) 0 ;
4832 void *argp1 = 0 ;
4833 int res1 = 0 ;
4834 PyObject *swig_obj[1] ;
4835
4836 if (!args) SWIG_fail;
4837 swig_obj[0] = args;
4838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4839 if (!SWIG_IsOK(res1)) {
4840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4841 }
4842 arg1 = reinterpret_cast< wxPalette * >(argp1);
4843 {
4844 PyThreadState* __tstate = wxPyBeginAllowThreads();
4845 delete arg1;
4846
4847 wxPyEndAllowThreads(__tstate);
4848 if (PyErr_Occurred()) SWIG_fail;
4849 }
4850 resultobj = SWIG_Py_Void();
4851 return resultobj;
4852 fail:
4853 return NULL;
4854 }
4855
4856
4857 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4858 PyObject *resultobj = 0;
4859 wxPalette *arg1 = (wxPalette *) 0 ;
4860 byte arg2 ;
4861 byte arg3 ;
4862 byte arg4 ;
4863 int result;
4864 void *argp1 = 0 ;
4865 int res1 = 0 ;
4866 unsigned char val2 ;
4867 int ecode2 = 0 ;
4868 unsigned char val3 ;
4869 int ecode3 = 0 ;
4870 unsigned char val4 ;
4871 int ecode4 = 0 ;
4872 PyObject * obj0 = 0 ;
4873 PyObject * obj1 = 0 ;
4874 PyObject * obj2 = 0 ;
4875 PyObject * obj3 = 0 ;
4876 char * kwnames[] = {
4877 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4878 };
4879
4880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4882 if (!SWIG_IsOK(res1)) {
4883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4884 }
4885 arg1 = reinterpret_cast< wxPalette * >(argp1);
4886 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4887 if (!SWIG_IsOK(ecode2)) {
4888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4889 }
4890 arg2 = static_cast< byte >(val2);
4891 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4892 if (!SWIG_IsOK(ecode3)) {
4893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4894 }
4895 arg3 = static_cast< byte >(val3);
4896 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4897 if (!SWIG_IsOK(ecode4)) {
4898 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4899 }
4900 arg4 = static_cast< byte >(val4);
4901 {
4902 PyThreadState* __tstate = wxPyBeginAllowThreads();
4903 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4904 wxPyEndAllowThreads(__tstate);
4905 if (PyErr_Occurred()) SWIG_fail;
4906 }
4907 resultobj = SWIG_From_int(static_cast< int >(result));
4908 return resultobj;
4909 fail:
4910 return NULL;
4911 }
4912
4913
4914 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4915 PyObject *resultobj = 0;
4916 wxPalette *arg1 = (wxPalette *) 0 ;
4917 int arg2 ;
4918 byte *arg3 = (byte *) 0 ;
4919 byte *arg4 = (byte *) 0 ;
4920 byte *arg5 = (byte *) 0 ;
4921 bool result;
4922 void *argp1 = 0 ;
4923 int res1 = 0 ;
4924 int val2 ;
4925 int ecode2 = 0 ;
4926 byte temp3 ;
4927 int res3 = SWIG_TMPOBJ ;
4928 byte temp4 ;
4929 int res4 = SWIG_TMPOBJ ;
4930 byte temp5 ;
4931 int res5 = SWIG_TMPOBJ ;
4932 PyObject * obj0 = 0 ;
4933 PyObject * obj1 = 0 ;
4934 char * kwnames[] = {
4935 (char *) "self",(char *) "pixel", NULL
4936 };
4937
4938 arg3 = &temp3;
4939 arg4 = &temp4;
4940 arg5 = &temp5;
4941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4943 if (!SWIG_IsOK(res1)) {
4944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4945 }
4946 arg1 = reinterpret_cast< wxPalette * >(argp1);
4947 ecode2 = SWIG_AsVal_int(obj1, &val2);
4948 if (!SWIG_IsOK(ecode2)) {
4949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4950 }
4951 arg2 = static_cast< int >(val2);
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 }
4958 {
4959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4960 }
4961 if (SWIG_IsTmpObj(res3)) {
4962 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4963 } else {
4964 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4965 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4966 }
4967 if (SWIG_IsTmpObj(res4)) {
4968 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4969 } else {
4970 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4972 }
4973 if (SWIG_IsTmpObj(res5)) {
4974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4975 } else {
4976 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4977 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4978 }
4979 return resultobj;
4980 fail:
4981 return NULL;
4982 }
4983
4984
4985 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4986 PyObject *resultobj = 0;
4987 wxPalette *arg1 = (wxPalette *) 0 ;
4988 int result;
4989 void *argp1 = 0 ;
4990 int res1 = 0 ;
4991 PyObject *swig_obj[1] ;
4992
4993 if (!args) SWIG_fail;
4994 swig_obj[0] = args;
4995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4996 if (!SWIG_IsOK(res1)) {
4997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4998 }
4999 arg1 = reinterpret_cast< wxPalette * >(argp1);
5000 {
5001 PyThreadState* __tstate = wxPyBeginAllowThreads();
5002 result = (int)((wxPalette const *)arg1)->GetColoursCount();
5003 wxPyEndAllowThreads(__tstate);
5004 if (PyErr_Occurred()) SWIG_fail;
5005 }
5006 resultobj = SWIG_From_int(static_cast< int >(result));
5007 return resultobj;
5008 fail:
5009 return NULL;
5010 }
5011
5012
5013 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5014 PyObject *resultobj = 0;
5015 wxPalette *arg1 = (wxPalette *) 0 ;
5016 bool result;
5017 void *argp1 = 0 ;
5018 int res1 = 0 ;
5019 PyObject *swig_obj[1] ;
5020
5021 if (!args) SWIG_fail;
5022 swig_obj[0] = args;
5023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5024 if (!SWIG_IsOK(res1)) {
5025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
5026 }
5027 arg1 = reinterpret_cast< wxPalette * >(argp1);
5028 {
5029 PyThreadState* __tstate = wxPyBeginAllowThreads();
5030 result = (bool)(arg1)->IsOk();
5031 wxPyEndAllowThreads(__tstate);
5032 if (PyErr_Occurred()) SWIG_fail;
5033 }
5034 {
5035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5036 }
5037 return resultobj;
5038 fail:
5039 return NULL;
5040 }
5041
5042
5043 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5044 PyObject *obj;
5045 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5046 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5047 return SWIG_Py_Void();
5048 }
5049
5050 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5051 return SWIG_Python_InitShadowInstance(args);
5052 }
5053
5054 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5055 PyObject *resultobj = 0;
5056 wxColour *arg1 = 0 ;
5057 int arg2 = (int) 1 ;
5058 int arg3 = (int) wxSOLID ;
5059 wxPen *result = 0 ;
5060 wxColour temp1 ;
5061 int val2 ;
5062 int ecode2 = 0 ;
5063 int val3 ;
5064 int ecode3 = 0 ;
5065 PyObject * obj0 = 0 ;
5066 PyObject * obj1 = 0 ;
5067 PyObject * obj2 = 0 ;
5068 char * kwnames[] = {
5069 (char *) "colour",(char *) "width",(char *) "style", NULL
5070 };
5071
5072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5073 {
5074 arg1 = &temp1;
5075 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5076 }
5077 if (obj1) {
5078 ecode2 = SWIG_AsVal_int(obj1, &val2);
5079 if (!SWIG_IsOK(ecode2)) {
5080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5081 }
5082 arg2 = static_cast< int >(val2);
5083 }
5084 if (obj2) {
5085 ecode3 = SWIG_AsVal_int(obj2, &val3);
5086 if (!SWIG_IsOK(ecode3)) {
5087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5088 }
5089 arg3 = static_cast< int >(val3);
5090 }
5091 {
5092 if (!wxPyCheckForApp()) SWIG_fail;
5093 PyThreadState* __tstate = wxPyBeginAllowThreads();
5094 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5095 wxPyEndAllowThreads(__tstate);
5096 if (PyErr_Occurred()) SWIG_fail;
5097 }
5098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5099 return resultobj;
5100 fail:
5101 return NULL;
5102 }
5103
5104
5105 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5106 PyObject *resultobj = 0;
5107 wxPen *arg1 = (wxPen *) 0 ;
5108 void *argp1 = 0 ;
5109 int res1 = 0 ;
5110 PyObject *swig_obj[1] ;
5111
5112 if (!args) SWIG_fail;
5113 swig_obj[0] = args;
5114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5115 if (!SWIG_IsOK(res1)) {
5116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5117 }
5118 arg1 = reinterpret_cast< wxPen * >(argp1);
5119 {
5120 PyThreadState* __tstate = wxPyBeginAllowThreads();
5121 delete arg1;
5122
5123 wxPyEndAllowThreads(__tstate);
5124 if (PyErr_Occurred()) SWIG_fail;
5125 }
5126 resultobj = SWIG_Py_Void();
5127 return resultobj;
5128 fail:
5129 return NULL;
5130 }
5131
5132
5133 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5134 PyObject *resultobj = 0;
5135 wxPen *arg1 = (wxPen *) 0 ;
5136 int result;
5137 void *argp1 = 0 ;
5138 int res1 = 0 ;
5139 PyObject *swig_obj[1] ;
5140
5141 if (!args) SWIG_fail;
5142 swig_obj[0] = args;
5143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5144 if (!SWIG_IsOK(res1)) {
5145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5146 }
5147 arg1 = reinterpret_cast< wxPen * >(argp1);
5148 {
5149 PyThreadState* __tstate = wxPyBeginAllowThreads();
5150 result = (int)(arg1)->GetCap();
5151 wxPyEndAllowThreads(__tstate);
5152 if (PyErr_Occurred()) SWIG_fail;
5153 }
5154 resultobj = SWIG_From_int(static_cast< int >(result));
5155 return resultobj;
5156 fail:
5157 return NULL;
5158 }
5159
5160
5161 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5162 PyObject *resultobj = 0;
5163 wxPen *arg1 = (wxPen *) 0 ;
5164 wxColour result;
5165 void *argp1 = 0 ;
5166 int res1 = 0 ;
5167 PyObject *swig_obj[1] ;
5168
5169 if (!args) SWIG_fail;
5170 swig_obj[0] = args;
5171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5172 if (!SWIG_IsOK(res1)) {
5173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5174 }
5175 arg1 = reinterpret_cast< wxPen * >(argp1);
5176 {
5177 PyThreadState* __tstate = wxPyBeginAllowThreads();
5178 result = (arg1)->GetColour();
5179 wxPyEndAllowThreads(__tstate);
5180 if (PyErr_Occurred()) SWIG_fail;
5181 }
5182 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5183 return resultobj;
5184 fail:
5185 return NULL;
5186 }
5187
5188
5189 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5190 PyObject *resultobj = 0;
5191 wxPen *arg1 = (wxPen *) 0 ;
5192 int result;
5193 void *argp1 = 0 ;
5194 int res1 = 0 ;
5195 PyObject *swig_obj[1] ;
5196
5197 if (!args) SWIG_fail;
5198 swig_obj[0] = args;
5199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5200 if (!SWIG_IsOK(res1)) {
5201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5202 }
5203 arg1 = reinterpret_cast< wxPen * >(argp1);
5204 {
5205 PyThreadState* __tstate = wxPyBeginAllowThreads();
5206 result = (int)(arg1)->GetJoin();
5207 wxPyEndAllowThreads(__tstate);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 }
5210 resultobj = SWIG_From_int(static_cast< int >(result));
5211 return resultobj;
5212 fail:
5213 return NULL;
5214 }
5215
5216
5217 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5218 PyObject *resultobj = 0;
5219 wxPen *arg1 = (wxPen *) 0 ;
5220 int result;
5221 void *argp1 = 0 ;
5222 int res1 = 0 ;
5223 PyObject *swig_obj[1] ;
5224
5225 if (!args) SWIG_fail;
5226 swig_obj[0] = args;
5227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5228 if (!SWIG_IsOK(res1)) {
5229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5230 }
5231 arg1 = reinterpret_cast< wxPen * >(argp1);
5232 {
5233 PyThreadState* __tstate = wxPyBeginAllowThreads();
5234 result = (int)(arg1)->GetStyle();
5235 wxPyEndAllowThreads(__tstate);
5236 if (PyErr_Occurred()) SWIG_fail;
5237 }
5238 resultobj = SWIG_From_int(static_cast< int >(result));
5239 return resultobj;
5240 fail:
5241 return NULL;
5242 }
5243
5244
5245 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5246 PyObject *resultobj = 0;
5247 wxPen *arg1 = (wxPen *) 0 ;
5248 int result;
5249 void *argp1 = 0 ;
5250 int res1 = 0 ;
5251 PyObject *swig_obj[1] ;
5252
5253 if (!args) SWIG_fail;
5254 swig_obj[0] = args;
5255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5256 if (!SWIG_IsOK(res1)) {
5257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5258 }
5259 arg1 = reinterpret_cast< wxPen * >(argp1);
5260 {
5261 PyThreadState* __tstate = wxPyBeginAllowThreads();
5262 result = (int)(arg1)->GetWidth();
5263 wxPyEndAllowThreads(__tstate);
5264 if (PyErr_Occurred()) SWIG_fail;
5265 }
5266 resultobj = SWIG_From_int(static_cast< int >(result));
5267 return resultobj;
5268 fail:
5269 return NULL;
5270 }
5271
5272
5273 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5274 PyObject *resultobj = 0;
5275 wxPen *arg1 = (wxPen *) 0 ;
5276 bool result;
5277 void *argp1 = 0 ;
5278 int res1 = 0 ;
5279 PyObject *swig_obj[1] ;
5280
5281 if (!args) SWIG_fail;
5282 swig_obj[0] = args;
5283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5284 if (!SWIG_IsOK(res1)) {
5285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5286 }
5287 arg1 = reinterpret_cast< wxPen * >(argp1);
5288 {
5289 PyThreadState* __tstate = wxPyBeginAllowThreads();
5290 result = (bool)(arg1)->IsOk();
5291 wxPyEndAllowThreads(__tstate);
5292 if (PyErr_Occurred()) SWIG_fail;
5293 }
5294 {
5295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5296 }
5297 return resultobj;
5298 fail:
5299 return NULL;
5300 }
5301
5302
5303 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5304 PyObject *resultobj = 0;
5305 wxPen *arg1 = (wxPen *) 0 ;
5306 int arg2 ;
5307 void *argp1 = 0 ;
5308 int res1 = 0 ;
5309 int val2 ;
5310 int ecode2 = 0 ;
5311 PyObject * obj0 = 0 ;
5312 PyObject * obj1 = 0 ;
5313 char * kwnames[] = {
5314 (char *) "self",(char *) "cap_style", NULL
5315 };
5316
5317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5319 if (!SWIG_IsOK(res1)) {
5320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5321 }
5322 arg1 = reinterpret_cast< wxPen * >(argp1);
5323 ecode2 = SWIG_AsVal_int(obj1, &val2);
5324 if (!SWIG_IsOK(ecode2)) {
5325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5326 }
5327 arg2 = static_cast< int >(val2);
5328 {
5329 PyThreadState* __tstate = wxPyBeginAllowThreads();
5330 (arg1)->SetCap(arg2);
5331 wxPyEndAllowThreads(__tstate);
5332 if (PyErr_Occurred()) SWIG_fail;
5333 }
5334 resultobj = SWIG_Py_Void();
5335 return resultobj;
5336 fail:
5337 return NULL;
5338 }
5339
5340
5341 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5342 PyObject *resultobj = 0;
5343 wxPen *arg1 = (wxPen *) 0 ;
5344 wxColour *arg2 = 0 ;
5345 void *argp1 = 0 ;
5346 int res1 = 0 ;
5347 wxColour temp2 ;
5348 PyObject * obj0 = 0 ;
5349 PyObject * obj1 = 0 ;
5350 char * kwnames[] = {
5351 (char *) "self",(char *) "colour", NULL
5352 };
5353
5354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5356 if (!SWIG_IsOK(res1)) {
5357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5358 }
5359 arg1 = reinterpret_cast< wxPen * >(argp1);
5360 {
5361 arg2 = &temp2;
5362 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5363 }
5364 {
5365 PyThreadState* __tstate = wxPyBeginAllowThreads();
5366 (arg1)->SetColour(*arg2);
5367 wxPyEndAllowThreads(__tstate);
5368 if (PyErr_Occurred()) SWIG_fail;
5369 }
5370 resultobj = SWIG_Py_Void();
5371 return resultobj;
5372 fail:
5373 return NULL;
5374 }
5375
5376
5377 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5378 PyObject *resultobj = 0;
5379 wxPen *arg1 = (wxPen *) 0 ;
5380 int arg2 ;
5381 void *argp1 = 0 ;
5382 int res1 = 0 ;
5383 int val2 ;
5384 int ecode2 = 0 ;
5385 PyObject * obj0 = 0 ;
5386 PyObject * obj1 = 0 ;
5387 char * kwnames[] = {
5388 (char *) "self",(char *) "join_style", NULL
5389 };
5390
5391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5393 if (!SWIG_IsOK(res1)) {
5394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5395 }
5396 arg1 = reinterpret_cast< wxPen * >(argp1);
5397 ecode2 = SWIG_AsVal_int(obj1, &val2);
5398 if (!SWIG_IsOK(ecode2)) {
5399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5400 }
5401 arg2 = static_cast< int >(val2);
5402 {
5403 PyThreadState* __tstate = wxPyBeginAllowThreads();
5404 (arg1)->SetJoin(arg2);
5405 wxPyEndAllowThreads(__tstate);
5406 if (PyErr_Occurred()) SWIG_fail;
5407 }
5408 resultobj = SWIG_Py_Void();
5409 return resultobj;
5410 fail:
5411 return NULL;
5412 }
5413
5414
5415 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5416 PyObject *resultobj = 0;
5417 wxPen *arg1 = (wxPen *) 0 ;
5418 int arg2 ;
5419 void *argp1 = 0 ;
5420 int res1 = 0 ;
5421 int val2 ;
5422 int ecode2 = 0 ;
5423 PyObject * obj0 = 0 ;
5424 PyObject * obj1 = 0 ;
5425 char * kwnames[] = {
5426 (char *) "self",(char *) "style", NULL
5427 };
5428
5429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5431 if (!SWIG_IsOK(res1)) {
5432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5433 }
5434 arg1 = reinterpret_cast< wxPen * >(argp1);
5435 ecode2 = SWIG_AsVal_int(obj1, &val2);
5436 if (!SWIG_IsOK(ecode2)) {
5437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5438 }
5439 arg2 = static_cast< int >(val2);
5440 {
5441 PyThreadState* __tstate = wxPyBeginAllowThreads();
5442 (arg1)->SetStyle(arg2);
5443 wxPyEndAllowThreads(__tstate);
5444 if (PyErr_Occurred()) SWIG_fail;
5445 }
5446 resultobj = SWIG_Py_Void();
5447 return resultobj;
5448 fail:
5449 return NULL;
5450 }
5451
5452
5453 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5454 PyObject *resultobj = 0;
5455 wxPen *arg1 = (wxPen *) 0 ;
5456 int arg2 ;
5457 void *argp1 = 0 ;
5458 int res1 = 0 ;
5459 int val2 ;
5460 int ecode2 = 0 ;
5461 PyObject * obj0 = 0 ;
5462 PyObject * obj1 = 0 ;
5463 char * kwnames[] = {
5464 (char *) "self",(char *) "width", NULL
5465 };
5466
5467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5469 if (!SWIG_IsOK(res1)) {
5470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5471 }
5472 arg1 = reinterpret_cast< wxPen * >(argp1);
5473 ecode2 = SWIG_AsVal_int(obj1, &val2);
5474 if (!SWIG_IsOK(ecode2)) {
5475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5476 }
5477 arg2 = static_cast< int >(val2);
5478 {
5479 PyThreadState* __tstate = wxPyBeginAllowThreads();
5480 (arg1)->SetWidth(arg2);
5481 wxPyEndAllowThreads(__tstate);
5482 if (PyErr_Occurred()) SWIG_fail;
5483 }
5484 resultobj = SWIG_Py_Void();
5485 return resultobj;
5486 fail:
5487 return NULL;
5488 }
5489
5490
5491 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5492 PyObject *resultobj = 0;
5493 wxPen *arg1 = (wxPen *) 0 ;
5494 int arg2 ;
5495 wxDash *arg3 = (wxDash *) 0 ;
5496 void *argp1 = 0 ;
5497 int res1 = 0 ;
5498 PyObject * obj0 = 0 ;
5499 PyObject * obj1 = 0 ;
5500 char * kwnames[] = {
5501 (char *) "self",(char *) "dashes", NULL
5502 };
5503
5504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5506 if (!SWIG_IsOK(res1)) {
5507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5508 }
5509 arg1 = reinterpret_cast< wxPen * >(argp1);
5510 {
5511 arg2 = PyList_Size(obj1);
5512 arg3 = (wxDash*)byte_LIST_helper(obj1);
5513 if (arg3 == NULL) SWIG_fail;
5514 }
5515 {
5516 PyThreadState* __tstate = wxPyBeginAllowThreads();
5517 (arg1)->SetDashes(arg2,arg3);
5518 wxPyEndAllowThreads(__tstate);
5519 if (PyErr_Occurred()) SWIG_fail;
5520 }
5521 resultobj = SWIG_Py_Void();
5522 {
5523 if (arg3) delete [] arg3;
5524 }
5525 return resultobj;
5526 fail:
5527 {
5528 if (arg3) delete [] arg3;
5529 }
5530 return NULL;
5531 }
5532
5533
5534 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5535 PyObject *resultobj = 0;
5536 wxPen *arg1 = (wxPen *) 0 ;
5537 PyObject *result = 0 ;
5538 void *argp1 = 0 ;
5539 int res1 = 0 ;
5540 PyObject *swig_obj[1] ;
5541
5542 if (!args) SWIG_fail;
5543 swig_obj[0] = args;
5544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5545 if (!SWIG_IsOK(res1)) {
5546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5547 }
5548 arg1 = reinterpret_cast< wxPen * >(argp1);
5549 {
5550 PyThreadState* __tstate = wxPyBeginAllowThreads();
5551 result = (PyObject *)wxPen_GetDashes(arg1);
5552 wxPyEndAllowThreads(__tstate);
5553 if (PyErr_Occurred()) SWIG_fail;
5554 }
5555 resultobj = result;
5556 return resultobj;
5557 fail:
5558 return NULL;
5559 }
5560
5561
5562 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5563 PyObject *resultobj = 0;
5564 wxPen *arg1 = (wxPen *) 0 ;
5565 PyObject *arg2 = (PyObject *) 0 ;
5566 PyObject *arg3 = (PyObject *) 0 ;
5567 void *argp1 = 0 ;
5568 int res1 = 0 ;
5569 PyObject * obj0 = 0 ;
5570 PyObject * obj1 = 0 ;
5571 PyObject * obj2 = 0 ;
5572 char * kwnames[] = {
5573 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5574 };
5575
5576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5578 if (!SWIG_IsOK(res1)) {
5579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5580 }
5581 arg1 = reinterpret_cast< wxPen * >(argp1);
5582 arg2 = obj1;
5583 arg3 = obj2;
5584 {
5585 PyThreadState* __tstate = wxPyBeginAllowThreads();
5586 wxPen__SetDashes(arg1,arg2,arg3);
5587 wxPyEndAllowThreads(__tstate);
5588 if (PyErr_Occurred()) SWIG_fail;
5589 }
5590 resultobj = SWIG_Py_Void();
5591 return resultobj;
5592 fail:
5593 return NULL;
5594 }
5595
5596
5597 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5598 PyObject *resultobj = 0;
5599 wxPen *arg1 = (wxPen *) 0 ;
5600 int result;
5601 void *argp1 = 0 ;
5602 int res1 = 0 ;
5603 PyObject *swig_obj[1] ;
5604
5605 if (!args) SWIG_fail;
5606 swig_obj[0] = args;
5607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5608 if (!SWIG_IsOK(res1)) {
5609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5610 }
5611 arg1 = reinterpret_cast< wxPen * >(argp1);
5612 {
5613 PyThreadState* __tstate = wxPyBeginAllowThreads();
5614 result = (int)((wxPen const *)arg1)->GetDashCount();
5615 wxPyEndAllowThreads(__tstate);
5616 if (PyErr_Occurred()) SWIG_fail;
5617 }
5618 resultobj = SWIG_From_int(static_cast< int >(result));
5619 return resultobj;
5620 fail:
5621 return NULL;
5622 }
5623
5624
5625 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5626 PyObject *resultobj = 0;
5627 wxPen *arg1 = (wxPen *) 0 ;
5628 wxPen *arg2 = (wxPen *) 0 ;
5629 bool result;
5630 void *argp1 = 0 ;
5631 int res1 = 0 ;
5632 void *argp2 = 0 ;
5633 int res2 = 0 ;
5634 PyObject * obj0 = 0 ;
5635 PyObject * obj1 = 0 ;
5636 char * kwnames[] = {
5637 (char *) "self",(char *) "other", NULL
5638 };
5639
5640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5642 if (!SWIG_IsOK(res1)) {
5643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5644 }
5645 arg1 = reinterpret_cast< wxPen * >(argp1);
5646 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5647 if (!SWIG_IsOK(res2)) {
5648 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5649 }
5650 arg2 = reinterpret_cast< wxPen * >(argp2);
5651 {
5652 PyThreadState* __tstate = wxPyBeginAllowThreads();
5653 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5654 wxPyEndAllowThreads(__tstate);
5655 if (PyErr_Occurred()) SWIG_fail;
5656 }
5657 {
5658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5659 }
5660 return resultobj;
5661 fail:
5662 return NULL;
5663 }
5664
5665
5666 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5667 PyObject *resultobj = 0;
5668 wxPen *arg1 = (wxPen *) 0 ;
5669 wxPen *arg2 = (wxPen *) 0 ;
5670 bool result;
5671 void *argp1 = 0 ;
5672 int res1 = 0 ;
5673 void *argp2 = 0 ;
5674 int res2 = 0 ;
5675 PyObject * obj0 = 0 ;
5676 PyObject * obj1 = 0 ;
5677 char * kwnames[] = {
5678 (char *) "self",(char *) "other", NULL
5679 };
5680
5681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5683 if (!SWIG_IsOK(res1)) {
5684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5685 }
5686 arg1 = reinterpret_cast< wxPen * >(argp1);
5687 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5688 if (!SWIG_IsOK(res2)) {
5689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5690 }
5691 arg2 = reinterpret_cast< wxPen * >(argp2);
5692 {
5693 PyThreadState* __tstate = wxPyBeginAllowThreads();
5694 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5695 wxPyEndAllowThreads(__tstate);
5696 if (PyErr_Occurred()) SWIG_fail;
5697 }
5698 {
5699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5700 }
5701 return resultobj;
5702 fail:
5703 return NULL;
5704 }
5705
5706
5707 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5708 PyObject *obj;
5709 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5710 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5711 return SWIG_Py_Void();
5712 }
5713
5714 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5715 return SWIG_Python_InitShadowInstance(args);
5716 }
5717
5718 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5719 PyObject *resultobj = 0;
5720 wxColour *arg1 = 0 ;
5721 int arg2 = (int) wxSOLID ;
5722 wxBrush *result = 0 ;
5723 wxColour temp1 ;
5724 int val2 ;
5725 int ecode2 = 0 ;
5726 PyObject * obj0 = 0 ;
5727 PyObject * obj1 = 0 ;
5728 char * kwnames[] = {
5729 (char *) "colour",(char *) "style", NULL
5730 };
5731
5732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5733 {
5734 arg1 = &temp1;
5735 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5736 }
5737 if (obj1) {
5738 ecode2 = SWIG_AsVal_int(obj1, &val2);
5739 if (!SWIG_IsOK(ecode2)) {
5740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5741 }
5742 arg2 = static_cast< int >(val2);
5743 }
5744 {
5745 if (!wxPyCheckForApp()) SWIG_fail;
5746 PyThreadState* __tstate = wxPyBeginAllowThreads();
5747 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5748 wxPyEndAllowThreads(__tstate);
5749 if (PyErr_Occurred()) SWIG_fail;
5750 }
5751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5752 return resultobj;
5753 fail:
5754 return NULL;
5755 }
5756
5757
5758 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5759 PyObject *resultobj = 0;
5760 wxBitmap *arg1 = 0 ;
5761 wxBrush *result = 0 ;
5762 void *argp1 = 0 ;
5763 int res1 = 0 ;
5764 PyObject * obj0 = 0 ;
5765 char * kwnames[] = {
5766 (char *) "stippleBitmap", NULL
5767 };
5768
5769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5770 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5771 if (!SWIG_IsOK(res1)) {
5772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5773 }
5774 if (!argp1) {
5775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5776 }
5777 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5778 {
5779 if (!wxPyCheckForApp()) SWIG_fail;
5780 PyThreadState* __tstate = wxPyBeginAllowThreads();
5781 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5782 wxPyEndAllowThreads(__tstate);
5783 if (PyErr_Occurred()) SWIG_fail;
5784 }
5785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5786 return resultobj;
5787 fail:
5788 return NULL;
5789 }
5790
5791
5792 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5793 PyObject *resultobj = 0;
5794 wxBrush *arg1 = (wxBrush *) 0 ;
5795 void *argp1 = 0 ;
5796 int res1 = 0 ;
5797 PyObject *swig_obj[1] ;
5798
5799 if (!args) SWIG_fail;
5800 swig_obj[0] = args;
5801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5802 if (!SWIG_IsOK(res1)) {
5803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5804 }
5805 arg1 = reinterpret_cast< wxBrush * >(argp1);
5806 {
5807 PyThreadState* __tstate = wxPyBeginAllowThreads();
5808 delete arg1;
5809
5810 wxPyEndAllowThreads(__tstate);
5811 if (PyErr_Occurred()) SWIG_fail;
5812 }
5813 resultobj = SWIG_Py_Void();
5814 return resultobj;
5815 fail:
5816 return NULL;
5817 }
5818
5819
5820 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5821 PyObject *resultobj = 0;
5822 wxBrush *arg1 = (wxBrush *) 0 ;
5823 wxColour *arg2 = 0 ;
5824 void *argp1 = 0 ;
5825 int res1 = 0 ;
5826 wxColour temp2 ;
5827 PyObject * obj0 = 0 ;
5828 PyObject * obj1 = 0 ;
5829 char * kwnames[] = {
5830 (char *) "self",(char *) "col", NULL
5831 };
5832
5833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5835 if (!SWIG_IsOK(res1)) {
5836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5837 }
5838 arg1 = reinterpret_cast< wxBrush * >(argp1);
5839 {
5840 arg2 = &temp2;
5841 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5842 }
5843 {
5844 PyThreadState* __tstate = wxPyBeginAllowThreads();
5845 (arg1)->SetColour((wxColour const &)*arg2);
5846 wxPyEndAllowThreads(__tstate);
5847 if (PyErr_Occurred()) SWIG_fail;
5848 }
5849 resultobj = SWIG_Py_Void();
5850 return resultobj;
5851 fail:
5852 return NULL;
5853 }
5854
5855
5856 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5857 PyObject *resultobj = 0;
5858 wxBrush *arg1 = (wxBrush *) 0 ;
5859 int arg2 ;
5860 void *argp1 = 0 ;
5861 int res1 = 0 ;
5862 int val2 ;
5863 int ecode2 = 0 ;
5864 PyObject * obj0 = 0 ;
5865 PyObject * obj1 = 0 ;
5866 char * kwnames[] = {
5867 (char *) "self",(char *) "style", NULL
5868 };
5869
5870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5872 if (!SWIG_IsOK(res1)) {
5873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5874 }
5875 arg1 = reinterpret_cast< wxBrush * >(argp1);
5876 ecode2 = SWIG_AsVal_int(obj1, &val2);
5877 if (!SWIG_IsOK(ecode2)) {
5878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5879 }
5880 arg2 = static_cast< int >(val2);
5881 {
5882 PyThreadState* __tstate = wxPyBeginAllowThreads();
5883 (arg1)->SetStyle(arg2);
5884 wxPyEndAllowThreads(__tstate);
5885 if (PyErr_Occurred()) SWIG_fail;
5886 }
5887 resultobj = SWIG_Py_Void();
5888 return resultobj;
5889 fail:
5890 return NULL;
5891 }
5892
5893
5894 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5895 PyObject *resultobj = 0;
5896 wxBrush *arg1 = (wxBrush *) 0 ;
5897 wxBitmap *arg2 = 0 ;
5898 void *argp1 = 0 ;
5899 int res1 = 0 ;
5900 void *argp2 = 0 ;
5901 int res2 = 0 ;
5902 PyObject * obj0 = 0 ;
5903 PyObject * obj1 = 0 ;
5904 char * kwnames[] = {
5905 (char *) "self",(char *) "stipple", NULL
5906 };
5907
5908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5910 if (!SWIG_IsOK(res1)) {
5911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5912 }
5913 arg1 = reinterpret_cast< wxBrush * >(argp1);
5914 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5915 if (!SWIG_IsOK(res2)) {
5916 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5917 }
5918 if (!argp2) {
5919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5920 }
5921 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5922 {
5923 PyThreadState* __tstate = wxPyBeginAllowThreads();
5924 (arg1)->SetStipple((wxBitmap const &)*arg2);
5925 wxPyEndAllowThreads(__tstate);
5926 if (PyErr_Occurred()) SWIG_fail;
5927 }
5928 resultobj = SWIG_Py_Void();
5929 return resultobj;
5930 fail:
5931 return NULL;
5932 }
5933
5934
5935 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5936 PyObject *resultobj = 0;
5937 wxBrush *arg1 = (wxBrush *) 0 ;
5938 wxColour result;
5939 void *argp1 = 0 ;
5940 int res1 = 0 ;
5941 PyObject *swig_obj[1] ;
5942
5943 if (!args) SWIG_fail;
5944 swig_obj[0] = args;
5945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5946 if (!SWIG_IsOK(res1)) {
5947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5948 }
5949 arg1 = reinterpret_cast< wxBrush * >(argp1);
5950 {
5951 PyThreadState* __tstate = wxPyBeginAllowThreads();
5952 result = ((wxBrush const *)arg1)->GetColour();
5953 wxPyEndAllowThreads(__tstate);
5954 if (PyErr_Occurred()) SWIG_fail;
5955 }
5956 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5957 return resultobj;
5958 fail:
5959 return NULL;
5960 }
5961
5962
5963 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5964 PyObject *resultobj = 0;
5965 wxBrush *arg1 = (wxBrush *) 0 ;
5966 int result;
5967 void *argp1 = 0 ;
5968 int res1 = 0 ;
5969 PyObject *swig_obj[1] ;
5970
5971 if (!args) SWIG_fail;
5972 swig_obj[0] = args;
5973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5974 if (!SWIG_IsOK(res1)) {
5975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5976 }
5977 arg1 = reinterpret_cast< wxBrush * >(argp1);
5978 {
5979 PyThreadState* __tstate = wxPyBeginAllowThreads();
5980 result = (int)((wxBrush const *)arg1)->GetStyle();
5981 wxPyEndAllowThreads(__tstate);
5982 if (PyErr_Occurred()) SWIG_fail;
5983 }
5984 resultobj = SWIG_From_int(static_cast< int >(result));
5985 return resultobj;
5986 fail:
5987 return NULL;
5988 }
5989
5990
5991 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5992 PyObject *resultobj = 0;
5993 wxBrush *arg1 = (wxBrush *) 0 ;
5994 wxBitmap *result = 0 ;
5995 void *argp1 = 0 ;
5996 int res1 = 0 ;
5997 PyObject *swig_obj[1] ;
5998
5999 if (!args) SWIG_fail;
6000 swig_obj[0] = args;
6001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6002 if (!SWIG_IsOK(res1)) {
6003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
6004 }
6005 arg1 = reinterpret_cast< wxBrush * >(argp1);
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
6013 return resultobj;
6014 fail:
6015 return NULL;
6016 }
6017
6018
6019 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6020 PyObject *resultobj = 0;
6021 wxBrush *arg1 = (wxBrush *) 0 ;
6022 bool result;
6023 void *argp1 = 0 ;
6024 int res1 = 0 ;
6025 PyObject *swig_obj[1] ;
6026
6027 if (!args) SWIG_fail;
6028 swig_obj[0] = args;
6029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6030 if (!SWIG_IsOK(res1)) {
6031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6032 }
6033 arg1 = reinterpret_cast< wxBrush * >(argp1);
6034 {
6035 PyThreadState* __tstate = wxPyBeginAllowThreads();
6036 result = (bool)((wxBrush const *)arg1)->IsHatch();
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) SWIG_fail;
6039 }
6040 {
6041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6042 }
6043 return resultobj;
6044 fail:
6045 return NULL;
6046 }
6047
6048
6049 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6050 PyObject *resultobj = 0;
6051 wxBrush *arg1 = (wxBrush *) 0 ;
6052 bool result;
6053 void *argp1 = 0 ;
6054 int res1 = 0 ;
6055 PyObject *swig_obj[1] ;
6056
6057 if (!args) SWIG_fail;
6058 swig_obj[0] = args;
6059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6060 if (!SWIG_IsOK(res1)) {
6061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
6062 }
6063 arg1 = reinterpret_cast< wxBrush * >(argp1);
6064 {
6065 PyThreadState* __tstate = wxPyBeginAllowThreads();
6066 result = (bool)(arg1)->IsOk();
6067 wxPyEndAllowThreads(__tstate);
6068 if (PyErr_Occurred()) SWIG_fail;
6069 }
6070 {
6071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6072 }
6073 return resultobj;
6074 fail:
6075 return NULL;
6076 }
6077
6078
6079 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6080 PyObject *obj;
6081 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6082 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6083 return SWIG_Py_Void();
6084 }
6085
6086 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6087 return SWIG_Python_InitShadowInstance(args);
6088 }
6089
6090 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6091 PyObject *resultobj = 0;
6092 wxString *arg1 = 0 ;
6093 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6094 wxBitmap *result = 0 ;
6095 bool temp1 = false ;
6096 int val2 ;
6097 int ecode2 = 0 ;
6098 PyObject * obj0 = 0 ;
6099 PyObject * obj1 = 0 ;
6100 char * kwnames[] = {
6101 (char *) "name",(char *) "type", NULL
6102 };
6103
6104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6105 {
6106 arg1 = wxString_in_helper(obj0);
6107 if (arg1 == NULL) SWIG_fail;
6108 temp1 = true;
6109 }
6110 if (obj1) {
6111 ecode2 = SWIG_AsVal_int(obj1, &val2);
6112 if (!SWIG_IsOK(ecode2)) {
6113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6114 }
6115 arg2 = static_cast< wxBitmapType >(val2);
6116 }
6117 {
6118 if (!wxPyCheckForApp()) SWIG_fail;
6119 PyThreadState* __tstate = wxPyBeginAllowThreads();
6120 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6121 wxPyEndAllowThreads(__tstate);
6122 if (PyErr_Occurred()) SWIG_fail;
6123 }
6124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6125 {
6126 if (temp1)
6127 delete arg1;
6128 }
6129 return resultobj;
6130 fail:
6131 {
6132 if (temp1)
6133 delete arg1;
6134 }
6135 return NULL;
6136 }
6137
6138
6139 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6140 PyObject *resultobj = 0;
6141 wxBitmap *arg1 = (wxBitmap *) 0 ;
6142 void *argp1 = 0 ;
6143 int res1 = 0 ;
6144 PyObject *swig_obj[1] ;
6145
6146 if (!args) SWIG_fail;
6147 swig_obj[0] = args;
6148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6149 if (!SWIG_IsOK(res1)) {
6150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6151 }
6152 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6153 {
6154 delete arg1;
6155
6156 if (PyErr_Occurred()) SWIG_fail;
6157 }
6158 resultobj = SWIG_Py_Void();
6159 return resultobj;
6160 fail:
6161 return NULL;
6162 }
6163
6164
6165 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6166 PyObject *resultobj = 0;
6167 int arg1 ;
6168 int arg2 ;
6169 int arg3 = (int) -1 ;
6170 wxBitmap *result = 0 ;
6171 int val1 ;
6172 int ecode1 = 0 ;
6173 int val2 ;
6174 int ecode2 = 0 ;
6175 int val3 ;
6176 int ecode3 = 0 ;
6177 PyObject * obj0 = 0 ;
6178 PyObject * obj1 = 0 ;
6179 PyObject * obj2 = 0 ;
6180 char * kwnames[] = {
6181 (char *) "width",(char *) "height",(char *) "depth", NULL
6182 };
6183
6184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6185 ecode1 = SWIG_AsVal_int(obj0, &val1);
6186 if (!SWIG_IsOK(ecode1)) {
6187 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6188 }
6189 arg1 = static_cast< int >(val1);
6190 ecode2 = SWIG_AsVal_int(obj1, &val2);
6191 if (!SWIG_IsOK(ecode2)) {
6192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6193 }
6194 arg2 = static_cast< int >(val2);
6195 if (obj2) {
6196 ecode3 = SWIG_AsVal_int(obj2, &val3);
6197 if (!SWIG_IsOK(ecode3)) {
6198 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6199 }
6200 arg3 = static_cast< int >(val3);
6201 }
6202 {
6203 if (!wxPyCheckForApp()) SWIG_fail;
6204 PyThreadState* __tstate = wxPyBeginAllowThreads();
6205 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6206 wxPyEndAllowThreads(__tstate);
6207 if (PyErr_Occurred()) SWIG_fail;
6208 }
6209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6210 return resultobj;
6211 fail:
6212 return NULL;
6213 }
6214
6215
6216 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6217 PyObject *resultobj = 0;
6218 wxIcon *arg1 = 0 ;
6219 wxBitmap *result = 0 ;
6220 void *argp1 = 0 ;
6221 int res1 = 0 ;
6222 PyObject * obj0 = 0 ;
6223 char * kwnames[] = {
6224 (char *) "icon", NULL
6225 };
6226
6227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6228 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6229 if (!SWIG_IsOK(res1)) {
6230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6231 }
6232 if (!argp1) {
6233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6234 }
6235 arg1 = reinterpret_cast< wxIcon * >(argp1);
6236 {
6237 if (!wxPyCheckForApp()) SWIG_fail;
6238 PyThreadState* __tstate = wxPyBeginAllowThreads();
6239 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6240 wxPyEndAllowThreads(__tstate);
6241 if (PyErr_Occurred()) SWIG_fail;
6242 }
6243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6244 return resultobj;
6245 fail:
6246 return NULL;
6247 }
6248
6249
6250 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6251 PyObject *resultobj = 0;
6252 wxImage *arg1 = 0 ;
6253 int arg2 = (int) -1 ;
6254 wxBitmap *result = 0 ;
6255 void *argp1 = 0 ;
6256 int res1 = 0 ;
6257 int val2 ;
6258 int ecode2 = 0 ;
6259 PyObject * obj0 = 0 ;
6260 PyObject * obj1 = 0 ;
6261 char * kwnames[] = {
6262 (char *) "image",(char *) "depth", NULL
6263 };
6264
6265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6266 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6267 if (!SWIG_IsOK(res1)) {
6268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6269 }
6270 if (!argp1) {
6271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6272 }
6273 arg1 = reinterpret_cast< wxImage * >(argp1);
6274 if (obj1) {
6275 ecode2 = SWIG_AsVal_int(obj1, &val2);
6276 if (!SWIG_IsOK(ecode2)) {
6277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6278 }
6279 arg2 = static_cast< int >(val2);
6280 }
6281 {
6282 if (!wxPyCheckForApp()) SWIG_fail;
6283 PyThreadState* __tstate = wxPyBeginAllowThreads();
6284 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6285 wxPyEndAllowThreads(__tstate);
6286 if (PyErr_Occurred()) SWIG_fail;
6287 }
6288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6289 return resultobj;
6290 fail:
6291 return NULL;
6292 }
6293
6294
6295 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6296 PyObject *resultobj = 0;
6297 PyObject *arg1 = (PyObject *) 0 ;
6298 wxBitmap *result = 0 ;
6299 PyObject * obj0 = 0 ;
6300 char * kwnames[] = {
6301 (char *) "listOfStrings", NULL
6302 };
6303
6304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6305 arg1 = obj0;
6306 {
6307 if (!wxPyCheckForApp()) SWIG_fail;
6308 PyThreadState* __tstate = wxPyBeginAllowThreads();
6309 result = (wxBitmap *)new_wxBitmap(arg1);
6310 wxPyEndAllowThreads(__tstate);
6311 if (PyErr_Occurred()) SWIG_fail;
6312 }
6313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6314 return resultobj;
6315 fail:
6316 return NULL;
6317 }
6318
6319
6320 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6321 PyObject *resultobj = 0;
6322 PyObject *arg1 = (PyObject *) 0 ;
6323 int arg2 ;
6324 int arg3 ;
6325 int arg4 = (int) 1 ;
6326 wxBitmap *result = 0 ;
6327 int val2 ;
6328 int ecode2 = 0 ;
6329 int val3 ;
6330 int ecode3 = 0 ;
6331 int val4 ;
6332 int ecode4 = 0 ;
6333 PyObject * obj0 = 0 ;
6334 PyObject * obj1 = 0 ;
6335 PyObject * obj2 = 0 ;
6336 PyObject * obj3 = 0 ;
6337 char * kwnames[] = {
6338 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6339 };
6340
6341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6342 arg1 = obj0;
6343 ecode2 = SWIG_AsVal_int(obj1, &val2);
6344 if (!SWIG_IsOK(ecode2)) {
6345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6346 }
6347 arg2 = static_cast< int >(val2);
6348 ecode3 = SWIG_AsVal_int(obj2, &val3);
6349 if (!SWIG_IsOK(ecode3)) {
6350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6351 }
6352 arg3 = static_cast< int >(val3);
6353 if (obj3) {
6354 ecode4 = SWIG_AsVal_int(obj3, &val4);
6355 if (!SWIG_IsOK(ecode4)) {
6356 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6357 }
6358 arg4 = static_cast< int >(val4);
6359 }
6360 {
6361 if (!wxPyCheckForApp()) SWIG_fail;
6362 PyThreadState* __tstate = wxPyBeginAllowThreads();
6363 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6364 wxPyEndAllowThreads(__tstate);
6365 if (PyErr_Occurred()) SWIG_fail;
6366 }
6367 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6368 return resultobj;
6369 fail:
6370 return NULL;
6371 }
6372
6373
6374 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6375 PyObject *resultobj = 0;
6376 wxBitmap *arg1 = (wxBitmap *) 0 ;
6377 bool result;
6378 void *argp1 = 0 ;
6379 int res1 = 0 ;
6380 PyObject *swig_obj[1] ;
6381
6382 if (!args) SWIG_fail;
6383 swig_obj[0] = args;
6384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6385 if (!SWIG_IsOK(res1)) {
6386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6387 }
6388 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6389 {
6390 result = (bool)(arg1)->IsOk();
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 {
6394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6395 }
6396 return resultobj;
6397 fail:
6398 return NULL;
6399 }
6400
6401
6402 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6403 PyObject *resultobj = 0;
6404 wxBitmap *arg1 = (wxBitmap *) 0 ;
6405 int result;
6406 void *argp1 = 0 ;
6407 int res1 = 0 ;
6408 PyObject *swig_obj[1] ;
6409
6410 if (!args) SWIG_fail;
6411 swig_obj[0] = args;
6412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6413 if (!SWIG_IsOK(res1)) {
6414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6415 }
6416 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6417 {
6418 result = (int)(arg1)->GetWidth();
6419 if (PyErr_Occurred()) SWIG_fail;
6420 }
6421 resultobj = SWIG_From_int(static_cast< int >(result));
6422 return resultobj;
6423 fail:
6424 return NULL;
6425 }
6426
6427
6428 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6429 PyObject *resultobj = 0;
6430 wxBitmap *arg1 = (wxBitmap *) 0 ;
6431 int result;
6432 void *argp1 = 0 ;
6433 int res1 = 0 ;
6434 PyObject *swig_obj[1] ;
6435
6436 if (!args) SWIG_fail;
6437 swig_obj[0] = args;
6438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6439 if (!SWIG_IsOK(res1)) {
6440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6441 }
6442 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6443 {
6444 result = (int)(arg1)->GetHeight();
6445 if (PyErr_Occurred()) SWIG_fail;
6446 }
6447 resultobj = SWIG_From_int(static_cast< int >(result));
6448 return resultobj;
6449 fail:
6450 return NULL;
6451 }
6452
6453
6454 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6455 PyObject *resultobj = 0;
6456 wxBitmap *arg1 = (wxBitmap *) 0 ;
6457 int result;
6458 void *argp1 = 0 ;
6459 int res1 = 0 ;
6460 PyObject *swig_obj[1] ;
6461
6462 if (!args) SWIG_fail;
6463 swig_obj[0] = args;
6464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6465 if (!SWIG_IsOK(res1)) {
6466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6467 }
6468 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6469 {
6470 result = (int)(arg1)->GetDepth();
6471 if (PyErr_Occurred()) SWIG_fail;
6472 }
6473 resultobj = SWIG_From_int(static_cast< int >(result));
6474 return resultobj;
6475 fail:
6476 return NULL;
6477 }
6478
6479
6480 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6481 PyObject *resultobj = 0;
6482 wxBitmap *arg1 = (wxBitmap *) 0 ;
6483 wxSize result;
6484 void *argp1 = 0 ;
6485 int res1 = 0 ;
6486 PyObject *swig_obj[1] ;
6487
6488 if (!args) SWIG_fail;
6489 swig_obj[0] = args;
6490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6491 if (!SWIG_IsOK(res1)) {
6492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6493 }
6494 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6495 {
6496 result = wxBitmap_GetSize(arg1);
6497 if (PyErr_Occurred()) SWIG_fail;
6498 }
6499 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6500 return resultobj;
6501 fail:
6502 return NULL;
6503 }
6504
6505
6506 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6507 PyObject *resultobj = 0;
6508 wxBitmap *arg1 = (wxBitmap *) 0 ;
6509 SwigValueWrapper<wxImage > result;
6510 void *argp1 = 0 ;
6511 int res1 = 0 ;
6512 PyObject *swig_obj[1] ;
6513
6514 if (!args) SWIG_fail;
6515 swig_obj[0] = args;
6516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6517 if (!SWIG_IsOK(res1)) {
6518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6519 }
6520 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6521 {
6522 result = ((wxBitmap const *)arg1)->ConvertToImage();
6523 if (PyErr_Occurred()) SWIG_fail;
6524 }
6525 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6526 return resultobj;
6527 fail:
6528 return NULL;
6529 }
6530
6531
6532 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6533 PyObject *resultobj = 0;
6534 wxBitmap *arg1 = (wxBitmap *) 0 ;
6535 wxMask *result = 0 ;
6536 void *argp1 = 0 ;
6537 int res1 = 0 ;
6538 PyObject *swig_obj[1] ;
6539
6540 if (!args) SWIG_fail;
6541 swig_obj[0] = args;
6542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6543 if (!SWIG_IsOK(res1)) {
6544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6545 }
6546 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6547 {
6548 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6552 return resultobj;
6553 fail:
6554 return NULL;
6555 }
6556
6557
6558 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6559 PyObject *resultobj = 0;
6560 wxBitmap *arg1 = (wxBitmap *) 0 ;
6561 wxMask *arg2 = (wxMask *) 0 ;
6562 void *argp1 = 0 ;
6563 int res1 = 0 ;
6564 int res2 = 0 ;
6565 PyObject * obj0 = 0 ;
6566 PyObject * obj1 = 0 ;
6567 char * kwnames[] = {
6568 (char *) "self",(char *) "mask", NULL
6569 };
6570
6571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6573 if (!SWIG_IsOK(res1)) {
6574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6575 }
6576 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6577 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6578 if (!SWIG_IsOK(res2)) {
6579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6580 }
6581 {
6582 (arg1)->SetMask(arg2);
6583 if (PyErr_Occurred()) SWIG_fail;
6584 }
6585 resultobj = SWIG_Py_Void();
6586 return resultobj;
6587 fail:
6588 return NULL;
6589 }
6590
6591
6592 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6593 PyObject *resultobj = 0;
6594 wxBitmap *arg1 = (wxBitmap *) 0 ;
6595 wxColour *arg2 = 0 ;
6596 void *argp1 = 0 ;
6597 int res1 = 0 ;
6598 wxColour temp2 ;
6599 PyObject * obj0 = 0 ;
6600 PyObject * obj1 = 0 ;
6601 char * kwnames[] = {
6602 (char *) "self",(char *) "colour", NULL
6603 };
6604
6605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6607 if (!SWIG_IsOK(res1)) {
6608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6609 }
6610 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6611 {
6612 arg2 = &temp2;
6613 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6614 }
6615 {
6616 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6617 if (PyErr_Occurred()) SWIG_fail;
6618 }
6619 resultobj = SWIG_Py_Void();
6620 return resultobj;
6621 fail:
6622 return NULL;
6623 }
6624
6625
6626 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6627 PyObject *resultobj = 0;
6628 wxBitmap *arg1 = (wxBitmap *) 0 ;
6629 wxRect *arg2 = 0 ;
6630 SwigValueWrapper<wxBitmap > result;
6631 void *argp1 = 0 ;
6632 int res1 = 0 ;
6633 wxRect temp2 ;
6634 PyObject * obj0 = 0 ;
6635 PyObject * obj1 = 0 ;
6636 char * kwnames[] = {
6637 (char *) "self",(char *) "rect", NULL
6638 };
6639
6640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6642 if (!SWIG_IsOK(res1)) {
6643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6644 }
6645 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6646 {
6647 arg2 = &temp2;
6648 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6649 }
6650 {
6651 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6652 if (PyErr_Occurred()) SWIG_fail;
6653 }
6654 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6655 return resultobj;
6656 fail:
6657 return NULL;
6658 }
6659
6660
6661 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6662 PyObject *resultobj = 0;
6663 wxBitmap *arg1 = (wxBitmap *) 0 ;
6664 wxString *arg2 = 0 ;
6665 wxBitmapType arg3 ;
6666 wxPalette *arg4 = (wxPalette *) NULL ;
6667 bool result;
6668 void *argp1 = 0 ;
6669 int res1 = 0 ;
6670 bool temp2 = false ;
6671 int val3 ;
6672 int ecode3 = 0 ;
6673 void *argp4 = 0 ;
6674 int res4 = 0 ;
6675 PyObject * obj0 = 0 ;
6676 PyObject * obj1 = 0 ;
6677 PyObject * obj2 = 0 ;
6678 PyObject * obj3 = 0 ;
6679 char * kwnames[] = {
6680 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6681 };
6682
6683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6685 if (!SWIG_IsOK(res1)) {
6686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6687 }
6688 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6689 {
6690 arg2 = wxString_in_helper(obj1);
6691 if (arg2 == NULL) SWIG_fail;
6692 temp2 = true;
6693 }
6694 ecode3 = SWIG_AsVal_int(obj2, &val3);
6695 if (!SWIG_IsOK(ecode3)) {
6696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6697 }
6698 arg3 = static_cast< wxBitmapType >(val3);
6699 if (obj3) {
6700 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6701 if (!SWIG_IsOK(res4)) {
6702 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6703 }
6704 arg4 = reinterpret_cast< wxPalette * >(argp4);
6705 }
6706 {
6707 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6708 if (PyErr_Occurred()) SWIG_fail;
6709 }
6710 {
6711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6712 }
6713 {
6714 if (temp2)
6715 delete arg2;
6716 }
6717 return resultobj;
6718 fail:
6719 {
6720 if (temp2)
6721 delete arg2;
6722 }
6723 return NULL;
6724 }
6725
6726
6727 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6728 PyObject *resultobj = 0;
6729 wxBitmap *arg1 = (wxBitmap *) 0 ;
6730 wxString *arg2 = 0 ;
6731 wxBitmapType arg3 ;
6732 bool result;
6733 void *argp1 = 0 ;
6734 int res1 = 0 ;
6735 bool temp2 = false ;
6736 int val3 ;
6737 int ecode3 = 0 ;
6738 PyObject * obj0 = 0 ;
6739 PyObject * obj1 = 0 ;
6740 PyObject * obj2 = 0 ;
6741 char * kwnames[] = {
6742 (char *) "self",(char *) "name",(char *) "type", NULL
6743 };
6744
6745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6747 if (!SWIG_IsOK(res1)) {
6748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6749 }
6750 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6751 {
6752 arg2 = wxString_in_helper(obj1);
6753 if (arg2 == NULL) SWIG_fail;
6754 temp2 = true;
6755 }
6756 ecode3 = SWIG_AsVal_int(obj2, &val3);
6757 if (!SWIG_IsOK(ecode3)) {
6758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6759 }
6760 arg3 = static_cast< wxBitmapType >(val3);
6761 {
6762 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6763 if (PyErr_Occurred()) SWIG_fail;
6764 }
6765 {
6766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6767 }
6768 {
6769 if (temp2)
6770 delete arg2;
6771 }
6772 return resultobj;
6773 fail:
6774 {
6775 if (temp2)
6776 delete arg2;
6777 }
6778 return NULL;
6779 }
6780
6781
6782 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6783 PyObject *resultobj = 0;
6784 wxBitmap *arg1 = (wxBitmap *) 0 ;
6785 wxPalette *result = 0 ;
6786 void *argp1 = 0 ;
6787 int res1 = 0 ;
6788 PyObject *swig_obj[1] ;
6789
6790 if (!args) SWIG_fail;
6791 swig_obj[0] = args;
6792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6793 if (!SWIG_IsOK(res1)) {
6794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6795 }
6796 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6797 {
6798 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6799 if (PyErr_Occurred()) SWIG_fail;
6800 }
6801 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6802 return resultobj;
6803 fail:
6804 return NULL;
6805 }
6806
6807
6808 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6809 PyObject *resultobj = 0;
6810 wxBitmap *arg1 = (wxBitmap *) 0 ;
6811 wxIcon *arg2 = 0 ;
6812 bool result;
6813 void *argp1 = 0 ;
6814 int res1 = 0 ;
6815 void *argp2 = 0 ;
6816 int res2 = 0 ;
6817 PyObject * obj0 = 0 ;
6818 PyObject * obj1 = 0 ;
6819 char * kwnames[] = {
6820 (char *) "self",(char *) "icon", NULL
6821 };
6822
6823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6825 if (!SWIG_IsOK(res1)) {
6826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6827 }
6828 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6829 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6830 if (!SWIG_IsOK(res2)) {
6831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6832 }
6833 if (!argp2) {
6834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6835 }
6836 arg2 = reinterpret_cast< wxIcon * >(argp2);
6837 {
6838 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6839 if (PyErr_Occurred()) SWIG_fail;
6840 }
6841 {
6842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6843 }
6844 return resultobj;
6845 fail:
6846 return NULL;
6847 }
6848
6849
6850 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6851 PyObject *resultobj = 0;
6852 wxBitmap *arg1 = (wxBitmap *) 0 ;
6853 int arg2 ;
6854 void *argp1 = 0 ;
6855 int res1 = 0 ;
6856 int val2 ;
6857 int ecode2 = 0 ;
6858 PyObject * obj0 = 0 ;
6859 PyObject * obj1 = 0 ;
6860 char * kwnames[] = {
6861 (char *) "self",(char *) "height", NULL
6862 };
6863
6864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6866 if (!SWIG_IsOK(res1)) {
6867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6868 }
6869 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6870 ecode2 = SWIG_AsVal_int(obj1, &val2);
6871 if (!SWIG_IsOK(ecode2)) {
6872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6873 }
6874 arg2 = static_cast< int >(val2);
6875 {
6876 (arg1)->SetHeight(arg2);
6877 if (PyErr_Occurred()) SWIG_fail;
6878 }
6879 resultobj = SWIG_Py_Void();
6880 return resultobj;
6881 fail:
6882 return NULL;
6883 }
6884
6885
6886 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6887 PyObject *resultobj = 0;
6888 wxBitmap *arg1 = (wxBitmap *) 0 ;
6889 int arg2 ;
6890 void *argp1 = 0 ;
6891 int res1 = 0 ;
6892 int val2 ;
6893 int ecode2 = 0 ;
6894 PyObject * obj0 = 0 ;
6895 PyObject * obj1 = 0 ;
6896 char * kwnames[] = {
6897 (char *) "self",(char *) "width", NULL
6898 };
6899
6900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6902 if (!SWIG_IsOK(res1)) {
6903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6904 }
6905 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6906 ecode2 = SWIG_AsVal_int(obj1, &val2);
6907 if (!SWIG_IsOK(ecode2)) {
6908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6909 }
6910 arg2 = static_cast< int >(val2);
6911 {
6912 (arg1)->SetWidth(arg2);
6913 if (PyErr_Occurred()) SWIG_fail;
6914 }
6915 resultobj = SWIG_Py_Void();
6916 return resultobj;
6917 fail:
6918 return NULL;
6919 }
6920
6921
6922 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6923 PyObject *resultobj = 0;
6924 wxBitmap *arg1 = (wxBitmap *) 0 ;
6925 int arg2 ;
6926 void *argp1 = 0 ;
6927 int res1 = 0 ;
6928 int val2 ;
6929 int ecode2 = 0 ;
6930 PyObject * obj0 = 0 ;
6931 PyObject * obj1 = 0 ;
6932 char * kwnames[] = {
6933 (char *) "self",(char *) "depth", NULL
6934 };
6935
6936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6938 if (!SWIG_IsOK(res1)) {
6939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6940 }
6941 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6942 ecode2 = SWIG_AsVal_int(obj1, &val2);
6943 if (!SWIG_IsOK(ecode2)) {
6944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6945 }
6946 arg2 = static_cast< int >(val2);
6947 {
6948 (arg1)->SetDepth(arg2);
6949 if (PyErr_Occurred()) SWIG_fail;
6950 }
6951 resultobj = SWIG_Py_Void();
6952 return resultobj;
6953 fail:
6954 return NULL;
6955 }
6956
6957
6958 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6959 PyObject *resultobj = 0;
6960 wxBitmap *arg1 = (wxBitmap *) 0 ;
6961 wxSize *arg2 = 0 ;
6962 void *argp1 = 0 ;
6963 int res1 = 0 ;
6964 wxSize temp2 ;
6965 PyObject * obj0 = 0 ;
6966 PyObject * obj1 = 0 ;
6967 char * kwnames[] = {
6968 (char *) "self",(char *) "size", NULL
6969 };
6970
6971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6973 if (!SWIG_IsOK(res1)) {
6974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6975 }
6976 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6977 {
6978 arg2 = &temp2;
6979 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6980 }
6981 {
6982 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6983 if (PyErr_Occurred()) SWIG_fail;
6984 }
6985 resultobj = SWIG_Py_Void();
6986 return resultobj;
6987 fail:
6988 return NULL;
6989 }
6990
6991
6992 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6993 PyObject *resultobj = 0;
6994 wxBitmap *arg1 = (wxBitmap *) 0 ;
6995 buffer arg2 ;
6996 int arg3 ;
6997 void *argp1 = 0 ;
6998 int res1 = 0 ;
6999 Py_ssize_t temp2 ;
7000 PyObject * obj0 = 0 ;
7001 PyObject * obj1 = 0 ;
7002 char * kwnames[] = {
7003 (char *) "self",(char *) "data", NULL
7004 };
7005
7006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7008 if (!SWIG_IsOK(res1)) {
7009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7010 }
7011 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7012 {
7013 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7014 arg3 = (int)temp2;
7015 }
7016 {
7017 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7018 if (PyErr_Occurred()) SWIG_fail;
7019 }
7020 resultobj = SWIG_Py_Void();
7021 return resultobj;
7022 fail:
7023 return NULL;
7024 }
7025
7026
7027 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7028 PyObject *resultobj = 0;
7029 wxBitmap *arg1 = (wxBitmap *) 0 ;
7030 buffer arg2 ;
7031 int arg3 ;
7032 void *argp1 = 0 ;
7033 int res1 = 0 ;
7034 Py_ssize_t temp2 ;
7035 PyObject * obj0 = 0 ;
7036 PyObject * obj1 = 0 ;
7037 char * kwnames[] = {
7038 (char *) "self",(char *) "data", NULL
7039 };
7040
7041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7043 if (!SWIG_IsOK(res1)) {
7044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7045 }
7046 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7047 {
7048 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7049 arg3 = (int)temp2;
7050 }
7051 {
7052 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7053 if (PyErr_Occurred()) SWIG_fail;
7054 }
7055 resultobj = SWIG_Py_Void();
7056 return resultobj;
7057 fail:
7058 return NULL;
7059 }
7060
7061
7062 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7063 PyObject *resultobj = 0;
7064 wxBitmap *arg1 = (wxBitmap *) 0 ;
7065 wxBitmap *arg2 = (wxBitmap *) 0 ;
7066 bool result;
7067 void *argp1 = 0 ;
7068 int res1 = 0 ;
7069 void *argp2 = 0 ;
7070 int res2 = 0 ;
7071 PyObject * obj0 = 0 ;
7072 PyObject * obj1 = 0 ;
7073 char * kwnames[] = {
7074 (char *) "self",(char *) "other", NULL
7075 };
7076
7077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7079 if (!SWIG_IsOK(res1)) {
7080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7081 }
7082 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7083 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7084 if (!SWIG_IsOK(res2)) {
7085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7086 }
7087 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7088 {
7089 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
7090 if (PyErr_Occurred()) SWIG_fail;
7091 }
7092 {
7093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7094 }
7095 return resultobj;
7096 fail:
7097 return NULL;
7098 }
7099
7100
7101 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7102 PyObject *resultobj = 0;
7103 wxBitmap *arg1 = (wxBitmap *) 0 ;
7104 wxBitmap *arg2 = (wxBitmap *) 0 ;
7105 bool result;
7106 void *argp1 = 0 ;
7107 int res1 = 0 ;
7108 void *argp2 = 0 ;
7109 int res2 = 0 ;
7110 PyObject * obj0 = 0 ;
7111 PyObject * obj1 = 0 ;
7112 char * kwnames[] = {
7113 (char *) "self",(char *) "other", NULL
7114 };
7115
7116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7118 if (!SWIG_IsOK(res1)) {
7119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7120 }
7121 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7122 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7123 if (!SWIG_IsOK(res2)) {
7124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7125 }
7126 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7127 {
7128 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7129 if (PyErr_Occurred()) SWIG_fail;
7130 }
7131 {
7132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7133 }
7134 return resultobj;
7135 fail:
7136 return NULL;
7137 }
7138
7139
7140 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7141 PyObject *obj;
7142 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7143 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7144 return SWIG_Py_Void();
7145 }
7146
7147 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7148 return SWIG_Python_InitShadowInstance(args);
7149 }
7150
7151 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7152 PyObject *resultobj = 0;
7153 int arg1 ;
7154 int arg2 ;
7155 buffer arg3 ;
7156 int arg4 ;
7157 buffer arg5 ;
7158 int arg6 ;
7159 wxBitmap *result = 0 ;
7160 int val1 ;
7161 int ecode1 = 0 ;
7162 int val2 ;
7163 int ecode2 = 0 ;
7164 Py_ssize_t temp3 ;
7165 Py_ssize_t temp5 ;
7166 PyObject * obj0 = 0 ;
7167 PyObject * obj1 = 0 ;
7168 PyObject * obj2 = 0 ;
7169 PyObject * obj3 = 0 ;
7170 char * kwnames[] = {
7171 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7172 };
7173
7174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7175 ecode1 = SWIG_AsVal_int(obj0, &val1);
7176 if (!SWIG_IsOK(ecode1)) {
7177 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7178 }
7179 arg1 = static_cast< int >(val1);
7180 ecode2 = SWIG_AsVal_int(obj1, &val2);
7181 if (!SWIG_IsOK(ecode2)) {
7182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7183 }
7184 arg2 = static_cast< int >(val2);
7185 {
7186 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7187 arg4 = (int)temp3;
7188 }
7189 {
7190 if (obj3 != Py_None) {
7191 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7192 arg6 = (int)temp5;
7193 }
7194 }
7195 {
7196 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7197 if (PyErr_Occurred()) SWIG_fail;
7198 }
7199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7200 return resultobj;
7201 fail:
7202 return NULL;
7203 }
7204
7205
7206 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7207 PyObject *resultobj = 0;
7208 int arg1 ;
7209 int arg2 ;
7210 buffer arg3 ;
7211 int arg4 ;
7212 wxBitmap *result = 0 ;
7213 int val1 ;
7214 int ecode1 = 0 ;
7215 int val2 ;
7216 int ecode2 = 0 ;
7217 Py_ssize_t temp3 ;
7218 PyObject * obj0 = 0 ;
7219 PyObject * obj1 = 0 ;
7220 PyObject * obj2 = 0 ;
7221 char * kwnames[] = {
7222 (char *) "width",(char *) "height",(char *) "data", NULL
7223 };
7224
7225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7226 ecode1 = SWIG_AsVal_int(obj0, &val1);
7227 if (!SWIG_IsOK(ecode1)) {
7228 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7229 }
7230 arg1 = static_cast< int >(val1);
7231 ecode2 = SWIG_AsVal_int(obj1, &val2);
7232 if (!SWIG_IsOK(ecode2)) {
7233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7234 }
7235 arg2 = static_cast< int >(val2);
7236 {
7237 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7238 arg4 = (int)temp3;
7239 }
7240 {
7241 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7242 if (PyErr_Occurred()) SWIG_fail;
7243 }
7244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7245 return resultobj;
7246 fail:
7247 return NULL;
7248 }
7249
7250
7251 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7252 PyObject *resultobj = 0;
7253 int arg1 ;
7254 int arg2 ;
7255 buffer arg3 ;
7256 int arg4 ;
7257 wxBitmap *result = 0 ;
7258 int val1 ;
7259 int ecode1 = 0 ;
7260 int val2 ;
7261 int ecode2 = 0 ;
7262 Py_ssize_t temp3 ;
7263 PyObject * obj0 = 0 ;
7264 PyObject * obj1 = 0 ;
7265 PyObject * obj2 = 0 ;
7266 char * kwnames[] = {
7267 (char *) "width",(char *) "height",(char *) "data", NULL
7268 };
7269
7270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7271 ecode1 = SWIG_AsVal_int(obj0, &val1);
7272 if (!SWIG_IsOK(ecode1)) {
7273 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7274 }
7275 arg1 = static_cast< int >(val1);
7276 ecode2 = SWIG_AsVal_int(obj1, &val2);
7277 if (!SWIG_IsOK(ecode2)) {
7278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7279 }
7280 arg2 = static_cast< int >(val2);
7281 {
7282 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7283 arg4 = (int)temp3;
7284 }
7285 {
7286 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7287 if (PyErr_Occurred()) SWIG_fail;
7288 }
7289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7290 return resultobj;
7291 fail:
7292 return NULL;
7293 }
7294
7295
7296 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7297 PyObject *resultobj = 0;
7298 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7299 wxPoint result;
7300 void *argp1 = 0 ;
7301 int res1 = 0 ;
7302 PyObject *swig_obj[1] ;
7303
7304 if (!args) SWIG_fail;
7305 swig_obj[0] = args;
7306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7307 if (!SWIG_IsOK(res1)) {
7308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7309 }
7310 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7311 {
7312 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7313 if (PyErr_Occurred()) SWIG_fail;
7314 }
7315 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7316 return resultobj;
7317 fail:
7318 return NULL;
7319 }
7320
7321
7322 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7323 PyObject *resultobj = 0;
7324 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7325 int result;
7326 void *argp1 = 0 ;
7327 int res1 = 0 ;
7328 PyObject *swig_obj[1] ;
7329
7330 if (!args) SWIG_fail;
7331 swig_obj[0] = args;
7332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7333 if (!SWIG_IsOK(res1)) {
7334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7335 }
7336 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7337 {
7338 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7339 if (PyErr_Occurred()) SWIG_fail;
7340 }
7341 resultobj = SWIG_From_int(static_cast< int >(result));
7342 return resultobj;
7343 fail:
7344 return NULL;
7345 }
7346
7347
7348 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7349 PyObject *resultobj = 0;
7350 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7351 int result;
7352 void *argp1 = 0 ;
7353 int res1 = 0 ;
7354 PyObject *swig_obj[1] ;
7355
7356 if (!args) SWIG_fail;
7357 swig_obj[0] = args;
7358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7359 if (!SWIG_IsOK(res1)) {
7360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7361 }
7362 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7363 {
7364 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7365 if (PyErr_Occurred()) SWIG_fail;
7366 }
7367 resultobj = SWIG_From_int(static_cast< int >(result));
7368 return resultobj;
7369 fail:
7370 return NULL;
7371 }
7372
7373
7374 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7375 PyObject *resultobj = 0;
7376 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7377 wxSize result;
7378 void *argp1 = 0 ;
7379 int res1 = 0 ;
7380 PyObject *swig_obj[1] ;
7381
7382 if (!args) SWIG_fail;
7383 swig_obj[0] = args;
7384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7385 if (!SWIG_IsOK(res1)) {
7386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7387 }
7388 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7389 {
7390 result = ((wxPixelDataBase const *)arg1)->GetSize();
7391 if (PyErr_Occurred()) SWIG_fail;
7392 }
7393 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7394 return resultobj;
7395 fail:
7396 return NULL;
7397 }
7398
7399
7400 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7401 PyObject *resultobj = 0;
7402 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7403 int result;
7404 void *argp1 = 0 ;
7405 int res1 = 0 ;
7406 PyObject *swig_obj[1] ;
7407
7408 if (!args) SWIG_fail;
7409 swig_obj[0] = args;
7410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7411 if (!SWIG_IsOK(res1)) {
7412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7413 }
7414 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7415 {
7416 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7417 if (PyErr_Occurred()) SWIG_fail;
7418 }
7419 resultobj = SWIG_From_int(static_cast< int >(result));
7420 return resultobj;
7421 fail:
7422 return NULL;
7423 }
7424
7425
7426 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7427 PyObject *obj;
7428 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7429 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7430 return SWIG_Py_Void();
7431 }
7432
7433 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7434 PyObject *resultobj = 0;
7435 wxBitmap *arg1 = 0 ;
7436 wxNativePixelData *result = 0 ;
7437 void *argp1 = 0 ;
7438 int res1 = 0 ;
7439
7440 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7442 if (!SWIG_IsOK(res1)) {
7443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7444 }
7445 if (!argp1) {
7446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7447 }
7448 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7449 {
7450 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7451 if (PyErr_Occurred()) SWIG_fail;
7452 }
7453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7454 return resultobj;
7455 fail:
7456 return NULL;
7457 }
7458
7459
7460 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7461 PyObject *resultobj = 0;
7462 wxBitmap *arg1 = 0 ;
7463 wxRect *arg2 = 0 ;
7464 wxNativePixelData *result = 0 ;
7465 void *argp1 = 0 ;
7466 int res1 = 0 ;
7467 wxRect temp2 ;
7468
7469 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7471 if (!SWIG_IsOK(res1)) {
7472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7473 }
7474 if (!argp1) {
7475 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7476 }
7477 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7478 {
7479 arg2 = &temp2;
7480 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7481 }
7482 {
7483 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7484 if (PyErr_Occurred()) SWIG_fail;
7485 }
7486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7487 return resultobj;
7488 fail:
7489 return NULL;
7490 }
7491
7492
7493 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7494 PyObject *resultobj = 0;
7495 wxBitmap *arg1 = 0 ;
7496 wxPoint *arg2 = 0 ;
7497 wxSize *arg3 = 0 ;
7498 wxNativePixelData *result = 0 ;
7499 void *argp1 = 0 ;
7500 int res1 = 0 ;
7501 wxPoint temp2 ;
7502 wxSize temp3 ;
7503
7504 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7506 if (!SWIG_IsOK(res1)) {
7507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7508 }
7509 if (!argp1) {
7510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7511 }
7512 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7513 {
7514 arg2 = &temp2;
7515 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7516 }
7517 {
7518 arg3 = &temp3;
7519 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7520 }
7521 {
7522 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7523 if (PyErr_Occurred()) SWIG_fail;
7524 }
7525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7526 return resultobj;
7527 fail:
7528 return NULL;
7529 }
7530
7531
7532 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7533 int argc;
7534 PyObject *argv[4];
7535
7536 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7537 --argc;
7538 if (argc == 1) {
7539 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7540 }
7541 if (argc == 2) {
7542 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7543 }
7544 if (argc == 3) {
7545 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7546 }
7547
7548 fail:
7549 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7550 return NULL;
7551 }
7552
7553
7554 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7555 PyObject *resultobj = 0;
7556 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7557 void *argp1 = 0 ;
7558 int res1 = 0 ;
7559 PyObject *swig_obj[1] ;
7560
7561 if (!args) SWIG_fail;
7562 swig_obj[0] = args;
7563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7564 if (!SWIG_IsOK(res1)) {
7565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7566 }
7567 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7568 {
7569 delete arg1;
7570
7571 if (PyErr_Occurred()) SWIG_fail;
7572 }
7573 resultobj = SWIG_Py_Void();
7574 return resultobj;
7575 fail:
7576 return NULL;
7577 }
7578
7579
7580 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7581 PyObject *resultobj = 0;
7582 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7583 wxNativePixelData_Accessor result;
7584 void *argp1 = 0 ;
7585 int res1 = 0 ;
7586 PyObject *swig_obj[1] ;
7587
7588 if (!args) SWIG_fail;
7589 swig_obj[0] = args;
7590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7591 if (!SWIG_IsOK(res1)) {
7592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7593 }
7594 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7595 {
7596 result = ((wxNativePixelData const *)arg1)->GetPixels();
7597 if (PyErr_Occurred()) SWIG_fail;
7598 }
7599 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7600 return resultobj;
7601 fail:
7602 return NULL;
7603 }
7604
7605
7606 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7607 PyObject *resultobj = 0;
7608 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7609 void *argp1 = 0 ;
7610 int res1 = 0 ;
7611 PyObject *swig_obj[1] ;
7612
7613 if (!args) SWIG_fail;
7614 swig_obj[0] = args;
7615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7616 if (!SWIG_IsOK(res1)) {
7617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7618 }
7619 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7620 {
7621 (arg1)->UseAlpha();
7622 if (PyErr_Occurred()) SWIG_fail;
7623 }
7624 resultobj = SWIG_Py_Void();
7625 return resultobj;
7626 fail:
7627 return NULL;
7628 }
7629
7630
7631 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7632 PyObject *resultobj = 0;
7633 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7634 bool result;
7635 void *argp1 = 0 ;
7636 int res1 = 0 ;
7637 PyObject *swig_obj[1] ;
7638
7639 if (!args) SWIG_fail;
7640 swig_obj[0] = args;
7641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7642 if (!SWIG_IsOK(res1)) {
7643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7644 }
7645 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7646 {
7647 result = (bool)wxNativePixelData___nonzero__(arg1);
7648 if (PyErr_Occurred()) SWIG_fail;
7649 }
7650 {
7651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7652 }
7653 return resultobj;
7654 fail:
7655 return NULL;
7656 }
7657
7658
7659 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7660 PyObject *obj;
7661 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7662 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7663 return SWIG_Py_Void();
7664 }
7665
7666 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7667 return SWIG_Python_InitShadowInstance(args);
7668 }
7669
7670 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7671 PyObject *resultobj = 0;
7672 wxNativePixelData *arg1 = 0 ;
7673 wxNativePixelData_Accessor *result = 0 ;
7674 void *argp1 = 0 ;
7675 int res1 = 0 ;
7676
7677 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7679 if (!SWIG_IsOK(res1)) {
7680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7681 }
7682 if (!argp1) {
7683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7684 }
7685 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7686 {
7687 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7688 if (PyErr_Occurred()) SWIG_fail;
7689 }
7690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7691 return resultobj;
7692 fail:
7693 return NULL;
7694 }
7695
7696
7697 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7698 PyObject *resultobj = 0;
7699 wxBitmap *arg1 = 0 ;
7700 wxNativePixelData *arg2 = 0 ;
7701 wxNativePixelData_Accessor *result = 0 ;
7702 void *argp1 = 0 ;
7703 int res1 = 0 ;
7704 void *argp2 = 0 ;
7705 int res2 = 0 ;
7706
7707 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7709 if (!SWIG_IsOK(res1)) {
7710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7711 }
7712 if (!argp1) {
7713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7714 }
7715 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7716 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7717 if (!SWIG_IsOK(res2)) {
7718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7719 }
7720 if (!argp2) {
7721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7722 }
7723 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7724 {
7725 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7726 if (PyErr_Occurred()) SWIG_fail;
7727 }
7728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7729 return resultobj;
7730 fail:
7731 return NULL;
7732 }
7733
7734
7735 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7736 PyObject *resultobj = 0;
7737 wxNativePixelData_Accessor *result = 0 ;
7738
7739 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7740 {
7741 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7742 if (PyErr_Occurred()) SWIG_fail;
7743 }
7744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7745 return resultobj;
7746 fail:
7747 return NULL;
7748 }
7749
7750
7751 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7752 int argc;
7753 PyObject *argv[3];
7754
7755 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7756 --argc;
7757 if (argc == 0) {
7758 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7759 }
7760 if (argc == 1) {
7761 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7762 }
7763 if (argc == 2) {
7764 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7765 }
7766
7767 fail:
7768 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7769 return NULL;
7770 }
7771
7772
7773 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7774 PyObject *resultobj = 0;
7775 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7776 void *argp1 = 0 ;
7777 int res1 = 0 ;
7778 PyObject *swig_obj[1] ;
7779
7780 if (!args) SWIG_fail;
7781 swig_obj[0] = args;
7782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7783 if (!SWIG_IsOK(res1)) {
7784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7785 }
7786 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7787 {
7788 delete arg1;
7789
7790 if (PyErr_Occurred()) SWIG_fail;
7791 }
7792 resultobj = SWIG_Py_Void();
7793 return resultobj;
7794 fail:
7795 return NULL;
7796 }
7797
7798
7799 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7800 PyObject *resultobj = 0;
7801 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7802 wxNativePixelData *arg2 = 0 ;
7803 void *argp1 = 0 ;
7804 int res1 = 0 ;
7805 void *argp2 = 0 ;
7806 int res2 = 0 ;
7807 PyObject * obj0 = 0 ;
7808 PyObject * obj1 = 0 ;
7809 char * kwnames[] = {
7810 (char *) "self",(char *) "data", NULL
7811 };
7812
7813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7815 if (!SWIG_IsOK(res1)) {
7816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7817 }
7818 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7819 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7820 if (!SWIG_IsOK(res2)) {
7821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7822 }
7823 if (!argp2) {
7824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7825 }
7826 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7827 {
7828 (arg1)->Reset((wxNativePixelData const &)*arg2);
7829 if (PyErr_Occurred()) SWIG_fail;
7830 }
7831 resultobj = SWIG_Py_Void();
7832 return resultobj;
7833 fail:
7834 return NULL;
7835 }
7836
7837
7838 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7839 PyObject *resultobj = 0;
7840 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7841 bool result;
7842 void *argp1 = 0 ;
7843 int res1 = 0 ;
7844 PyObject *swig_obj[1] ;
7845
7846 if (!args) SWIG_fail;
7847 swig_obj[0] = args;
7848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7849 if (!SWIG_IsOK(res1)) {
7850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7851 }
7852 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7853 {
7854 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 {
7858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7859 }
7860 return resultobj;
7861 fail:
7862 return NULL;
7863 }
7864
7865
7866 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7867 PyObject *resultobj = 0;
7868 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7869 void *argp1 = 0 ;
7870 int res1 = 0 ;
7871 PyObject *swig_obj[1] ;
7872
7873 if (!args) SWIG_fail;
7874 swig_obj[0] = args;
7875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7876 if (!SWIG_IsOK(res1)) {
7877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7878 }
7879 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7880 {
7881 wxNativePixelData_Accessor_nextPixel(arg1);
7882 if (PyErr_Occurred()) SWIG_fail;
7883 }
7884 resultobj = SWIG_Py_Void();
7885 return resultobj;
7886 fail:
7887 return NULL;
7888 }
7889
7890
7891 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7892 PyObject *resultobj = 0;
7893 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7894 wxNativePixelData *arg2 = 0 ;
7895 int arg3 ;
7896 int arg4 ;
7897 void *argp1 = 0 ;
7898 int res1 = 0 ;
7899 void *argp2 = 0 ;
7900 int res2 = 0 ;
7901 int val3 ;
7902 int ecode3 = 0 ;
7903 int val4 ;
7904 int ecode4 = 0 ;
7905 PyObject * obj0 = 0 ;
7906 PyObject * obj1 = 0 ;
7907 PyObject * obj2 = 0 ;
7908 PyObject * obj3 = 0 ;
7909 char * kwnames[] = {
7910 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7911 };
7912
7913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7915 if (!SWIG_IsOK(res1)) {
7916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7917 }
7918 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7919 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7920 if (!SWIG_IsOK(res2)) {
7921 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7922 }
7923 if (!argp2) {
7924 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7925 }
7926 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7927 ecode3 = SWIG_AsVal_int(obj2, &val3);
7928 if (!SWIG_IsOK(ecode3)) {
7929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7930 }
7931 arg3 = static_cast< int >(val3);
7932 ecode4 = SWIG_AsVal_int(obj3, &val4);
7933 if (!SWIG_IsOK(ecode4)) {
7934 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7935 }
7936 arg4 = static_cast< int >(val4);
7937 {
7938 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7939 if (PyErr_Occurred()) SWIG_fail;
7940 }
7941 resultobj = SWIG_Py_Void();
7942 return resultobj;
7943 fail:
7944 return NULL;
7945 }
7946
7947
7948 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7949 PyObject *resultobj = 0;
7950 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7951 wxNativePixelData *arg2 = 0 ;
7952 int arg3 ;
7953 void *argp1 = 0 ;
7954 int res1 = 0 ;
7955 void *argp2 = 0 ;
7956 int res2 = 0 ;
7957 int val3 ;
7958 int ecode3 = 0 ;
7959 PyObject * obj0 = 0 ;
7960 PyObject * obj1 = 0 ;
7961 PyObject * obj2 = 0 ;
7962 char * kwnames[] = {
7963 (char *) "self",(char *) "data",(char *) "x", NULL
7964 };
7965
7966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7968 if (!SWIG_IsOK(res1)) {
7969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7970 }
7971 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7972 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7973 if (!SWIG_IsOK(res2)) {
7974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7975 }
7976 if (!argp2) {
7977 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7978 }
7979 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7980 ecode3 = SWIG_AsVal_int(obj2, &val3);
7981 if (!SWIG_IsOK(ecode3)) {
7982 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7983 }
7984 arg3 = static_cast< int >(val3);
7985 {
7986 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7987 if (PyErr_Occurred()) SWIG_fail;
7988 }
7989 resultobj = SWIG_Py_Void();
7990 return resultobj;
7991 fail:
7992 return NULL;
7993 }
7994
7995
7996 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7997 PyObject *resultobj = 0;
7998 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7999 wxNativePixelData *arg2 = 0 ;
8000 int arg3 ;
8001 void *argp1 = 0 ;
8002 int res1 = 0 ;
8003 void *argp2 = 0 ;
8004 int res2 = 0 ;
8005 int val3 ;
8006 int ecode3 = 0 ;
8007 PyObject * obj0 = 0 ;
8008 PyObject * obj1 = 0 ;
8009 PyObject * obj2 = 0 ;
8010 char * kwnames[] = {
8011 (char *) "self",(char *) "data",(char *) "y", NULL
8012 };
8013
8014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8016 if (!SWIG_IsOK(res1)) {
8017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8018 }
8019 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8020 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8021 if (!SWIG_IsOK(res2)) {
8022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8023 }
8024 if (!argp2) {
8025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8026 }
8027 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8028 ecode3 = SWIG_AsVal_int(obj2, &val3);
8029 if (!SWIG_IsOK(ecode3)) {
8030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8031 }
8032 arg3 = static_cast< int >(val3);
8033 {
8034 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8035 if (PyErr_Occurred()) SWIG_fail;
8036 }
8037 resultobj = SWIG_Py_Void();
8038 return resultobj;
8039 fail:
8040 return NULL;
8041 }
8042
8043
8044 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8045 PyObject *resultobj = 0;
8046 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8047 wxNativePixelData *arg2 = 0 ;
8048 int arg3 ;
8049 int arg4 ;
8050 void *argp1 = 0 ;
8051 int res1 = 0 ;
8052 void *argp2 = 0 ;
8053 int res2 = 0 ;
8054 int val3 ;
8055 int ecode3 = 0 ;
8056 int val4 ;
8057 int ecode4 = 0 ;
8058 PyObject * obj0 = 0 ;
8059 PyObject * obj1 = 0 ;
8060 PyObject * obj2 = 0 ;
8061 PyObject * obj3 = 0 ;
8062 char * kwnames[] = {
8063 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8064 };
8065
8066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8068 if (!SWIG_IsOK(res1)) {
8069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8070 }
8071 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8072 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8073 if (!SWIG_IsOK(res2)) {
8074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8075 }
8076 if (!argp2) {
8077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8078 }
8079 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8080 ecode3 = SWIG_AsVal_int(obj2, &val3);
8081 if (!SWIG_IsOK(ecode3)) {
8082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8083 }
8084 arg3 = static_cast< int >(val3);
8085 ecode4 = SWIG_AsVal_int(obj3, &val4);
8086 if (!SWIG_IsOK(ecode4)) {
8087 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8088 }
8089 arg4 = static_cast< int >(val4);
8090 {
8091 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8092 if (PyErr_Occurred()) SWIG_fail;
8093 }
8094 resultobj = SWIG_Py_Void();
8095 return resultobj;
8096 fail:
8097 return NULL;
8098 }
8099
8100
8101 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8102 PyObject *resultobj = 0;
8103 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8104 byte arg2 ;
8105 byte arg3 ;
8106 byte arg4 ;
8107 void *argp1 = 0 ;
8108 int res1 = 0 ;
8109 unsigned char val2 ;
8110 int ecode2 = 0 ;
8111 unsigned char val3 ;
8112 int ecode3 = 0 ;
8113 unsigned char val4 ;
8114 int ecode4 = 0 ;
8115 PyObject * obj0 = 0 ;
8116 PyObject * obj1 = 0 ;
8117 PyObject * obj2 = 0 ;
8118 PyObject * obj3 = 0 ;
8119 char * kwnames[] = {
8120 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8121 };
8122
8123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8125 if (!SWIG_IsOK(res1)) {
8126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8127 }
8128 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8129 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8130 if (!SWIG_IsOK(ecode2)) {
8131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8132 }
8133 arg2 = static_cast< byte >(val2);
8134 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8135 if (!SWIG_IsOK(ecode3)) {
8136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8137 }
8138 arg3 = static_cast< byte >(val3);
8139 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8140 if (!SWIG_IsOK(ecode4)) {
8141 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8142 }
8143 arg4 = static_cast< byte >(val4);
8144 {
8145 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8146 if (PyErr_Occurred()) SWIG_fail;
8147 }
8148 resultobj = SWIG_Py_Void();
8149 return resultobj;
8150 fail:
8151 return NULL;
8152 }
8153
8154
8155 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8156 PyObject *resultobj = 0;
8157 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8158 PyObject *result = 0 ;
8159 void *argp1 = 0 ;
8160 int res1 = 0 ;
8161 PyObject *swig_obj[1] ;
8162
8163 if (!args) SWIG_fail;
8164 swig_obj[0] = args;
8165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8166 if (!SWIG_IsOK(res1)) {
8167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8168 }
8169 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8170 {
8171 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8172 if (PyErr_Occurred()) SWIG_fail;
8173 }
8174 resultobj = result;
8175 return resultobj;
8176 fail:
8177 return NULL;
8178 }
8179
8180
8181 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8182 PyObject *obj;
8183 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8184 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8185 return SWIG_Py_Void();
8186 }
8187
8188 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8189 return SWIG_Python_InitShadowInstance(args);
8190 }
8191
8192 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8193 PyObject *resultobj = 0;
8194 wxBitmap *arg1 = 0 ;
8195 wxAlphaPixelData *result = 0 ;
8196 void *argp1 = 0 ;
8197 int res1 = 0 ;
8198
8199 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8201 if (!SWIG_IsOK(res1)) {
8202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8203 }
8204 if (!argp1) {
8205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8206 }
8207 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8208 {
8209 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8210 if (PyErr_Occurred()) SWIG_fail;
8211 }
8212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8213 return resultobj;
8214 fail:
8215 return NULL;
8216 }
8217
8218
8219 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8220 PyObject *resultobj = 0;
8221 wxBitmap *arg1 = 0 ;
8222 wxRect *arg2 = 0 ;
8223 wxAlphaPixelData *result = 0 ;
8224 void *argp1 = 0 ;
8225 int res1 = 0 ;
8226 wxRect temp2 ;
8227
8228 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8230 if (!SWIG_IsOK(res1)) {
8231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8232 }
8233 if (!argp1) {
8234 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8235 }
8236 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8237 {
8238 arg2 = &temp2;
8239 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8240 }
8241 {
8242 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8243 if (PyErr_Occurred()) SWIG_fail;
8244 }
8245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8246 return resultobj;
8247 fail:
8248 return NULL;
8249 }
8250
8251
8252 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8253 PyObject *resultobj = 0;
8254 wxBitmap *arg1 = 0 ;
8255 wxPoint *arg2 = 0 ;
8256 wxSize *arg3 = 0 ;
8257 wxAlphaPixelData *result = 0 ;
8258 void *argp1 = 0 ;
8259 int res1 = 0 ;
8260 wxPoint temp2 ;
8261 wxSize temp3 ;
8262
8263 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8265 if (!SWIG_IsOK(res1)) {
8266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8267 }
8268 if (!argp1) {
8269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8270 }
8271 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8272 {
8273 arg2 = &temp2;
8274 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8275 }
8276 {
8277 arg3 = &temp3;
8278 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8279 }
8280 {
8281 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8282 if (PyErr_Occurred()) SWIG_fail;
8283 }
8284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8285 return resultobj;
8286 fail:
8287 return NULL;
8288 }
8289
8290
8291 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8292 int argc;
8293 PyObject *argv[4];
8294
8295 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8296 --argc;
8297 if (argc == 1) {
8298 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8299 }
8300 if (argc == 2) {
8301 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8302 }
8303 if (argc == 3) {
8304 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8305 }
8306
8307 fail:
8308 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8309 return NULL;
8310 }
8311
8312
8313 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8314 PyObject *resultobj = 0;
8315 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8316 void *argp1 = 0 ;
8317 int res1 = 0 ;
8318 PyObject *swig_obj[1] ;
8319
8320 if (!args) SWIG_fail;
8321 swig_obj[0] = args;
8322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8323 if (!SWIG_IsOK(res1)) {
8324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8325 }
8326 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8327 {
8328 delete arg1;
8329
8330 if (PyErr_Occurred()) SWIG_fail;
8331 }
8332 resultobj = SWIG_Py_Void();
8333 return resultobj;
8334 fail:
8335 return NULL;
8336 }
8337
8338
8339 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8340 PyObject *resultobj = 0;
8341 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8342 wxAlphaPixelData_Accessor result;
8343 void *argp1 = 0 ;
8344 int res1 = 0 ;
8345 PyObject *swig_obj[1] ;
8346
8347 if (!args) SWIG_fail;
8348 swig_obj[0] = args;
8349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8350 if (!SWIG_IsOK(res1)) {
8351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8352 }
8353 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8354 {
8355 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8356 if (PyErr_Occurred()) SWIG_fail;
8357 }
8358 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8359 return resultobj;
8360 fail:
8361 return NULL;
8362 }
8363
8364
8365 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8366 PyObject *resultobj = 0;
8367 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8368 void *argp1 = 0 ;
8369 int res1 = 0 ;
8370 PyObject *swig_obj[1] ;
8371
8372 if (!args) SWIG_fail;
8373 swig_obj[0] = args;
8374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8375 if (!SWIG_IsOK(res1)) {
8376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8377 }
8378 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8379 {
8380 (arg1)->UseAlpha();
8381 if (PyErr_Occurred()) SWIG_fail;
8382 }
8383 resultobj = SWIG_Py_Void();
8384 return resultobj;
8385 fail:
8386 return NULL;
8387 }
8388
8389
8390 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8391 PyObject *resultobj = 0;
8392 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8393 bool result;
8394 void *argp1 = 0 ;
8395 int res1 = 0 ;
8396 PyObject *swig_obj[1] ;
8397
8398 if (!args) SWIG_fail;
8399 swig_obj[0] = args;
8400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8401 if (!SWIG_IsOK(res1)) {
8402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8403 }
8404 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8405 {
8406 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8407 if (PyErr_Occurred()) SWIG_fail;
8408 }
8409 {
8410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8411 }
8412 return resultobj;
8413 fail:
8414 return NULL;
8415 }
8416
8417
8418 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8419 PyObject *obj;
8420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8421 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8422 return SWIG_Py_Void();
8423 }
8424
8425 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8426 return SWIG_Python_InitShadowInstance(args);
8427 }
8428
8429 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8430 PyObject *resultobj = 0;
8431 wxAlphaPixelData *arg1 = 0 ;
8432 wxAlphaPixelData_Accessor *result = 0 ;
8433 void *argp1 = 0 ;
8434 int res1 = 0 ;
8435
8436 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8438 if (!SWIG_IsOK(res1)) {
8439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8440 }
8441 if (!argp1) {
8442 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8443 }
8444 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8445 {
8446 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8447 if (PyErr_Occurred()) SWIG_fail;
8448 }
8449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8450 return resultobj;
8451 fail:
8452 return NULL;
8453 }
8454
8455
8456 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8457 PyObject *resultobj = 0;
8458 wxBitmap *arg1 = 0 ;
8459 wxAlphaPixelData *arg2 = 0 ;
8460 wxAlphaPixelData_Accessor *result = 0 ;
8461 void *argp1 = 0 ;
8462 int res1 = 0 ;
8463 void *argp2 = 0 ;
8464 int res2 = 0 ;
8465
8466 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8468 if (!SWIG_IsOK(res1)) {
8469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8470 }
8471 if (!argp1) {
8472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8473 }
8474 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8475 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8476 if (!SWIG_IsOK(res2)) {
8477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8478 }
8479 if (!argp2) {
8480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8481 }
8482 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8483 {
8484 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8485 if (PyErr_Occurred()) SWIG_fail;
8486 }
8487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8488 return resultobj;
8489 fail:
8490 return NULL;
8491 }
8492
8493
8494 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8495 PyObject *resultobj = 0;
8496 wxAlphaPixelData_Accessor *result = 0 ;
8497
8498 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8499 {
8500 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8501 if (PyErr_Occurred()) SWIG_fail;
8502 }
8503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8504 return resultobj;
8505 fail:
8506 return NULL;
8507 }
8508
8509
8510 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8511 int argc;
8512 PyObject *argv[3];
8513
8514 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8515 --argc;
8516 if (argc == 0) {
8517 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8518 }
8519 if (argc == 1) {
8520 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8521 }
8522 if (argc == 2) {
8523 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8524 }
8525
8526 fail:
8527 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8528 return NULL;
8529 }
8530
8531
8532 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8533 PyObject *resultobj = 0;
8534 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8535 void *argp1 = 0 ;
8536 int res1 = 0 ;
8537 PyObject *swig_obj[1] ;
8538
8539 if (!args) SWIG_fail;
8540 swig_obj[0] = args;
8541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8542 if (!SWIG_IsOK(res1)) {
8543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8544 }
8545 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8546 {
8547 delete arg1;
8548
8549 if (PyErr_Occurred()) SWIG_fail;
8550 }
8551 resultobj = SWIG_Py_Void();
8552 return resultobj;
8553 fail:
8554 return NULL;
8555 }
8556
8557
8558 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8559 PyObject *resultobj = 0;
8560 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8561 wxAlphaPixelData *arg2 = 0 ;
8562 void *argp1 = 0 ;
8563 int res1 = 0 ;
8564 void *argp2 = 0 ;
8565 int res2 = 0 ;
8566 PyObject * obj0 = 0 ;
8567 PyObject * obj1 = 0 ;
8568 char * kwnames[] = {
8569 (char *) "self",(char *) "data", NULL
8570 };
8571
8572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8574 if (!SWIG_IsOK(res1)) {
8575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8576 }
8577 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8578 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8579 if (!SWIG_IsOK(res2)) {
8580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8581 }
8582 if (!argp2) {
8583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8584 }
8585 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8586 {
8587 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8588 if (PyErr_Occurred()) SWIG_fail;
8589 }
8590 resultobj = SWIG_Py_Void();
8591 return resultobj;
8592 fail:
8593 return NULL;
8594 }
8595
8596
8597 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8598 PyObject *resultobj = 0;
8599 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8600 bool result;
8601 void *argp1 = 0 ;
8602 int res1 = 0 ;
8603 PyObject *swig_obj[1] ;
8604
8605 if (!args) SWIG_fail;
8606 swig_obj[0] = args;
8607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8608 if (!SWIG_IsOK(res1)) {
8609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8610 }
8611 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8612 {
8613 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8614 if (PyErr_Occurred()) SWIG_fail;
8615 }
8616 {
8617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8618 }
8619 return resultobj;
8620 fail:
8621 return NULL;
8622 }
8623
8624
8625 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8626 PyObject *resultobj = 0;
8627 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8628 void *argp1 = 0 ;
8629 int res1 = 0 ;
8630 PyObject *swig_obj[1] ;
8631
8632 if (!args) SWIG_fail;
8633 swig_obj[0] = args;
8634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8635 if (!SWIG_IsOK(res1)) {
8636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8637 }
8638 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8639 {
8640 wxAlphaPixelData_Accessor_nextPixel(arg1);
8641 if (PyErr_Occurred()) SWIG_fail;
8642 }
8643 resultobj = SWIG_Py_Void();
8644 return resultobj;
8645 fail:
8646 return NULL;
8647 }
8648
8649
8650 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8651 PyObject *resultobj = 0;
8652 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8653 wxAlphaPixelData *arg2 = 0 ;
8654 int arg3 ;
8655 int arg4 ;
8656 void *argp1 = 0 ;
8657 int res1 = 0 ;
8658 void *argp2 = 0 ;
8659 int res2 = 0 ;
8660 int val3 ;
8661 int ecode3 = 0 ;
8662 int val4 ;
8663 int ecode4 = 0 ;
8664 PyObject * obj0 = 0 ;
8665 PyObject * obj1 = 0 ;
8666 PyObject * obj2 = 0 ;
8667 PyObject * obj3 = 0 ;
8668 char * kwnames[] = {
8669 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8670 };
8671
8672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8674 if (!SWIG_IsOK(res1)) {
8675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8676 }
8677 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8678 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8679 if (!SWIG_IsOK(res2)) {
8680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8681 }
8682 if (!argp2) {
8683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8684 }
8685 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8686 ecode3 = SWIG_AsVal_int(obj2, &val3);
8687 if (!SWIG_IsOK(ecode3)) {
8688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8689 }
8690 arg3 = static_cast< int >(val3);
8691 ecode4 = SWIG_AsVal_int(obj3, &val4);
8692 if (!SWIG_IsOK(ecode4)) {
8693 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8694 }
8695 arg4 = static_cast< int >(val4);
8696 {
8697 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8698 if (PyErr_Occurred()) SWIG_fail;
8699 }
8700 resultobj = SWIG_Py_Void();
8701 return resultobj;
8702 fail:
8703 return NULL;
8704 }
8705
8706
8707 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8708 PyObject *resultobj = 0;
8709 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8710 wxAlphaPixelData *arg2 = 0 ;
8711 int arg3 ;
8712 void *argp1 = 0 ;
8713 int res1 = 0 ;
8714 void *argp2 = 0 ;
8715 int res2 = 0 ;
8716 int val3 ;
8717 int ecode3 = 0 ;
8718 PyObject * obj0 = 0 ;
8719 PyObject * obj1 = 0 ;
8720 PyObject * obj2 = 0 ;
8721 char * kwnames[] = {
8722 (char *) "self",(char *) "data",(char *) "x", NULL
8723 };
8724
8725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8727 if (!SWIG_IsOK(res1)) {
8728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8729 }
8730 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8731 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8732 if (!SWIG_IsOK(res2)) {
8733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8734 }
8735 if (!argp2) {
8736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8737 }
8738 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8739 ecode3 = SWIG_AsVal_int(obj2, &val3);
8740 if (!SWIG_IsOK(ecode3)) {
8741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8742 }
8743 arg3 = static_cast< int >(val3);
8744 {
8745 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8746 if (PyErr_Occurred()) SWIG_fail;
8747 }
8748 resultobj = SWIG_Py_Void();
8749 return resultobj;
8750 fail:
8751 return NULL;
8752 }
8753
8754
8755 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8756 PyObject *resultobj = 0;
8757 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8758 wxAlphaPixelData *arg2 = 0 ;
8759 int arg3 ;
8760 void *argp1 = 0 ;
8761 int res1 = 0 ;
8762 void *argp2 = 0 ;
8763 int res2 = 0 ;
8764 int val3 ;
8765 int ecode3 = 0 ;
8766 PyObject * obj0 = 0 ;
8767 PyObject * obj1 = 0 ;
8768 PyObject * obj2 = 0 ;
8769 char * kwnames[] = {
8770 (char *) "self",(char *) "data",(char *) "y", NULL
8771 };
8772
8773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8775 if (!SWIG_IsOK(res1)) {
8776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8777 }
8778 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8779 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8780 if (!SWIG_IsOK(res2)) {
8781 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8782 }
8783 if (!argp2) {
8784 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8785 }
8786 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8787 ecode3 = SWIG_AsVal_int(obj2, &val3);
8788 if (!SWIG_IsOK(ecode3)) {
8789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8790 }
8791 arg3 = static_cast< int >(val3);
8792 {
8793 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8794 if (PyErr_Occurred()) SWIG_fail;
8795 }
8796 resultobj = SWIG_Py_Void();
8797 return resultobj;
8798 fail:
8799 return NULL;
8800 }
8801
8802
8803 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8804 PyObject *resultobj = 0;
8805 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8806 wxAlphaPixelData *arg2 = 0 ;
8807 int arg3 ;
8808 int arg4 ;
8809 void *argp1 = 0 ;
8810 int res1 = 0 ;
8811 void *argp2 = 0 ;
8812 int res2 = 0 ;
8813 int val3 ;
8814 int ecode3 = 0 ;
8815 int val4 ;
8816 int ecode4 = 0 ;
8817 PyObject * obj0 = 0 ;
8818 PyObject * obj1 = 0 ;
8819 PyObject * obj2 = 0 ;
8820 PyObject * obj3 = 0 ;
8821 char * kwnames[] = {
8822 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8823 };
8824
8825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8827 if (!SWIG_IsOK(res1)) {
8828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8829 }
8830 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8831 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8832 if (!SWIG_IsOK(res2)) {
8833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8834 }
8835 if (!argp2) {
8836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8837 }
8838 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8839 ecode3 = SWIG_AsVal_int(obj2, &val3);
8840 if (!SWIG_IsOK(ecode3)) {
8841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8842 }
8843 arg3 = static_cast< int >(val3);
8844 ecode4 = SWIG_AsVal_int(obj3, &val4);
8845 if (!SWIG_IsOK(ecode4)) {
8846 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8847 }
8848 arg4 = static_cast< int >(val4);
8849 {
8850 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8851 if (PyErr_Occurred()) SWIG_fail;
8852 }
8853 resultobj = SWIG_Py_Void();
8854 return resultobj;
8855 fail:
8856 return NULL;
8857 }
8858
8859
8860 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8861 PyObject *resultobj = 0;
8862 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8863 byte arg2 ;
8864 byte arg3 ;
8865 byte arg4 ;
8866 byte arg5 ;
8867 void *argp1 = 0 ;
8868 int res1 = 0 ;
8869 unsigned char val2 ;
8870 int ecode2 = 0 ;
8871 unsigned char val3 ;
8872 int ecode3 = 0 ;
8873 unsigned char val4 ;
8874 int ecode4 = 0 ;
8875 unsigned char val5 ;
8876 int ecode5 = 0 ;
8877 PyObject * obj0 = 0 ;
8878 PyObject * obj1 = 0 ;
8879 PyObject * obj2 = 0 ;
8880 PyObject * obj3 = 0 ;
8881 PyObject * obj4 = 0 ;
8882 char * kwnames[] = {
8883 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8884 };
8885
8886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8888 if (!SWIG_IsOK(res1)) {
8889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8890 }
8891 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8892 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8893 if (!SWIG_IsOK(ecode2)) {
8894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8895 }
8896 arg2 = static_cast< byte >(val2);
8897 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8898 if (!SWIG_IsOK(ecode3)) {
8899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8900 }
8901 arg3 = static_cast< byte >(val3);
8902 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8903 if (!SWIG_IsOK(ecode4)) {
8904 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8905 }
8906 arg4 = static_cast< byte >(val4);
8907 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8908 if (!SWIG_IsOK(ecode5)) {
8909 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8910 }
8911 arg5 = static_cast< byte >(val5);
8912 {
8913 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8914 if (PyErr_Occurred()) SWIG_fail;
8915 }
8916 resultobj = SWIG_Py_Void();
8917 return resultobj;
8918 fail:
8919 return NULL;
8920 }
8921
8922
8923 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8924 PyObject *resultobj = 0;
8925 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8926 PyObject *result = 0 ;
8927 void *argp1 = 0 ;
8928 int res1 = 0 ;
8929 PyObject *swig_obj[1] ;
8930
8931 if (!args) SWIG_fail;
8932 swig_obj[0] = args;
8933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8934 if (!SWIG_IsOK(res1)) {
8935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8936 }
8937 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8938 {
8939 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8940 if (PyErr_Occurred()) SWIG_fail;
8941 }
8942 resultobj = result;
8943 return resultobj;
8944 fail:
8945 return NULL;
8946 }
8947
8948
8949 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8950 PyObject *obj;
8951 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8952 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8953 return SWIG_Py_Void();
8954 }
8955
8956 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8957 return SWIG_Python_InitShadowInstance(args);
8958 }
8959
8960 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8961 PyObject *resultobj = 0;
8962 wxBitmap *arg1 = 0 ;
8963 wxColour const &arg2_defvalue = wxNullColour ;
8964 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8965 wxMask *result = 0 ;
8966 void *argp1 = 0 ;
8967 int res1 = 0 ;
8968 wxColour temp2 ;
8969 PyObject * obj0 = 0 ;
8970 PyObject * obj1 = 0 ;
8971 char * kwnames[] = {
8972 (char *) "bitmap",(char *) "colour", NULL
8973 };
8974
8975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8976 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8977 if (!SWIG_IsOK(res1)) {
8978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8979 }
8980 if (!argp1) {
8981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8982 }
8983 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8984 if (obj1) {
8985 {
8986 arg2 = &temp2;
8987 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8988 }
8989 }
8990 {
8991 if (!wxPyCheckForApp()) SWIG_fail;
8992 PyThreadState* __tstate = wxPyBeginAllowThreads();
8993 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8994 wxPyEndAllowThreads(__tstate);
8995 if (PyErr_Occurred()) SWIG_fail;
8996 }
8997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8998 return resultobj;
8999 fail:
9000 return NULL;
9001 }
9002
9003
9004 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9005 PyObject *resultobj = 0;
9006 wxMask *arg1 = (wxMask *) 0 ;
9007 void *argp1 = 0 ;
9008 int res1 = 0 ;
9009 PyObject *swig_obj[1] ;
9010
9011 if (!args) SWIG_fail;
9012 swig_obj[0] = args;
9013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9014 if (!SWIG_IsOK(res1)) {
9015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9016 }
9017 arg1 = reinterpret_cast< wxMask * >(argp1);
9018 {
9019 delete arg1;
9020
9021 if (PyErr_Occurred()) SWIG_fail;
9022 }
9023 resultobj = SWIG_Py_Void();
9024 return resultobj;
9025 fail:
9026 return NULL;
9027 }
9028
9029
9030 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9031 PyObject *obj;
9032 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9033 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9034 return SWIG_Py_Void();
9035 }
9036
9037 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9038 return SWIG_Python_InitShadowInstance(args);
9039 }
9040
9041 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9042 PyObject *resultobj = 0;
9043 wxString *arg1 = 0 ;
9044 wxBitmapType arg2 ;
9045 int arg3 = (int) -1 ;
9046 int arg4 = (int) -1 ;
9047 wxIcon *result = 0 ;
9048 bool temp1 = false ;
9049 int val2 ;
9050 int ecode2 = 0 ;
9051 int val3 ;
9052 int ecode3 = 0 ;
9053 int val4 ;
9054 int ecode4 = 0 ;
9055 PyObject * obj0 = 0 ;
9056 PyObject * obj1 = 0 ;
9057 PyObject * obj2 = 0 ;
9058 PyObject * obj3 = 0 ;
9059 char * kwnames[] = {
9060 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9061 };
9062
9063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9064 {
9065 arg1 = wxString_in_helper(obj0);
9066 if (arg1 == NULL) SWIG_fail;
9067 temp1 = true;
9068 }
9069 ecode2 = SWIG_AsVal_int(obj1, &val2);
9070 if (!SWIG_IsOK(ecode2)) {
9071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9072 }
9073 arg2 = static_cast< wxBitmapType >(val2);
9074 if (obj2) {
9075 ecode3 = SWIG_AsVal_int(obj2, &val3);
9076 if (!SWIG_IsOK(ecode3)) {
9077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9078 }
9079 arg3 = static_cast< int >(val3);
9080 }
9081 if (obj3) {
9082 ecode4 = SWIG_AsVal_int(obj3, &val4);
9083 if (!SWIG_IsOK(ecode4)) {
9084 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9085 }
9086 arg4 = static_cast< int >(val4);
9087 }
9088 {
9089 if (!wxPyCheckForApp()) SWIG_fail;
9090 PyThreadState* __tstate = wxPyBeginAllowThreads();
9091 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9092 wxPyEndAllowThreads(__tstate);
9093 if (PyErr_Occurred()) SWIG_fail;
9094 }
9095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9096 {
9097 if (temp1)
9098 delete arg1;
9099 }
9100 return resultobj;
9101 fail:
9102 {
9103 if (temp1)
9104 delete arg1;
9105 }
9106 return NULL;
9107 }
9108
9109
9110 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9111 PyObject *resultobj = 0;
9112 wxIcon *arg1 = (wxIcon *) 0 ;
9113 void *argp1 = 0 ;
9114 int res1 = 0 ;
9115 PyObject *swig_obj[1] ;
9116
9117 if (!args) SWIG_fail;
9118 swig_obj[0] = args;
9119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9120 if (!SWIG_IsOK(res1)) {
9121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9122 }
9123 arg1 = reinterpret_cast< wxIcon * >(argp1);
9124 {
9125 PyThreadState* __tstate = wxPyBeginAllowThreads();
9126 delete arg1;
9127
9128 wxPyEndAllowThreads(__tstate);
9129 if (PyErr_Occurred()) SWIG_fail;
9130 }
9131 resultobj = SWIG_Py_Void();
9132 return resultobj;
9133 fail:
9134 return NULL;
9135 }
9136
9137
9138 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9139 PyObject *resultobj = 0;
9140 wxIcon *result = 0 ;
9141
9142 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9143 {
9144 if (!wxPyCheckForApp()) SWIG_fail;
9145 PyThreadState* __tstate = wxPyBeginAllowThreads();
9146 result = (wxIcon *)new wxIcon();
9147 wxPyEndAllowThreads(__tstate);
9148 if (PyErr_Occurred()) SWIG_fail;
9149 }
9150 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9151 return resultobj;
9152 fail:
9153 return NULL;
9154 }
9155
9156
9157 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9158 PyObject *resultobj = 0;
9159 wxIconLocation *arg1 = 0 ;
9160 wxIcon *result = 0 ;
9161 void *argp1 = 0 ;
9162 int res1 = 0 ;
9163 PyObject * obj0 = 0 ;
9164 char * kwnames[] = {
9165 (char *) "loc", NULL
9166 };
9167
9168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9169 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9170 if (!SWIG_IsOK(res1)) {
9171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9172 }
9173 if (!argp1) {
9174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9175 }
9176 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9177 {
9178 if (!wxPyCheckForApp()) SWIG_fail;
9179 PyThreadState* __tstate = wxPyBeginAllowThreads();
9180 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9181 wxPyEndAllowThreads(__tstate);
9182 if (PyErr_Occurred()) SWIG_fail;
9183 }
9184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9185 return resultobj;
9186 fail:
9187 return NULL;
9188 }
9189
9190
9191 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9192 PyObject *resultobj = 0;
9193 wxBitmap *arg1 = 0 ;
9194 wxIcon *result = 0 ;
9195 void *argp1 = 0 ;
9196 int res1 = 0 ;
9197 PyObject * obj0 = 0 ;
9198 char * kwnames[] = {
9199 (char *) "bmp", NULL
9200 };
9201
9202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9203 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9204 if (!SWIG_IsOK(res1)) {
9205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9206 }
9207 if (!argp1) {
9208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9209 }
9210 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9211 {
9212 if (!wxPyCheckForApp()) SWIG_fail;
9213 PyThreadState* __tstate = wxPyBeginAllowThreads();
9214 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9215 wxPyEndAllowThreads(__tstate);
9216 if (PyErr_Occurred()) SWIG_fail;
9217 }
9218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9219 return resultobj;
9220 fail:
9221 return NULL;
9222 }
9223
9224
9225 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9226 PyObject *resultobj = 0;
9227 PyObject *arg1 = (PyObject *) 0 ;
9228 wxIcon *result = 0 ;
9229 PyObject * obj0 = 0 ;
9230 char * kwnames[] = {
9231 (char *) "listOfStrings", NULL
9232 };
9233
9234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9235 arg1 = obj0;
9236 {
9237 if (!wxPyCheckForApp()) SWIG_fail;
9238 PyThreadState* __tstate = wxPyBeginAllowThreads();
9239 result = (wxIcon *)new_wxIcon(arg1);
9240 wxPyEndAllowThreads(__tstate);
9241 if (PyErr_Occurred()) SWIG_fail;
9242 }
9243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9244 return resultobj;
9245 fail:
9246 return NULL;
9247 }
9248
9249
9250 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9251 PyObject *resultobj = 0;
9252 wxIcon *arg1 = (wxIcon *) 0 ;
9253 wxString *arg2 = 0 ;
9254 wxBitmapType arg3 ;
9255 bool result;
9256 void *argp1 = 0 ;
9257 int res1 = 0 ;
9258 bool temp2 = false ;
9259 int val3 ;
9260 int ecode3 = 0 ;
9261 PyObject * obj0 = 0 ;
9262 PyObject * obj1 = 0 ;
9263 PyObject * obj2 = 0 ;
9264 char * kwnames[] = {
9265 (char *) "self",(char *) "name",(char *) "type", NULL
9266 };
9267
9268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9270 if (!SWIG_IsOK(res1)) {
9271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9272 }
9273 arg1 = reinterpret_cast< wxIcon * >(argp1);
9274 {
9275 arg2 = wxString_in_helper(obj1);
9276 if (arg2 == NULL) SWIG_fail;
9277 temp2 = true;
9278 }
9279 ecode3 = SWIG_AsVal_int(obj2, &val3);
9280 if (!SWIG_IsOK(ecode3)) {
9281 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9282 }
9283 arg3 = static_cast< wxBitmapType >(val3);
9284 {
9285 PyThreadState* __tstate = wxPyBeginAllowThreads();
9286 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9287 wxPyEndAllowThreads(__tstate);
9288 if (PyErr_Occurred()) SWIG_fail;
9289 }
9290 {
9291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9292 }
9293 {
9294 if (temp2)
9295 delete arg2;
9296 }
9297 return resultobj;
9298 fail:
9299 {
9300 if (temp2)
9301 delete arg2;
9302 }
9303 return NULL;
9304 }
9305
9306
9307 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9308 PyObject *resultobj = 0;
9309 wxIcon *arg1 = (wxIcon *) 0 ;
9310 bool result;
9311 void *argp1 = 0 ;
9312 int res1 = 0 ;
9313 PyObject *swig_obj[1] ;
9314
9315 if (!args) SWIG_fail;
9316 swig_obj[0] = args;
9317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9318 if (!SWIG_IsOK(res1)) {
9319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9320 }
9321 arg1 = reinterpret_cast< wxIcon * >(argp1);
9322 {
9323 PyThreadState* __tstate = wxPyBeginAllowThreads();
9324 result = (bool)(arg1)->IsOk();
9325 wxPyEndAllowThreads(__tstate);
9326 if (PyErr_Occurred()) SWIG_fail;
9327 }
9328 {
9329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9330 }
9331 return resultobj;
9332 fail:
9333 return NULL;
9334 }
9335
9336
9337 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9338 PyObject *resultobj = 0;
9339 wxIcon *arg1 = (wxIcon *) 0 ;
9340 int result;
9341 void *argp1 = 0 ;
9342 int res1 = 0 ;
9343 PyObject *swig_obj[1] ;
9344
9345 if (!args) SWIG_fail;
9346 swig_obj[0] = args;
9347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9348 if (!SWIG_IsOK(res1)) {
9349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9350 }
9351 arg1 = reinterpret_cast< wxIcon * >(argp1);
9352 {
9353 PyThreadState* __tstate = wxPyBeginAllowThreads();
9354 result = (int)(arg1)->GetWidth();
9355 wxPyEndAllowThreads(__tstate);
9356 if (PyErr_Occurred()) SWIG_fail;
9357 }
9358 resultobj = SWIG_From_int(static_cast< int >(result));
9359 return resultobj;
9360 fail:
9361 return NULL;
9362 }
9363
9364
9365 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9366 PyObject *resultobj = 0;
9367 wxIcon *arg1 = (wxIcon *) 0 ;
9368 int result;
9369 void *argp1 = 0 ;
9370 int res1 = 0 ;
9371 PyObject *swig_obj[1] ;
9372
9373 if (!args) SWIG_fail;
9374 swig_obj[0] = args;
9375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9376 if (!SWIG_IsOK(res1)) {
9377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9378 }
9379 arg1 = reinterpret_cast< wxIcon * >(argp1);
9380 {
9381 PyThreadState* __tstate = wxPyBeginAllowThreads();
9382 result = (int)(arg1)->GetHeight();
9383 wxPyEndAllowThreads(__tstate);
9384 if (PyErr_Occurred()) SWIG_fail;
9385 }
9386 resultobj = SWIG_From_int(static_cast< int >(result));
9387 return resultobj;
9388 fail:
9389 return NULL;
9390 }
9391
9392
9393 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9394 PyObject *resultobj = 0;
9395 wxIcon *arg1 = (wxIcon *) 0 ;
9396 int result;
9397 void *argp1 = 0 ;
9398 int res1 = 0 ;
9399 PyObject *swig_obj[1] ;
9400
9401 if (!args) SWIG_fail;
9402 swig_obj[0] = args;
9403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9404 if (!SWIG_IsOK(res1)) {
9405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9406 }
9407 arg1 = reinterpret_cast< wxIcon * >(argp1);
9408 {
9409 PyThreadState* __tstate = wxPyBeginAllowThreads();
9410 result = (int)(arg1)->GetDepth();
9411 wxPyEndAllowThreads(__tstate);
9412 if (PyErr_Occurred()) SWIG_fail;
9413 }
9414 resultobj = SWIG_From_int(static_cast< int >(result));
9415 return resultobj;
9416 fail:
9417 return NULL;
9418 }
9419
9420
9421 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9422 PyObject *resultobj = 0;
9423 wxIcon *arg1 = (wxIcon *) 0 ;
9424 int arg2 ;
9425 void *argp1 = 0 ;
9426 int res1 = 0 ;
9427 int val2 ;
9428 int ecode2 = 0 ;
9429 PyObject * obj0 = 0 ;
9430 PyObject * obj1 = 0 ;
9431 char * kwnames[] = {
9432 (char *) "self",(char *) "w", NULL
9433 };
9434
9435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9437 if (!SWIG_IsOK(res1)) {
9438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9439 }
9440 arg1 = reinterpret_cast< wxIcon * >(argp1);
9441 ecode2 = SWIG_AsVal_int(obj1, &val2);
9442 if (!SWIG_IsOK(ecode2)) {
9443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9444 }
9445 arg2 = static_cast< int >(val2);
9446 {
9447 PyThreadState* __tstate = wxPyBeginAllowThreads();
9448 (arg1)->SetWidth(arg2);
9449 wxPyEndAllowThreads(__tstate);
9450 if (PyErr_Occurred()) SWIG_fail;
9451 }
9452 resultobj = SWIG_Py_Void();
9453 return resultobj;
9454 fail:
9455 return NULL;
9456 }
9457
9458
9459 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9460 PyObject *resultobj = 0;
9461 wxIcon *arg1 = (wxIcon *) 0 ;
9462 int arg2 ;
9463 void *argp1 = 0 ;
9464 int res1 = 0 ;
9465 int val2 ;
9466 int ecode2 = 0 ;
9467 PyObject * obj0 = 0 ;
9468 PyObject * obj1 = 0 ;
9469 char * kwnames[] = {
9470 (char *) "self",(char *) "h", NULL
9471 };
9472
9473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9475 if (!SWIG_IsOK(res1)) {
9476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9477 }
9478 arg1 = reinterpret_cast< wxIcon * >(argp1);
9479 ecode2 = SWIG_AsVal_int(obj1, &val2);
9480 if (!SWIG_IsOK(ecode2)) {
9481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9482 }
9483 arg2 = static_cast< int >(val2);
9484 {
9485 PyThreadState* __tstate = wxPyBeginAllowThreads();
9486 (arg1)->SetHeight(arg2);
9487 wxPyEndAllowThreads(__tstate);
9488 if (PyErr_Occurred()) SWIG_fail;
9489 }
9490 resultobj = SWIG_Py_Void();
9491 return resultobj;
9492 fail:
9493 return NULL;
9494 }
9495
9496
9497 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9498 PyObject *resultobj = 0;
9499 wxIcon *arg1 = (wxIcon *) 0 ;
9500 int arg2 ;
9501 void *argp1 = 0 ;
9502 int res1 = 0 ;
9503 int val2 ;
9504 int ecode2 = 0 ;
9505 PyObject * obj0 = 0 ;
9506 PyObject * obj1 = 0 ;
9507 char * kwnames[] = {
9508 (char *) "self",(char *) "d", NULL
9509 };
9510
9511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9513 if (!SWIG_IsOK(res1)) {
9514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9515 }
9516 arg1 = reinterpret_cast< wxIcon * >(argp1);
9517 ecode2 = SWIG_AsVal_int(obj1, &val2);
9518 if (!SWIG_IsOK(ecode2)) {
9519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9520 }
9521 arg2 = static_cast< int >(val2);
9522 {
9523 PyThreadState* __tstate = wxPyBeginAllowThreads();
9524 (arg1)->SetDepth(arg2);
9525 wxPyEndAllowThreads(__tstate);
9526 if (PyErr_Occurred()) SWIG_fail;
9527 }
9528 resultobj = SWIG_Py_Void();
9529 return resultobj;
9530 fail:
9531 return NULL;
9532 }
9533
9534
9535 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9536 PyObject *resultobj = 0;
9537 wxIcon *arg1 = (wxIcon *) 0 ;
9538 wxBitmap *arg2 = 0 ;
9539 void *argp1 = 0 ;
9540 int res1 = 0 ;
9541 void *argp2 = 0 ;
9542 int res2 = 0 ;
9543 PyObject * obj0 = 0 ;
9544 PyObject * obj1 = 0 ;
9545 char * kwnames[] = {
9546 (char *) "self",(char *) "bmp", NULL
9547 };
9548
9549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9551 if (!SWIG_IsOK(res1)) {
9552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9553 }
9554 arg1 = reinterpret_cast< wxIcon * >(argp1);
9555 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9556 if (!SWIG_IsOK(res2)) {
9557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9558 }
9559 if (!argp2) {
9560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9561 }
9562 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9563 {
9564 PyThreadState* __tstate = wxPyBeginAllowThreads();
9565 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9566 wxPyEndAllowThreads(__tstate);
9567 if (PyErr_Occurred()) SWIG_fail;
9568 }
9569 resultobj = SWIG_Py_Void();
9570 return resultobj;
9571 fail:
9572 return NULL;
9573 }
9574
9575
9576 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9577 PyObject *obj;
9578 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9579 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9580 return SWIG_Py_Void();
9581 }
9582
9583 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9584 return SWIG_Python_InitShadowInstance(args);
9585 }
9586
9587 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9588 PyObject *resultobj = 0;
9589 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9590 int arg2 = (int) 0 ;
9591 wxIconLocation *result = 0 ;
9592 bool temp1 = false ;
9593 int val2 ;
9594 int ecode2 = 0 ;
9595 PyObject * obj0 = 0 ;
9596 PyObject * obj1 = 0 ;
9597 char * kwnames[] = {
9598 (char *) "filename",(char *) "num", NULL
9599 };
9600
9601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9602 if (obj0) {
9603 {
9604 arg1 = wxString_in_helper(obj0);
9605 if (arg1 == NULL) SWIG_fail;
9606 temp1 = true;
9607 }
9608 }
9609 if (obj1) {
9610 ecode2 = SWIG_AsVal_int(obj1, &val2);
9611 if (!SWIG_IsOK(ecode2)) {
9612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9613 }
9614 arg2 = static_cast< int >(val2);
9615 }
9616 {
9617 PyThreadState* __tstate = wxPyBeginAllowThreads();
9618 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9619 wxPyEndAllowThreads(__tstate);
9620 if (PyErr_Occurred()) SWIG_fail;
9621 }
9622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9623 {
9624 if (temp1)
9625 delete arg1;
9626 }
9627 return resultobj;
9628 fail:
9629 {
9630 if (temp1)
9631 delete arg1;
9632 }
9633 return NULL;
9634 }
9635
9636
9637 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9638 PyObject *resultobj = 0;
9639 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9640 void *argp1 = 0 ;
9641 int res1 = 0 ;
9642 PyObject *swig_obj[1] ;
9643
9644 if (!args) SWIG_fail;
9645 swig_obj[0] = args;
9646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9647 if (!SWIG_IsOK(res1)) {
9648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9649 }
9650 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9651 {
9652 PyThreadState* __tstate = wxPyBeginAllowThreads();
9653 delete arg1;
9654
9655 wxPyEndAllowThreads(__tstate);
9656 if (PyErr_Occurred()) SWIG_fail;
9657 }
9658 resultobj = SWIG_Py_Void();
9659 return resultobj;
9660 fail:
9661 return NULL;
9662 }
9663
9664
9665 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9666 PyObject *resultobj = 0;
9667 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9668 bool result;
9669 void *argp1 = 0 ;
9670 int res1 = 0 ;
9671 PyObject *swig_obj[1] ;
9672
9673 if (!args) SWIG_fail;
9674 swig_obj[0] = args;
9675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9676 if (!SWIG_IsOK(res1)) {
9677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9678 }
9679 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9680 {
9681 PyThreadState* __tstate = wxPyBeginAllowThreads();
9682 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9683 wxPyEndAllowThreads(__tstate);
9684 if (PyErr_Occurred()) SWIG_fail;
9685 }
9686 {
9687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9688 }
9689 return resultobj;
9690 fail:
9691 return NULL;
9692 }
9693
9694
9695 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9696 PyObject *resultobj = 0;
9697 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9698 wxString *arg2 = 0 ;
9699 void *argp1 = 0 ;
9700 int res1 = 0 ;
9701 bool temp2 = false ;
9702 PyObject * obj0 = 0 ;
9703 PyObject * obj1 = 0 ;
9704 char * kwnames[] = {
9705 (char *) "self",(char *) "filename", NULL
9706 };
9707
9708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9710 if (!SWIG_IsOK(res1)) {
9711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9712 }
9713 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9714 {
9715 arg2 = wxString_in_helper(obj1);
9716 if (arg2 == NULL) SWIG_fail;
9717 temp2 = true;
9718 }
9719 {
9720 PyThreadState* __tstate = wxPyBeginAllowThreads();
9721 (arg1)->SetFileName((wxString const &)*arg2);
9722 wxPyEndAllowThreads(__tstate);
9723 if (PyErr_Occurred()) SWIG_fail;
9724 }
9725 resultobj = SWIG_Py_Void();
9726 {
9727 if (temp2)
9728 delete arg2;
9729 }
9730 return resultobj;
9731 fail:
9732 {
9733 if (temp2)
9734 delete arg2;
9735 }
9736 return NULL;
9737 }
9738
9739
9740 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9741 PyObject *resultobj = 0;
9742 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9743 wxString *result = 0 ;
9744 void *argp1 = 0 ;
9745 int res1 = 0 ;
9746 PyObject *swig_obj[1] ;
9747
9748 if (!args) SWIG_fail;
9749 swig_obj[0] = args;
9750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9751 if (!SWIG_IsOK(res1)) {
9752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9753 }
9754 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9755 {
9756 PyThreadState* __tstate = wxPyBeginAllowThreads();
9757 {
9758 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9759 result = (wxString *) &_result_ref;
9760 }
9761 wxPyEndAllowThreads(__tstate);
9762 if (PyErr_Occurred()) SWIG_fail;
9763 }
9764 {
9765 #if wxUSE_UNICODE
9766 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9767 #else
9768 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9769 #endif
9770 }
9771 return resultobj;
9772 fail:
9773 return NULL;
9774 }
9775
9776
9777 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9778 PyObject *resultobj = 0;
9779 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9780 int arg2 ;
9781 void *argp1 = 0 ;
9782 int res1 = 0 ;
9783 int val2 ;
9784 int ecode2 = 0 ;
9785 PyObject * obj0 = 0 ;
9786 PyObject * obj1 = 0 ;
9787 char * kwnames[] = {
9788 (char *) "self",(char *) "num", NULL
9789 };
9790
9791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9793 if (!SWIG_IsOK(res1)) {
9794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9795 }
9796 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9797 ecode2 = SWIG_AsVal_int(obj1, &val2);
9798 if (!SWIG_IsOK(ecode2)) {
9799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9800 }
9801 arg2 = static_cast< int >(val2);
9802 {
9803 PyThreadState* __tstate = wxPyBeginAllowThreads();
9804 wxIconLocation_SetIndex(arg1,arg2);
9805 wxPyEndAllowThreads(__tstate);
9806 if (PyErr_Occurred()) SWIG_fail;
9807 }
9808 resultobj = SWIG_Py_Void();
9809 return resultobj;
9810 fail:
9811 return NULL;
9812 }
9813
9814
9815 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9816 PyObject *resultobj = 0;
9817 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9818 int result;
9819 void *argp1 = 0 ;
9820 int res1 = 0 ;
9821 PyObject *swig_obj[1] ;
9822
9823 if (!args) SWIG_fail;
9824 swig_obj[0] = args;
9825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9826 if (!SWIG_IsOK(res1)) {
9827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9828 }
9829 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9830 {
9831 PyThreadState* __tstate = wxPyBeginAllowThreads();
9832 result = (int)wxIconLocation_GetIndex(arg1);
9833 wxPyEndAllowThreads(__tstate);
9834 if (PyErr_Occurred()) SWIG_fail;
9835 }
9836 resultobj = SWIG_From_int(static_cast< int >(result));
9837 return resultobj;
9838 fail:
9839 return NULL;
9840 }
9841
9842
9843 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9844 PyObject *obj;
9845 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9846 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9847 return SWIG_Py_Void();
9848 }
9849
9850 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9851 return SWIG_Python_InitShadowInstance(args);
9852 }
9853
9854 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9855 PyObject *resultobj = 0;
9856 wxIconBundle *result = 0 ;
9857
9858 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9859 {
9860 PyThreadState* __tstate = wxPyBeginAllowThreads();
9861 result = (wxIconBundle *)new wxIconBundle();
9862 wxPyEndAllowThreads(__tstate);
9863 if (PyErr_Occurred()) SWIG_fail;
9864 }
9865 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9866 return resultobj;
9867 fail:
9868 return NULL;
9869 }
9870
9871
9872 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9873 PyObject *resultobj = 0;
9874 wxString *arg1 = 0 ;
9875 long arg2 ;
9876 wxIconBundle *result = 0 ;
9877 bool temp1 = false ;
9878 long val2 ;
9879 int ecode2 = 0 ;
9880 PyObject * obj0 = 0 ;
9881 PyObject * obj1 = 0 ;
9882 char * kwnames[] = {
9883 (char *) "file",(char *) "type", NULL
9884 };
9885
9886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9887 {
9888 arg1 = wxString_in_helper(obj0);
9889 if (arg1 == NULL) SWIG_fail;
9890 temp1 = true;
9891 }
9892 ecode2 = SWIG_AsVal_long(obj1, &val2);
9893 if (!SWIG_IsOK(ecode2)) {
9894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9895 }
9896 arg2 = static_cast< long >(val2);
9897 {
9898 PyThreadState* __tstate = wxPyBeginAllowThreads();
9899 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9900 wxPyEndAllowThreads(__tstate);
9901 if (PyErr_Occurred()) SWIG_fail;
9902 }
9903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9904 {
9905 if (temp1)
9906 delete arg1;
9907 }
9908 return resultobj;
9909 fail:
9910 {
9911 if (temp1)
9912 delete arg1;
9913 }
9914 return NULL;
9915 }
9916
9917
9918 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9919 PyObject *resultobj = 0;
9920 wxIcon *arg1 = 0 ;
9921 wxIconBundle *result = 0 ;
9922 void *argp1 = 0 ;
9923 int res1 = 0 ;
9924 PyObject * obj0 = 0 ;
9925 char * kwnames[] = {
9926 (char *) "icon", NULL
9927 };
9928
9929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9930 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9931 if (!SWIG_IsOK(res1)) {
9932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9933 }
9934 if (!argp1) {
9935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9936 }
9937 arg1 = reinterpret_cast< wxIcon * >(argp1);
9938 {
9939 PyThreadState* __tstate = wxPyBeginAllowThreads();
9940 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9941 wxPyEndAllowThreads(__tstate);
9942 if (PyErr_Occurred()) SWIG_fail;
9943 }
9944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9945 return resultobj;
9946 fail:
9947 return NULL;
9948 }
9949
9950
9951 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9952 PyObject *resultobj = 0;
9953 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9954 void *argp1 = 0 ;
9955 int res1 = 0 ;
9956 PyObject *swig_obj[1] ;
9957
9958 if (!args) SWIG_fail;
9959 swig_obj[0] = args;
9960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9961 if (!SWIG_IsOK(res1)) {
9962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9963 }
9964 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9965 {
9966 PyThreadState* __tstate = wxPyBeginAllowThreads();
9967 delete arg1;
9968
9969 wxPyEndAllowThreads(__tstate);
9970 if (PyErr_Occurred()) SWIG_fail;
9971 }
9972 resultobj = SWIG_Py_Void();
9973 return resultobj;
9974 fail:
9975 return NULL;
9976 }
9977
9978
9979 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9980 PyObject *resultobj = 0;
9981 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9982 wxIcon *arg2 = 0 ;
9983 void *argp1 = 0 ;
9984 int res1 = 0 ;
9985 void *argp2 = 0 ;
9986 int res2 = 0 ;
9987 PyObject * obj0 = 0 ;
9988 PyObject * obj1 = 0 ;
9989 char * kwnames[] = {
9990 (char *) "self",(char *) "icon", NULL
9991 };
9992
9993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9995 if (!SWIG_IsOK(res1)) {
9996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9997 }
9998 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9999 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10000 if (!SWIG_IsOK(res2)) {
10001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10002 }
10003 if (!argp2) {
10004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10005 }
10006 arg2 = reinterpret_cast< wxIcon * >(argp2);
10007 {
10008 PyThreadState* __tstate = wxPyBeginAllowThreads();
10009 (arg1)->AddIcon((wxIcon const &)*arg2);
10010 wxPyEndAllowThreads(__tstate);
10011 if (PyErr_Occurred()) SWIG_fail;
10012 }
10013 resultobj = SWIG_Py_Void();
10014 return resultobj;
10015 fail:
10016 return NULL;
10017 }
10018
10019
10020 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10021 PyObject *resultobj = 0;
10022 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10023 wxString *arg2 = 0 ;
10024 long arg3 ;
10025 void *argp1 = 0 ;
10026 int res1 = 0 ;
10027 bool temp2 = false ;
10028 long val3 ;
10029 int ecode3 = 0 ;
10030 PyObject * obj0 = 0 ;
10031 PyObject * obj1 = 0 ;
10032 PyObject * obj2 = 0 ;
10033 char * kwnames[] = {
10034 (char *) "self",(char *) "file",(char *) "type", NULL
10035 };
10036
10037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10039 if (!SWIG_IsOK(res1)) {
10040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10041 }
10042 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10043 {
10044 arg2 = wxString_in_helper(obj1);
10045 if (arg2 == NULL) SWIG_fail;
10046 temp2 = true;
10047 }
10048 ecode3 = SWIG_AsVal_long(obj2, &val3);
10049 if (!SWIG_IsOK(ecode3)) {
10050 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10051 }
10052 arg3 = static_cast< long >(val3);
10053 {
10054 PyThreadState* __tstate = wxPyBeginAllowThreads();
10055 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10056 wxPyEndAllowThreads(__tstate);
10057 if (PyErr_Occurred()) SWIG_fail;
10058 }
10059 resultobj = SWIG_Py_Void();
10060 {
10061 if (temp2)
10062 delete arg2;
10063 }
10064 return resultobj;
10065 fail:
10066 {
10067 if (temp2)
10068 delete arg2;
10069 }
10070 return NULL;
10071 }
10072
10073
10074 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10075 PyObject *resultobj = 0;
10076 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10077 wxSize *arg2 = 0 ;
10078 wxIcon *result = 0 ;
10079 void *argp1 = 0 ;
10080 int res1 = 0 ;
10081 wxSize temp2 ;
10082 PyObject * obj0 = 0 ;
10083 PyObject * obj1 = 0 ;
10084 char * kwnames[] = {
10085 (char *) "self",(char *) "size", NULL
10086 };
10087
10088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10090 if (!SWIG_IsOK(res1)) {
10091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10092 }
10093 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10094 {
10095 arg2 = &temp2;
10096 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10097 }
10098 {
10099 PyThreadState* __tstate = wxPyBeginAllowThreads();
10100 {
10101 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10102 result = (wxIcon *) &_result_ref;
10103 }
10104 wxPyEndAllowThreads(__tstate);
10105 if (PyErr_Occurred()) SWIG_fail;
10106 }
10107 {
10108 wxIcon* resultptr = new wxIcon(*result);
10109 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10110 }
10111 return resultobj;
10112 fail:
10113 return NULL;
10114 }
10115
10116
10117 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10118 PyObject *obj;
10119 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10120 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10121 return SWIG_Py_Void();
10122 }
10123
10124 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10125 return SWIG_Python_InitShadowInstance(args);
10126 }
10127
10128 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10129 PyObject *resultobj = 0;
10130 wxString *arg1 = 0 ;
10131 long arg2 ;
10132 int arg3 = (int) 0 ;
10133 int arg4 = (int) 0 ;
10134 wxCursor *result = 0 ;
10135 bool temp1 = false ;
10136 long val2 ;
10137 int ecode2 = 0 ;
10138 int val3 ;
10139 int ecode3 = 0 ;
10140 int val4 ;
10141 int ecode4 = 0 ;
10142 PyObject * obj0 = 0 ;
10143 PyObject * obj1 = 0 ;
10144 PyObject * obj2 = 0 ;
10145 PyObject * obj3 = 0 ;
10146 char * kwnames[] = {
10147 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10148 };
10149
10150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10151 {
10152 arg1 = wxString_in_helper(obj0);
10153 if (arg1 == NULL) SWIG_fail;
10154 temp1 = true;
10155 }
10156 ecode2 = SWIG_AsVal_long(obj1, &val2);
10157 if (!SWIG_IsOK(ecode2)) {
10158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10159 }
10160 arg2 = static_cast< long >(val2);
10161 if (obj2) {
10162 ecode3 = SWIG_AsVal_int(obj2, &val3);
10163 if (!SWIG_IsOK(ecode3)) {
10164 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10165 }
10166 arg3 = static_cast< int >(val3);
10167 }
10168 if (obj3) {
10169 ecode4 = SWIG_AsVal_int(obj3, &val4);
10170 if (!SWIG_IsOK(ecode4)) {
10171 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10172 }
10173 arg4 = static_cast< int >(val4);
10174 }
10175 {
10176 if (!wxPyCheckForApp()) SWIG_fail;
10177 PyThreadState* __tstate = wxPyBeginAllowThreads();
10178 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10179 wxPyEndAllowThreads(__tstate);
10180 if (PyErr_Occurred()) SWIG_fail;
10181 }
10182 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10183 {
10184 if (temp1)
10185 delete arg1;
10186 }
10187 return resultobj;
10188 fail:
10189 {
10190 if (temp1)
10191 delete arg1;
10192 }
10193 return NULL;
10194 }
10195
10196
10197 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10198 PyObject *resultobj = 0;
10199 wxCursor *arg1 = (wxCursor *) 0 ;
10200 void *argp1 = 0 ;
10201 int res1 = 0 ;
10202 PyObject *swig_obj[1] ;
10203
10204 if (!args) SWIG_fail;
10205 swig_obj[0] = args;
10206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10207 if (!SWIG_IsOK(res1)) {
10208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10209 }
10210 arg1 = reinterpret_cast< wxCursor * >(argp1);
10211 {
10212 PyThreadState* __tstate = wxPyBeginAllowThreads();
10213 delete arg1;
10214
10215 wxPyEndAllowThreads(__tstate);
10216 if (PyErr_Occurred()) SWIG_fail;
10217 }
10218 resultobj = SWIG_Py_Void();
10219 return resultobj;
10220 fail:
10221 return NULL;
10222 }
10223
10224
10225 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10226 PyObject *resultobj = 0;
10227 int arg1 ;
10228 wxCursor *result = 0 ;
10229 int val1 ;
10230 int ecode1 = 0 ;
10231 PyObject * obj0 = 0 ;
10232 char * kwnames[] = {
10233 (char *) "id", NULL
10234 };
10235
10236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10237 ecode1 = SWIG_AsVal_int(obj0, &val1);
10238 if (!SWIG_IsOK(ecode1)) {
10239 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10240 }
10241 arg1 = static_cast< int >(val1);
10242 {
10243 if (!wxPyCheckForApp()) SWIG_fail;
10244 PyThreadState* __tstate = wxPyBeginAllowThreads();
10245 result = (wxCursor *)new wxCursor(arg1);
10246 wxPyEndAllowThreads(__tstate);
10247 if (PyErr_Occurred()) SWIG_fail;
10248 }
10249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10250 return resultobj;
10251 fail:
10252 return NULL;
10253 }
10254
10255
10256 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10257 PyObject *resultobj = 0;
10258 wxImage *arg1 = 0 ;
10259 wxCursor *result = 0 ;
10260 void *argp1 = 0 ;
10261 int res1 = 0 ;
10262 PyObject * obj0 = 0 ;
10263 char * kwnames[] = {
10264 (char *) "image", NULL
10265 };
10266
10267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10268 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10269 if (!SWIG_IsOK(res1)) {
10270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10271 }
10272 if (!argp1) {
10273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10274 }
10275 arg1 = reinterpret_cast< wxImage * >(argp1);
10276 {
10277 if (!wxPyCheckForApp()) SWIG_fail;
10278 PyThreadState* __tstate = wxPyBeginAllowThreads();
10279 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10280 wxPyEndAllowThreads(__tstate);
10281 if (PyErr_Occurred()) SWIG_fail;
10282 }
10283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10284 return resultobj;
10285 fail:
10286 return NULL;
10287 }
10288
10289
10290 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10291 PyObject *resultobj = 0;
10292 wxCursor *arg1 = (wxCursor *) 0 ;
10293 bool result;
10294 void *argp1 = 0 ;
10295 int res1 = 0 ;
10296 PyObject *swig_obj[1] ;
10297
10298 if (!args) SWIG_fail;
10299 swig_obj[0] = args;
10300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10301 if (!SWIG_IsOK(res1)) {
10302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10303 }
10304 arg1 = reinterpret_cast< wxCursor * >(argp1);
10305 {
10306 PyThreadState* __tstate = wxPyBeginAllowThreads();
10307 result = (bool)(arg1)->IsOk();
10308 wxPyEndAllowThreads(__tstate);
10309 if (PyErr_Occurred()) SWIG_fail;
10310 }
10311 {
10312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10313 }
10314 return resultobj;
10315 fail:
10316 return NULL;
10317 }
10318
10319
10320 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10321 PyObject *obj;
10322 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10323 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10324 return SWIG_Py_Void();
10325 }
10326
10327 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10328 return SWIG_Python_InitShadowInstance(args);
10329 }
10330
10331 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10332 PyObject *resultobj = 0;
10333 int arg1 = (int) 0 ;
10334 int arg2 = (int) 0 ;
10335 int arg3 = (int) 0 ;
10336 int arg4 = (int) 0 ;
10337 wxRegion *result = 0 ;
10338 int val1 ;
10339 int ecode1 = 0 ;
10340 int val2 ;
10341 int ecode2 = 0 ;
10342 int val3 ;
10343 int ecode3 = 0 ;
10344 int val4 ;
10345 int ecode4 = 0 ;
10346 PyObject * obj0 = 0 ;
10347 PyObject * obj1 = 0 ;
10348 PyObject * obj2 = 0 ;
10349 PyObject * obj3 = 0 ;
10350 char * kwnames[] = {
10351 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10352 };
10353
10354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10355 if (obj0) {
10356 ecode1 = SWIG_AsVal_int(obj0, &val1);
10357 if (!SWIG_IsOK(ecode1)) {
10358 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10359 }
10360 arg1 = static_cast< int >(val1);
10361 }
10362 if (obj1) {
10363 ecode2 = SWIG_AsVal_int(obj1, &val2);
10364 if (!SWIG_IsOK(ecode2)) {
10365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10366 }
10367 arg2 = static_cast< int >(val2);
10368 }
10369 if (obj2) {
10370 ecode3 = SWIG_AsVal_int(obj2, &val3);
10371 if (!SWIG_IsOK(ecode3)) {
10372 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10373 }
10374 arg3 = static_cast< int >(val3);
10375 }
10376 if (obj3) {
10377 ecode4 = SWIG_AsVal_int(obj3, &val4);
10378 if (!SWIG_IsOK(ecode4)) {
10379 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10380 }
10381 arg4 = static_cast< int >(val4);
10382 }
10383 {
10384 if (!wxPyCheckForApp()) SWIG_fail;
10385 PyThreadState* __tstate = wxPyBeginAllowThreads();
10386 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10387 wxPyEndAllowThreads(__tstate);
10388 if (PyErr_Occurred()) SWIG_fail;
10389 }
10390 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10391 return resultobj;
10392 fail:
10393 return NULL;
10394 }
10395
10396
10397 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10398 PyObject *resultobj = 0;
10399 wxBitmap *arg1 = 0 ;
10400 wxRegion *result = 0 ;
10401 void *argp1 = 0 ;
10402 int res1 = 0 ;
10403 PyObject * obj0 = 0 ;
10404 char * kwnames[] = {
10405 (char *) "bmp", NULL
10406 };
10407
10408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10409 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10410 if (!SWIG_IsOK(res1)) {
10411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10412 }
10413 if (!argp1) {
10414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10415 }
10416 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10417 {
10418 if (!wxPyCheckForApp()) SWIG_fail;
10419 PyThreadState* __tstate = wxPyBeginAllowThreads();
10420 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10421 wxPyEndAllowThreads(__tstate);
10422 if (PyErr_Occurred()) SWIG_fail;
10423 }
10424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10425 return resultobj;
10426 fail:
10427 return NULL;
10428 }
10429
10430
10431 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10432 PyObject *resultobj = 0;
10433 wxBitmap *arg1 = 0 ;
10434 wxColour *arg2 = 0 ;
10435 int arg3 = (int) 0 ;
10436 wxRegion *result = 0 ;
10437 void *argp1 = 0 ;
10438 int res1 = 0 ;
10439 wxColour temp2 ;
10440 int val3 ;
10441 int ecode3 = 0 ;
10442 PyObject * obj0 = 0 ;
10443 PyObject * obj1 = 0 ;
10444 PyObject * obj2 = 0 ;
10445 char * kwnames[] = {
10446 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10447 };
10448
10449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10450 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10451 if (!SWIG_IsOK(res1)) {
10452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10453 }
10454 if (!argp1) {
10455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10456 }
10457 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10458 {
10459 arg2 = &temp2;
10460 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10461 }
10462 if (obj2) {
10463 ecode3 = SWIG_AsVal_int(obj2, &val3);
10464 if (!SWIG_IsOK(ecode3)) {
10465 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10466 }
10467 arg3 = static_cast< int >(val3);
10468 }
10469 {
10470 if (!wxPyCheckForApp()) SWIG_fail;
10471 PyThreadState* __tstate = wxPyBeginAllowThreads();
10472 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10473 wxPyEndAllowThreads(__tstate);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 }
10476 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10477 return resultobj;
10478 fail:
10479 return NULL;
10480 }
10481
10482
10483 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10484 PyObject *resultobj = 0;
10485 int arg1 ;
10486 wxPoint *arg2 = (wxPoint *) 0 ;
10487 int arg3 = (int) wxWINDING_RULE ;
10488 wxRegion *result = 0 ;
10489 int val3 ;
10490 int ecode3 = 0 ;
10491 PyObject * obj0 = 0 ;
10492 PyObject * obj1 = 0 ;
10493 char * kwnames[] = {
10494 (char *) "points",(char *) "fillStyle", NULL
10495 };
10496
10497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10498 {
10499 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10500 if (arg2 == NULL) SWIG_fail;
10501 }
10502 if (obj1) {
10503 ecode3 = SWIG_AsVal_int(obj1, &val3);
10504 if (!SWIG_IsOK(ecode3)) {
10505 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10506 }
10507 arg3 = static_cast< int >(val3);
10508 }
10509 {
10510 if (!wxPyCheckForApp()) SWIG_fail;
10511 PyThreadState* __tstate = wxPyBeginAllowThreads();
10512 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10513 wxPyEndAllowThreads(__tstate);
10514 if (PyErr_Occurred()) SWIG_fail;
10515 }
10516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10517 {
10518 if (arg2) delete [] arg2;
10519 }
10520 return resultobj;
10521 fail:
10522 {
10523 if (arg2) delete [] arg2;
10524 }
10525 return NULL;
10526 }
10527
10528
10529 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10530 PyObject *resultobj = 0;
10531 wxRegion *arg1 = (wxRegion *) 0 ;
10532 void *argp1 = 0 ;
10533 int res1 = 0 ;
10534 PyObject *swig_obj[1] ;
10535
10536 if (!args) SWIG_fail;
10537 swig_obj[0] = args;
10538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10539 if (!SWIG_IsOK(res1)) {
10540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10541 }
10542 arg1 = reinterpret_cast< wxRegion * >(argp1);
10543 {
10544 PyThreadState* __tstate = wxPyBeginAllowThreads();
10545 delete arg1;
10546
10547 wxPyEndAllowThreads(__tstate);
10548 if (PyErr_Occurred()) SWIG_fail;
10549 }
10550 resultobj = SWIG_Py_Void();
10551 return resultobj;
10552 fail:
10553 return NULL;
10554 }
10555
10556
10557 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10558 PyObject *resultobj = 0;
10559 wxRegion *arg1 = (wxRegion *) 0 ;
10560 void *argp1 = 0 ;
10561 int res1 = 0 ;
10562 PyObject *swig_obj[1] ;
10563
10564 if (!args) SWIG_fail;
10565 swig_obj[0] = args;
10566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10567 if (!SWIG_IsOK(res1)) {
10568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10569 }
10570 arg1 = reinterpret_cast< wxRegion * >(argp1);
10571 {
10572 PyThreadState* __tstate = wxPyBeginAllowThreads();
10573 (arg1)->Clear();
10574 wxPyEndAllowThreads(__tstate);
10575 if (PyErr_Occurred()) SWIG_fail;
10576 }
10577 resultobj = SWIG_Py_Void();
10578 return resultobj;
10579 fail:
10580 return NULL;
10581 }
10582
10583
10584 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10585 PyObject *resultobj = 0;
10586 wxRegion *arg1 = (wxRegion *) 0 ;
10587 int arg2 ;
10588 int arg3 ;
10589 bool result;
10590 void *argp1 = 0 ;
10591 int res1 = 0 ;
10592 int val2 ;
10593 int ecode2 = 0 ;
10594 int val3 ;
10595 int ecode3 = 0 ;
10596 PyObject * obj0 = 0 ;
10597 PyObject * obj1 = 0 ;
10598 PyObject * obj2 = 0 ;
10599 char * kwnames[] = {
10600 (char *) "self",(char *) "x",(char *) "y", NULL
10601 };
10602
10603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10605 if (!SWIG_IsOK(res1)) {
10606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10607 }
10608 arg1 = reinterpret_cast< wxRegion * >(argp1);
10609 ecode2 = SWIG_AsVal_int(obj1, &val2);
10610 if (!SWIG_IsOK(ecode2)) {
10611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10612 }
10613 arg2 = static_cast< int >(val2);
10614 ecode3 = SWIG_AsVal_int(obj2, &val3);
10615 if (!SWIG_IsOK(ecode3)) {
10616 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10617 }
10618 arg3 = static_cast< int >(val3);
10619 {
10620 PyThreadState* __tstate = wxPyBeginAllowThreads();
10621 result = (bool)(arg1)->Offset(arg2,arg3);
10622 wxPyEndAllowThreads(__tstate);
10623 if (PyErr_Occurred()) SWIG_fail;
10624 }
10625 {
10626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10627 }
10628 return resultobj;
10629 fail:
10630 return NULL;
10631 }
10632
10633
10634 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10635 PyObject *resultobj = 0;
10636 wxRegion *arg1 = (wxRegion *) 0 ;
10637 int arg2 ;
10638 int arg3 ;
10639 wxRegionContain result;
10640 void *argp1 = 0 ;
10641 int res1 = 0 ;
10642 int val2 ;
10643 int ecode2 = 0 ;
10644 int val3 ;
10645 int ecode3 = 0 ;
10646 PyObject * obj0 = 0 ;
10647 PyObject * obj1 = 0 ;
10648 PyObject * obj2 = 0 ;
10649 char * kwnames[] = {
10650 (char *) "self",(char *) "x",(char *) "y", NULL
10651 };
10652
10653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10655 if (!SWIG_IsOK(res1)) {
10656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10657 }
10658 arg1 = reinterpret_cast< wxRegion * >(argp1);
10659 ecode2 = SWIG_AsVal_int(obj1, &val2);
10660 if (!SWIG_IsOK(ecode2)) {
10661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10662 }
10663 arg2 = static_cast< int >(val2);
10664 ecode3 = SWIG_AsVal_int(obj2, &val3);
10665 if (!SWIG_IsOK(ecode3)) {
10666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10667 }
10668 arg3 = static_cast< int >(val3);
10669 {
10670 PyThreadState* __tstate = wxPyBeginAllowThreads();
10671 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10672 wxPyEndAllowThreads(__tstate);
10673 if (PyErr_Occurred()) SWIG_fail;
10674 }
10675 resultobj = SWIG_From_int(static_cast< int >(result));
10676 return resultobj;
10677 fail:
10678 return NULL;
10679 }
10680
10681
10682 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10683 PyObject *resultobj = 0;
10684 wxRegion *arg1 = (wxRegion *) 0 ;
10685 wxPoint *arg2 = 0 ;
10686 wxRegionContain result;
10687 void *argp1 = 0 ;
10688 int res1 = 0 ;
10689 wxPoint temp2 ;
10690 PyObject * obj0 = 0 ;
10691 PyObject * obj1 = 0 ;
10692 char * kwnames[] = {
10693 (char *) "self",(char *) "pt", NULL
10694 };
10695
10696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10698 if (!SWIG_IsOK(res1)) {
10699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10700 }
10701 arg1 = reinterpret_cast< wxRegion * >(argp1);
10702 {
10703 arg2 = &temp2;
10704 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10705 }
10706 {
10707 PyThreadState* __tstate = wxPyBeginAllowThreads();
10708 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10709 wxPyEndAllowThreads(__tstate);
10710 if (PyErr_Occurred()) SWIG_fail;
10711 }
10712 resultobj = SWIG_From_int(static_cast< int >(result));
10713 return resultobj;
10714 fail:
10715 return NULL;
10716 }
10717
10718
10719 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10720 PyObject *resultobj = 0;
10721 wxRegion *arg1 = (wxRegion *) 0 ;
10722 wxRect *arg2 = 0 ;
10723 wxRegionContain result;
10724 void *argp1 = 0 ;
10725 int res1 = 0 ;
10726 wxRect temp2 ;
10727 PyObject * obj0 = 0 ;
10728 PyObject * obj1 = 0 ;
10729 char * kwnames[] = {
10730 (char *) "self",(char *) "rect", NULL
10731 };
10732
10733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10735 if (!SWIG_IsOK(res1)) {
10736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10737 }
10738 arg1 = reinterpret_cast< wxRegion * >(argp1);
10739 {
10740 arg2 = &temp2;
10741 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10742 }
10743 {
10744 PyThreadState* __tstate = wxPyBeginAllowThreads();
10745 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10746 wxPyEndAllowThreads(__tstate);
10747 if (PyErr_Occurred()) SWIG_fail;
10748 }
10749 resultobj = SWIG_From_int(static_cast< int >(result));
10750 return resultobj;
10751 fail:
10752 return NULL;
10753 }
10754
10755
10756 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10757 PyObject *resultobj = 0;
10758 wxRegion *arg1 = (wxRegion *) 0 ;
10759 int arg2 ;
10760 int arg3 ;
10761 int arg4 ;
10762 int arg5 ;
10763 wxRegionContain result;
10764 void *argp1 = 0 ;
10765 int res1 = 0 ;
10766 int val2 ;
10767 int ecode2 = 0 ;
10768 int val3 ;
10769 int ecode3 = 0 ;
10770 int val4 ;
10771 int ecode4 = 0 ;
10772 int val5 ;
10773 int ecode5 = 0 ;
10774 PyObject * obj0 = 0 ;
10775 PyObject * obj1 = 0 ;
10776 PyObject * obj2 = 0 ;
10777 PyObject * obj3 = 0 ;
10778 PyObject * obj4 = 0 ;
10779 char * kwnames[] = {
10780 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10781 };
10782
10783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10785 if (!SWIG_IsOK(res1)) {
10786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10787 }
10788 arg1 = reinterpret_cast< wxRegion * >(argp1);
10789 ecode2 = SWIG_AsVal_int(obj1, &val2);
10790 if (!SWIG_IsOK(ecode2)) {
10791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10792 }
10793 arg2 = static_cast< int >(val2);
10794 ecode3 = SWIG_AsVal_int(obj2, &val3);
10795 if (!SWIG_IsOK(ecode3)) {
10796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10797 }
10798 arg3 = static_cast< int >(val3);
10799 ecode4 = SWIG_AsVal_int(obj3, &val4);
10800 if (!SWIG_IsOK(ecode4)) {
10801 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10802 }
10803 arg4 = static_cast< int >(val4);
10804 ecode5 = SWIG_AsVal_int(obj4, &val5);
10805 if (!SWIG_IsOK(ecode5)) {
10806 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10807 }
10808 arg5 = static_cast< int >(val5);
10809 {
10810 PyThreadState* __tstate = wxPyBeginAllowThreads();
10811 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10812 wxPyEndAllowThreads(__tstate);
10813 if (PyErr_Occurred()) SWIG_fail;
10814 }
10815 resultobj = SWIG_From_int(static_cast< int >(result));
10816 return resultobj;
10817 fail:
10818 return NULL;
10819 }
10820
10821
10822 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10823 PyObject *resultobj = 0;
10824 wxRegion *arg1 = (wxRegion *) 0 ;
10825 wxRect result;
10826 void *argp1 = 0 ;
10827 int res1 = 0 ;
10828 PyObject *swig_obj[1] ;
10829
10830 if (!args) SWIG_fail;
10831 swig_obj[0] = args;
10832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10833 if (!SWIG_IsOK(res1)) {
10834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10835 }
10836 arg1 = reinterpret_cast< wxRegion * >(argp1);
10837 {
10838 PyThreadState* __tstate = wxPyBeginAllowThreads();
10839 result = (arg1)->GetBox();
10840 wxPyEndAllowThreads(__tstate);
10841 if (PyErr_Occurred()) SWIG_fail;
10842 }
10843 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10844 return resultobj;
10845 fail:
10846 return NULL;
10847 }
10848
10849
10850 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10851 PyObject *resultobj = 0;
10852 wxRegion *arg1 = (wxRegion *) 0 ;
10853 int arg2 ;
10854 int arg3 ;
10855 int arg4 ;
10856 int arg5 ;
10857 bool result;
10858 void *argp1 = 0 ;
10859 int res1 = 0 ;
10860 int val2 ;
10861 int ecode2 = 0 ;
10862 int val3 ;
10863 int ecode3 = 0 ;
10864 int val4 ;
10865 int ecode4 = 0 ;
10866 int val5 ;
10867 int ecode5 = 0 ;
10868 PyObject * obj0 = 0 ;
10869 PyObject * obj1 = 0 ;
10870 PyObject * obj2 = 0 ;
10871 PyObject * obj3 = 0 ;
10872 PyObject * obj4 = 0 ;
10873 char * kwnames[] = {
10874 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10875 };
10876
10877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10879 if (!SWIG_IsOK(res1)) {
10880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10881 }
10882 arg1 = reinterpret_cast< wxRegion * >(argp1);
10883 ecode2 = SWIG_AsVal_int(obj1, &val2);
10884 if (!SWIG_IsOK(ecode2)) {
10885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10886 }
10887 arg2 = static_cast< int >(val2);
10888 ecode3 = SWIG_AsVal_int(obj2, &val3);
10889 if (!SWIG_IsOK(ecode3)) {
10890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10891 }
10892 arg3 = static_cast< int >(val3);
10893 ecode4 = SWIG_AsVal_int(obj3, &val4);
10894 if (!SWIG_IsOK(ecode4)) {
10895 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10896 }
10897 arg4 = static_cast< int >(val4);
10898 ecode5 = SWIG_AsVal_int(obj4, &val5);
10899 if (!SWIG_IsOK(ecode5)) {
10900 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10901 }
10902 arg5 = static_cast< int >(val5);
10903 {
10904 PyThreadState* __tstate = wxPyBeginAllowThreads();
10905 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10906 wxPyEndAllowThreads(__tstate);
10907 if (PyErr_Occurred()) SWIG_fail;
10908 }
10909 {
10910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10911 }
10912 return resultobj;
10913 fail:
10914 return NULL;
10915 }
10916
10917
10918 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10919 PyObject *resultobj = 0;
10920 wxRegion *arg1 = (wxRegion *) 0 ;
10921 wxRect *arg2 = 0 ;
10922 bool result;
10923 void *argp1 = 0 ;
10924 int res1 = 0 ;
10925 wxRect temp2 ;
10926 PyObject * obj0 = 0 ;
10927 PyObject * obj1 = 0 ;
10928 char * kwnames[] = {
10929 (char *) "self",(char *) "rect", NULL
10930 };
10931
10932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10934 if (!SWIG_IsOK(res1)) {
10935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10936 }
10937 arg1 = reinterpret_cast< wxRegion * >(argp1);
10938 {
10939 arg2 = &temp2;
10940 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10941 }
10942 {
10943 PyThreadState* __tstate = wxPyBeginAllowThreads();
10944 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10945 wxPyEndAllowThreads(__tstate);
10946 if (PyErr_Occurred()) SWIG_fail;
10947 }
10948 {
10949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10950 }
10951 return resultobj;
10952 fail:
10953 return NULL;
10954 }
10955
10956
10957 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10958 PyObject *resultobj = 0;
10959 wxRegion *arg1 = (wxRegion *) 0 ;
10960 wxRegion *arg2 = 0 ;
10961 bool result;
10962 void *argp1 = 0 ;
10963 int res1 = 0 ;
10964 void *argp2 = 0 ;
10965 int res2 = 0 ;
10966 PyObject * obj0 = 0 ;
10967 PyObject * obj1 = 0 ;
10968 char * kwnames[] = {
10969 (char *) "self",(char *) "region", NULL
10970 };
10971
10972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10974 if (!SWIG_IsOK(res1)) {
10975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10976 }
10977 arg1 = reinterpret_cast< wxRegion * >(argp1);
10978 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10979 if (!SWIG_IsOK(res2)) {
10980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10981 }
10982 if (!argp2) {
10983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10984 }
10985 arg2 = reinterpret_cast< wxRegion * >(argp2);
10986 {
10987 PyThreadState* __tstate = wxPyBeginAllowThreads();
10988 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10989 wxPyEndAllowThreads(__tstate);
10990 if (PyErr_Occurred()) SWIG_fail;
10991 }
10992 {
10993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10994 }
10995 return resultobj;
10996 fail:
10997 return NULL;
10998 }
10999
11000
11001 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11002 PyObject *resultobj = 0;
11003 wxRegion *arg1 = (wxRegion *) 0 ;
11004 bool result;
11005 void *argp1 = 0 ;
11006 int res1 = 0 ;
11007 PyObject *swig_obj[1] ;
11008
11009 if (!args) SWIG_fail;
11010 swig_obj[0] = args;
11011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11012 if (!SWIG_IsOK(res1)) {
11013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11014 }
11015 arg1 = reinterpret_cast< wxRegion * >(argp1);
11016 {
11017 PyThreadState* __tstate = wxPyBeginAllowThreads();
11018 result = (bool)(arg1)->IsEmpty();
11019 wxPyEndAllowThreads(__tstate);
11020 if (PyErr_Occurred()) SWIG_fail;
11021 }
11022 {
11023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11024 }
11025 return resultobj;
11026 fail:
11027 return NULL;
11028 }
11029
11030
11031 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11032 PyObject *resultobj = 0;
11033 wxRegion *arg1 = (wxRegion *) 0 ;
11034 wxRegion *arg2 = 0 ;
11035 bool result;
11036 void *argp1 = 0 ;
11037 int res1 = 0 ;
11038 void *argp2 = 0 ;
11039 int res2 = 0 ;
11040 PyObject * obj0 = 0 ;
11041 PyObject * obj1 = 0 ;
11042 char * kwnames[] = {
11043 (char *) "self",(char *) "region", NULL
11044 };
11045
11046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11048 if (!SWIG_IsOK(res1)) {
11049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11050 }
11051 arg1 = reinterpret_cast< wxRegion * >(argp1);
11052 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11053 if (!SWIG_IsOK(res2)) {
11054 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11055 }
11056 if (!argp2) {
11057 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11058 }
11059 arg2 = reinterpret_cast< wxRegion * >(argp2);
11060 {
11061 PyThreadState* __tstate = wxPyBeginAllowThreads();
11062 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11063 wxPyEndAllowThreads(__tstate);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 }
11066 {
11067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11068 }
11069 return resultobj;
11070 fail:
11071 return NULL;
11072 }
11073
11074
11075 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11076 PyObject *resultobj = 0;
11077 wxRegion *arg1 = (wxRegion *) 0 ;
11078 int arg2 ;
11079 int arg3 ;
11080 int arg4 ;
11081 int arg5 ;
11082 bool result;
11083 void *argp1 = 0 ;
11084 int res1 = 0 ;
11085 int val2 ;
11086 int ecode2 = 0 ;
11087 int val3 ;
11088 int ecode3 = 0 ;
11089 int val4 ;
11090 int ecode4 = 0 ;
11091 int val5 ;
11092 int ecode5 = 0 ;
11093 PyObject * obj0 = 0 ;
11094 PyObject * obj1 = 0 ;
11095 PyObject * obj2 = 0 ;
11096 PyObject * obj3 = 0 ;
11097 PyObject * obj4 = 0 ;
11098 char * kwnames[] = {
11099 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11100 };
11101
11102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11104 if (!SWIG_IsOK(res1)) {
11105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11106 }
11107 arg1 = reinterpret_cast< wxRegion * >(argp1);
11108 ecode2 = SWIG_AsVal_int(obj1, &val2);
11109 if (!SWIG_IsOK(ecode2)) {
11110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11111 }
11112 arg2 = static_cast< int >(val2);
11113 ecode3 = SWIG_AsVal_int(obj2, &val3);
11114 if (!SWIG_IsOK(ecode3)) {
11115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11116 }
11117 arg3 = static_cast< int >(val3);
11118 ecode4 = SWIG_AsVal_int(obj3, &val4);
11119 if (!SWIG_IsOK(ecode4)) {
11120 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11121 }
11122 arg4 = static_cast< int >(val4);
11123 ecode5 = SWIG_AsVal_int(obj4, &val5);
11124 if (!SWIG_IsOK(ecode5)) {
11125 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11126 }
11127 arg5 = static_cast< int >(val5);
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11131 wxPyEndAllowThreads(__tstate);
11132 if (PyErr_Occurred()) SWIG_fail;
11133 }
11134 {
11135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11136 }
11137 return resultobj;
11138 fail:
11139 return NULL;
11140 }
11141
11142
11143 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11144 PyObject *resultobj = 0;
11145 wxRegion *arg1 = (wxRegion *) 0 ;
11146 wxRect *arg2 = 0 ;
11147 bool result;
11148 void *argp1 = 0 ;
11149 int res1 = 0 ;
11150 wxRect temp2 ;
11151 PyObject * obj0 = 0 ;
11152 PyObject * obj1 = 0 ;
11153 char * kwnames[] = {
11154 (char *) "self",(char *) "rect", NULL
11155 };
11156
11157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11159 if (!SWIG_IsOK(res1)) {
11160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11161 }
11162 arg1 = reinterpret_cast< wxRegion * >(argp1);
11163 {
11164 arg2 = &temp2;
11165 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11166 }
11167 {
11168 PyThreadState* __tstate = wxPyBeginAllowThreads();
11169 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11170 wxPyEndAllowThreads(__tstate);
11171 if (PyErr_Occurred()) SWIG_fail;
11172 }
11173 {
11174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11175 }
11176 return resultobj;
11177 fail:
11178 return NULL;
11179 }
11180
11181
11182 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11183 PyObject *resultobj = 0;
11184 wxRegion *arg1 = (wxRegion *) 0 ;
11185 wxRegion *arg2 = 0 ;
11186 bool result;
11187 void *argp1 = 0 ;
11188 int res1 = 0 ;
11189 void *argp2 = 0 ;
11190 int res2 = 0 ;
11191 PyObject * obj0 = 0 ;
11192 PyObject * obj1 = 0 ;
11193 char * kwnames[] = {
11194 (char *) "self",(char *) "region", NULL
11195 };
11196
11197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11199 if (!SWIG_IsOK(res1)) {
11200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11201 }
11202 arg1 = reinterpret_cast< wxRegion * >(argp1);
11203 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11204 if (!SWIG_IsOK(res2)) {
11205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11206 }
11207 if (!argp2) {
11208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11209 }
11210 arg2 = reinterpret_cast< wxRegion * >(argp2);
11211 {
11212 PyThreadState* __tstate = wxPyBeginAllowThreads();
11213 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11214 wxPyEndAllowThreads(__tstate);
11215 if (PyErr_Occurred()) SWIG_fail;
11216 }
11217 {
11218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11219 }
11220 return resultobj;
11221 fail:
11222 return NULL;
11223 }
11224
11225
11226 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11227 PyObject *resultobj = 0;
11228 wxRegion *arg1 = (wxRegion *) 0 ;
11229 int arg2 ;
11230 int arg3 ;
11231 int arg4 ;
11232 int arg5 ;
11233 bool result;
11234 void *argp1 = 0 ;
11235 int res1 = 0 ;
11236 int val2 ;
11237 int ecode2 = 0 ;
11238 int val3 ;
11239 int ecode3 = 0 ;
11240 int val4 ;
11241 int ecode4 = 0 ;
11242 int val5 ;
11243 int ecode5 = 0 ;
11244 PyObject * obj0 = 0 ;
11245 PyObject * obj1 = 0 ;
11246 PyObject * obj2 = 0 ;
11247 PyObject * obj3 = 0 ;
11248 PyObject * obj4 = 0 ;
11249 char * kwnames[] = {
11250 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11251 };
11252
11253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11255 if (!SWIG_IsOK(res1)) {
11256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11257 }
11258 arg1 = reinterpret_cast< wxRegion * >(argp1);
11259 ecode2 = SWIG_AsVal_int(obj1, &val2);
11260 if (!SWIG_IsOK(ecode2)) {
11261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11262 }
11263 arg2 = static_cast< int >(val2);
11264 ecode3 = SWIG_AsVal_int(obj2, &val3);
11265 if (!SWIG_IsOK(ecode3)) {
11266 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11267 }
11268 arg3 = static_cast< int >(val3);
11269 ecode4 = SWIG_AsVal_int(obj3, &val4);
11270 if (!SWIG_IsOK(ecode4)) {
11271 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11272 }
11273 arg4 = static_cast< int >(val4);
11274 ecode5 = SWIG_AsVal_int(obj4, &val5);
11275 if (!SWIG_IsOK(ecode5)) {
11276 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11277 }
11278 arg5 = static_cast< int >(val5);
11279 {
11280 PyThreadState* __tstate = wxPyBeginAllowThreads();
11281 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11282 wxPyEndAllowThreads(__tstate);
11283 if (PyErr_Occurred()) SWIG_fail;
11284 }
11285 {
11286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11287 }
11288 return resultobj;
11289 fail:
11290 return NULL;
11291 }
11292
11293
11294 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11295 PyObject *resultobj = 0;
11296 wxRegion *arg1 = (wxRegion *) 0 ;
11297 wxRect *arg2 = 0 ;
11298 bool result;
11299 void *argp1 = 0 ;
11300 int res1 = 0 ;
11301 wxRect temp2 ;
11302 PyObject * obj0 = 0 ;
11303 PyObject * obj1 = 0 ;
11304 char * kwnames[] = {
11305 (char *) "self",(char *) "rect", NULL
11306 };
11307
11308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11310 if (!SWIG_IsOK(res1)) {
11311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11312 }
11313 arg1 = reinterpret_cast< wxRegion * >(argp1);
11314 {
11315 arg2 = &temp2;
11316 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11317 }
11318 {
11319 PyThreadState* __tstate = wxPyBeginAllowThreads();
11320 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11321 wxPyEndAllowThreads(__tstate);
11322 if (PyErr_Occurred()) SWIG_fail;
11323 }
11324 {
11325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11326 }
11327 return resultobj;
11328 fail:
11329 return NULL;
11330 }
11331
11332
11333 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11334 PyObject *resultobj = 0;
11335 wxRegion *arg1 = (wxRegion *) 0 ;
11336 wxRegion *arg2 = 0 ;
11337 bool result;
11338 void *argp1 = 0 ;
11339 int res1 = 0 ;
11340 void *argp2 = 0 ;
11341 int res2 = 0 ;
11342 PyObject * obj0 = 0 ;
11343 PyObject * obj1 = 0 ;
11344 char * kwnames[] = {
11345 (char *) "self",(char *) "region", NULL
11346 };
11347
11348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11350 if (!SWIG_IsOK(res1)) {
11351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11352 }
11353 arg1 = reinterpret_cast< wxRegion * >(argp1);
11354 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11355 if (!SWIG_IsOK(res2)) {
11356 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11357 }
11358 if (!argp2) {
11359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11360 }
11361 arg2 = reinterpret_cast< wxRegion * >(argp2);
11362 {
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11365 wxPyEndAllowThreads(__tstate);
11366 if (PyErr_Occurred()) SWIG_fail;
11367 }
11368 {
11369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11370 }
11371 return resultobj;
11372 fail:
11373 return NULL;
11374 }
11375
11376
11377 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11378 PyObject *resultobj = 0;
11379 wxRegion *arg1 = (wxRegion *) 0 ;
11380 int arg2 ;
11381 int arg3 ;
11382 int arg4 ;
11383 int arg5 ;
11384 bool result;
11385 void *argp1 = 0 ;
11386 int res1 = 0 ;
11387 int val2 ;
11388 int ecode2 = 0 ;
11389 int val3 ;
11390 int ecode3 = 0 ;
11391 int val4 ;
11392 int ecode4 = 0 ;
11393 int val5 ;
11394 int ecode5 = 0 ;
11395 PyObject * obj0 = 0 ;
11396 PyObject * obj1 = 0 ;
11397 PyObject * obj2 = 0 ;
11398 PyObject * obj3 = 0 ;
11399 PyObject * obj4 = 0 ;
11400 char * kwnames[] = {
11401 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11402 };
11403
11404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11406 if (!SWIG_IsOK(res1)) {
11407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11408 }
11409 arg1 = reinterpret_cast< wxRegion * >(argp1);
11410 ecode2 = SWIG_AsVal_int(obj1, &val2);
11411 if (!SWIG_IsOK(ecode2)) {
11412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11413 }
11414 arg2 = static_cast< int >(val2);
11415 ecode3 = SWIG_AsVal_int(obj2, &val3);
11416 if (!SWIG_IsOK(ecode3)) {
11417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11418 }
11419 arg3 = static_cast< int >(val3);
11420 ecode4 = SWIG_AsVal_int(obj3, &val4);
11421 if (!SWIG_IsOK(ecode4)) {
11422 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11423 }
11424 arg4 = static_cast< int >(val4);
11425 ecode5 = SWIG_AsVal_int(obj4, &val5);
11426 if (!SWIG_IsOK(ecode5)) {
11427 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11428 }
11429 arg5 = static_cast< int >(val5);
11430 {
11431 PyThreadState* __tstate = wxPyBeginAllowThreads();
11432 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11433 wxPyEndAllowThreads(__tstate);
11434 if (PyErr_Occurred()) SWIG_fail;
11435 }
11436 {
11437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11438 }
11439 return resultobj;
11440 fail:
11441 return NULL;
11442 }
11443
11444
11445 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11446 PyObject *resultobj = 0;
11447 wxRegion *arg1 = (wxRegion *) 0 ;
11448 wxRect *arg2 = 0 ;
11449 bool result;
11450 void *argp1 = 0 ;
11451 int res1 = 0 ;
11452 wxRect temp2 ;
11453 PyObject * obj0 = 0 ;
11454 PyObject * obj1 = 0 ;
11455 char * kwnames[] = {
11456 (char *) "self",(char *) "rect", NULL
11457 };
11458
11459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11461 if (!SWIG_IsOK(res1)) {
11462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11463 }
11464 arg1 = reinterpret_cast< wxRegion * >(argp1);
11465 {
11466 arg2 = &temp2;
11467 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11468 }
11469 {
11470 PyThreadState* __tstate = wxPyBeginAllowThreads();
11471 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11472 wxPyEndAllowThreads(__tstate);
11473 if (PyErr_Occurred()) SWIG_fail;
11474 }
11475 {
11476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11477 }
11478 return resultobj;
11479 fail:
11480 return NULL;
11481 }
11482
11483
11484 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11485 PyObject *resultobj = 0;
11486 wxRegion *arg1 = (wxRegion *) 0 ;
11487 wxRegion *arg2 = 0 ;
11488 bool result;
11489 void *argp1 = 0 ;
11490 int res1 = 0 ;
11491 void *argp2 = 0 ;
11492 int res2 = 0 ;
11493 PyObject * obj0 = 0 ;
11494 PyObject * obj1 = 0 ;
11495 char * kwnames[] = {
11496 (char *) "self",(char *) "region", NULL
11497 };
11498
11499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11501 if (!SWIG_IsOK(res1)) {
11502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11503 }
11504 arg1 = reinterpret_cast< wxRegion * >(argp1);
11505 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11506 if (!SWIG_IsOK(res2)) {
11507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11508 }
11509 if (!argp2) {
11510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11511 }
11512 arg2 = reinterpret_cast< wxRegion * >(argp2);
11513 {
11514 PyThreadState* __tstate = wxPyBeginAllowThreads();
11515 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11516 wxPyEndAllowThreads(__tstate);
11517 if (PyErr_Occurred()) SWIG_fail;
11518 }
11519 {
11520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11521 }
11522 return resultobj;
11523 fail:
11524 return NULL;
11525 }
11526
11527
11528 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11529 PyObject *resultobj = 0;
11530 wxRegion *arg1 = (wxRegion *) 0 ;
11531 SwigValueWrapper<wxBitmap > result;
11532 void *argp1 = 0 ;
11533 int res1 = 0 ;
11534 PyObject *swig_obj[1] ;
11535
11536 if (!args) SWIG_fail;
11537 swig_obj[0] = args;
11538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11539 if (!SWIG_IsOK(res1)) {
11540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11541 }
11542 arg1 = reinterpret_cast< wxRegion * >(argp1);
11543 {
11544 PyThreadState* __tstate = wxPyBeginAllowThreads();
11545 result = (arg1)->ConvertToBitmap();
11546 wxPyEndAllowThreads(__tstate);
11547 if (PyErr_Occurred()) SWIG_fail;
11548 }
11549 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11550 return resultobj;
11551 fail:
11552 return NULL;
11553 }
11554
11555
11556 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11557 PyObject *resultobj = 0;
11558 wxRegion *arg1 = (wxRegion *) 0 ;
11559 wxBitmap *arg2 = 0 ;
11560 bool result;
11561 void *argp1 = 0 ;
11562 int res1 = 0 ;
11563 void *argp2 = 0 ;
11564 int res2 = 0 ;
11565 PyObject * obj0 = 0 ;
11566 PyObject * obj1 = 0 ;
11567 char * kwnames[] = {
11568 (char *) "self",(char *) "bmp", NULL
11569 };
11570
11571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11573 if (!SWIG_IsOK(res1)) {
11574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11575 }
11576 arg1 = reinterpret_cast< wxRegion * >(argp1);
11577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11578 if (!SWIG_IsOK(res2)) {
11579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11580 }
11581 if (!argp2) {
11582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11583 }
11584 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11585 {
11586 PyThreadState* __tstate = wxPyBeginAllowThreads();
11587 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11588 wxPyEndAllowThreads(__tstate);
11589 if (PyErr_Occurred()) SWIG_fail;
11590 }
11591 {
11592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11593 }
11594 return resultobj;
11595 fail:
11596 return NULL;
11597 }
11598
11599
11600 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11601 PyObject *resultobj = 0;
11602 wxRegion *arg1 = (wxRegion *) 0 ;
11603 wxBitmap *arg2 = 0 ;
11604 wxColour *arg3 = 0 ;
11605 int arg4 = (int) 0 ;
11606 bool result;
11607 void *argp1 = 0 ;
11608 int res1 = 0 ;
11609 void *argp2 = 0 ;
11610 int res2 = 0 ;
11611 wxColour temp3 ;
11612 int val4 ;
11613 int ecode4 = 0 ;
11614 PyObject * obj0 = 0 ;
11615 PyObject * obj1 = 0 ;
11616 PyObject * obj2 = 0 ;
11617 PyObject * obj3 = 0 ;
11618 char * kwnames[] = {
11619 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11620 };
11621
11622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11624 if (!SWIG_IsOK(res1)) {
11625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11626 }
11627 arg1 = reinterpret_cast< wxRegion * >(argp1);
11628 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11629 if (!SWIG_IsOK(res2)) {
11630 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11631 }
11632 if (!argp2) {
11633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11634 }
11635 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11636 {
11637 arg3 = &temp3;
11638 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11639 }
11640 if (obj3) {
11641 ecode4 = SWIG_AsVal_int(obj3, &val4);
11642 if (!SWIG_IsOK(ecode4)) {
11643 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11644 }
11645 arg4 = static_cast< int >(val4);
11646 }
11647 {
11648 PyThreadState* __tstate = wxPyBeginAllowThreads();
11649 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11650 wxPyEndAllowThreads(__tstate);
11651 if (PyErr_Occurred()) SWIG_fail;
11652 }
11653 {
11654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11655 }
11656 return resultobj;
11657 fail:
11658 return NULL;
11659 }
11660
11661
11662 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11663 PyObject *obj;
11664 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11665 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11666 return SWIG_Py_Void();
11667 }
11668
11669 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11670 return SWIG_Python_InitShadowInstance(args);
11671 }
11672
11673 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11674 PyObject *resultobj = 0;
11675 wxRegion *arg1 = 0 ;
11676 wxRegionIterator *result = 0 ;
11677 void *argp1 = 0 ;
11678 int res1 = 0 ;
11679 PyObject * obj0 = 0 ;
11680 char * kwnames[] = {
11681 (char *) "region", NULL
11682 };
11683
11684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11685 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11686 if (!SWIG_IsOK(res1)) {
11687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11688 }
11689 if (!argp1) {
11690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11691 }
11692 arg1 = reinterpret_cast< wxRegion * >(argp1);
11693 {
11694 if (!wxPyCheckForApp()) SWIG_fail;
11695 PyThreadState* __tstate = wxPyBeginAllowThreads();
11696 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11697 wxPyEndAllowThreads(__tstate);
11698 if (PyErr_Occurred()) SWIG_fail;
11699 }
11700 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11701 return resultobj;
11702 fail:
11703 return NULL;
11704 }
11705
11706
11707 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11708 PyObject *resultobj = 0;
11709 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11710 void *argp1 = 0 ;
11711 int res1 = 0 ;
11712 PyObject *swig_obj[1] ;
11713
11714 if (!args) SWIG_fail;
11715 swig_obj[0] = args;
11716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11717 if (!SWIG_IsOK(res1)) {
11718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11719 }
11720 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11721 {
11722 PyThreadState* __tstate = wxPyBeginAllowThreads();
11723 delete arg1;
11724
11725 wxPyEndAllowThreads(__tstate);
11726 if (PyErr_Occurred()) SWIG_fail;
11727 }
11728 resultobj = SWIG_Py_Void();
11729 return resultobj;
11730 fail:
11731 return NULL;
11732 }
11733
11734
11735 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11736 PyObject *resultobj = 0;
11737 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11738 int result;
11739 void *argp1 = 0 ;
11740 int res1 = 0 ;
11741 PyObject *swig_obj[1] ;
11742
11743 if (!args) SWIG_fail;
11744 swig_obj[0] = args;
11745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11746 if (!SWIG_IsOK(res1)) {
11747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11748 }
11749 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11750 {
11751 PyThreadState* __tstate = wxPyBeginAllowThreads();
11752 result = (int)(arg1)->GetX();
11753 wxPyEndAllowThreads(__tstate);
11754 if (PyErr_Occurred()) SWIG_fail;
11755 }
11756 resultobj = SWIG_From_int(static_cast< int >(result));
11757 return resultobj;
11758 fail:
11759 return NULL;
11760 }
11761
11762
11763 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11764 PyObject *resultobj = 0;
11765 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11766 int result;
11767 void *argp1 = 0 ;
11768 int res1 = 0 ;
11769 PyObject *swig_obj[1] ;
11770
11771 if (!args) SWIG_fail;
11772 swig_obj[0] = args;
11773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11774 if (!SWIG_IsOK(res1)) {
11775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11776 }
11777 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11778 {
11779 PyThreadState* __tstate = wxPyBeginAllowThreads();
11780 result = (int)(arg1)->GetY();
11781 wxPyEndAllowThreads(__tstate);
11782 if (PyErr_Occurred()) SWIG_fail;
11783 }
11784 resultobj = SWIG_From_int(static_cast< int >(result));
11785 return resultobj;
11786 fail:
11787 return NULL;
11788 }
11789
11790
11791 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11792 PyObject *resultobj = 0;
11793 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11794 int result;
11795 void *argp1 = 0 ;
11796 int res1 = 0 ;
11797 PyObject *swig_obj[1] ;
11798
11799 if (!args) SWIG_fail;
11800 swig_obj[0] = args;
11801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11802 if (!SWIG_IsOK(res1)) {
11803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11804 }
11805 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11806 {
11807 PyThreadState* __tstate = wxPyBeginAllowThreads();
11808 result = (int)(arg1)->GetW();
11809 wxPyEndAllowThreads(__tstate);
11810 if (PyErr_Occurred()) SWIG_fail;
11811 }
11812 resultobj = SWIG_From_int(static_cast< int >(result));
11813 return resultobj;
11814 fail:
11815 return NULL;
11816 }
11817
11818
11819 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11820 PyObject *resultobj = 0;
11821 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11822 int result;
11823 void *argp1 = 0 ;
11824 int res1 = 0 ;
11825 PyObject *swig_obj[1] ;
11826
11827 if (!args) SWIG_fail;
11828 swig_obj[0] = args;
11829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11830 if (!SWIG_IsOK(res1)) {
11831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11832 }
11833 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11834 {
11835 PyThreadState* __tstate = wxPyBeginAllowThreads();
11836 result = (int)(arg1)->GetWidth();
11837 wxPyEndAllowThreads(__tstate);
11838 if (PyErr_Occurred()) SWIG_fail;
11839 }
11840 resultobj = SWIG_From_int(static_cast< int >(result));
11841 return resultobj;
11842 fail:
11843 return NULL;
11844 }
11845
11846
11847 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11848 PyObject *resultobj = 0;
11849 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11850 int result;
11851 void *argp1 = 0 ;
11852 int res1 = 0 ;
11853 PyObject *swig_obj[1] ;
11854
11855 if (!args) SWIG_fail;
11856 swig_obj[0] = args;
11857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11858 if (!SWIG_IsOK(res1)) {
11859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11860 }
11861 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11862 {
11863 PyThreadState* __tstate = wxPyBeginAllowThreads();
11864 result = (int)(arg1)->GetH();
11865 wxPyEndAllowThreads(__tstate);
11866 if (PyErr_Occurred()) SWIG_fail;
11867 }
11868 resultobj = SWIG_From_int(static_cast< int >(result));
11869 return resultobj;
11870 fail:
11871 return NULL;
11872 }
11873
11874
11875 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11876 PyObject *resultobj = 0;
11877 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11878 int result;
11879 void *argp1 = 0 ;
11880 int res1 = 0 ;
11881 PyObject *swig_obj[1] ;
11882
11883 if (!args) SWIG_fail;
11884 swig_obj[0] = args;
11885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11886 if (!SWIG_IsOK(res1)) {
11887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11888 }
11889 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11890 {
11891 PyThreadState* __tstate = wxPyBeginAllowThreads();
11892 result = (int)(arg1)->GetHeight();
11893 wxPyEndAllowThreads(__tstate);
11894 if (PyErr_Occurred()) SWIG_fail;
11895 }
11896 resultobj = SWIG_From_int(static_cast< int >(result));
11897 return resultobj;
11898 fail:
11899 return NULL;
11900 }
11901
11902
11903 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11904 PyObject *resultobj = 0;
11905 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11906 wxRect 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_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11916 }
11917 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11918 {
11919 PyThreadState* __tstate = wxPyBeginAllowThreads();
11920 result = (arg1)->GetRect();
11921 wxPyEndAllowThreads(__tstate);
11922 if (PyErr_Occurred()) SWIG_fail;
11923 }
11924 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11925 return resultobj;
11926 fail:
11927 return NULL;
11928 }
11929
11930
11931 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11932 PyObject *resultobj = 0;
11933 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11934 bool 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_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11944 }
11945 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11946 {
11947 PyThreadState* __tstate = wxPyBeginAllowThreads();
11948 result = (bool)(arg1)->HaveRects();
11949 wxPyEndAllowThreads(__tstate);
11950 if (PyErr_Occurred()) SWIG_fail;
11951 }
11952 {
11953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11954 }
11955 return resultobj;
11956 fail:
11957 return NULL;
11958 }
11959
11960
11961 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11962 PyObject *resultobj = 0;
11963 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11964 void *argp1 = 0 ;
11965 int res1 = 0 ;
11966 PyObject *swig_obj[1] ;
11967
11968 if (!args) SWIG_fail;
11969 swig_obj[0] = args;
11970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11971 if (!SWIG_IsOK(res1)) {
11972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11973 }
11974 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11975 {
11976 PyThreadState* __tstate = wxPyBeginAllowThreads();
11977 (arg1)->Reset();
11978 wxPyEndAllowThreads(__tstate);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 resultobj = SWIG_Py_Void();
11982 return resultobj;
11983 fail:
11984 return NULL;
11985 }
11986
11987
11988 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11989 PyObject *resultobj = 0;
11990 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
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_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12000 }
12001 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12002 {
12003 PyThreadState* __tstate = wxPyBeginAllowThreads();
12004 wxRegionIterator_Next(arg1);
12005 wxPyEndAllowThreads(__tstate);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
12008 resultobj = SWIG_Py_Void();
12009 return resultobj;
12010 fail:
12011 return NULL;
12012 }
12013
12014
12015 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12016 PyObject *resultobj = 0;
12017 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12018 bool 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___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12028 }
12029 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12030 {
12031 PyThreadState* __tstate = wxPyBeginAllowThreads();
12032 result = (bool)wxRegionIterator___nonzero__(arg1);
12033 wxPyEndAllowThreads(__tstate);
12034 if (PyErr_Occurred()) SWIG_fail;
12035 }
12036 {
12037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12038 }
12039 return resultobj;
12040 fail:
12041 return NULL;
12042 }
12043
12044
12045 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12046 PyObject *obj;
12047 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12048 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12049 return SWIG_Py_Void();
12050 }
12051
12052 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12053 return SWIG_Python_InitShadowInstance(args);
12054 }
12055
12056 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12057 PyObject *resultobj = 0;
12058 wxNativeFontInfo *result = 0 ;
12059
12060 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12061 {
12062 PyThreadState* __tstate = wxPyBeginAllowThreads();
12063 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12064 wxPyEndAllowThreads(__tstate);
12065 if (PyErr_Occurred()) SWIG_fail;
12066 }
12067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12068 return resultobj;
12069 fail:
12070 return NULL;
12071 }
12072
12073
12074 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12075 PyObject *resultobj = 0;
12076 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12077 void *argp1 = 0 ;
12078 int res1 = 0 ;
12079 PyObject *swig_obj[1] ;
12080
12081 if (!args) SWIG_fail;
12082 swig_obj[0] = args;
12083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12084 if (!SWIG_IsOK(res1)) {
12085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12086 }
12087 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12088 {
12089 PyThreadState* __tstate = wxPyBeginAllowThreads();
12090 delete arg1;
12091
12092 wxPyEndAllowThreads(__tstate);
12093 if (PyErr_Occurred()) SWIG_fail;
12094 }
12095 resultobj = SWIG_Py_Void();
12096 return resultobj;
12097 fail:
12098 return NULL;
12099 }
12100
12101
12102 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12103 PyObject *resultobj = 0;
12104 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12105 void *argp1 = 0 ;
12106 int res1 = 0 ;
12107 PyObject *swig_obj[1] ;
12108
12109 if (!args) SWIG_fail;
12110 swig_obj[0] = args;
12111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12112 if (!SWIG_IsOK(res1)) {
12113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12114 }
12115 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12116 {
12117 PyThreadState* __tstate = wxPyBeginAllowThreads();
12118 (arg1)->Init();
12119 wxPyEndAllowThreads(__tstate);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 resultobj = SWIG_Py_Void();
12123 return resultobj;
12124 fail:
12125 return NULL;
12126 }
12127
12128
12129 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12130 PyObject *resultobj = 0;
12131 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12132 wxFont *arg2 = 0 ;
12133 void *argp1 = 0 ;
12134 int res1 = 0 ;
12135 void *argp2 = 0 ;
12136 int res2 = 0 ;
12137 PyObject * obj0 = 0 ;
12138 PyObject * obj1 = 0 ;
12139 char * kwnames[] = {
12140 (char *) "self",(char *) "font", NULL
12141 };
12142
12143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12145 if (!SWIG_IsOK(res1)) {
12146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12147 }
12148 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12149 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12150 if (!SWIG_IsOK(res2)) {
12151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12152 }
12153 if (!argp2) {
12154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12155 }
12156 arg2 = reinterpret_cast< wxFont * >(argp2);
12157 {
12158 PyThreadState* __tstate = wxPyBeginAllowThreads();
12159 (arg1)->InitFromFont((wxFont const &)*arg2);
12160 wxPyEndAllowThreads(__tstate);
12161 if (PyErr_Occurred()) SWIG_fail;
12162 }
12163 resultobj = SWIG_Py_Void();
12164 return resultobj;
12165 fail:
12166 return NULL;
12167 }
12168
12169
12170 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12171 PyObject *resultobj = 0;
12172 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12173 int result;
12174 void *argp1 = 0 ;
12175 int res1 = 0 ;
12176 PyObject *swig_obj[1] ;
12177
12178 if (!args) SWIG_fail;
12179 swig_obj[0] = args;
12180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12181 if (!SWIG_IsOK(res1)) {
12182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12183 }
12184 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12185 {
12186 PyThreadState* __tstate = wxPyBeginAllowThreads();
12187 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12188 wxPyEndAllowThreads(__tstate);
12189 if (PyErr_Occurred()) SWIG_fail;
12190 }
12191 resultobj = SWIG_From_int(static_cast< int >(result));
12192 return resultobj;
12193 fail:
12194 return NULL;
12195 }
12196
12197
12198 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12199 PyObject *resultobj = 0;
12200 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12201 wxFontStyle result;
12202 void *argp1 = 0 ;
12203 int res1 = 0 ;
12204 PyObject *swig_obj[1] ;
12205
12206 if (!args) SWIG_fail;
12207 swig_obj[0] = args;
12208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12209 if (!SWIG_IsOK(res1)) {
12210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12211 }
12212 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12213 {
12214 PyThreadState* __tstate = wxPyBeginAllowThreads();
12215 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12216 wxPyEndAllowThreads(__tstate);
12217 if (PyErr_Occurred()) SWIG_fail;
12218 }
12219 resultobj = SWIG_From_int(static_cast< int >(result));
12220 return resultobj;
12221 fail:
12222 return NULL;
12223 }
12224
12225
12226 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12227 PyObject *resultobj = 0;
12228 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12229 wxFontWeight result;
12230 void *argp1 = 0 ;
12231 int res1 = 0 ;
12232 PyObject *swig_obj[1] ;
12233
12234 if (!args) SWIG_fail;
12235 swig_obj[0] = args;
12236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12237 if (!SWIG_IsOK(res1)) {
12238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12239 }
12240 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12241 {
12242 PyThreadState* __tstate = wxPyBeginAllowThreads();
12243 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12244 wxPyEndAllowThreads(__tstate);
12245 if (PyErr_Occurred()) SWIG_fail;
12246 }
12247 resultobj = SWIG_From_int(static_cast< int >(result));
12248 return resultobj;
12249 fail:
12250 return NULL;
12251 }
12252
12253
12254 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12255 PyObject *resultobj = 0;
12256 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12257 bool result;
12258 void *argp1 = 0 ;
12259 int res1 = 0 ;
12260 PyObject *swig_obj[1] ;
12261
12262 if (!args) SWIG_fail;
12263 swig_obj[0] = args;
12264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12265 if (!SWIG_IsOK(res1)) {
12266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12267 }
12268 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12269 {
12270 PyThreadState* __tstate = wxPyBeginAllowThreads();
12271 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12272 wxPyEndAllowThreads(__tstate);
12273 if (PyErr_Occurred()) SWIG_fail;
12274 }
12275 {
12276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12277 }
12278 return resultobj;
12279 fail:
12280 return NULL;
12281 }
12282
12283
12284 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12285 PyObject *resultobj = 0;
12286 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12287 wxString result;
12288 void *argp1 = 0 ;
12289 int res1 = 0 ;
12290 PyObject *swig_obj[1] ;
12291
12292 if (!args) SWIG_fail;
12293 swig_obj[0] = args;
12294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12295 if (!SWIG_IsOK(res1)) {
12296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12297 }
12298 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12299 {
12300 PyThreadState* __tstate = wxPyBeginAllowThreads();
12301 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12302 wxPyEndAllowThreads(__tstate);
12303 if (PyErr_Occurred()) SWIG_fail;
12304 }
12305 {
12306 #if wxUSE_UNICODE
12307 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12308 #else
12309 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12310 #endif
12311 }
12312 return resultobj;
12313 fail:
12314 return NULL;
12315 }
12316
12317
12318 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12319 PyObject *resultobj = 0;
12320 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12321 wxFontFamily result;
12322 void *argp1 = 0 ;
12323 int res1 = 0 ;
12324 PyObject *swig_obj[1] ;
12325
12326 if (!args) SWIG_fail;
12327 swig_obj[0] = args;
12328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12329 if (!SWIG_IsOK(res1)) {
12330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12331 }
12332 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12333 {
12334 PyThreadState* __tstate = wxPyBeginAllowThreads();
12335 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12336 wxPyEndAllowThreads(__tstate);
12337 if (PyErr_Occurred()) SWIG_fail;
12338 }
12339 resultobj = SWIG_From_int(static_cast< int >(result));
12340 return resultobj;
12341 fail:
12342 return NULL;
12343 }
12344
12345
12346 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12347 PyObject *resultobj = 0;
12348 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12349 wxFontEncoding result;
12350 void *argp1 = 0 ;
12351 int res1 = 0 ;
12352 PyObject *swig_obj[1] ;
12353
12354 if (!args) SWIG_fail;
12355 swig_obj[0] = args;
12356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12357 if (!SWIG_IsOK(res1)) {
12358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12359 }
12360 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12361 {
12362 PyThreadState* __tstate = wxPyBeginAllowThreads();
12363 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12364 wxPyEndAllowThreads(__tstate);
12365 if (PyErr_Occurred()) SWIG_fail;
12366 }
12367 resultobj = SWIG_From_int(static_cast< int >(result));
12368 return resultobj;
12369 fail:
12370 return NULL;
12371 }
12372
12373
12374 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12375 PyObject *resultobj = 0;
12376 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12377 int arg2 ;
12378 void *argp1 = 0 ;
12379 int res1 = 0 ;
12380 int val2 ;
12381 int ecode2 = 0 ;
12382 PyObject * obj0 = 0 ;
12383 PyObject * obj1 = 0 ;
12384 char * kwnames[] = {
12385 (char *) "self",(char *) "pointsize", NULL
12386 };
12387
12388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12390 if (!SWIG_IsOK(res1)) {
12391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12392 }
12393 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12394 ecode2 = SWIG_AsVal_int(obj1, &val2);
12395 if (!SWIG_IsOK(ecode2)) {
12396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12397 }
12398 arg2 = static_cast< int >(val2);
12399 {
12400 PyThreadState* __tstate = wxPyBeginAllowThreads();
12401 (arg1)->SetPointSize(arg2);
12402 wxPyEndAllowThreads(__tstate);
12403 if (PyErr_Occurred()) SWIG_fail;
12404 }
12405 resultobj = SWIG_Py_Void();
12406 return resultobj;
12407 fail:
12408 return NULL;
12409 }
12410
12411
12412 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12413 PyObject *resultobj = 0;
12414 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12415 wxFontStyle arg2 ;
12416 void *argp1 = 0 ;
12417 int res1 = 0 ;
12418 int val2 ;
12419 int ecode2 = 0 ;
12420 PyObject * obj0 = 0 ;
12421 PyObject * obj1 = 0 ;
12422 char * kwnames[] = {
12423 (char *) "self",(char *) "style", NULL
12424 };
12425
12426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12428 if (!SWIG_IsOK(res1)) {
12429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12430 }
12431 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12432 ecode2 = SWIG_AsVal_int(obj1, &val2);
12433 if (!SWIG_IsOK(ecode2)) {
12434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12435 }
12436 arg2 = static_cast< wxFontStyle >(val2);
12437 {
12438 PyThreadState* __tstate = wxPyBeginAllowThreads();
12439 (arg1)->SetStyle(arg2);
12440 wxPyEndAllowThreads(__tstate);
12441 if (PyErr_Occurred()) SWIG_fail;
12442 }
12443 resultobj = SWIG_Py_Void();
12444 return resultobj;
12445 fail:
12446 return NULL;
12447 }
12448
12449
12450 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12451 PyObject *resultobj = 0;
12452 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12453 wxFontWeight arg2 ;
12454 void *argp1 = 0 ;
12455 int res1 = 0 ;
12456 int val2 ;
12457 int ecode2 = 0 ;
12458 PyObject * obj0 = 0 ;
12459 PyObject * obj1 = 0 ;
12460 char * kwnames[] = {
12461 (char *) "self",(char *) "weight", NULL
12462 };
12463
12464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12466 if (!SWIG_IsOK(res1)) {
12467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12468 }
12469 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12470 ecode2 = SWIG_AsVal_int(obj1, &val2);
12471 if (!SWIG_IsOK(ecode2)) {
12472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12473 }
12474 arg2 = static_cast< wxFontWeight >(val2);
12475 {
12476 PyThreadState* __tstate = wxPyBeginAllowThreads();
12477 (arg1)->SetWeight(arg2);
12478 wxPyEndAllowThreads(__tstate);
12479 if (PyErr_Occurred()) SWIG_fail;
12480 }
12481 resultobj = SWIG_Py_Void();
12482 return resultobj;
12483 fail:
12484 return NULL;
12485 }
12486
12487
12488 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12489 PyObject *resultobj = 0;
12490 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12491 bool arg2 ;
12492 void *argp1 = 0 ;
12493 int res1 = 0 ;
12494 bool val2 ;
12495 int ecode2 = 0 ;
12496 PyObject * obj0 = 0 ;
12497 PyObject * obj1 = 0 ;
12498 char * kwnames[] = {
12499 (char *) "self",(char *) "underlined", NULL
12500 };
12501
12502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12504 if (!SWIG_IsOK(res1)) {
12505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12506 }
12507 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12508 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12509 if (!SWIG_IsOK(ecode2)) {
12510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12511 }
12512 arg2 = static_cast< bool >(val2);
12513 {
12514 PyThreadState* __tstate = wxPyBeginAllowThreads();
12515 (arg1)->SetUnderlined(arg2);
12516 wxPyEndAllowThreads(__tstate);
12517 if (PyErr_Occurred()) SWIG_fail;
12518 }
12519 resultobj = SWIG_Py_Void();
12520 return resultobj;
12521 fail:
12522 return NULL;
12523 }
12524
12525
12526 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12527 PyObject *resultobj = 0;
12528 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12529 wxString arg2 ;
12530 bool result;
12531 void *argp1 = 0 ;
12532 int res1 = 0 ;
12533 PyObject * obj0 = 0 ;
12534 PyObject * obj1 = 0 ;
12535 char * kwnames[] = {
12536 (char *) "self",(char *) "facename", NULL
12537 };
12538
12539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12541 if (!SWIG_IsOK(res1)) {
12542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12543 }
12544 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12545 {
12546 wxString* sptr = wxString_in_helper(obj1);
12547 if (sptr == NULL) SWIG_fail;
12548 arg2 = *sptr;
12549 delete sptr;
12550 }
12551 {
12552 PyThreadState* __tstate = wxPyBeginAllowThreads();
12553 result = (bool)(arg1)->SetFaceName(arg2);
12554 wxPyEndAllowThreads(__tstate);
12555 if (PyErr_Occurred()) SWIG_fail;
12556 }
12557 {
12558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12559 }
12560 return resultobj;
12561 fail:
12562 return NULL;
12563 }
12564
12565
12566 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12567 PyObject *resultobj = 0;
12568 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12569 wxFontFamily arg2 ;
12570 void *argp1 = 0 ;
12571 int res1 = 0 ;
12572 int val2 ;
12573 int ecode2 = 0 ;
12574 PyObject * obj0 = 0 ;
12575 PyObject * obj1 = 0 ;
12576 char * kwnames[] = {
12577 (char *) "self",(char *) "family", NULL
12578 };
12579
12580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12582 if (!SWIG_IsOK(res1)) {
12583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12584 }
12585 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12586 ecode2 = SWIG_AsVal_int(obj1, &val2);
12587 if (!SWIG_IsOK(ecode2)) {
12588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12589 }
12590 arg2 = static_cast< wxFontFamily >(val2);
12591 {
12592 PyThreadState* __tstate = wxPyBeginAllowThreads();
12593 (arg1)->SetFamily(arg2);
12594 wxPyEndAllowThreads(__tstate);
12595 if (PyErr_Occurred()) SWIG_fail;
12596 }
12597 resultobj = SWIG_Py_Void();
12598 return resultobj;
12599 fail:
12600 return NULL;
12601 }
12602
12603
12604 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12605 PyObject *resultobj = 0;
12606 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12607 wxFontEncoding arg2 ;
12608 void *argp1 = 0 ;
12609 int res1 = 0 ;
12610 int val2 ;
12611 int ecode2 = 0 ;
12612 PyObject * obj0 = 0 ;
12613 PyObject * obj1 = 0 ;
12614 char * kwnames[] = {
12615 (char *) "self",(char *) "encoding", NULL
12616 };
12617
12618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12620 if (!SWIG_IsOK(res1)) {
12621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12622 }
12623 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12624 ecode2 = SWIG_AsVal_int(obj1, &val2);
12625 if (!SWIG_IsOK(ecode2)) {
12626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12627 }
12628 arg2 = static_cast< wxFontEncoding >(val2);
12629 {
12630 PyThreadState* __tstate = wxPyBeginAllowThreads();
12631 (arg1)->SetEncoding(arg2);
12632 wxPyEndAllowThreads(__tstate);
12633 if (PyErr_Occurred()) SWIG_fail;
12634 }
12635 resultobj = SWIG_Py_Void();
12636 return resultobj;
12637 fail:
12638 return NULL;
12639 }
12640
12641
12642 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12643 PyObject *resultobj = 0;
12644 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12645 wxString *arg2 = 0 ;
12646 bool result;
12647 void *argp1 = 0 ;
12648 int res1 = 0 ;
12649 bool temp2 = false ;
12650 PyObject * obj0 = 0 ;
12651 PyObject * obj1 = 0 ;
12652 char * kwnames[] = {
12653 (char *) "self",(char *) "s", NULL
12654 };
12655
12656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12658 if (!SWIG_IsOK(res1)) {
12659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12660 }
12661 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12662 {
12663 arg2 = wxString_in_helper(obj1);
12664 if (arg2 == NULL) SWIG_fail;
12665 temp2 = true;
12666 }
12667 {
12668 PyThreadState* __tstate = wxPyBeginAllowThreads();
12669 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12670 wxPyEndAllowThreads(__tstate);
12671 if (PyErr_Occurred()) SWIG_fail;
12672 }
12673 {
12674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12675 }
12676 {
12677 if (temp2)
12678 delete arg2;
12679 }
12680 return resultobj;
12681 fail:
12682 {
12683 if (temp2)
12684 delete arg2;
12685 }
12686 return NULL;
12687 }
12688
12689
12690 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12691 PyObject *resultobj = 0;
12692 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12693 wxString result;
12694 void *argp1 = 0 ;
12695 int res1 = 0 ;
12696 PyObject *swig_obj[1] ;
12697
12698 if (!args) SWIG_fail;
12699 swig_obj[0] = args;
12700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12701 if (!SWIG_IsOK(res1)) {
12702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12703 }
12704 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12705 {
12706 PyThreadState* __tstate = wxPyBeginAllowThreads();
12707 result = ((wxNativeFontInfo const *)arg1)->ToString();
12708 wxPyEndAllowThreads(__tstate);
12709 if (PyErr_Occurred()) SWIG_fail;
12710 }
12711 {
12712 #if wxUSE_UNICODE
12713 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12714 #else
12715 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12716 #endif
12717 }
12718 return resultobj;
12719 fail:
12720 return NULL;
12721 }
12722
12723
12724 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12725 PyObject *resultobj = 0;
12726 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12727 wxString result;
12728 void *argp1 = 0 ;
12729 int res1 = 0 ;
12730 PyObject *swig_obj[1] ;
12731
12732 if (!args) SWIG_fail;
12733 swig_obj[0] = args;
12734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12735 if (!SWIG_IsOK(res1)) {
12736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12737 }
12738 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12739 {
12740 PyThreadState* __tstate = wxPyBeginAllowThreads();
12741 result = wxNativeFontInfo___str__(arg1);
12742 wxPyEndAllowThreads(__tstate);
12743 if (PyErr_Occurred()) SWIG_fail;
12744 }
12745 {
12746 #if wxUSE_UNICODE
12747 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12748 #else
12749 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12750 #endif
12751 }
12752 return resultobj;
12753 fail:
12754 return NULL;
12755 }
12756
12757
12758 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12759 PyObject *resultobj = 0;
12760 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12761 wxString *arg2 = 0 ;
12762 bool result;
12763 void *argp1 = 0 ;
12764 int res1 = 0 ;
12765 bool temp2 = false ;
12766 PyObject * obj0 = 0 ;
12767 PyObject * obj1 = 0 ;
12768 char * kwnames[] = {
12769 (char *) "self",(char *) "s", NULL
12770 };
12771
12772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12774 if (!SWIG_IsOK(res1)) {
12775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12776 }
12777 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12778 {
12779 arg2 = wxString_in_helper(obj1);
12780 if (arg2 == NULL) SWIG_fail;
12781 temp2 = true;
12782 }
12783 {
12784 PyThreadState* __tstate = wxPyBeginAllowThreads();
12785 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12786 wxPyEndAllowThreads(__tstate);
12787 if (PyErr_Occurred()) SWIG_fail;
12788 }
12789 {
12790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12791 }
12792 {
12793 if (temp2)
12794 delete arg2;
12795 }
12796 return resultobj;
12797 fail:
12798 {
12799 if (temp2)
12800 delete arg2;
12801 }
12802 return NULL;
12803 }
12804
12805
12806 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12807 PyObject *resultobj = 0;
12808 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12809 wxString result;
12810 void *argp1 = 0 ;
12811 int res1 = 0 ;
12812 PyObject *swig_obj[1] ;
12813
12814 if (!args) SWIG_fail;
12815 swig_obj[0] = args;
12816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12817 if (!SWIG_IsOK(res1)) {
12818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12819 }
12820 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12821 {
12822 PyThreadState* __tstate = wxPyBeginAllowThreads();
12823 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12824 wxPyEndAllowThreads(__tstate);
12825 if (PyErr_Occurred()) SWIG_fail;
12826 }
12827 {
12828 #if wxUSE_UNICODE
12829 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12830 #else
12831 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12832 #endif
12833 }
12834 return resultobj;
12835 fail:
12836 return NULL;
12837 }
12838
12839
12840 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12841 PyObject *obj;
12842 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12843 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12844 return SWIG_Py_Void();
12845 }
12846
12847 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12848 return SWIG_Python_InitShadowInstance(args);
12849 }
12850
12851 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12852 PyObject *resultobj = 0;
12853 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12854 wxString *arg2 = (wxString *) 0 ;
12855 void *argp1 = 0 ;
12856 int res1 = 0 ;
12857 bool temp2 = false ;
12858 PyObject *swig_obj[2] ;
12859
12860 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12862 if (!SWIG_IsOK(res1)) {
12863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12864 }
12865 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12866 {
12867 arg2 = wxString_in_helper(swig_obj[1]);
12868 if (arg2 == NULL) SWIG_fail;
12869 temp2 = true;
12870 }
12871 if (arg1) (arg1)->facename = *arg2;
12872
12873 resultobj = SWIG_Py_Void();
12874 {
12875 if (temp2)
12876 delete arg2;
12877 }
12878 return resultobj;
12879 fail:
12880 {
12881 if (temp2)
12882 delete arg2;
12883 }
12884 return NULL;
12885 }
12886
12887
12888 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12889 PyObject *resultobj = 0;
12890 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12891 wxString *result = 0 ;
12892 void *argp1 = 0 ;
12893 int res1 = 0 ;
12894 PyObject *swig_obj[1] ;
12895
12896 if (!args) SWIG_fail;
12897 swig_obj[0] = args;
12898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12899 if (!SWIG_IsOK(res1)) {
12900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12901 }
12902 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12903 result = (wxString *)& ((arg1)->facename);
12904 {
12905 #if wxUSE_UNICODE
12906 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12907 #else
12908 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12909 #endif
12910 }
12911 return resultobj;
12912 fail:
12913 return NULL;
12914 }
12915
12916
12917 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12918 PyObject *resultobj = 0;
12919 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12920 wxFontEncoding arg2 ;
12921 void *argp1 = 0 ;
12922 int res1 = 0 ;
12923 int val2 ;
12924 int ecode2 = 0 ;
12925 PyObject *swig_obj[2] ;
12926
12927 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12929 if (!SWIG_IsOK(res1)) {
12930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12931 }
12932 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12933 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12934 if (!SWIG_IsOK(ecode2)) {
12935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12936 }
12937 arg2 = static_cast< wxFontEncoding >(val2);
12938 if (arg1) (arg1)->encoding = arg2;
12939
12940 resultobj = SWIG_Py_Void();
12941 return resultobj;
12942 fail:
12943 return NULL;
12944 }
12945
12946
12947 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12948 PyObject *resultobj = 0;
12949 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12950 wxFontEncoding result;
12951 void *argp1 = 0 ;
12952 int res1 = 0 ;
12953 PyObject *swig_obj[1] ;
12954
12955 if (!args) SWIG_fail;
12956 swig_obj[0] = args;
12957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12958 if (!SWIG_IsOK(res1)) {
12959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12960 }
12961 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12962 result = (wxFontEncoding) ((arg1)->encoding);
12963 resultobj = SWIG_From_int(static_cast< int >(result));
12964 return resultobj;
12965 fail:
12966 return NULL;
12967 }
12968
12969
12970 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12971 PyObject *resultobj = 0;
12972 wxNativeEncodingInfo *result = 0 ;
12973
12974 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12975 {
12976 PyThreadState* __tstate = wxPyBeginAllowThreads();
12977 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12978 wxPyEndAllowThreads(__tstate);
12979 if (PyErr_Occurred()) SWIG_fail;
12980 }
12981 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12982 return resultobj;
12983 fail:
12984 return NULL;
12985 }
12986
12987
12988 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12989 PyObject *resultobj = 0;
12990 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12991 void *argp1 = 0 ;
12992 int res1 = 0 ;
12993 PyObject *swig_obj[1] ;
12994
12995 if (!args) SWIG_fail;
12996 swig_obj[0] = args;
12997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12998 if (!SWIG_IsOK(res1)) {
12999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13000 }
13001 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13002 {
13003 PyThreadState* __tstate = wxPyBeginAllowThreads();
13004 delete arg1;
13005
13006 wxPyEndAllowThreads(__tstate);
13007 if (PyErr_Occurred()) SWIG_fail;
13008 }
13009 resultobj = SWIG_Py_Void();
13010 return resultobj;
13011 fail:
13012 return NULL;
13013 }
13014
13015
13016 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13017 PyObject *resultobj = 0;
13018 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13019 wxString *arg2 = 0 ;
13020 bool result;
13021 void *argp1 = 0 ;
13022 int res1 = 0 ;
13023 bool temp2 = false ;
13024 PyObject * obj0 = 0 ;
13025 PyObject * obj1 = 0 ;
13026 char * kwnames[] = {
13027 (char *) "self",(char *) "s", NULL
13028 };
13029
13030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13032 if (!SWIG_IsOK(res1)) {
13033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13034 }
13035 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13036 {
13037 arg2 = wxString_in_helper(obj1);
13038 if (arg2 == NULL) SWIG_fail;
13039 temp2 = true;
13040 }
13041 {
13042 PyThreadState* __tstate = wxPyBeginAllowThreads();
13043 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13044 wxPyEndAllowThreads(__tstate);
13045 if (PyErr_Occurred()) SWIG_fail;
13046 }
13047 {
13048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13049 }
13050 {
13051 if (temp2)
13052 delete arg2;
13053 }
13054 return resultobj;
13055 fail:
13056 {
13057 if (temp2)
13058 delete arg2;
13059 }
13060 return NULL;
13061 }
13062
13063
13064 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13065 PyObject *resultobj = 0;
13066 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13067 wxString result;
13068 void *argp1 = 0 ;
13069 int res1 = 0 ;
13070 PyObject *swig_obj[1] ;
13071
13072 if (!args) SWIG_fail;
13073 swig_obj[0] = args;
13074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13075 if (!SWIG_IsOK(res1)) {
13076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13077 }
13078 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13079 {
13080 PyThreadState* __tstate = wxPyBeginAllowThreads();
13081 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13082 wxPyEndAllowThreads(__tstate);
13083 if (PyErr_Occurred()) SWIG_fail;
13084 }
13085 {
13086 #if wxUSE_UNICODE
13087 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13088 #else
13089 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13090 #endif
13091 }
13092 return resultobj;
13093 fail:
13094 return NULL;
13095 }
13096
13097
13098 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13099 PyObject *obj;
13100 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13101 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13102 return SWIG_Py_Void();
13103 }
13104
13105 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13106 return SWIG_Python_InitShadowInstance(args);
13107 }
13108
13109 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13110 PyObject *resultobj = 0;
13111 wxFontEncoding arg1 ;
13112 wxNativeEncodingInfo *result = 0 ;
13113 int val1 ;
13114 int ecode1 = 0 ;
13115 PyObject * obj0 = 0 ;
13116 char * kwnames[] = {
13117 (char *) "encoding", NULL
13118 };
13119
13120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13121 ecode1 = SWIG_AsVal_int(obj0, &val1);
13122 if (!SWIG_IsOK(ecode1)) {
13123 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13124 }
13125 arg1 = static_cast< wxFontEncoding >(val1);
13126 {
13127 PyThreadState* __tstate = wxPyBeginAllowThreads();
13128 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13129 wxPyEndAllowThreads(__tstate);
13130 if (PyErr_Occurred()) SWIG_fail;
13131 }
13132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13133 return resultobj;
13134 fail:
13135 return NULL;
13136 }
13137
13138
13139 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13140 PyObject *resultobj = 0;
13141 wxNativeEncodingInfo *arg1 = 0 ;
13142 bool result;
13143 void *argp1 = 0 ;
13144 int res1 = 0 ;
13145 PyObject * obj0 = 0 ;
13146 char * kwnames[] = {
13147 (char *) "info", NULL
13148 };
13149
13150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13151 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13152 if (!SWIG_IsOK(res1)) {
13153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13154 }
13155 if (!argp1) {
13156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13157 }
13158 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13159 {
13160 PyThreadState* __tstate = wxPyBeginAllowThreads();
13161 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13162 wxPyEndAllowThreads(__tstate);
13163 if (PyErr_Occurred()) SWIG_fail;
13164 }
13165 {
13166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13167 }
13168 return resultobj;
13169 fail:
13170 return NULL;
13171 }
13172
13173
13174 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13175 PyObject *resultobj = 0;
13176 wxFontMapper *result = 0 ;
13177
13178 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13179 {
13180 PyThreadState* __tstate = wxPyBeginAllowThreads();
13181 result = (wxFontMapper *)new wxFontMapper();
13182 wxPyEndAllowThreads(__tstate);
13183 if (PyErr_Occurred()) SWIG_fail;
13184 }
13185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13186 return resultobj;
13187 fail:
13188 return NULL;
13189 }
13190
13191
13192 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13193 PyObject *resultobj = 0;
13194 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13195 void *argp1 = 0 ;
13196 int res1 = 0 ;
13197 PyObject *swig_obj[1] ;
13198
13199 if (!args) SWIG_fail;
13200 swig_obj[0] = args;
13201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13202 if (!SWIG_IsOK(res1)) {
13203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13204 }
13205 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13206 {
13207 PyThreadState* __tstate = wxPyBeginAllowThreads();
13208 delete arg1;
13209
13210 wxPyEndAllowThreads(__tstate);
13211 if (PyErr_Occurred()) SWIG_fail;
13212 }
13213 resultobj = SWIG_Py_Void();
13214 return resultobj;
13215 fail:
13216 return NULL;
13217 }
13218
13219
13220 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13221 PyObject *resultobj = 0;
13222 wxFontMapper *result = 0 ;
13223
13224 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13225 {
13226 PyThreadState* __tstate = wxPyBeginAllowThreads();
13227 result = (wxFontMapper *)wxFontMapper::Get();
13228 wxPyEndAllowThreads(__tstate);
13229 if (PyErr_Occurred()) SWIG_fail;
13230 }
13231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13232 return resultobj;
13233 fail:
13234 return NULL;
13235 }
13236
13237
13238 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13239 PyObject *resultobj = 0;
13240 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13241 wxFontMapper *result = 0 ;
13242 void *argp1 = 0 ;
13243 int res1 = 0 ;
13244 PyObject * obj0 = 0 ;
13245 char * kwnames[] = {
13246 (char *) "mapper", NULL
13247 };
13248
13249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13251 if (!SWIG_IsOK(res1)) {
13252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13253 }
13254 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
13257 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13258 wxPyEndAllowThreads(__tstate);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
13261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13262 return resultobj;
13263 fail:
13264 return NULL;
13265 }
13266
13267
13268 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13269 PyObject *resultobj = 0;
13270 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13271 wxString *arg2 = 0 ;
13272 bool arg3 = (bool) true ;
13273 wxFontEncoding result;
13274 void *argp1 = 0 ;
13275 int res1 = 0 ;
13276 bool temp2 = false ;
13277 bool val3 ;
13278 int ecode3 = 0 ;
13279 PyObject * obj0 = 0 ;
13280 PyObject * obj1 = 0 ;
13281 PyObject * obj2 = 0 ;
13282 char * kwnames[] = {
13283 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13284 };
13285
13286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13288 if (!SWIG_IsOK(res1)) {
13289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13290 }
13291 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13292 {
13293 arg2 = wxString_in_helper(obj1);
13294 if (arg2 == NULL) SWIG_fail;
13295 temp2 = true;
13296 }
13297 if (obj2) {
13298 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13299 if (!SWIG_IsOK(ecode3)) {
13300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13301 }
13302 arg3 = static_cast< bool >(val3);
13303 }
13304 {
13305 PyThreadState* __tstate = wxPyBeginAllowThreads();
13306 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13307 wxPyEndAllowThreads(__tstate);
13308 if (PyErr_Occurred()) SWIG_fail;
13309 }
13310 resultobj = SWIG_From_int(static_cast< int >(result));
13311 {
13312 if (temp2)
13313 delete arg2;
13314 }
13315 return resultobj;
13316 fail:
13317 {
13318 if (temp2)
13319 delete arg2;
13320 }
13321 return NULL;
13322 }
13323
13324
13325 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13326 PyObject *resultobj = 0;
13327 size_t result;
13328
13329 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13330 {
13331 PyThreadState* __tstate = wxPyBeginAllowThreads();
13332 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13333 wxPyEndAllowThreads(__tstate);
13334 if (PyErr_Occurred()) SWIG_fail;
13335 }
13336 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13337 return resultobj;
13338 fail:
13339 return NULL;
13340 }
13341
13342
13343 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13344 PyObject *resultobj = 0;
13345 size_t arg1 ;
13346 wxFontEncoding result;
13347 size_t val1 ;
13348 int ecode1 = 0 ;
13349 PyObject * obj0 = 0 ;
13350 char * kwnames[] = {
13351 (char *) "n", NULL
13352 };
13353
13354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13355 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13356 if (!SWIG_IsOK(ecode1)) {
13357 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13358 }
13359 arg1 = static_cast< size_t >(val1);
13360 {
13361 PyThreadState* __tstate = wxPyBeginAllowThreads();
13362 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13363 wxPyEndAllowThreads(__tstate);
13364 if (PyErr_Occurred()) SWIG_fail;
13365 }
13366 resultobj = SWIG_From_int(static_cast< int >(result));
13367 return resultobj;
13368 fail:
13369 return NULL;
13370 }
13371
13372
13373 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13374 PyObject *resultobj = 0;
13375 wxFontEncoding arg1 ;
13376 wxString result;
13377 int val1 ;
13378 int ecode1 = 0 ;
13379 PyObject * obj0 = 0 ;
13380 char * kwnames[] = {
13381 (char *) "encoding", NULL
13382 };
13383
13384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13385 ecode1 = SWIG_AsVal_int(obj0, &val1);
13386 if (!SWIG_IsOK(ecode1)) {
13387 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13388 }
13389 arg1 = static_cast< wxFontEncoding >(val1);
13390 {
13391 PyThreadState* __tstate = wxPyBeginAllowThreads();
13392 result = wxFontMapper::GetEncodingName(arg1);
13393 wxPyEndAllowThreads(__tstate);
13394 if (PyErr_Occurred()) SWIG_fail;
13395 }
13396 {
13397 #if wxUSE_UNICODE
13398 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13399 #else
13400 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13401 #endif
13402 }
13403 return resultobj;
13404 fail:
13405 return NULL;
13406 }
13407
13408
13409 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13410 PyObject *resultobj = 0;
13411 wxFontEncoding arg1 ;
13412 wxString result;
13413 int val1 ;
13414 int ecode1 = 0 ;
13415 PyObject * obj0 = 0 ;
13416 char * kwnames[] = {
13417 (char *) "encoding", NULL
13418 };
13419
13420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13421 ecode1 = SWIG_AsVal_int(obj0, &val1);
13422 if (!SWIG_IsOK(ecode1)) {
13423 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13424 }
13425 arg1 = static_cast< wxFontEncoding >(val1);
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 result = wxFontMapper::GetEncodingDescription(arg1);
13429 wxPyEndAllowThreads(__tstate);
13430 if (PyErr_Occurred()) SWIG_fail;
13431 }
13432 {
13433 #if wxUSE_UNICODE
13434 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13435 #else
13436 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13437 #endif
13438 }
13439 return resultobj;
13440 fail:
13441 return NULL;
13442 }
13443
13444
13445 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13446 PyObject *resultobj = 0;
13447 wxString *arg1 = 0 ;
13448 wxFontEncoding result;
13449 bool temp1 = false ;
13450 PyObject * obj0 = 0 ;
13451 char * kwnames[] = {
13452 (char *) "name", NULL
13453 };
13454
13455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13456 {
13457 arg1 = wxString_in_helper(obj0);
13458 if (arg1 == NULL) SWIG_fail;
13459 temp1 = true;
13460 }
13461 {
13462 PyThreadState* __tstate = wxPyBeginAllowThreads();
13463 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13464 wxPyEndAllowThreads(__tstate);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 }
13467 resultobj = SWIG_From_int(static_cast< int >(result));
13468 {
13469 if (temp1)
13470 delete arg1;
13471 }
13472 return resultobj;
13473 fail:
13474 {
13475 if (temp1)
13476 delete arg1;
13477 }
13478 return NULL;
13479 }
13480
13481
13482 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13483 PyObject *resultobj = 0;
13484 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13485 wxString *arg2 = 0 ;
13486 void *argp1 = 0 ;
13487 int res1 = 0 ;
13488 bool temp2 = false ;
13489 PyObject * obj0 = 0 ;
13490 PyObject * obj1 = 0 ;
13491 char * kwnames[] = {
13492 (char *) "self",(char *) "prefix", NULL
13493 };
13494
13495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13497 if (!SWIG_IsOK(res1)) {
13498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13499 }
13500 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13501 {
13502 arg2 = wxString_in_helper(obj1);
13503 if (arg2 == NULL) SWIG_fail;
13504 temp2 = true;
13505 }
13506 {
13507 PyThreadState* __tstate = wxPyBeginAllowThreads();
13508 (arg1)->SetConfigPath((wxString const &)*arg2);
13509 wxPyEndAllowThreads(__tstate);
13510 if (PyErr_Occurred()) SWIG_fail;
13511 }
13512 resultobj = SWIG_Py_Void();
13513 {
13514 if (temp2)
13515 delete arg2;
13516 }
13517 return resultobj;
13518 fail:
13519 {
13520 if (temp2)
13521 delete arg2;
13522 }
13523 return NULL;
13524 }
13525
13526
13527 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13528 PyObject *resultobj = 0;
13529 wxString result;
13530
13531 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13532 {
13533 PyThreadState* __tstate = wxPyBeginAllowThreads();
13534 result = wxFontMapper::GetDefaultConfigPath();
13535 wxPyEndAllowThreads(__tstate);
13536 if (PyErr_Occurred()) SWIG_fail;
13537 }
13538 {
13539 #if wxUSE_UNICODE
13540 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13541 #else
13542 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13543 #endif
13544 }
13545 return resultobj;
13546 fail:
13547 return NULL;
13548 }
13549
13550
13551 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13552 PyObject *resultobj = 0;
13553 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13554 wxFontEncoding arg2 ;
13555 wxString const &arg3_defvalue = wxPyEmptyString ;
13556 wxString *arg3 = (wxString *) &arg3_defvalue ;
13557 bool arg4 = (bool) true ;
13558 PyObject *result = 0 ;
13559 void *argp1 = 0 ;
13560 int res1 = 0 ;
13561 int val2 ;
13562 int ecode2 = 0 ;
13563 bool temp3 = false ;
13564 bool val4 ;
13565 int ecode4 = 0 ;
13566 PyObject * obj0 = 0 ;
13567 PyObject * obj1 = 0 ;
13568 PyObject * obj2 = 0 ;
13569 PyObject * obj3 = 0 ;
13570 char * kwnames[] = {
13571 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13572 };
13573
13574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13576 if (!SWIG_IsOK(res1)) {
13577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13578 }
13579 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13580 ecode2 = SWIG_AsVal_int(obj1, &val2);
13581 if (!SWIG_IsOK(ecode2)) {
13582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13583 }
13584 arg2 = static_cast< wxFontEncoding >(val2);
13585 if (obj2) {
13586 {
13587 arg3 = wxString_in_helper(obj2);
13588 if (arg3 == NULL) SWIG_fail;
13589 temp3 = true;
13590 }
13591 }
13592 if (obj3) {
13593 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13594 if (!SWIG_IsOK(ecode4)) {
13595 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13596 }
13597 arg4 = static_cast< bool >(val4);
13598 }
13599 {
13600 PyThreadState* __tstate = wxPyBeginAllowThreads();
13601 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13602 wxPyEndAllowThreads(__tstate);
13603 if (PyErr_Occurred()) SWIG_fail;
13604 }
13605 resultobj = result;
13606 {
13607 if (temp3)
13608 delete arg3;
13609 }
13610 return resultobj;
13611 fail:
13612 {
13613 if (temp3)
13614 delete arg3;
13615 }
13616 return NULL;
13617 }
13618
13619
13620 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13621 PyObject *resultobj = 0;
13622 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13623 wxFontEncoding arg2 ;
13624 wxString const &arg3_defvalue = wxPyEmptyString ;
13625 wxString *arg3 = (wxString *) &arg3_defvalue ;
13626 bool result;
13627 void *argp1 = 0 ;
13628 int res1 = 0 ;
13629 int val2 ;
13630 int ecode2 = 0 ;
13631 bool temp3 = false ;
13632 PyObject * obj0 = 0 ;
13633 PyObject * obj1 = 0 ;
13634 PyObject * obj2 = 0 ;
13635 char * kwnames[] = {
13636 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13637 };
13638
13639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13641 if (!SWIG_IsOK(res1)) {
13642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13643 }
13644 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13645 ecode2 = SWIG_AsVal_int(obj1, &val2);
13646 if (!SWIG_IsOK(ecode2)) {
13647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13648 }
13649 arg2 = static_cast< wxFontEncoding >(val2);
13650 if (obj2) {
13651 {
13652 arg3 = wxString_in_helper(obj2);
13653 if (arg3 == NULL) SWIG_fail;
13654 temp3 = true;
13655 }
13656 }
13657 {
13658 PyThreadState* __tstate = wxPyBeginAllowThreads();
13659 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13660 wxPyEndAllowThreads(__tstate);
13661 if (PyErr_Occurred()) SWIG_fail;
13662 }
13663 {
13664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13665 }
13666 {
13667 if (temp3)
13668 delete arg3;
13669 }
13670 return resultobj;
13671 fail:
13672 {
13673 if (temp3)
13674 delete arg3;
13675 }
13676 return NULL;
13677 }
13678
13679
13680 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13681 PyObject *resultobj = 0;
13682 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13683 wxWindow *arg2 = (wxWindow *) 0 ;
13684 void *argp1 = 0 ;
13685 int res1 = 0 ;
13686 void *argp2 = 0 ;
13687 int res2 = 0 ;
13688 PyObject * obj0 = 0 ;
13689 PyObject * obj1 = 0 ;
13690 char * kwnames[] = {
13691 (char *) "self",(char *) "parent", NULL
13692 };
13693
13694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13696 if (!SWIG_IsOK(res1)) {
13697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13698 }
13699 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13700 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13701 if (!SWIG_IsOK(res2)) {
13702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13703 }
13704 arg2 = reinterpret_cast< wxWindow * >(argp2);
13705 {
13706 PyThreadState* __tstate = wxPyBeginAllowThreads();
13707 (arg1)->SetDialogParent(arg2);
13708 wxPyEndAllowThreads(__tstate);
13709 if (PyErr_Occurred()) SWIG_fail;
13710 }
13711 resultobj = SWIG_Py_Void();
13712 return resultobj;
13713 fail:
13714 return NULL;
13715 }
13716
13717
13718 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13719 PyObject *resultobj = 0;
13720 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13721 wxString *arg2 = 0 ;
13722 void *argp1 = 0 ;
13723 int res1 = 0 ;
13724 bool temp2 = false ;
13725 PyObject * obj0 = 0 ;
13726 PyObject * obj1 = 0 ;
13727 char * kwnames[] = {
13728 (char *) "self",(char *) "title", NULL
13729 };
13730
13731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13733 if (!SWIG_IsOK(res1)) {
13734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13735 }
13736 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13737 {
13738 arg2 = wxString_in_helper(obj1);
13739 if (arg2 == NULL) SWIG_fail;
13740 temp2 = true;
13741 }
13742 {
13743 PyThreadState* __tstate = wxPyBeginAllowThreads();
13744 (arg1)->SetDialogTitle((wxString const &)*arg2);
13745 wxPyEndAllowThreads(__tstate);
13746 if (PyErr_Occurred()) SWIG_fail;
13747 }
13748 resultobj = SWIG_Py_Void();
13749 {
13750 if (temp2)
13751 delete arg2;
13752 }
13753 return resultobj;
13754 fail:
13755 {
13756 if (temp2)
13757 delete arg2;
13758 }
13759 return NULL;
13760 }
13761
13762
13763 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13764 PyObject *obj;
13765 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13766 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13767 return SWIG_Py_Void();
13768 }
13769
13770 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13771 return SWIG_Python_InitShadowInstance(args);
13772 }
13773
13774 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13775 PyObject *resultobj = 0;
13776 int arg1 ;
13777 int arg2 ;
13778 int arg3 ;
13779 int arg4 ;
13780 bool arg5 = (bool) false ;
13781 wxString const &arg6_defvalue = wxPyEmptyString ;
13782 wxString *arg6 = (wxString *) &arg6_defvalue ;
13783 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13784 wxFont *result = 0 ;
13785 int val1 ;
13786 int ecode1 = 0 ;
13787 int val2 ;
13788 int ecode2 = 0 ;
13789 int val3 ;
13790 int ecode3 = 0 ;
13791 int val4 ;
13792 int ecode4 = 0 ;
13793 bool val5 ;
13794 int ecode5 = 0 ;
13795 bool temp6 = false ;
13796 int val7 ;
13797 int ecode7 = 0 ;
13798 PyObject * obj0 = 0 ;
13799 PyObject * obj1 = 0 ;
13800 PyObject * obj2 = 0 ;
13801 PyObject * obj3 = 0 ;
13802 PyObject * obj4 = 0 ;
13803 PyObject * obj5 = 0 ;
13804 PyObject * obj6 = 0 ;
13805 char * kwnames[] = {
13806 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13807 };
13808
13809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13810 ecode1 = SWIG_AsVal_int(obj0, &val1);
13811 if (!SWIG_IsOK(ecode1)) {
13812 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13813 }
13814 arg1 = static_cast< int >(val1);
13815 ecode2 = SWIG_AsVal_int(obj1, &val2);
13816 if (!SWIG_IsOK(ecode2)) {
13817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13818 }
13819 arg2 = static_cast< int >(val2);
13820 ecode3 = SWIG_AsVal_int(obj2, &val3);
13821 if (!SWIG_IsOK(ecode3)) {
13822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13823 }
13824 arg3 = static_cast< int >(val3);
13825 ecode4 = SWIG_AsVal_int(obj3, &val4);
13826 if (!SWIG_IsOK(ecode4)) {
13827 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13828 }
13829 arg4 = static_cast< int >(val4);
13830 if (obj4) {
13831 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13832 if (!SWIG_IsOK(ecode5)) {
13833 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13834 }
13835 arg5 = static_cast< bool >(val5);
13836 }
13837 if (obj5) {
13838 {
13839 arg6 = wxString_in_helper(obj5);
13840 if (arg6 == NULL) SWIG_fail;
13841 temp6 = true;
13842 }
13843 }
13844 if (obj6) {
13845 ecode7 = SWIG_AsVal_int(obj6, &val7);
13846 if (!SWIG_IsOK(ecode7)) {
13847 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13848 }
13849 arg7 = static_cast< wxFontEncoding >(val7);
13850 }
13851 {
13852 if (!wxPyCheckForApp()) SWIG_fail;
13853 PyThreadState* __tstate = wxPyBeginAllowThreads();
13854 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13855 wxPyEndAllowThreads(__tstate);
13856 if (PyErr_Occurred()) SWIG_fail;
13857 }
13858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13859 {
13860 if (temp6)
13861 delete arg6;
13862 }
13863 return resultobj;
13864 fail:
13865 {
13866 if (temp6)
13867 delete arg6;
13868 }
13869 return NULL;
13870 }
13871
13872
13873 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13874 PyObject *resultobj = 0;
13875 wxFont *arg1 = (wxFont *) 0 ;
13876 void *argp1 = 0 ;
13877 int res1 = 0 ;
13878 PyObject *swig_obj[1] ;
13879
13880 if (!args) SWIG_fail;
13881 swig_obj[0] = args;
13882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13883 if (!SWIG_IsOK(res1)) {
13884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13885 }
13886 arg1 = reinterpret_cast< wxFont * >(argp1);
13887 {
13888 PyThreadState* __tstate = wxPyBeginAllowThreads();
13889 delete arg1;
13890
13891 wxPyEndAllowThreads(__tstate);
13892 if (PyErr_Occurred()) SWIG_fail;
13893 }
13894 resultobj = SWIG_Py_Void();
13895 return resultobj;
13896 fail:
13897 return NULL;
13898 }
13899
13900
13901 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13902 PyObject *resultobj = 0;
13903 wxNativeFontInfo *arg1 = 0 ;
13904 wxFont *result = 0 ;
13905 void *argp1 = 0 ;
13906 int res1 = 0 ;
13907 PyObject * obj0 = 0 ;
13908 char * kwnames[] = {
13909 (char *) "info", NULL
13910 };
13911
13912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13913 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13914 if (!SWIG_IsOK(res1)) {
13915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13916 }
13917 if (!argp1) {
13918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13919 }
13920 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13921 {
13922 if (!wxPyCheckForApp()) SWIG_fail;
13923 PyThreadState* __tstate = wxPyBeginAllowThreads();
13924 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13925 wxPyEndAllowThreads(__tstate);
13926 if (PyErr_Occurred()) SWIG_fail;
13927 }
13928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13929 return resultobj;
13930 fail:
13931 return NULL;
13932 }
13933
13934
13935 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13936 PyObject *resultobj = 0;
13937 wxString *arg1 = 0 ;
13938 wxFont *result = 0 ;
13939 bool temp1 = false ;
13940 PyObject * obj0 = 0 ;
13941 char * kwnames[] = {
13942 (char *) "info", NULL
13943 };
13944
13945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13946 {
13947 arg1 = wxString_in_helper(obj0);
13948 if (arg1 == NULL) SWIG_fail;
13949 temp1 = true;
13950 }
13951 {
13952 if (!wxPyCheckForApp()) SWIG_fail;
13953 PyThreadState* __tstate = wxPyBeginAllowThreads();
13954 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13955 wxPyEndAllowThreads(__tstate);
13956 if (PyErr_Occurred()) SWIG_fail;
13957 }
13958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13959 {
13960 if (temp1)
13961 delete arg1;
13962 }
13963 return resultobj;
13964 fail:
13965 {
13966 if (temp1)
13967 delete arg1;
13968 }
13969 return NULL;
13970 }
13971
13972
13973 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13974 PyObject *resultobj = 0;
13975 int arg1 ;
13976 wxFontFamily arg2 ;
13977 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13978 wxString const &arg4_defvalue = wxPyEmptyString ;
13979 wxString *arg4 = (wxString *) &arg4_defvalue ;
13980 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13981 wxFont *result = 0 ;
13982 int val1 ;
13983 int ecode1 = 0 ;
13984 int val2 ;
13985 int ecode2 = 0 ;
13986 int val3 ;
13987 int ecode3 = 0 ;
13988 bool temp4 = false ;
13989 int val5 ;
13990 int ecode5 = 0 ;
13991 PyObject * obj0 = 0 ;
13992 PyObject * obj1 = 0 ;
13993 PyObject * obj2 = 0 ;
13994 PyObject * obj3 = 0 ;
13995 PyObject * obj4 = 0 ;
13996 char * kwnames[] = {
13997 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13998 };
13999
14000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14001 ecode1 = SWIG_AsVal_int(obj0, &val1);
14002 if (!SWIG_IsOK(ecode1)) {
14003 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14004 }
14005 arg1 = static_cast< int >(val1);
14006 ecode2 = SWIG_AsVal_int(obj1, &val2);
14007 if (!SWIG_IsOK(ecode2)) {
14008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14009 }
14010 arg2 = static_cast< wxFontFamily >(val2);
14011 if (obj2) {
14012 ecode3 = SWIG_AsVal_int(obj2, &val3);
14013 if (!SWIG_IsOK(ecode3)) {
14014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14015 }
14016 arg3 = static_cast< int >(val3);
14017 }
14018 if (obj3) {
14019 {
14020 arg4 = wxString_in_helper(obj3);
14021 if (arg4 == NULL) SWIG_fail;
14022 temp4 = true;
14023 }
14024 }
14025 if (obj4) {
14026 ecode5 = SWIG_AsVal_int(obj4, &val5);
14027 if (!SWIG_IsOK(ecode5)) {
14028 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14029 }
14030 arg5 = static_cast< wxFontEncoding >(val5);
14031 }
14032 {
14033 if (!wxPyCheckForApp()) SWIG_fail;
14034 PyThreadState* __tstate = wxPyBeginAllowThreads();
14035 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14036 wxPyEndAllowThreads(__tstate);
14037 if (PyErr_Occurred()) SWIG_fail;
14038 }
14039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14040 {
14041 if (temp4)
14042 delete arg4;
14043 }
14044 return resultobj;
14045 fail:
14046 {
14047 if (temp4)
14048 delete arg4;
14049 }
14050 return NULL;
14051 }
14052
14053
14054 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14055 PyObject *resultobj = 0;
14056 wxSize *arg1 = 0 ;
14057 int arg2 ;
14058 int arg3 ;
14059 int arg4 ;
14060 bool arg5 = (bool) false ;
14061 wxString const &arg6_defvalue = wxEmptyString ;
14062 wxString *arg6 = (wxString *) &arg6_defvalue ;
14063 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14064 wxFont *result = 0 ;
14065 wxSize temp1 ;
14066 int val2 ;
14067 int ecode2 = 0 ;
14068 int val3 ;
14069 int ecode3 = 0 ;
14070 int val4 ;
14071 int ecode4 = 0 ;
14072 bool val5 ;
14073 int ecode5 = 0 ;
14074 bool temp6 = false ;
14075 int val7 ;
14076 int ecode7 = 0 ;
14077 PyObject * obj0 = 0 ;
14078 PyObject * obj1 = 0 ;
14079 PyObject * obj2 = 0 ;
14080 PyObject * obj3 = 0 ;
14081 PyObject * obj4 = 0 ;
14082 PyObject * obj5 = 0 ;
14083 PyObject * obj6 = 0 ;
14084 char * kwnames[] = {
14085 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14086 };
14087
14088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14089 {
14090 arg1 = &temp1;
14091 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14092 }
14093 ecode2 = SWIG_AsVal_int(obj1, &val2);
14094 if (!SWIG_IsOK(ecode2)) {
14095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14096 }
14097 arg2 = static_cast< int >(val2);
14098 ecode3 = SWIG_AsVal_int(obj2, &val3);
14099 if (!SWIG_IsOK(ecode3)) {
14100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14101 }
14102 arg3 = static_cast< int >(val3);
14103 ecode4 = SWIG_AsVal_int(obj3, &val4);
14104 if (!SWIG_IsOK(ecode4)) {
14105 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14106 }
14107 arg4 = static_cast< int >(val4);
14108 if (obj4) {
14109 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14110 if (!SWIG_IsOK(ecode5)) {
14111 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14112 }
14113 arg5 = static_cast< bool >(val5);
14114 }
14115 if (obj5) {
14116 {
14117 arg6 = wxString_in_helper(obj5);
14118 if (arg6 == NULL) SWIG_fail;
14119 temp6 = true;
14120 }
14121 }
14122 if (obj6) {
14123 ecode7 = SWIG_AsVal_int(obj6, &val7);
14124 if (!SWIG_IsOK(ecode7)) {
14125 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14126 }
14127 arg7 = static_cast< wxFontEncoding >(val7);
14128 }
14129 {
14130 if (!wxPyCheckForApp()) SWIG_fail;
14131 PyThreadState* __tstate = wxPyBeginAllowThreads();
14132 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14133 wxPyEndAllowThreads(__tstate);
14134 if (PyErr_Occurred()) SWIG_fail;
14135 }
14136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14137 {
14138 if (temp6)
14139 delete arg6;
14140 }
14141 return resultobj;
14142 fail:
14143 {
14144 if (temp6)
14145 delete arg6;
14146 }
14147 return NULL;
14148 }
14149
14150
14151 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14152 PyObject *resultobj = 0;
14153 wxSize *arg1 = 0 ;
14154 wxFontFamily arg2 ;
14155 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14156 wxString const &arg4_defvalue = wxEmptyString ;
14157 wxString *arg4 = (wxString *) &arg4_defvalue ;
14158 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14159 wxFont *result = 0 ;
14160 wxSize temp1 ;
14161 int val2 ;
14162 int ecode2 = 0 ;
14163 int val3 ;
14164 int ecode3 = 0 ;
14165 bool temp4 = false ;
14166 int val5 ;
14167 int ecode5 = 0 ;
14168 PyObject * obj0 = 0 ;
14169 PyObject * obj1 = 0 ;
14170 PyObject * obj2 = 0 ;
14171 PyObject * obj3 = 0 ;
14172 PyObject * obj4 = 0 ;
14173 char * kwnames[] = {
14174 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14175 };
14176
14177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14178 {
14179 arg1 = &temp1;
14180 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14181 }
14182 ecode2 = SWIG_AsVal_int(obj1, &val2);
14183 if (!SWIG_IsOK(ecode2)) {
14184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14185 }
14186 arg2 = static_cast< wxFontFamily >(val2);
14187 if (obj2) {
14188 ecode3 = SWIG_AsVal_int(obj2, &val3);
14189 if (!SWIG_IsOK(ecode3)) {
14190 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14191 }
14192 arg3 = static_cast< int >(val3);
14193 }
14194 if (obj3) {
14195 {
14196 arg4 = wxString_in_helper(obj3);
14197 if (arg4 == NULL) SWIG_fail;
14198 temp4 = true;
14199 }
14200 }
14201 if (obj4) {
14202 ecode5 = SWIG_AsVal_int(obj4, &val5);
14203 if (!SWIG_IsOK(ecode5)) {
14204 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14205 }
14206 arg5 = static_cast< wxFontEncoding >(val5);
14207 }
14208 {
14209 if (!wxPyCheckForApp()) SWIG_fail;
14210 PyThreadState* __tstate = wxPyBeginAllowThreads();
14211 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14212 wxPyEndAllowThreads(__tstate);
14213 if (PyErr_Occurred()) SWIG_fail;
14214 }
14215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14216 {
14217 if (temp4)
14218 delete arg4;
14219 }
14220 return resultobj;
14221 fail:
14222 {
14223 if (temp4)
14224 delete arg4;
14225 }
14226 return NULL;
14227 }
14228
14229
14230 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14231 PyObject *resultobj = 0;
14232 wxFont *arg1 = (wxFont *) 0 ;
14233 bool result;
14234 void *argp1 = 0 ;
14235 int res1 = 0 ;
14236 PyObject *swig_obj[1] ;
14237
14238 if (!args) SWIG_fail;
14239 swig_obj[0] = args;
14240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14241 if (!SWIG_IsOK(res1)) {
14242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14243 }
14244 arg1 = reinterpret_cast< wxFont * >(argp1);
14245 {
14246 PyThreadState* __tstate = wxPyBeginAllowThreads();
14247 result = (bool)((wxFont const *)arg1)->IsOk();
14248 wxPyEndAllowThreads(__tstate);
14249 if (PyErr_Occurred()) SWIG_fail;
14250 }
14251 {
14252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14253 }
14254 return resultobj;
14255 fail:
14256 return NULL;
14257 }
14258
14259
14260 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14261 PyObject *resultobj = 0;
14262 wxFont *arg1 = (wxFont *) 0 ;
14263 wxFont *arg2 = (wxFont *) 0 ;
14264 bool result;
14265 void *argp1 = 0 ;
14266 int res1 = 0 ;
14267 void *argp2 = 0 ;
14268 int res2 = 0 ;
14269 PyObject * obj0 = 0 ;
14270 PyObject * obj1 = 0 ;
14271 char * kwnames[] = {
14272 (char *) "self",(char *) "other", NULL
14273 };
14274
14275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14277 if (!SWIG_IsOK(res1)) {
14278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14279 }
14280 arg1 = reinterpret_cast< wxFont * >(argp1);
14281 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14282 if (!SWIG_IsOK(res2)) {
14283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14284 }
14285 arg2 = reinterpret_cast< wxFont * >(argp2);
14286 {
14287 PyThreadState* __tstate = wxPyBeginAllowThreads();
14288 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14289 wxPyEndAllowThreads(__tstate);
14290 if (PyErr_Occurred()) SWIG_fail;
14291 }
14292 {
14293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14294 }
14295 return resultobj;
14296 fail:
14297 return NULL;
14298 }
14299
14300
14301 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14302 PyObject *resultobj = 0;
14303 wxFont *arg1 = (wxFont *) 0 ;
14304 wxFont *arg2 = (wxFont *) 0 ;
14305 bool result;
14306 void *argp1 = 0 ;
14307 int res1 = 0 ;
14308 void *argp2 = 0 ;
14309 int res2 = 0 ;
14310 PyObject * obj0 = 0 ;
14311 PyObject * obj1 = 0 ;
14312 char * kwnames[] = {
14313 (char *) "self",(char *) "other", NULL
14314 };
14315
14316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14318 if (!SWIG_IsOK(res1)) {
14319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14320 }
14321 arg1 = reinterpret_cast< wxFont * >(argp1);
14322 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14323 if (!SWIG_IsOK(res2)) {
14324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14325 }
14326 arg2 = reinterpret_cast< wxFont * >(argp2);
14327 {
14328 PyThreadState* __tstate = wxPyBeginAllowThreads();
14329 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14330 wxPyEndAllowThreads(__tstate);
14331 if (PyErr_Occurred()) SWIG_fail;
14332 }
14333 {
14334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14335 }
14336 return resultobj;
14337 fail:
14338 return NULL;
14339 }
14340
14341
14342 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14343 PyObject *resultobj = 0;
14344 wxFont *arg1 = (wxFont *) 0 ;
14345 int result;
14346 void *argp1 = 0 ;
14347 int res1 = 0 ;
14348 PyObject *swig_obj[1] ;
14349
14350 if (!args) SWIG_fail;
14351 swig_obj[0] = args;
14352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14353 if (!SWIG_IsOK(res1)) {
14354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14355 }
14356 arg1 = reinterpret_cast< wxFont * >(argp1);
14357 {
14358 PyThreadState* __tstate = wxPyBeginAllowThreads();
14359 result = (int)((wxFont const *)arg1)->GetPointSize();
14360 wxPyEndAllowThreads(__tstate);
14361 if (PyErr_Occurred()) SWIG_fail;
14362 }
14363 resultobj = SWIG_From_int(static_cast< int >(result));
14364 return resultobj;
14365 fail:
14366 return NULL;
14367 }
14368
14369
14370 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14371 PyObject *resultobj = 0;
14372 wxFont *arg1 = (wxFont *) 0 ;
14373 wxSize result;
14374 void *argp1 = 0 ;
14375 int res1 = 0 ;
14376 PyObject *swig_obj[1] ;
14377
14378 if (!args) SWIG_fail;
14379 swig_obj[0] = args;
14380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14381 if (!SWIG_IsOK(res1)) {
14382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14383 }
14384 arg1 = reinterpret_cast< wxFont * >(argp1);
14385 {
14386 PyThreadState* __tstate = wxPyBeginAllowThreads();
14387 result = ((wxFont const *)arg1)->GetPixelSize();
14388 wxPyEndAllowThreads(__tstate);
14389 if (PyErr_Occurred()) SWIG_fail;
14390 }
14391 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14392 return resultobj;
14393 fail:
14394 return NULL;
14395 }
14396
14397
14398 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(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_IsUsingSizeInPixels" "', 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)->IsUsingSizeInPixels();
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_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14429 PyObject *resultobj = 0;
14430 wxFont *arg1 = (wxFont *) 0 ;
14431 int result;
14432 void *argp1 = 0 ;
14433 int res1 = 0 ;
14434 PyObject *swig_obj[1] ;
14435
14436 if (!args) SWIG_fail;
14437 swig_obj[0] = args;
14438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14439 if (!SWIG_IsOK(res1)) {
14440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14441 }
14442 arg1 = reinterpret_cast< wxFont * >(argp1);
14443 {
14444 PyThreadState* __tstate = wxPyBeginAllowThreads();
14445 result = (int)((wxFont const *)arg1)->GetFamily();
14446 wxPyEndAllowThreads(__tstate);
14447 if (PyErr_Occurred()) SWIG_fail;
14448 }
14449 resultobj = SWIG_From_int(static_cast< int >(result));
14450 return resultobj;
14451 fail:
14452 return NULL;
14453 }
14454
14455
14456 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14457 PyObject *resultobj = 0;
14458 wxFont *arg1 = (wxFont *) 0 ;
14459 int result;
14460 void *argp1 = 0 ;
14461 int res1 = 0 ;
14462 PyObject *swig_obj[1] ;
14463
14464 if (!args) SWIG_fail;
14465 swig_obj[0] = args;
14466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14467 if (!SWIG_IsOK(res1)) {
14468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14469 }
14470 arg1 = reinterpret_cast< wxFont * >(argp1);
14471 {
14472 PyThreadState* __tstate = wxPyBeginAllowThreads();
14473 result = (int)((wxFont const *)arg1)->GetStyle();
14474 wxPyEndAllowThreads(__tstate);
14475 if (PyErr_Occurred()) SWIG_fail;
14476 }
14477 resultobj = SWIG_From_int(static_cast< int >(result));
14478 return resultobj;
14479 fail:
14480 return NULL;
14481 }
14482
14483
14484 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14485 PyObject *resultobj = 0;
14486 wxFont *arg1 = (wxFont *) 0 ;
14487 int result;
14488 void *argp1 = 0 ;
14489 int res1 = 0 ;
14490 PyObject *swig_obj[1] ;
14491
14492 if (!args) SWIG_fail;
14493 swig_obj[0] = args;
14494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14495 if (!SWIG_IsOK(res1)) {
14496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14497 }
14498 arg1 = reinterpret_cast< wxFont * >(argp1);
14499 {
14500 PyThreadState* __tstate = wxPyBeginAllowThreads();
14501 result = (int)((wxFont const *)arg1)->GetWeight();
14502 wxPyEndAllowThreads(__tstate);
14503 if (PyErr_Occurred()) SWIG_fail;
14504 }
14505 resultobj = SWIG_From_int(static_cast< int >(result));
14506 return resultobj;
14507 fail:
14508 return NULL;
14509 }
14510
14511
14512 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14513 PyObject *resultobj = 0;
14514 wxFont *arg1 = (wxFont *) 0 ;
14515 bool result;
14516 void *argp1 = 0 ;
14517 int res1 = 0 ;
14518 PyObject *swig_obj[1] ;
14519
14520 if (!args) SWIG_fail;
14521 swig_obj[0] = args;
14522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14523 if (!SWIG_IsOK(res1)) {
14524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14525 }
14526 arg1 = reinterpret_cast< wxFont * >(argp1);
14527 {
14528 PyThreadState* __tstate = wxPyBeginAllowThreads();
14529 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14530 wxPyEndAllowThreads(__tstate);
14531 if (PyErr_Occurred()) SWIG_fail;
14532 }
14533 {
14534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14535 }
14536 return resultobj;
14537 fail:
14538 return NULL;
14539 }
14540
14541
14542 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14543 PyObject *resultobj = 0;
14544 wxFont *arg1 = (wxFont *) 0 ;
14545 wxString result;
14546 void *argp1 = 0 ;
14547 int res1 = 0 ;
14548 PyObject *swig_obj[1] ;
14549
14550 if (!args) SWIG_fail;
14551 swig_obj[0] = args;
14552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14553 if (!SWIG_IsOK(res1)) {
14554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14555 }
14556 arg1 = reinterpret_cast< wxFont * >(argp1);
14557 {
14558 PyThreadState* __tstate = wxPyBeginAllowThreads();
14559 result = ((wxFont const *)arg1)->GetFaceName();
14560 wxPyEndAllowThreads(__tstate);
14561 if (PyErr_Occurred()) SWIG_fail;
14562 }
14563 {
14564 #if wxUSE_UNICODE
14565 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14566 #else
14567 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14568 #endif
14569 }
14570 return resultobj;
14571 fail:
14572 return NULL;
14573 }
14574
14575
14576 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14577 PyObject *resultobj = 0;
14578 wxFont *arg1 = (wxFont *) 0 ;
14579 wxFontEncoding result;
14580 void *argp1 = 0 ;
14581 int res1 = 0 ;
14582 PyObject *swig_obj[1] ;
14583
14584 if (!args) SWIG_fail;
14585 swig_obj[0] = args;
14586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14587 if (!SWIG_IsOK(res1)) {
14588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14589 }
14590 arg1 = reinterpret_cast< wxFont * >(argp1);
14591 {
14592 PyThreadState* __tstate = wxPyBeginAllowThreads();
14593 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14594 wxPyEndAllowThreads(__tstate);
14595 if (PyErr_Occurred()) SWIG_fail;
14596 }
14597 resultobj = SWIG_From_int(static_cast< int >(result));
14598 return resultobj;
14599 fail:
14600 return NULL;
14601 }
14602
14603
14604 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14605 PyObject *resultobj = 0;
14606 wxFont *arg1 = (wxFont *) 0 ;
14607 wxNativeFontInfo *result = 0 ;
14608 void *argp1 = 0 ;
14609 int res1 = 0 ;
14610 PyObject *swig_obj[1] ;
14611
14612 if (!args) SWIG_fail;
14613 swig_obj[0] = args;
14614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14615 if (!SWIG_IsOK(res1)) {
14616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14617 }
14618 arg1 = reinterpret_cast< wxFont * >(argp1);
14619 {
14620 PyThreadState* __tstate = wxPyBeginAllowThreads();
14621 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14622 wxPyEndAllowThreads(__tstate);
14623 if (PyErr_Occurred()) SWIG_fail;
14624 }
14625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14626 return resultobj;
14627 fail:
14628 return NULL;
14629 }
14630
14631
14632 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14633 PyObject *resultobj = 0;
14634 wxFont *arg1 = (wxFont *) 0 ;
14635 bool result;
14636 void *argp1 = 0 ;
14637 int res1 = 0 ;
14638 PyObject *swig_obj[1] ;
14639
14640 if (!args) SWIG_fail;
14641 swig_obj[0] = args;
14642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14643 if (!SWIG_IsOK(res1)) {
14644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14645 }
14646 arg1 = reinterpret_cast< wxFont * >(argp1);
14647 {
14648 PyThreadState* __tstate = wxPyBeginAllowThreads();
14649 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14650 wxPyEndAllowThreads(__tstate);
14651 if (PyErr_Occurred()) SWIG_fail;
14652 }
14653 {
14654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14655 }
14656 return resultobj;
14657 fail:
14658 return NULL;
14659 }
14660
14661
14662 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14663 PyObject *resultobj = 0;
14664 wxFont *arg1 = (wxFont *) 0 ;
14665 wxString result;
14666 void *argp1 = 0 ;
14667 int res1 = 0 ;
14668 PyObject *swig_obj[1] ;
14669
14670 if (!args) SWIG_fail;
14671 swig_obj[0] = args;
14672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14673 if (!SWIG_IsOK(res1)) {
14674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14675 }
14676 arg1 = reinterpret_cast< wxFont * >(argp1);
14677 {
14678 PyThreadState* __tstate = wxPyBeginAllowThreads();
14679 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14680 wxPyEndAllowThreads(__tstate);
14681 if (PyErr_Occurred()) SWIG_fail;
14682 }
14683 {
14684 #if wxUSE_UNICODE
14685 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14686 #else
14687 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14688 #endif
14689 }
14690 return resultobj;
14691 fail:
14692 return NULL;
14693 }
14694
14695
14696 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14697 PyObject *resultobj = 0;
14698 wxFont *arg1 = (wxFont *) 0 ;
14699 wxString result;
14700 void *argp1 = 0 ;
14701 int res1 = 0 ;
14702 PyObject *swig_obj[1] ;
14703
14704 if (!args) SWIG_fail;
14705 swig_obj[0] = args;
14706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14707 if (!SWIG_IsOK(res1)) {
14708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14709 }
14710 arg1 = reinterpret_cast< wxFont * >(argp1);
14711 {
14712 PyThreadState* __tstate = wxPyBeginAllowThreads();
14713 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14714 wxPyEndAllowThreads(__tstate);
14715 if (PyErr_Occurred()) SWIG_fail;
14716 }
14717 {
14718 #if wxUSE_UNICODE
14719 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14720 #else
14721 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14722 #endif
14723 }
14724 return resultobj;
14725 fail:
14726 return NULL;
14727 }
14728
14729
14730 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14731 PyObject *resultobj = 0;
14732 wxFont *arg1 = (wxFont *) 0 ;
14733 int arg2 ;
14734 void *argp1 = 0 ;
14735 int res1 = 0 ;
14736 int val2 ;
14737 int ecode2 = 0 ;
14738 PyObject * obj0 = 0 ;
14739 PyObject * obj1 = 0 ;
14740 char * kwnames[] = {
14741 (char *) "self",(char *) "pointSize", NULL
14742 };
14743
14744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14746 if (!SWIG_IsOK(res1)) {
14747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14748 }
14749 arg1 = reinterpret_cast< wxFont * >(argp1);
14750 ecode2 = SWIG_AsVal_int(obj1, &val2);
14751 if (!SWIG_IsOK(ecode2)) {
14752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14753 }
14754 arg2 = static_cast< int >(val2);
14755 {
14756 PyThreadState* __tstate = wxPyBeginAllowThreads();
14757 (arg1)->SetPointSize(arg2);
14758 wxPyEndAllowThreads(__tstate);
14759 if (PyErr_Occurred()) SWIG_fail;
14760 }
14761 resultobj = SWIG_Py_Void();
14762 return resultobj;
14763 fail:
14764 return NULL;
14765 }
14766
14767
14768 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14769 PyObject *resultobj = 0;
14770 wxFont *arg1 = (wxFont *) 0 ;
14771 wxSize *arg2 = 0 ;
14772 void *argp1 = 0 ;
14773 int res1 = 0 ;
14774 wxSize temp2 ;
14775 PyObject * obj0 = 0 ;
14776 PyObject * obj1 = 0 ;
14777 char * kwnames[] = {
14778 (char *) "self",(char *) "pixelSize", NULL
14779 };
14780
14781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14783 if (!SWIG_IsOK(res1)) {
14784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14785 }
14786 arg1 = reinterpret_cast< wxFont * >(argp1);
14787 {
14788 arg2 = &temp2;
14789 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14790 }
14791 {
14792 PyThreadState* __tstate = wxPyBeginAllowThreads();
14793 (arg1)->SetPixelSize((wxSize const &)*arg2);
14794 wxPyEndAllowThreads(__tstate);
14795 if (PyErr_Occurred()) SWIG_fail;
14796 }
14797 resultobj = SWIG_Py_Void();
14798 return resultobj;
14799 fail:
14800 return NULL;
14801 }
14802
14803
14804 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14805 PyObject *resultobj = 0;
14806 wxFont *arg1 = (wxFont *) 0 ;
14807 int arg2 ;
14808 void *argp1 = 0 ;
14809 int res1 = 0 ;
14810 int val2 ;
14811 int ecode2 = 0 ;
14812 PyObject * obj0 = 0 ;
14813 PyObject * obj1 = 0 ;
14814 char * kwnames[] = {
14815 (char *) "self",(char *) "family", NULL
14816 };
14817
14818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14820 if (!SWIG_IsOK(res1)) {
14821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14822 }
14823 arg1 = reinterpret_cast< wxFont * >(argp1);
14824 ecode2 = SWIG_AsVal_int(obj1, &val2);
14825 if (!SWIG_IsOK(ecode2)) {
14826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14827 }
14828 arg2 = static_cast< int >(val2);
14829 {
14830 PyThreadState* __tstate = wxPyBeginAllowThreads();
14831 (arg1)->SetFamily(arg2);
14832 wxPyEndAllowThreads(__tstate);
14833 if (PyErr_Occurred()) SWIG_fail;
14834 }
14835 resultobj = SWIG_Py_Void();
14836 return resultobj;
14837 fail:
14838 return NULL;
14839 }
14840
14841
14842 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14843 PyObject *resultobj = 0;
14844 wxFont *arg1 = (wxFont *) 0 ;
14845 int arg2 ;
14846 void *argp1 = 0 ;
14847 int res1 = 0 ;
14848 int val2 ;
14849 int ecode2 = 0 ;
14850 PyObject * obj0 = 0 ;
14851 PyObject * obj1 = 0 ;
14852 char * kwnames[] = {
14853 (char *) "self",(char *) "style", NULL
14854 };
14855
14856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14858 if (!SWIG_IsOK(res1)) {
14859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14860 }
14861 arg1 = reinterpret_cast< wxFont * >(argp1);
14862 ecode2 = SWIG_AsVal_int(obj1, &val2);
14863 if (!SWIG_IsOK(ecode2)) {
14864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14865 }
14866 arg2 = static_cast< int >(val2);
14867 {
14868 PyThreadState* __tstate = wxPyBeginAllowThreads();
14869 (arg1)->SetStyle(arg2);
14870 wxPyEndAllowThreads(__tstate);
14871 if (PyErr_Occurred()) SWIG_fail;
14872 }
14873 resultobj = SWIG_Py_Void();
14874 return resultobj;
14875 fail:
14876 return NULL;
14877 }
14878
14879
14880 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14881 PyObject *resultobj = 0;
14882 wxFont *arg1 = (wxFont *) 0 ;
14883 int arg2 ;
14884 void *argp1 = 0 ;
14885 int res1 = 0 ;
14886 int val2 ;
14887 int ecode2 = 0 ;
14888 PyObject * obj0 = 0 ;
14889 PyObject * obj1 = 0 ;
14890 char * kwnames[] = {
14891 (char *) "self",(char *) "weight", NULL
14892 };
14893
14894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14896 if (!SWIG_IsOK(res1)) {
14897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14898 }
14899 arg1 = reinterpret_cast< wxFont * >(argp1);
14900 ecode2 = SWIG_AsVal_int(obj1, &val2);
14901 if (!SWIG_IsOK(ecode2)) {
14902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14903 }
14904 arg2 = static_cast< int >(val2);
14905 {
14906 PyThreadState* __tstate = wxPyBeginAllowThreads();
14907 (arg1)->SetWeight(arg2);
14908 wxPyEndAllowThreads(__tstate);
14909 if (PyErr_Occurred()) SWIG_fail;
14910 }
14911 resultobj = SWIG_Py_Void();
14912 return resultobj;
14913 fail:
14914 return NULL;
14915 }
14916
14917
14918 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14919 PyObject *resultobj = 0;
14920 wxFont *arg1 = (wxFont *) 0 ;
14921 wxString *arg2 = 0 ;
14922 bool result;
14923 void *argp1 = 0 ;
14924 int res1 = 0 ;
14925 bool temp2 = false ;
14926 PyObject * obj0 = 0 ;
14927 PyObject * obj1 = 0 ;
14928 char * kwnames[] = {
14929 (char *) "self",(char *) "faceName", NULL
14930 };
14931
14932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14934 if (!SWIG_IsOK(res1)) {
14935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14936 }
14937 arg1 = reinterpret_cast< wxFont * >(argp1);
14938 {
14939 arg2 = wxString_in_helper(obj1);
14940 if (arg2 == NULL) SWIG_fail;
14941 temp2 = true;
14942 }
14943 {
14944 PyThreadState* __tstate = wxPyBeginAllowThreads();
14945 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14946 wxPyEndAllowThreads(__tstate);
14947 if (PyErr_Occurred()) SWIG_fail;
14948 }
14949 {
14950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14951 }
14952 {
14953 if (temp2)
14954 delete arg2;
14955 }
14956 return resultobj;
14957 fail:
14958 {
14959 if (temp2)
14960 delete arg2;
14961 }
14962 return NULL;
14963 }
14964
14965
14966 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14967 PyObject *resultobj = 0;
14968 wxFont *arg1 = (wxFont *) 0 ;
14969 bool arg2 ;
14970 void *argp1 = 0 ;
14971 int res1 = 0 ;
14972 bool val2 ;
14973 int ecode2 = 0 ;
14974 PyObject * obj0 = 0 ;
14975 PyObject * obj1 = 0 ;
14976 char * kwnames[] = {
14977 (char *) "self",(char *) "underlined", NULL
14978 };
14979
14980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14982 if (!SWIG_IsOK(res1)) {
14983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14984 }
14985 arg1 = reinterpret_cast< wxFont * >(argp1);
14986 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14987 if (!SWIG_IsOK(ecode2)) {
14988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14989 }
14990 arg2 = static_cast< bool >(val2);
14991 {
14992 PyThreadState* __tstate = wxPyBeginAllowThreads();
14993 (arg1)->SetUnderlined(arg2);
14994 wxPyEndAllowThreads(__tstate);
14995 if (PyErr_Occurred()) SWIG_fail;
14996 }
14997 resultobj = SWIG_Py_Void();
14998 return resultobj;
14999 fail:
15000 return NULL;
15001 }
15002
15003
15004 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15005 PyObject *resultobj = 0;
15006 wxFont *arg1 = (wxFont *) 0 ;
15007 wxFontEncoding arg2 ;
15008 void *argp1 = 0 ;
15009 int res1 = 0 ;
15010 int val2 ;
15011 int ecode2 = 0 ;
15012 PyObject * obj0 = 0 ;
15013 PyObject * obj1 = 0 ;
15014 char * kwnames[] = {
15015 (char *) "self",(char *) "encoding", NULL
15016 };
15017
15018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15020 if (!SWIG_IsOK(res1)) {
15021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15022 }
15023 arg1 = reinterpret_cast< wxFont * >(argp1);
15024 ecode2 = SWIG_AsVal_int(obj1, &val2);
15025 if (!SWIG_IsOK(ecode2)) {
15026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15027 }
15028 arg2 = static_cast< wxFontEncoding >(val2);
15029 {
15030 PyThreadState* __tstate = wxPyBeginAllowThreads();
15031 (arg1)->SetEncoding(arg2);
15032 wxPyEndAllowThreads(__tstate);
15033 if (PyErr_Occurred()) SWIG_fail;
15034 }
15035 resultobj = SWIG_Py_Void();
15036 return resultobj;
15037 fail:
15038 return NULL;
15039 }
15040
15041
15042 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15043 PyObject *resultobj = 0;
15044 wxFont *arg1 = (wxFont *) 0 ;
15045 wxNativeFontInfo *arg2 = 0 ;
15046 void *argp1 = 0 ;
15047 int res1 = 0 ;
15048 void *argp2 = 0 ;
15049 int res2 = 0 ;
15050 PyObject * obj0 = 0 ;
15051 PyObject * obj1 = 0 ;
15052 char * kwnames[] = {
15053 (char *) "self",(char *) "info", NULL
15054 };
15055
15056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15058 if (!SWIG_IsOK(res1)) {
15059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15060 }
15061 arg1 = reinterpret_cast< wxFont * >(argp1);
15062 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15063 if (!SWIG_IsOK(res2)) {
15064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15065 }
15066 if (!argp2) {
15067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15068 }
15069 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15070 {
15071 PyThreadState* __tstate = wxPyBeginAllowThreads();
15072 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15073 wxPyEndAllowThreads(__tstate);
15074 if (PyErr_Occurred()) SWIG_fail;
15075 }
15076 resultobj = SWIG_Py_Void();
15077 return resultobj;
15078 fail:
15079 return NULL;
15080 }
15081
15082
15083 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15084 PyObject *resultobj = 0;
15085 wxFont *arg1 = (wxFont *) 0 ;
15086 wxString *arg2 = 0 ;
15087 bool result;
15088 void *argp1 = 0 ;
15089 int res1 = 0 ;
15090 bool temp2 = false ;
15091 PyObject * obj0 = 0 ;
15092 PyObject * obj1 = 0 ;
15093 char * kwnames[] = {
15094 (char *) "self",(char *) "info", NULL
15095 };
15096
15097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15099 if (!SWIG_IsOK(res1)) {
15100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15101 }
15102 arg1 = reinterpret_cast< wxFont * >(argp1);
15103 {
15104 arg2 = wxString_in_helper(obj1);
15105 if (arg2 == NULL) SWIG_fail;
15106 temp2 = true;
15107 }
15108 {
15109 PyThreadState* __tstate = wxPyBeginAllowThreads();
15110 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15111 wxPyEndAllowThreads(__tstate);
15112 if (PyErr_Occurred()) SWIG_fail;
15113 }
15114 {
15115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15116 }
15117 {
15118 if (temp2)
15119 delete arg2;
15120 }
15121 return resultobj;
15122 fail:
15123 {
15124 if (temp2)
15125 delete arg2;
15126 }
15127 return NULL;
15128 }
15129
15130
15131 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15132 PyObject *resultobj = 0;
15133 wxFont *arg1 = (wxFont *) 0 ;
15134 wxString *arg2 = 0 ;
15135 bool result;
15136 void *argp1 = 0 ;
15137 int res1 = 0 ;
15138 bool temp2 = false ;
15139 PyObject * obj0 = 0 ;
15140 PyObject * obj1 = 0 ;
15141 char * kwnames[] = {
15142 (char *) "self",(char *) "info", NULL
15143 };
15144
15145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15147 if (!SWIG_IsOK(res1)) {
15148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15149 }
15150 arg1 = reinterpret_cast< wxFont * >(argp1);
15151 {
15152 arg2 = wxString_in_helper(obj1);
15153 if (arg2 == NULL) SWIG_fail;
15154 temp2 = true;
15155 }
15156 {
15157 PyThreadState* __tstate = wxPyBeginAllowThreads();
15158 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15159 wxPyEndAllowThreads(__tstate);
15160 if (PyErr_Occurred()) SWIG_fail;
15161 }
15162 {
15163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15164 }
15165 {
15166 if (temp2)
15167 delete arg2;
15168 }
15169 return resultobj;
15170 fail:
15171 {
15172 if (temp2)
15173 delete arg2;
15174 }
15175 return NULL;
15176 }
15177
15178
15179 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15180 PyObject *resultobj = 0;
15181 wxFont *arg1 = (wxFont *) 0 ;
15182 wxString result;
15183 void *argp1 = 0 ;
15184 int res1 = 0 ;
15185 PyObject *swig_obj[1] ;
15186
15187 if (!args) SWIG_fail;
15188 swig_obj[0] = args;
15189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15190 if (!SWIG_IsOK(res1)) {
15191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15192 }
15193 arg1 = reinterpret_cast< wxFont * >(argp1);
15194 {
15195 PyThreadState* __tstate = wxPyBeginAllowThreads();
15196 result = ((wxFont const *)arg1)->GetFamilyString();
15197 wxPyEndAllowThreads(__tstate);
15198 if (PyErr_Occurred()) SWIG_fail;
15199 }
15200 {
15201 #if wxUSE_UNICODE
15202 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15203 #else
15204 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15205 #endif
15206 }
15207 return resultobj;
15208 fail:
15209 return NULL;
15210 }
15211
15212
15213 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15214 PyObject *resultobj = 0;
15215 wxFont *arg1 = (wxFont *) 0 ;
15216 wxString result;
15217 void *argp1 = 0 ;
15218 int res1 = 0 ;
15219 PyObject *swig_obj[1] ;
15220
15221 if (!args) SWIG_fail;
15222 swig_obj[0] = args;
15223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15224 if (!SWIG_IsOK(res1)) {
15225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15226 }
15227 arg1 = reinterpret_cast< wxFont * >(argp1);
15228 {
15229 PyThreadState* __tstate = wxPyBeginAllowThreads();
15230 result = ((wxFont const *)arg1)->GetStyleString();
15231 wxPyEndAllowThreads(__tstate);
15232 if (PyErr_Occurred()) SWIG_fail;
15233 }
15234 {
15235 #if wxUSE_UNICODE
15236 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15237 #else
15238 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15239 #endif
15240 }
15241 return resultobj;
15242 fail:
15243 return NULL;
15244 }
15245
15246
15247 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15248 PyObject *resultobj = 0;
15249 wxFont *arg1 = (wxFont *) 0 ;
15250 wxString result;
15251 void *argp1 = 0 ;
15252 int res1 = 0 ;
15253 PyObject *swig_obj[1] ;
15254
15255 if (!args) SWIG_fail;
15256 swig_obj[0] = args;
15257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15258 if (!SWIG_IsOK(res1)) {
15259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15260 }
15261 arg1 = reinterpret_cast< wxFont * >(argp1);
15262 {
15263 PyThreadState* __tstate = wxPyBeginAllowThreads();
15264 result = ((wxFont const *)arg1)->GetWeightString();
15265 wxPyEndAllowThreads(__tstate);
15266 if (PyErr_Occurred()) SWIG_fail;
15267 }
15268 {
15269 #if wxUSE_UNICODE
15270 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15271 #else
15272 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15273 #endif
15274 }
15275 return resultobj;
15276 fail:
15277 return NULL;
15278 }
15279
15280
15281 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15282 PyObject *resultobj = 0;
15283 wxFont *arg1 = (wxFont *) 0 ;
15284 bool arg2 = (bool) true ;
15285 void *argp1 = 0 ;
15286 int res1 = 0 ;
15287 bool val2 ;
15288 int ecode2 = 0 ;
15289 PyObject * obj0 = 0 ;
15290 PyObject * obj1 = 0 ;
15291 char * kwnames[] = {
15292 (char *) "self",(char *) "no", NULL
15293 };
15294
15295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15297 if (!SWIG_IsOK(res1)) {
15298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15299 }
15300 arg1 = reinterpret_cast< wxFont * >(argp1);
15301 if (obj1) {
15302 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15303 if (!SWIG_IsOK(ecode2)) {
15304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15305 }
15306 arg2 = static_cast< bool >(val2);
15307 }
15308 {
15309 PyThreadState* __tstate = wxPyBeginAllowThreads();
15310 (arg1)->SetNoAntiAliasing(arg2);
15311 wxPyEndAllowThreads(__tstate);
15312 if (PyErr_Occurred()) SWIG_fail;
15313 }
15314 resultobj = SWIG_Py_Void();
15315 return resultobj;
15316 fail:
15317 return NULL;
15318 }
15319
15320
15321 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15322 PyObject *resultobj = 0;
15323 wxFont *arg1 = (wxFont *) 0 ;
15324 bool result;
15325 void *argp1 = 0 ;
15326 int res1 = 0 ;
15327 PyObject *swig_obj[1] ;
15328
15329 if (!args) SWIG_fail;
15330 swig_obj[0] = args;
15331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15332 if (!SWIG_IsOK(res1)) {
15333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15334 }
15335 arg1 = reinterpret_cast< wxFont * >(argp1);
15336 {
15337 PyThreadState* __tstate = wxPyBeginAllowThreads();
15338 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15339 wxPyEndAllowThreads(__tstate);
15340 if (PyErr_Occurred()) SWIG_fail;
15341 }
15342 {
15343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15344 }
15345 return resultobj;
15346 fail:
15347 return NULL;
15348 }
15349
15350
15351 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15352 PyObject *resultobj = 0;
15353 wxFontEncoding result;
15354
15355 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15356 {
15357 if (!wxPyCheckForApp()) SWIG_fail;
15358 PyThreadState* __tstate = wxPyBeginAllowThreads();
15359 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15360 wxPyEndAllowThreads(__tstate);
15361 if (PyErr_Occurred()) SWIG_fail;
15362 }
15363 resultobj = SWIG_From_int(static_cast< int >(result));
15364 return resultobj;
15365 fail:
15366 return NULL;
15367 }
15368
15369
15370 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15371 PyObject *resultobj = 0;
15372 wxFontEncoding arg1 ;
15373 int val1 ;
15374 int ecode1 = 0 ;
15375 PyObject * obj0 = 0 ;
15376 char * kwnames[] = {
15377 (char *) "encoding", NULL
15378 };
15379
15380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15381 ecode1 = SWIG_AsVal_int(obj0, &val1);
15382 if (!SWIG_IsOK(ecode1)) {
15383 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15384 }
15385 arg1 = static_cast< wxFontEncoding >(val1);
15386 {
15387 if (!wxPyCheckForApp()) SWIG_fail;
15388 PyThreadState* __tstate = wxPyBeginAllowThreads();
15389 wxFont::SetDefaultEncoding(arg1);
15390 wxPyEndAllowThreads(__tstate);
15391 if (PyErr_Occurred()) SWIG_fail;
15392 }
15393 resultobj = SWIG_Py_Void();
15394 return resultobj;
15395 fail:
15396 return NULL;
15397 }
15398
15399
15400 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15401 PyObject *obj;
15402 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15403 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15404 return SWIG_Py_Void();
15405 }
15406
15407 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15408 return SWIG_Python_InitShadowInstance(args);
15409 }
15410
15411 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15412 PyObject *resultobj = 0;
15413 wxPyFontEnumerator *result = 0 ;
15414
15415 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15416 {
15417 if (!wxPyCheckForApp()) SWIG_fail;
15418 PyThreadState* __tstate = wxPyBeginAllowThreads();
15419 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15420 wxPyEndAllowThreads(__tstate);
15421 if (PyErr_Occurred()) SWIG_fail;
15422 }
15423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15424 return resultobj;
15425 fail:
15426 return NULL;
15427 }
15428
15429
15430 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15431 PyObject *resultobj = 0;
15432 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15433 void *argp1 = 0 ;
15434 int res1 = 0 ;
15435 PyObject *swig_obj[1] ;
15436
15437 if (!args) SWIG_fail;
15438 swig_obj[0] = args;
15439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15440 if (!SWIG_IsOK(res1)) {
15441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15442 }
15443 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15444 {
15445 PyThreadState* __tstate = wxPyBeginAllowThreads();
15446 delete arg1;
15447
15448 wxPyEndAllowThreads(__tstate);
15449 if (PyErr_Occurred()) SWIG_fail;
15450 }
15451 resultobj = SWIG_Py_Void();
15452 return resultobj;
15453 fail:
15454 return NULL;
15455 }
15456
15457
15458 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15459 PyObject *resultobj = 0;
15460 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15461 PyObject *arg2 = (PyObject *) 0 ;
15462 PyObject *arg3 = (PyObject *) 0 ;
15463 int arg4 = (int) 0 ;
15464 void *argp1 = 0 ;
15465 int res1 = 0 ;
15466 int val4 ;
15467 int ecode4 = 0 ;
15468 PyObject * obj0 = 0 ;
15469 PyObject * obj1 = 0 ;
15470 PyObject * obj2 = 0 ;
15471 PyObject * obj3 = 0 ;
15472 char * kwnames[] = {
15473 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15474 };
15475
15476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15478 if (!SWIG_IsOK(res1)) {
15479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15480 }
15481 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15482 arg2 = obj1;
15483 arg3 = obj2;
15484 if (obj3) {
15485 ecode4 = SWIG_AsVal_int(obj3, &val4);
15486 if (!SWIG_IsOK(ecode4)) {
15487 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
15488 }
15489 arg4 = static_cast< int >(val4);
15490 }
15491 {
15492 PyThreadState* __tstate = wxPyBeginAllowThreads();
15493 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15494 wxPyEndAllowThreads(__tstate);
15495 if (PyErr_Occurred()) SWIG_fail;
15496 }
15497 resultobj = SWIG_Py_Void();
15498 return resultobj;
15499 fail:
15500 return NULL;
15501 }
15502
15503
15504 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15505 PyObject *resultobj = 0;
15506 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15507 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15508 bool arg3 = (bool) false ;
15509 bool result;
15510 void *argp1 = 0 ;
15511 int res1 = 0 ;
15512 int val2 ;
15513 int ecode2 = 0 ;
15514 bool val3 ;
15515 int ecode3 = 0 ;
15516 PyObject * obj0 = 0 ;
15517 PyObject * obj1 = 0 ;
15518 PyObject * obj2 = 0 ;
15519 char * kwnames[] = {
15520 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15521 };
15522
15523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15525 if (!SWIG_IsOK(res1)) {
15526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15527 }
15528 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15529 if (obj1) {
15530 ecode2 = SWIG_AsVal_int(obj1, &val2);
15531 if (!SWIG_IsOK(ecode2)) {
15532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15533 }
15534 arg2 = static_cast< wxFontEncoding >(val2);
15535 }
15536 if (obj2) {
15537 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15538 if (!SWIG_IsOK(ecode3)) {
15539 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15540 }
15541 arg3 = static_cast< bool >(val3);
15542 }
15543 {
15544 PyThreadState* __tstate = wxPyBeginAllowThreads();
15545 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15546 wxPyEndAllowThreads(__tstate);
15547 if (PyErr_Occurred()) SWIG_fail;
15548 }
15549 {
15550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15551 }
15552 return resultobj;
15553 fail:
15554 return NULL;
15555 }
15556
15557
15558 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15559 PyObject *resultobj = 0;
15560 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15561 wxString const &arg2_defvalue = wxPyEmptyString ;
15562 wxString *arg2 = (wxString *) &arg2_defvalue ;
15563 bool result;
15564 void *argp1 = 0 ;
15565 int res1 = 0 ;
15566 bool temp2 = false ;
15567 PyObject * obj0 = 0 ;
15568 PyObject * obj1 = 0 ;
15569 char * kwnames[] = {
15570 (char *) "self",(char *) "facename", NULL
15571 };
15572
15573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15575 if (!SWIG_IsOK(res1)) {
15576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15577 }
15578 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15579 if (obj1) {
15580 {
15581 arg2 = wxString_in_helper(obj1);
15582 if (arg2 == NULL) SWIG_fail;
15583 temp2 = true;
15584 }
15585 }
15586 {
15587 PyThreadState* __tstate = wxPyBeginAllowThreads();
15588 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15589 wxPyEndAllowThreads(__tstate);
15590 if (PyErr_Occurred()) SWIG_fail;
15591 }
15592 {
15593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15594 }
15595 {
15596 if (temp2)
15597 delete arg2;
15598 }
15599 return resultobj;
15600 fail:
15601 {
15602 if (temp2)
15603 delete arg2;
15604 }
15605 return NULL;
15606 }
15607
15608
15609 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15610 PyObject *resultobj = 0;
15611 PyObject *result = 0 ;
15612
15613 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15614 {
15615 PyThreadState* __tstate = wxPyBeginAllowThreads();
15616 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15617 wxPyEndAllowThreads(__tstate);
15618 if (PyErr_Occurred()) SWIG_fail;
15619 }
15620 resultobj = result;
15621 return resultobj;
15622 fail:
15623 return NULL;
15624 }
15625
15626
15627 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15628 PyObject *resultobj = 0;
15629 PyObject *result = 0 ;
15630
15631 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15632 {
15633 PyThreadState* __tstate = wxPyBeginAllowThreads();
15634 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15635 wxPyEndAllowThreads(__tstate);
15636 if (PyErr_Occurred()) SWIG_fail;
15637 }
15638 resultobj = result;
15639 return resultobj;
15640 fail:
15641 return NULL;
15642 }
15643
15644
15645 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15646 PyObject *resultobj = 0;
15647 wxString *arg1 = 0 ;
15648 bool result;
15649 bool temp1 = false ;
15650 PyObject * obj0 = 0 ;
15651 char * kwnames[] = {
15652 (char *) "str", NULL
15653 };
15654
15655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15656 {
15657 arg1 = wxString_in_helper(obj0);
15658 if (arg1 == NULL) SWIG_fail;
15659 temp1 = true;
15660 }
15661 {
15662 PyThreadState* __tstate = wxPyBeginAllowThreads();
15663 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15664 wxPyEndAllowThreads(__tstate);
15665 if (PyErr_Occurred()) SWIG_fail;
15666 }
15667 {
15668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15669 }
15670 {
15671 if (temp1)
15672 delete arg1;
15673 }
15674 return resultobj;
15675 fail:
15676 {
15677 if (temp1)
15678 delete arg1;
15679 }
15680 return NULL;
15681 }
15682
15683
15684 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15685 PyObject *obj;
15686 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15687 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15688 return SWIG_Py_Void();
15689 }
15690
15691 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15692 return SWIG_Python_InitShadowInstance(args);
15693 }
15694
15695 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15696 PyObject *resultobj = 0;
15697 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15698 int arg2 ;
15699 void *argp1 = 0 ;
15700 int res1 = 0 ;
15701 int val2 ;
15702 int ecode2 = 0 ;
15703 PyObject *swig_obj[2] ;
15704
15705 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15707 if (!SWIG_IsOK(res1)) {
15708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15709 }
15710 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15711 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15712 if (!SWIG_IsOK(ecode2)) {
15713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15714 }
15715 arg2 = static_cast< int >(val2);
15716 if (arg1) (arg1)->Language = arg2;
15717
15718 resultobj = SWIG_Py_Void();
15719 return resultobj;
15720 fail:
15721 return NULL;
15722 }
15723
15724
15725 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15726 PyObject *resultobj = 0;
15727 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15728 int result;
15729 void *argp1 = 0 ;
15730 int res1 = 0 ;
15731 PyObject *swig_obj[1] ;
15732
15733 if (!args) SWIG_fail;
15734 swig_obj[0] = args;
15735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15736 if (!SWIG_IsOK(res1)) {
15737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15738 }
15739 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15740 result = (int) ((arg1)->Language);
15741 resultobj = SWIG_From_int(static_cast< int >(result));
15742 return resultobj;
15743 fail:
15744 return NULL;
15745 }
15746
15747
15748 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15749 PyObject *resultobj = 0;
15750 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15751 wxString *arg2 = (wxString *) 0 ;
15752 void *argp1 = 0 ;
15753 int res1 = 0 ;
15754 bool temp2 = false ;
15755 PyObject *swig_obj[2] ;
15756
15757 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15759 if (!SWIG_IsOK(res1)) {
15760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15761 }
15762 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15763 {
15764 arg2 = wxString_in_helper(swig_obj[1]);
15765 if (arg2 == NULL) SWIG_fail;
15766 temp2 = true;
15767 }
15768 if (arg1) (arg1)->CanonicalName = *arg2;
15769
15770 resultobj = SWIG_Py_Void();
15771 {
15772 if (temp2)
15773 delete arg2;
15774 }
15775 return resultobj;
15776 fail:
15777 {
15778 if (temp2)
15779 delete arg2;
15780 }
15781 return NULL;
15782 }
15783
15784
15785 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15786 PyObject *resultobj = 0;
15787 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15788 wxString *result = 0 ;
15789 void *argp1 = 0 ;
15790 int res1 = 0 ;
15791 PyObject *swig_obj[1] ;
15792
15793 if (!args) SWIG_fail;
15794 swig_obj[0] = args;
15795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15796 if (!SWIG_IsOK(res1)) {
15797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15798 }
15799 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15800 result = (wxString *)& ((arg1)->CanonicalName);
15801 {
15802 #if wxUSE_UNICODE
15803 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15804 #else
15805 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15806 #endif
15807 }
15808 return resultobj;
15809 fail:
15810 return NULL;
15811 }
15812
15813
15814 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15815 PyObject *resultobj = 0;
15816 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15817 wxString *arg2 = (wxString *) 0 ;
15818 void *argp1 = 0 ;
15819 int res1 = 0 ;
15820 bool temp2 = false ;
15821 PyObject *swig_obj[2] ;
15822
15823 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15825 if (!SWIG_IsOK(res1)) {
15826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15827 }
15828 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15829 {
15830 arg2 = wxString_in_helper(swig_obj[1]);
15831 if (arg2 == NULL) SWIG_fail;
15832 temp2 = true;
15833 }
15834 if (arg1) (arg1)->Description = *arg2;
15835
15836 resultobj = SWIG_Py_Void();
15837 {
15838 if (temp2)
15839 delete arg2;
15840 }
15841 return resultobj;
15842 fail:
15843 {
15844 if (temp2)
15845 delete arg2;
15846 }
15847 return NULL;
15848 }
15849
15850
15851 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15852 PyObject *resultobj = 0;
15853 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15854 wxString *result = 0 ;
15855 void *argp1 = 0 ;
15856 int res1 = 0 ;
15857 PyObject *swig_obj[1] ;
15858
15859 if (!args) SWIG_fail;
15860 swig_obj[0] = args;
15861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15862 if (!SWIG_IsOK(res1)) {
15863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15864 }
15865 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15866 result = (wxString *)& ((arg1)->Description);
15867 {
15868 #if wxUSE_UNICODE
15869 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15870 #else
15871 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15872 #endif
15873 }
15874 return resultobj;
15875 fail:
15876 return NULL;
15877 }
15878
15879
15880 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15881 PyObject *obj;
15882 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15883 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15884 return SWIG_Py_Void();
15885 }
15886
15887 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15888 PyObject *resultobj = 0;
15889 int arg1 = (int) -1 ;
15890 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15891 wxLocale *result = 0 ;
15892 int val1 ;
15893 int ecode1 = 0 ;
15894 int val2 ;
15895 int ecode2 = 0 ;
15896 PyObject * obj0 = 0 ;
15897 PyObject * obj1 = 0 ;
15898 char * kwnames[] = {
15899 (char *) "language",(char *) "flags", NULL
15900 };
15901
15902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15903 if (obj0) {
15904 ecode1 = SWIG_AsVal_int(obj0, &val1);
15905 if (!SWIG_IsOK(ecode1)) {
15906 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15907 }
15908 arg1 = static_cast< int >(val1);
15909 }
15910 if (obj1) {
15911 ecode2 = SWIG_AsVal_int(obj1, &val2);
15912 if (!SWIG_IsOK(ecode2)) {
15913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15914 }
15915 arg2 = static_cast< int >(val2);
15916 }
15917 {
15918 PyThreadState* __tstate = wxPyBeginAllowThreads();
15919 result = (wxLocale *)new_wxLocale(arg1,arg2);
15920 wxPyEndAllowThreads(__tstate);
15921 if (PyErr_Occurred()) SWIG_fail;
15922 }
15923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15924 return resultobj;
15925 fail:
15926 return NULL;
15927 }
15928
15929
15930 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15931 PyObject *resultobj = 0;
15932 wxLocale *arg1 = (wxLocale *) 0 ;
15933 void *argp1 = 0 ;
15934 int res1 = 0 ;
15935 PyObject *swig_obj[1] ;
15936
15937 if (!args) SWIG_fail;
15938 swig_obj[0] = args;
15939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15940 if (!SWIG_IsOK(res1)) {
15941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15942 }
15943 arg1 = reinterpret_cast< wxLocale * >(argp1);
15944 {
15945 PyThreadState* __tstate = wxPyBeginAllowThreads();
15946 delete arg1;
15947
15948 wxPyEndAllowThreads(__tstate);
15949 if (PyErr_Occurred()) SWIG_fail;
15950 }
15951 resultobj = SWIG_Py_Void();
15952 return resultobj;
15953 fail:
15954 return NULL;
15955 }
15956
15957
15958 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15959 PyObject *resultobj = 0;
15960 wxLocale *arg1 = (wxLocale *) 0 ;
15961 wxString *arg2 = 0 ;
15962 wxString const &arg3_defvalue = wxPyEmptyString ;
15963 wxString *arg3 = (wxString *) &arg3_defvalue ;
15964 wxString const &arg4_defvalue = wxPyEmptyString ;
15965 wxString *arg4 = (wxString *) &arg4_defvalue ;
15966 bool arg5 = (bool) true ;
15967 bool arg6 = (bool) false ;
15968 bool result;
15969 void *argp1 = 0 ;
15970 int res1 = 0 ;
15971 bool temp2 = false ;
15972 bool temp3 = false ;
15973 bool temp4 = false ;
15974 bool val5 ;
15975 int ecode5 = 0 ;
15976 bool val6 ;
15977 int ecode6 = 0 ;
15978 PyObject * obj0 = 0 ;
15979 PyObject * obj1 = 0 ;
15980 PyObject * obj2 = 0 ;
15981 PyObject * obj3 = 0 ;
15982 PyObject * obj4 = 0 ;
15983 PyObject * obj5 = 0 ;
15984 char * kwnames[] = {
15985 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15986 };
15987
15988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15990 if (!SWIG_IsOK(res1)) {
15991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15992 }
15993 arg1 = reinterpret_cast< wxLocale * >(argp1);
15994 {
15995 arg2 = wxString_in_helper(obj1);
15996 if (arg2 == NULL) SWIG_fail;
15997 temp2 = true;
15998 }
15999 if (obj2) {
16000 {
16001 arg3 = wxString_in_helper(obj2);
16002 if (arg3 == NULL) SWIG_fail;
16003 temp3 = true;
16004 }
16005 }
16006 if (obj3) {
16007 {
16008 arg4 = wxString_in_helper(obj3);
16009 if (arg4 == NULL) SWIG_fail;
16010 temp4 = true;
16011 }
16012 }
16013 if (obj4) {
16014 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16015 if (!SWIG_IsOK(ecode5)) {
16016 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16017 }
16018 arg5 = static_cast< bool >(val5);
16019 }
16020 if (obj5) {
16021 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16022 if (!SWIG_IsOK(ecode6)) {
16023 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16024 }
16025 arg6 = static_cast< bool >(val6);
16026 }
16027 {
16028 PyThreadState* __tstate = wxPyBeginAllowThreads();
16029 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16030 wxPyEndAllowThreads(__tstate);
16031 if (PyErr_Occurred()) SWIG_fail;
16032 }
16033 {
16034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16035 }
16036 {
16037 if (temp2)
16038 delete arg2;
16039 }
16040 {
16041 if (temp3)
16042 delete arg3;
16043 }
16044 {
16045 if (temp4)
16046 delete arg4;
16047 }
16048 return resultobj;
16049 fail:
16050 {
16051 if (temp2)
16052 delete arg2;
16053 }
16054 {
16055 if (temp3)
16056 delete arg3;
16057 }
16058 {
16059 if (temp4)
16060 delete arg4;
16061 }
16062 return NULL;
16063 }
16064
16065
16066 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16067 PyObject *resultobj = 0;
16068 wxLocale *arg1 = (wxLocale *) 0 ;
16069 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16070 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16071 bool result;
16072 void *argp1 = 0 ;
16073 int res1 = 0 ;
16074 int val2 ;
16075 int ecode2 = 0 ;
16076 int val3 ;
16077 int ecode3 = 0 ;
16078 PyObject * obj0 = 0 ;
16079 PyObject * obj1 = 0 ;
16080 PyObject * obj2 = 0 ;
16081 char * kwnames[] = {
16082 (char *) "self",(char *) "language",(char *) "flags", NULL
16083 };
16084
16085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16087 if (!SWIG_IsOK(res1)) {
16088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16089 }
16090 arg1 = reinterpret_cast< wxLocale * >(argp1);
16091 if (obj1) {
16092 ecode2 = SWIG_AsVal_int(obj1, &val2);
16093 if (!SWIG_IsOK(ecode2)) {
16094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16095 }
16096 arg2 = static_cast< int >(val2);
16097 }
16098 if (obj2) {
16099 ecode3 = SWIG_AsVal_int(obj2, &val3);
16100 if (!SWIG_IsOK(ecode3)) {
16101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16102 }
16103 arg3 = static_cast< int >(val3);
16104 }
16105 {
16106 PyThreadState* __tstate = wxPyBeginAllowThreads();
16107 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16108 wxPyEndAllowThreads(__tstate);
16109 if (PyErr_Occurred()) SWIG_fail;
16110 }
16111 {
16112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16113 }
16114 return resultobj;
16115 fail:
16116 return NULL;
16117 }
16118
16119
16120 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16121 PyObject *resultobj = 0;
16122 int result;
16123
16124 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16125 {
16126 PyThreadState* __tstate = wxPyBeginAllowThreads();
16127 result = (int)wxLocale::GetSystemLanguage();
16128 wxPyEndAllowThreads(__tstate);
16129 if (PyErr_Occurred()) SWIG_fail;
16130 }
16131 resultobj = SWIG_From_int(static_cast< int >(result));
16132 return resultobj;
16133 fail:
16134 return NULL;
16135 }
16136
16137
16138 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16139 PyObject *resultobj = 0;
16140 wxFontEncoding result;
16141
16142 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16143 {
16144 PyThreadState* __tstate = wxPyBeginAllowThreads();
16145 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16146 wxPyEndAllowThreads(__tstate);
16147 if (PyErr_Occurred()) SWIG_fail;
16148 }
16149 resultobj = SWIG_From_int(static_cast< int >(result));
16150 return resultobj;
16151 fail:
16152 return NULL;
16153 }
16154
16155
16156 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16157 PyObject *resultobj = 0;
16158 wxString result;
16159
16160 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16161 {
16162 PyThreadState* __tstate = wxPyBeginAllowThreads();
16163 result = wxLocale::GetSystemEncodingName();
16164 wxPyEndAllowThreads(__tstate);
16165 if (PyErr_Occurred()) SWIG_fail;
16166 }
16167 {
16168 #if wxUSE_UNICODE
16169 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16170 #else
16171 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16172 #endif
16173 }
16174 return resultobj;
16175 fail:
16176 return NULL;
16177 }
16178
16179
16180 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16181 PyObject *resultobj = 0;
16182 wxLocale *arg1 = (wxLocale *) 0 ;
16183 bool result;
16184 void *argp1 = 0 ;
16185 int res1 = 0 ;
16186 PyObject *swig_obj[1] ;
16187
16188 if (!args) SWIG_fail;
16189 swig_obj[0] = args;
16190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16191 if (!SWIG_IsOK(res1)) {
16192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16193 }
16194 arg1 = reinterpret_cast< wxLocale * >(argp1);
16195 {
16196 PyThreadState* __tstate = wxPyBeginAllowThreads();
16197 result = (bool)((wxLocale const *)arg1)->IsOk();
16198 wxPyEndAllowThreads(__tstate);
16199 if (PyErr_Occurred()) SWIG_fail;
16200 }
16201 {
16202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16203 }
16204 return resultobj;
16205 fail:
16206 return NULL;
16207 }
16208
16209
16210 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16211 PyObject *resultobj = 0;
16212 wxLocale *arg1 = (wxLocale *) 0 ;
16213 wxString result;
16214 void *argp1 = 0 ;
16215 int res1 = 0 ;
16216 PyObject *swig_obj[1] ;
16217
16218 if (!args) SWIG_fail;
16219 swig_obj[0] = args;
16220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16221 if (!SWIG_IsOK(res1)) {
16222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16223 }
16224 arg1 = reinterpret_cast< wxLocale * >(argp1);
16225 {
16226 PyThreadState* __tstate = wxPyBeginAllowThreads();
16227 result = ((wxLocale const *)arg1)->GetLocale();
16228 wxPyEndAllowThreads(__tstate);
16229 if (PyErr_Occurred()) SWIG_fail;
16230 }
16231 {
16232 #if wxUSE_UNICODE
16233 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16234 #else
16235 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16236 #endif
16237 }
16238 return resultobj;
16239 fail:
16240 return NULL;
16241 }
16242
16243
16244 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16245 PyObject *resultobj = 0;
16246 wxLocale *arg1 = (wxLocale *) 0 ;
16247 int result;
16248 void *argp1 = 0 ;
16249 int res1 = 0 ;
16250 PyObject *swig_obj[1] ;
16251
16252 if (!args) SWIG_fail;
16253 swig_obj[0] = args;
16254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16255 if (!SWIG_IsOK(res1)) {
16256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16257 }
16258 arg1 = reinterpret_cast< wxLocale * >(argp1);
16259 {
16260 PyThreadState* __tstate = wxPyBeginAllowThreads();
16261 result = (int)((wxLocale const *)arg1)->GetLanguage();
16262 wxPyEndAllowThreads(__tstate);
16263 if (PyErr_Occurred()) SWIG_fail;
16264 }
16265 resultobj = SWIG_From_int(static_cast< int >(result));
16266 return resultobj;
16267 fail:
16268 return NULL;
16269 }
16270
16271
16272 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16273 PyObject *resultobj = 0;
16274 wxLocale *arg1 = (wxLocale *) 0 ;
16275 wxString result;
16276 void *argp1 = 0 ;
16277 int res1 = 0 ;
16278 PyObject *swig_obj[1] ;
16279
16280 if (!args) SWIG_fail;
16281 swig_obj[0] = args;
16282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16283 if (!SWIG_IsOK(res1)) {
16284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16285 }
16286 arg1 = reinterpret_cast< wxLocale * >(argp1);
16287 {
16288 PyThreadState* __tstate = wxPyBeginAllowThreads();
16289 result = ((wxLocale const *)arg1)->GetSysName();
16290 wxPyEndAllowThreads(__tstate);
16291 if (PyErr_Occurred()) SWIG_fail;
16292 }
16293 {
16294 #if wxUSE_UNICODE
16295 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16296 #else
16297 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16298 #endif
16299 }
16300 return resultobj;
16301 fail:
16302 return NULL;
16303 }
16304
16305
16306 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16307 PyObject *resultobj = 0;
16308 wxLocale *arg1 = (wxLocale *) 0 ;
16309 wxString result;
16310 void *argp1 = 0 ;
16311 int res1 = 0 ;
16312 PyObject *swig_obj[1] ;
16313
16314 if (!args) SWIG_fail;
16315 swig_obj[0] = args;
16316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16317 if (!SWIG_IsOK(res1)) {
16318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16319 }
16320 arg1 = reinterpret_cast< wxLocale * >(argp1);
16321 {
16322 PyThreadState* __tstate = wxPyBeginAllowThreads();
16323 result = ((wxLocale const *)arg1)->GetCanonicalName();
16324 wxPyEndAllowThreads(__tstate);
16325 if (PyErr_Occurred()) SWIG_fail;
16326 }
16327 {
16328 #if wxUSE_UNICODE
16329 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16330 #else
16331 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16332 #endif
16333 }
16334 return resultobj;
16335 fail:
16336 return NULL;
16337 }
16338
16339
16340 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16341 PyObject *resultobj = 0;
16342 wxString *arg1 = 0 ;
16343 bool temp1 = false ;
16344 PyObject * obj0 = 0 ;
16345 char * kwnames[] = {
16346 (char *) "prefix", NULL
16347 };
16348
16349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16350 {
16351 arg1 = wxString_in_helper(obj0);
16352 if (arg1 == NULL) SWIG_fail;
16353 temp1 = true;
16354 }
16355 {
16356 PyThreadState* __tstate = wxPyBeginAllowThreads();
16357 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16358 wxPyEndAllowThreads(__tstate);
16359 if (PyErr_Occurred()) SWIG_fail;
16360 }
16361 resultobj = SWIG_Py_Void();
16362 {
16363 if (temp1)
16364 delete arg1;
16365 }
16366 return resultobj;
16367 fail:
16368 {
16369 if (temp1)
16370 delete arg1;
16371 }
16372 return NULL;
16373 }
16374
16375
16376 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16377 PyObject *resultobj = 0;
16378 wxLocale *arg1 = (wxLocale *) 0 ;
16379 wxString *arg2 = 0 ;
16380 bool result;
16381 void *argp1 = 0 ;
16382 int res1 = 0 ;
16383 bool temp2 = false ;
16384 PyObject * obj0 = 0 ;
16385 PyObject * obj1 = 0 ;
16386 char * kwnames[] = {
16387 (char *) "self",(char *) "szDomain", NULL
16388 };
16389
16390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16392 if (!SWIG_IsOK(res1)) {
16393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16394 }
16395 arg1 = reinterpret_cast< wxLocale * >(argp1);
16396 {
16397 arg2 = wxString_in_helper(obj1);
16398 if (arg2 == NULL) SWIG_fail;
16399 temp2 = true;
16400 }
16401 {
16402 PyThreadState* __tstate = wxPyBeginAllowThreads();
16403 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16404 wxPyEndAllowThreads(__tstate);
16405 if (PyErr_Occurred()) SWIG_fail;
16406 }
16407 {
16408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16409 }
16410 {
16411 if (temp2)
16412 delete arg2;
16413 }
16414 return resultobj;
16415 fail:
16416 {
16417 if (temp2)
16418 delete arg2;
16419 }
16420 return NULL;
16421 }
16422
16423
16424 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16425 PyObject *resultobj = 0;
16426 int arg1 ;
16427 bool result;
16428 int val1 ;
16429 int ecode1 = 0 ;
16430 PyObject * obj0 = 0 ;
16431 char * kwnames[] = {
16432 (char *) "lang", NULL
16433 };
16434
16435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16436 ecode1 = SWIG_AsVal_int(obj0, &val1);
16437 if (!SWIG_IsOK(ecode1)) {
16438 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16439 }
16440 arg1 = static_cast< int >(val1);
16441 {
16442 PyThreadState* __tstate = wxPyBeginAllowThreads();
16443 result = (bool)wxLocale::IsAvailable(arg1);
16444 wxPyEndAllowThreads(__tstate);
16445 if (PyErr_Occurred()) SWIG_fail;
16446 }
16447 {
16448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16449 }
16450 return resultobj;
16451 fail:
16452 return NULL;
16453 }
16454
16455
16456 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16457 PyObject *resultobj = 0;
16458 wxLocale *arg1 = (wxLocale *) 0 ;
16459 wxString *arg2 = 0 ;
16460 bool result;
16461 void *argp1 = 0 ;
16462 int res1 = 0 ;
16463 bool temp2 = false ;
16464 PyObject * obj0 = 0 ;
16465 PyObject * obj1 = 0 ;
16466 char * kwnames[] = {
16467 (char *) "self",(char *) "szDomain", NULL
16468 };
16469
16470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16472 if (!SWIG_IsOK(res1)) {
16473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16474 }
16475 arg1 = reinterpret_cast< wxLocale * >(argp1);
16476 {
16477 arg2 = wxString_in_helper(obj1);
16478 if (arg2 == NULL) SWIG_fail;
16479 temp2 = true;
16480 }
16481 {
16482 PyThreadState* __tstate = wxPyBeginAllowThreads();
16483 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16484 wxPyEndAllowThreads(__tstate);
16485 if (PyErr_Occurred()) SWIG_fail;
16486 }
16487 {
16488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16489 }
16490 {
16491 if (temp2)
16492 delete arg2;
16493 }
16494 return resultobj;
16495 fail:
16496 {
16497 if (temp2)
16498 delete arg2;
16499 }
16500 return NULL;
16501 }
16502
16503
16504 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16505 PyObject *resultobj = 0;
16506 int arg1 ;
16507 wxLanguageInfo *result = 0 ;
16508 int val1 ;
16509 int ecode1 = 0 ;
16510 PyObject * obj0 = 0 ;
16511 char * kwnames[] = {
16512 (char *) "lang", NULL
16513 };
16514
16515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16516 ecode1 = SWIG_AsVal_int(obj0, &val1);
16517 if (!SWIG_IsOK(ecode1)) {
16518 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16519 }
16520 arg1 = static_cast< int >(val1);
16521 {
16522 PyThreadState* __tstate = wxPyBeginAllowThreads();
16523 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16524 wxPyEndAllowThreads(__tstate);
16525 if (PyErr_Occurred()) SWIG_fail;
16526 }
16527 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16528 return resultobj;
16529 fail:
16530 return NULL;
16531 }
16532
16533
16534 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16535 PyObject *resultobj = 0;
16536 int arg1 ;
16537 wxString result;
16538 int val1 ;
16539 int ecode1 = 0 ;
16540 PyObject * obj0 = 0 ;
16541 char * kwnames[] = {
16542 (char *) "lang", NULL
16543 };
16544
16545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16546 ecode1 = SWIG_AsVal_int(obj0, &val1);
16547 if (!SWIG_IsOK(ecode1)) {
16548 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16549 }
16550 arg1 = static_cast< int >(val1);
16551 {
16552 PyThreadState* __tstate = wxPyBeginAllowThreads();
16553 result = wxLocale::GetLanguageName(arg1);
16554 wxPyEndAllowThreads(__tstate);
16555 if (PyErr_Occurred()) SWIG_fail;
16556 }
16557 {
16558 #if wxUSE_UNICODE
16559 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16560 #else
16561 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16562 #endif
16563 }
16564 return resultobj;
16565 fail:
16566 return NULL;
16567 }
16568
16569
16570 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16571 PyObject *resultobj = 0;
16572 wxString *arg1 = 0 ;
16573 wxLanguageInfo *result = 0 ;
16574 bool temp1 = false ;
16575 PyObject * obj0 = 0 ;
16576 char * kwnames[] = {
16577 (char *) "locale", NULL
16578 };
16579
16580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16581 {
16582 arg1 = wxString_in_helper(obj0);
16583 if (arg1 == NULL) SWIG_fail;
16584 temp1 = true;
16585 }
16586 {
16587 PyThreadState* __tstate = wxPyBeginAllowThreads();
16588 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16589 wxPyEndAllowThreads(__tstate);
16590 if (PyErr_Occurred()) SWIG_fail;
16591 }
16592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16593 {
16594 if (temp1)
16595 delete arg1;
16596 }
16597 return resultobj;
16598 fail:
16599 {
16600 if (temp1)
16601 delete arg1;
16602 }
16603 return NULL;
16604 }
16605
16606
16607 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16608 PyObject *resultobj = 0;
16609 wxLanguageInfo *arg1 = 0 ;
16610 void *argp1 = 0 ;
16611 int res1 = 0 ;
16612 PyObject * obj0 = 0 ;
16613 char * kwnames[] = {
16614 (char *) "info", NULL
16615 };
16616
16617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16618 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16619 if (!SWIG_IsOK(res1)) {
16620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16621 }
16622 if (!argp1) {
16623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16624 }
16625 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16626 {
16627 PyThreadState* __tstate = wxPyBeginAllowThreads();
16628 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16629 wxPyEndAllowThreads(__tstate);
16630 if (PyErr_Occurred()) SWIG_fail;
16631 }
16632 resultobj = SWIG_Py_Void();
16633 return resultobj;
16634 fail:
16635 return NULL;
16636 }
16637
16638
16639 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16640 PyObject *resultobj = 0;
16641 wxLocale *arg1 = (wxLocale *) 0 ;
16642 wxString *arg2 = 0 ;
16643 wxString const &arg3_defvalue = wxPyEmptyString ;
16644 wxString *arg3 = (wxString *) &arg3_defvalue ;
16645 wxString result;
16646 void *argp1 = 0 ;
16647 int res1 = 0 ;
16648 bool temp2 = false ;
16649 bool temp3 = false ;
16650 PyObject * obj0 = 0 ;
16651 PyObject * obj1 = 0 ;
16652 PyObject * obj2 = 0 ;
16653 char * kwnames[] = {
16654 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16655 };
16656
16657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16659 if (!SWIG_IsOK(res1)) {
16660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16661 }
16662 arg1 = reinterpret_cast< wxLocale * >(argp1);
16663 {
16664 arg2 = wxString_in_helper(obj1);
16665 if (arg2 == NULL) SWIG_fail;
16666 temp2 = true;
16667 }
16668 if (obj2) {
16669 {
16670 arg3 = wxString_in_helper(obj2);
16671 if (arg3 == NULL) SWIG_fail;
16672 temp3 = true;
16673 }
16674 }
16675 {
16676 PyThreadState* __tstate = wxPyBeginAllowThreads();
16677 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16678 wxPyEndAllowThreads(__tstate);
16679 if (PyErr_Occurred()) SWIG_fail;
16680 }
16681 {
16682 #if wxUSE_UNICODE
16683 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16684 #else
16685 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16686 #endif
16687 }
16688 {
16689 if (temp2)
16690 delete arg2;
16691 }
16692 {
16693 if (temp3)
16694 delete arg3;
16695 }
16696 return resultobj;
16697 fail:
16698 {
16699 if (temp2)
16700 delete arg2;
16701 }
16702 {
16703 if (temp3)
16704 delete arg3;
16705 }
16706 return NULL;
16707 }
16708
16709
16710 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16711 PyObject *resultobj = 0;
16712 wxLocale *arg1 = (wxLocale *) 0 ;
16713 wxString *result = 0 ;
16714 void *argp1 = 0 ;
16715 int res1 = 0 ;
16716 PyObject *swig_obj[1] ;
16717
16718 if (!args) SWIG_fail;
16719 swig_obj[0] = args;
16720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16721 if (!SWIG_IsOK(res1)) {
16722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16723 }
16724 arg1 = reinterpret_cast< wxLocale * >(argp1);
16725 {
16726 PyThreadState* __tstate = wxPyBeginAllowThreads();
16727 {
16728 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16729 result = (wxString *) &_result_ref;
16730 }
16731 wxPyEndAllowThreads(__tstate);
16732 if (PyErr_Occurred()) SWIG_fail;
16733 }
16734 {
16735 #if wxUSE_UNICODE
16736 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16737 #else
16738 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16739 #endif
16740 }
16741 return resultobj;
16742 fail:
16743 return NULL;
16744 }
16745
16746
16747 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16748 PyObject *obj;
16749 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16750 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16751 return SWIG_Py_Void();
16752 }
16753
16754 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16755 return SWIG_Python_InitShadowInstance(args);
16756 }
16757
16758 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16759 PyObject *resultobj = 0;
16760 int arg1 = (int) -1 ;
16761 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16762 wxPyLocale *result = 0 ;
16763 int val1 ;
16764 int ecode1 = 0 ;
16765 int val2 ;
16766 int ecode2 = 0 ;
16767 PyObject * obj0 = 0 ;
16768 PyObject * obj1 = 0 ;
16769 char * kwnames[] = {
16770 (char *) "language",(char *) "flags", NULL
16771 };
16772
16773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16774 if (obj0) {
16775 ecode1 = SWIG_AsVal_int(obj0, &val1);
16776 if (!SWIG_IsOK(ecode1)) {
16777 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16778 }
16779 arg1 = static_cast< int >(val1);
16780 }
16781 if (obj1) {
16782 ecode2 = SWIG_AsVal_int(obj1, &val2);
16783 if (!SWIG_IsOK(ecode2)) {
16784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16785 }
16786 arg2 = static_cast< int >(val2);
16787 }
16788 {
16789 PyThreadState* __tstate = wxPyBeginAllowThreads();
16790 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16791 wxPyEndAllowThreads(__tstate);
16792 if (PyErr_Occurred()) SWIG_fail;
16793 }
16794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16795 return resultobj;
16796 fail:
16797 return NULL;
16798 }
16799
16800
16801 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16802 PyObject *resultobj = 0;
16803 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16804 void *argp1 = 0 ;
16805 int res1 = 0 ;
16806 PyObject *swig_obj[1] ;
16807
16808 if (!args) SWIG_fail;
16809 swig_obj[0] = args;
16810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16811 if (!SWIG_IsOK(res1)) {
16812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16813 }
16814 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16815 {
16816 PyThreadState* __tstate = wxPyBeginAllowThreads();
16817 delete arg1;
16818
16819 wxPyEndAllowThreads(__tstate);
16820 if (PyErr_Occurred()) SWIG_fail;
16821 }
16822 resultobj = SWIG_Py_Void();
16823 return resultobj;
16824 fail:
16825 return NULL;
16826 }
16827
16828
16829 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16830 PyObject *resultobj = 0;
16831 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16832 PyObject *arg2 = (PyObject *) 0 ;
16833 PyObject *arg3 = (PyObject *) 0 ;
16834 void *argp1 = 0 ;
16835 int res1 = 0 ;
16836 PyObject * obj0 = 0 ;
16837 PyObject * obj1 = 0 ;
16838 PyObject * obj2 = 0 ;
16839 char * kwnames[] = {
16840 (char *) "self",(char *) "self",(char *) "_class", NULL
16841 };
16842
16843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16845 if (!SWIG_IsOK(res1)) {
16846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16847 }
16848 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16849 arg2 = obj1;
16850 arg3 = obj2;
16851 {
16852 PyThreadState* __tstate = wxPyBeginAllowThreads();
16853 (arg1)->_setCallbackInfo(arg2,arg3);
16854 wxPyEndAllowThreads(__tstate);
16855 if (PyErr_Occurred()) SWIG_fail;
16856 }
16857 resultobj = SWIG_Py_Void();
16858 return resultobj;
16859 fail:
16860 return NULL;
16861 }
16862
16863
16864 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16865 PyObject *resultobj = 0;
16866 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16867 wxChar *arg2 = (wxChar *) 0 ;
16868 wxChar *arg3 = (wxChar *) NULL ;
16869 wxChar *result = 0 ;
16870 void *argp1 = 0 ;
16871 int res1 = 0 ;
16872 void *argp2 = 0 ;
16873 int res2 = 0 ;
16874 void *argp3 = 0 ;
16875 int res3 = 0 ;
16876 PyObject * obj0 = 0 ;
16877 PyObject * obj1 = 0 ;
16878 PyObject * obj2 = 0 ;
16879 char * kwnames[] = {
16880 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16881 };
16882
16883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16885 if (!SWIG_IsOK(res1)) {
16886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16887 }
16888 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16889 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16890 if (!SWIG_IsOK(res2)) {
16891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16892 }
16893 arg2 = reinterpret_cast< wxChar * >(argp2);
16894 if (obj2) {
16895 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16896 if (!SWIG_IsOK(res3)) {
16897 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16898 }
16899 arg3 = reinterpret_cast< wxChar * >(argp3);
16900 }
16901 {
16902 PyThreadState* __tstate = wxPyBeginAllowThreads();
16903 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16904 wxPyEndAllowThreads(__tstate);
16905 if (PyErr_Occurred()) SWIG_fail;
16906 }
16907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16908 return resultobj;
16909 fail:
16910 return NULL;
16911 }
16912
16913
16914 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16915 PyObject *resultobj = 0;
16916 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16917 wxChar *arg2 = (wxChar *) 0 ;
16918 wxChar *arg3 = (wxChar *) 0 ;
16919 size_t arg4 ;
16920 wxChar *arg5 = (wxChar *) NULL ;
16921 wxChar *result = 0 ;
16922 void *argp1 = 0 ;
16923 int res1 = 0 ;
16924 void *argp2 = 0 ;
16925 int res2 = 0 ;
16926 void *argp3 = 0 ;
16927 int res3 = 0 ;
16928 size_t val4 ;
16929 int ecode4 = 0 ;
16930 void *argp5 = 0 ;
16931 int res5 = 0 ;
16932 PyObject * obj0 = 0 ;
16933 PyObject * obj1 = 0 ;
16934 PyObject * obj2 = 0 ;
16935 PyObject * obj3 = 0 ;
16936 PyObject * obj4 = 0 ;
16937 char * kwnames[] = {
16938 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16939 };
16940
16941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16943 if (!SWIG_IsOK(res1)) {
16944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16945 }
16946 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16947 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16948 if (!SWIG_IsOK(res2)) {
16949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16950 }
16951 arg2 = reinterpret_cast< wxChar * >(argp2);
16952 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16953 if (!SWIG_IsOK(res3)) {
16954 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16955 }
16956 arg3 = reinterpret_cast< wxChar * >(argp3);
16957 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16958 if (!SWIG_IsOK(ecode4)) {
16959 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16960 }
16961 arg4 = static_cast< size_t >(val4);
16962 if (obj4) {
16963 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16964 if (!SWIG_IsOK(res5)) {
16965 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16966 }
16967 arg5 = reinterpret_cast< wxChar * >(argp5);
16968 }
16969 {
16970 PyThreadState* __tstate = wxPyBeginAllowThreads();
16971 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16972 wxPyEndAllowThreads(__tstate);
16973 if (PyErr_Occurred()) SWIG_fail;
16974 }
16975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16976 return resultobj;
16977 fail:
16978 return NULL;
16979 }
16980
16981
16982 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16983 PyObject *obj;
16984 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16985 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16986 return SWIG_Py_Void();
16987 }
16988
16989 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16990 return SWIG_Python_InitShadowInstance(args);
16991 }
16992
16993 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16994 PyObject *resultobj = 0;
16995 wxLocale *result = 0 ;
16996
16997 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16998 {
16999 PyThreadState* __tstate = wxPyBeginAllowThreads();
17000 result = (wxLocale *)wxGetLocale();
17001 wxPyEndAllowThreads(__tstate);
17002 if (PyErr_Occurred()) SWIG_fail;
17003 }
17004 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17005 return resultobj;
17006 fail:
17007 return NULL;
17008 }
17009
17010
17011 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17012 PyObject *resultobj = 0;
17013 wxString *arg1 = 0 ;
17014 wxString result;
17015 bool temp1 = false ;
17016
17017 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17018 {
17019 arg1 = wxString_in_helper(swig_obj[0]);
17020 if (arg1 == NULL) SWIG_fail;
17021 temp1 = true;
17022 }
17023 {
17024 PyThreadState* __tstate = wxPyBeginAllowThreads();
17025 result = wxGetTranslation((wxString const &)*arg1);
17026 wxPyEndAllowThreads(__tstate);
17027 if (PyErr_Occurred()) SWIG_fail;
17028 }
17029 {
17030 #if wxUSE_UNICODE
17031 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17032 #else
17033 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17034 #endif
17035 }
17036 {
17037 if (temp1)
17038 delete arg1;
17039 }
17040 return resultobj;
17041 fail:
17042 {
17043 if (temp1)
17044 delete arg1;
17045 }
17046 return NULL;
17047 }
17048
17049
17050 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17051 PyObject *resultobj = 0;
17052 wxString *arg1 = 0 ;
17053 wxString *arg2 = 0 ;
17054 wxString result;
17055 bool temp1 = false ;
17056 bool temp2 = false ;
17057
17058 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17059 {
17060 arg1 = wxString_in_helper(swig_obj[0]);
17061 if (arg1 == NULL) SWIG_fail;
17062 temp1 = true;
17063 }
17064 {
17065 arg2 = wxString_in_helper(swig_obj[1]);
17066 if (arg2 == NULL) SWIG_fail;
17067 temp2 = true;
17068 }
17069 {
17070 PyThreadState* __tstate = wxPyBeginAllowThreads();
17071 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17072 wxPyEndAllowThreads(__tstate);
17073 if (PyErr_Occurred()) SWIG_fail;
17074 }
17075 {
17076 #if wxUSE_UNICODE
17077 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17078 #else
17079 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17080 #endif
17081 }
17082 {
17083 if (temp1)
17084 delete arg1;
17085 }
17086 {
17087 if (temp2)
17088 delete arg2;
17089 }
17090 return resultobj;
17091 fail:
17092 {
17093 if (temp1)
17094 delete arg1;
17095 }
17096 {
17097 if (temp2)
17098 delete arg2;
17099 }
17100 return NULL;
17101 }
17102
17103
17104 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17105 PyObject *resultobj = 0;
17106 wxString *arg1 = 0 ;
17107 wxString *arg2 = 0 ;
17108 size_t arg3 ;
17109 wxString result;
17110 bool temp1 = false ;
17111 bool temp2 = false ;
17112 size_t val3 ;
17113 int ecode3 = 0 ;
17114
17115 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17116 {
17117 arg1 = wxString_in_helper(swig_obj[0]);
17118 if (arg1 == NULL) SWIG_fail;
17119 temp1 = true;
17120 }
17121 {
17122 arg2 = wxString_in_helper(swig_obj[1]);
17123 if (arg2 == NULL) SWIG_fail;
17124 temp2 = true;
17125 }
17126 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17127 if (!SWIG_IsOK(ecode3)) {
17128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17129 }
17130 arg3 = static_cast< size_t >(val3);
17131 {
17132 PyThreadState* __tstate = wxPyBeginAllowThreads();
17133 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17134 wxPyEndAllowThreads(__tstate);
17135 if (PyErr_Occurred()) SWIG_fail;
17136 }
17137 {
17138 #if wxUSE_UNICODE
17139 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17140 #else
17141 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17142 #endif
17143 }
17144 {
17145 if (temp1)
17146 delete arg1;
17147 }
17148 {
17149 if (temp2)
17150 delete arg2;
17151 }
17152 return resultobj;
17153 fail:
17154 {
17155 if (temp1)
17156 delete arg1;
17157 }
17158 {
17159 if (temp2)
17160 delete arg2;
17161 }
17162 return NULL;
17163 }
17164
17165
17166 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17167 PyObject *resultobj = 0;
17168 wxString *arg1 = 0 ;
17169 wxString *arg2 = 0 ;
17170 size_t arg3 ;
17171 wxString *arg4 = 0 ;
17172 wxString result;
17173 bool temp1 = false ;
17174 bool temp2 = false ;
17175 size_t val3 ;
17176 int ecode3 = 0 ;
17177 bool temp4 = false ;
17178
17179 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17180 {
17181 arg1 = wxString_in_helper(swig_obj[0]);
17182 if (arg1 == NULL) SWIG_fail;
17183 temp1 = true;
17184 }
17185 {
17186 arg2 = wxString_in_helper(swig_obj[1]);
17187 if (arg2 == NULL) SWIG_fail;
17188 temp2 = true;
17189 }
17190 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17191 if (!SWIG_IsOK(ecode3)) {
17192 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17193 }
17194 arg3 = static_cast< size_t >(val3);
17195 {
17196 arg4 = wxString_in_helper(swig_obj[3]);
17197 if (arg4 == NULL) SWIG_fail;
17198 temp4 = true;
17199 }
17200 {
17201 PyThreadState* __tstate = wxPyBeginAllowThreads();
17202 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17203 wxPyEndAllowThreads(__tstate);
17204 if (PyErr_Occurred()) SWIG_fail;
17205 }
17206 {
17207 #if wxUSE_UNICODE
17208 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17209 #else
17210 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17211 #endif
17212 }
17213 {
17214 if (temp1)
17215 delete arg1;
17216 }
17217 {
17218 if (temp2)
17219 delete arg2;
17220 }
17221 {
17222 if (temp4)
17223 delete arg4;
17224 }
17225 return resultobj;
17226 fail:
17227 {
17228 if (temp1)
17229 delete arg1;
17230 }
17231 {
17232 if (temp2)
17233 delete arg2;
17234 }
17235 {
17236 if (temp4)
17237 delete arg4;
17238 }
17239 return NULL;
17240 }
17241
17242
17243 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17244 int argc;
17245 PyObject *argv[5];
17246
17247 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17248 --argc;
17249 if (argc == 1) {
17250 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17251 }
17252 if (argc == 2) {
17253 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17254 }
17255 if (argc == 3) {
17256 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17257 }
17258 if (argc == 4) {
17259 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17260 }
17261
17262 fail:
17263 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17264 return NULL;
17265 }
17266
17267
17268 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17269 PyObject *resultobj = 0;
17270 wxEncodingConverter *result = 0 ;
17271
17272 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17273 {
17274 PyThreadState* __tstate = wxPyBeginAllowThreads();
17275 result = (wxEncodingConverter *)new wxEncodingConverter();
17276 wxPyEndAllowThreads(__tstate);
17277 if (PyErr_Occurred()) SWIG_fail;
17278 }
17279 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17280 return resultobj;
17281 fail:
17282 return NULL;
17283 }
17284
17285
17286 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17287 PyObject *resultobj = 0;
17288 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17289 void *argp1 = 0 ;
17290 int res1 = 0 ;
17291 PyObject *swig_obj[1] ;
17292
17293 if (!args) SWIG_fail;
17294 swig_obj[0] = args;
17295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17296 if (!SWIG_IsOK(res1)) {
17297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17298 }
17299 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17300 {
17301 PyThreadState* __tstate = wxPyBeginAllowThreads();
17302 delete arg1;
17303
17304 wxPyEndAllowThreads(__tstate);
17305 if (PyErr_Occurred()) SWIG_fail;
17306 }
17307 resultobj = SWIG_Py_Void();
17308 return resultobj;
17309 fail:
17310 return NULL;
17311 }
17312
17313
17314 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17315 PyObject *resultobj = 0;
17316 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17317 wxFontEncoding arg2 ;
17318 wxFontEncoding arg3 ;
17319 int arg4 = (int) wxCONVERT_STRICT ;
17320 bool result;
17321 void *argp1 = 0 ;
17322 int res1 = 0 ;
17323 int val2 ;
17324 int ecode2 = 0 ;
17325 int val3 ;
17326 int ecode3 = 0 ;
17327 int val4 ;
17328 int ecode4 = 0 ;
17329 PyObject * obj0 = 0 ;
17330 PyObject * obj1 = 0 ;
17331 PyObject * obj2 = 0 ;
17332 PyObject * obj3 = 0 ;
17333 char * kwnames[] = {
17334 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17335 };
17336
17337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17339 if (!SWIG_IsOK(res1)) {
17340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17341 }
17342 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17343 ecode2 = SWIG_AsVal_int(obj1, &val2);
17344 if (!SWIG_IsOK(ecode2)) {
17345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17346 }
17347 arg2 = static_cast< wxFontEncoding >(val2);
17348 ecode3 = SWIG_AsVal_int(obj2, &val3);
17349 if (!SWIG_IsOK(ecode3)) {
17350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17351 }
17352 arg3 = static_cast< wxFontEncoding >(val3);
17353 if (obj3) {
17354 ecode4 = SWIG_AsVal_int(obj3, &val4);
17355 if (!SWIG_IsOK(ecode4)) {
17356 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17357 }
17358 arg4 = static_cast< int >(val4);
17359 }
17360 {
17361 PyThreadState* __tstate = wxPyBeginAllowThreads();
17362 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17363 wxPyEndAllowThreads(__tstate);
17364 if (PyErr_Occurred()) SWIG_fail;
17365 }
17366 {
17367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17368 }
17369 return resultobj;
17370 fail:
17371 return NULL;
17372 }
17373
17374
17375 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17376 PyObject *resultobj = 0;
17377 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17378 wxString *arg2 = 0 ;
17379 wxString result;
17380 void *argp1 = 0 ;
17381 int res1 = 0 ;
17382 bool temp2 = false ;
17383 PyObject * obj0 = 0 ;
17384 PyObject * obj1 = 0 ;
17385 char * kwnames[] = {
17386 (char *) "self",(char *) "input", NULL
17387 };
17388
17389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17391 if (!SWIG_IsOK(res1)) {
17392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17393 }
17394 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17395 {
17396 arg2 = wxString_in_helper(obj1);
17397 if (arg2 == NULL) SWIG_fail;
17398 temp2 = true;
17399 }
17400 {
17401 PyThreadState* __tstate = wxPyBeginAllowThreads();
17402 result = (arg1)->Convert((wxString const &)*arg2);
17403 wxPyEndAllowThreads(__tstate);
17404 if (PyErr_Occurred()) SWIG_fail;
17405 }
17406 {
17407 #if wxUSE_UNICODE
17408 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17409 #else
17410 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17411 #endif
17412 }
17413 {
17414 if (temp2)
17415 delete arg2;
17416 }
17417 return resultobj;
17418 fail:
17419 {
17420 if (temp2)
17421 delete arg2;
17422 }
17423 return NULL;
17424 }
17425
17426
17427 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17428 PyObject *resultobj = 0;
17429 wxFontEncoding arg1 ;
17430 int arg2 = (int) wxPLATFORM_CURRENT ;
17431 wxFontEncodingArray result;
17432 int val1 ;
17433 int ecode1 = 0 ;
17434 int val2 ;
17435 int ecode2 = 0 ;
17436 PyObject * obj0 = 0 ;
17437 PyObject * obj1 = 0 ;
17438 char * kwnames[] = {
17439 (char *) "enc",(char *) "platform", NULL
17440 };
17441
17442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17443 ecode1 = SWIG_AsVal_int(obj0, &val1);
17444 if (!SWIG_IsOK(ecode1)) {
17445 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17446 }
17447 arg1 = static_cast< wxFontEncoding >(val1);
17448 if (obj1) {
17449 ecode2 = SWIG_AsVal_int(obj1, &val2);
17450 if (!SWIG_IsOK(ecode2)) {
17451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17452 }
17453 arg2 = static_cast< int >(val2);
17454 }
17455 {
17456 PyThreadState* __tstate = wxPyBeginAllowThreads();
17457 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17458 wxPyEndAllowThreads(__tstate);
17459 if (PyErr_Occurred()) SWIG_fail;
17460 }
17461 {
17462 resultobj = PyList_New(0);
17463 for (size_t i=0; i < (&result)->GetCount(); i++) {
17464 PyObject* number = PyInt_FromLong((&result)->Item(i));
17465 PyList_Append(resultobj, number);
17466 Py_DECREF(number);
17467 }
17468 }
17469 return resultobj;
17470 fail:
17471 return NULL;
17472 }
17473
17474
17475 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17476 PyObject *resultobj = 0;
17477 wxFontEncoding arg1 ;
17478 wxFontEncodingArray result;
17479 int val1 ;
17480 int ecode1 = 0 ;
17481 PyObject * obj0 = 0 ;
17482 char * kwnames[] = {
17483 (char *) "enc", NULL
17484 };
17485
17486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17487 ecode1 = SWIG_AsVal_int(obj0, &val1);
17488 if (!SWIG_IsOK(ecode1)) {
17489 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17490 }
17491 arg1 = static_cast< wxFontEncoding >(val1);
17492 {
17493 PyThreadState* __tstate = wxPyBeginAllowThreads();
17494 result = wxEncodingConverter::GetAllEquivalents(arg1);
17495 wxPyEndAllowThreads(__tstate);
17496 if (PyErr_Occurred()) SWIG_fail;
17497 }
17498 {
17499 resultobj = PyList_New(0);
17500 for (size_t i=0; i < (&result)->GetCount(); i++) {
17501 PyObject* number = PyInt_FromLong((&result)->Item(i));
17502 PyList_Append(resultobj, number);
17503 Py_DECREF(number);
17504 }
17505 }
17506 return resultobj;
17507 fail:
17508 return NULL;
17509 }
17510
17511
17512 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17513 PyObject *resultobj = 0;
17514 wxFontEncoding arg1 ;
17515 wxFontEncoding arg2 ;
17516 bool result;
17517 int val1 ;
17518 int ecode1 = 0 ;
17519 int val2 ;
17520 int ecode2 = 0 ;
17521 PyObject * obj0 = 0 ;
17522 PyObject * obj1 = 0 ;
17523 char * kwnames[] = {
17524 (char *) "encIn",(char *) "encOut", NULL
17525 };
17526
17527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17528 ecode1 = SWIG_AsVal_int(obj0, &val1);
17529 if (!SWIG_IsOK(ecode1)) {
17530 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17531 }
17532 arg1 = static_cast< wxFontEncoding >(val1);
17533 ecode2 = SWIG_AsVal_int(obj1, &val2);
17534 if (!SWIG_IsOK(ecode2)) {
17535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17536 }
17537 arg2 = static_cast< wxFontEncoding >(val2);
17538 {
17539 PyThreadState* __tstate = wxPyBeginAllowThreads();
17540 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17541 wxPyEndAllowThreads(__tstate);
17542 if (PyErr_Occurred()) SWIG_fail;
17543 }
17544 {
17545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17546 }
17547 return resultobj;
17548 fail:
17549 return NULL;
17550 }
17551
17552
17553 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17554 PyObject *obj;
17555 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17556 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17557 return SWIG_Py_Void();
17558 }
17559
17560 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17561 return SWIG_Python_InitShadowInstance(args);
17562 }
17563
17564 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17565 PyObject *resultobj = 0;
17566 wxDC *arg1 = (wxDC *) 0 ;
17567 void *argp1 = 0 ;
17568 int res1 = 0 ;
17569 PyObject *swig_obj[1] ;
17570
17571 if (!args) SWIG_fail;
17572 swig_obj[0] = args;
17573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17574 if (!SWIG_IsOK(res1)) {
17575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17576 }
17577 arg1 = reinterpret_cast< wxDC * >(argp1);
17578 {
17579 PyThreadState* __tstate = wxPyBeginAllowThreads();
17580 delete arg1;
17581
17582 wxPyEndAllowThreads(__tstate);
17583 if (PyErr_Occurred()) SWIG_fail;
17584 }
17585 resultobj = SWIG_Py_Void();
17586 return resultobj;
17587 fail:
17588 return NULL;
17589 }
17590
17591
17592 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17593 PyObject *resultobj = 0;
17594 wxDC *arg1 = (wxDC *) 0 ;
17595 int arg2 ;
17596 int arg3 ;
17597 wxColour *arg4 = 0 ;
17598 int arg5 = (int) wxFLOOD_SURFACE ;
17599 bool result;
17600 void *argp1 = 0 ;
17601 int res1 = 0 ;
17602 int val2 ;
17603 int ecode2 = 0 ;
17604 int val3 ;
17605 int ecode3 = 0 ;
17606 wxColour temp4 ;
17607 int val5 ;
17608 int ecode5 = 0 ;
17609 PyObject * obj0 = 0 ;
17610 PyObject * obj1 = 0 ;
17611 PyObject * obj2 = 0 ;
17612 PyObject * obj3 = 0 ;
17613 PyObject * obj4 = 0 ;
17614 char * kwnames[] = {
17615 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17616 };
17617
17618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17620 if (!SWIG_IsOK(res1)) {
17621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17622 }
17623 arg1 = reinterpret_cast< wxDC * >(argp1);
17624 ecode2 = SWIG_AsVal_int(obj1, &val2);
17625 if (!SWIG_IsOK(ecode2)) {
17626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17627 }
17628 arg2 = static_cast< int >(val2);
17629 ecode3 = SWIG_AsVal_int(obj2, &val3);
17630 if (!SWIG_IsOK(ecode3)) {
17631 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17632 }
17633 arg3 = static_cast< int >(val3);
17634 {
17635 arg4 = &temp4;
17636 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17637 }
17638 if (obj4) {
17639 ecode5 = SWIG_AsVal_int(obj4, &val5);
17640 if (!SWIG_IsOK(ecode5)) {
17641 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17642 }
17643 arg5 = static_cast< int >(val5);
17644 }
17645 {
17646 PyThreadState* __tstate = wxPyBeginAllowThreads();
17647 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17648 wxPyEndAllowThreads(__tstate);
17649 if (PyErr_Occurred()) SWIG_fail;
17650 }
17651 {
17652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17653 }
17654 return resultobj;
17655 fail:
17656 return NULL;
17657 }
17658
17659
17660 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17661 PyObject *resultobj = 0;
17662 wxDC *arg1 = (wxDC *) 0 ;
17663 wxPoint *arg2 = 0 ;
17664 wxColour *arg3 = 0 ;
17665 int arg4 = (int) wxFLOOD_SURFACE ;
17666 bool result;
17667 void *argp1 = 0 ;
17668 int res1 = 0 ;
17669 wxPoint temp2 ;
17670 wxColour temp3 ;
17671 int val4 ;
17672 int ecode4 = 0 ;
17673 PyObject * obj0 = 0 ;
17674 PyObject * obj1 = 0 ;
17675 PyObject * obj2 = 0 ;
17676 PyObject * obj3 = 0 ;
17677 char * kwnames[] = {
17678 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17679 };
17680
17681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17683 if (!SWIG_IsOK(res1)) {
17684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17685 }
17686 arg1 = reinterpret_cast< wxDC * >(argp1);
17687 {
17688 arg2 = &temp2;
17689 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17690 }
17691 {
17692 arg3 = &temp3;
17693 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17694 }
17695 if (obj3) {
17696 ecode4 = SWIG_AsVal_int(obj3, &val4);
17697 if (!SWIG_IsOK(ecode4)) {
17698 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17699 }
17700 arg4 = static_cast< int >(val4);
17701 }
17702 {
17703 PyThreadState* __tstate = wxPyBeginAllowThreads();
17704 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17705 wxPyEndAllowThreads(__tstate);
17706 if (PyErr_Occurred()) SWIG_fail;
17707 }
17708 {
17709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17710 }
17711 return resultobj;
17712 fail:
17713 return NULL;
17714 }
17715
17716
17717 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17718 PyObject *resultobj = 0;
17719 wxDC *arg1 = (wxDC *) 0 ;
17720 wxRect *arg2 = 0 ;
17721 wxColour *arg3 = 0 ;
17722 wxColour *arg4 = 0 ;
17723 wxPoint *arg5 = 0 ;
17724 void *argp1 = 0 ;
17725 int res1 = 0 ;
17726 wxRect temp2 ;
17727 wxColour temp3 ;
17728 wxColour temp4 ;
17729 wxPoint temp5 ;
17730 PyObject * obj0 = 0 ;
17731 PyObject * obj1 = 0 ;
17732 PyObject * obj2 = 0 ;
17733 PyObject * obj3 = 0 ;
17734 PyObject * obj4 = 0 ;
17735 char * kwnames[] = {
17736 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17737 };
17738
17739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17741 if (!SWIG_IsOK(res1)) {
17742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17743 }
17744 arg1 = reinterpret_cast< wxDC * >(argp1);
17745 {
17746 arg2 = &temp2;
17747 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17748 }
17749 {
17750 arg3 = &temp3;
17751 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17752 }
17753 {
17754 arg4 = &temp4;
17755 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17756 }
17757 {
17758 arg5 = &temp5;
17759 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17760 }
17761 {
17762 PyThreadState* __tstate = wxPyBeginAllowThreads();
17763 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17764 wxPyEndAllowThreads(__tstate);
17765 if (PyErr_Occurred()) SWIG_fail;
17766 }
17767 resultobj = SWIG_Py_Void();
17768 return resultobj;
17769 fail:
17770 return NULL;
17771 }
17772
17773
17774 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17775 PyObject *resultobj = 0;
17776 wxDC *arg1 = (wxDC *) 0 ;
17777 wxRect *arg2 = 0 ;
17778 wxColour *arg3 = 0 ;
17779 wxColour *arg4 = 0 ;
17780 wxDirection arg5 = (wxDirection) wxEAST ;
17781 void *argp1 = 0 ;
17782 int res1 = 0 ;
17783 wxRect temp2 ;
17784 wxColour temp3 ;
17785 wxColour temp4 ;
17786 int val5 ;
17787 int ecode5 = 0 ;
17788 PyObject * obj0 = 0 ;
17789 PyObject * obj1 = 0 ;
17790 PyObject * obj2 = 0 ;
17791 PyObject * obj3 = 0 ;
17792 PyObject * obj4 = 0 ;
17793 char * kwnames[] = {
17794 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17795 };
17796
17797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17799 if (!SWIG_IsOK(res1)) {
17800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17801 }
17802 arg1 = reinterpret_cast< wxDC * >(argp1);
17803 {
17804 arg2 = &temp2;
17805 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17806 }
17807 {
17808 arg3 = &temp3;
17809 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17810 }
17811 {
17812 arg4 = &temp4;
17813 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17814 }
17815 if (obj4) {
17816 ecode5 = SWIG_AsVal_int(obj4, &val5);
17817 if (!SWIG_IsOK(ecode5)) {
17818 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17819 }
17820 arg5 = static_cast< wxDirection >(val5);
17821 }
17822 {
17823 PyThreadState* __tstate = wxPyBeginAllowThreads();
17824 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17825 wxPyEndAllowThreads(__tstate);
17826 if (PyErr_Occurred()) SWIG_fail;
17827 }
17828 resultobj = SWIG_Py_Void();
17829 return resultobj;
17830 fail:
17831 return NULL;
17832 }
17833
17834
17835 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17836 PyObject *resultobj = 0;
17837 wxDC *arg1 = (wxDC *) 0 ;
17838 int arg2 ;
17839 int arg3 ;
17840 wxColour result;
17841 void *argp1 = 0 ;
17842 int res1 = 0 ;
17843 int val2 ;
17844 int ecode2 = 0 ;
17845 int val3 ;
17846 int ecode3 = 0 ;
17847 PyObject * obj0 = 0 ;
17848 PyObject * obj1 = 0 ;
17849 PyObject * obj2 = 0 ;
17850 char * kwnames[] = {
17851 (char *) "self",(char *) "x",(char *) "y", NULL
17852 };
17853
17854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17856 if (!SWIG_IsOK(res1)) {
17857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17858 }
17859 arg1 = reinterpret_cast< wxDC * >(argp1);
17860 ecode2 = SWIG_AsVal_int(obj1, &val2);
17861 if (!SWIG_IsOK(ecode2)) {
17862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17863 }
17864 arg2 = static_cast< int >(val2);
17865 ecode3 = SWIG_AsVal_int(obj2, &val3);
17866 if (!SWIG_IsOK(ecode3)) {
17867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17868 }
17869 arg3 = static_cast< int >(val3);
17870 {
17871 PyThreadState* __tstate = wxPyBeginAllowThreads();
17872 result = wxDC_GetPixel(arg1,arg2,arg3);
17873 wxPyEndAllowThreads(__tstate);
17874 if (PyErr_Occurred()) SWIG_fail;
17875 }
17876 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17877 return resultobj;
17878 fail:
17879 return NULL;
17880 }
17881
17882
17883 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17884 PyObject *resultobj = 0;
17885 wxDC *arg1 = (wxDC *) 0 ;
17886 wxPoint *arg2 = 0 ;
17887 wxColour result;
17888 void *argp1 = 0 ;
17889 int res1 = 0 ;
17890 wxPoint temp2 ;
17891 PyObject * obj0 = 0 ;
17892 PyObject * obj1 = 0 ;
17893 char * kwnames[] = {
17894 (char *) "self",(char *) "pt", NULL
17895 };
17896
17897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17899 if (!SWIG_IsOK(res1)) {
17900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17901 }
17902 arg1 = reinterpret_cast< wxDC * >(argp1);
17903 {
17904 arg2 = &temp2;
17905 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17906 }
17907 {
17908 PyThreadState* __tstate = wxPyBeginAllowThreads();
17909 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17910 wxPyEndAllowThreads(__tstate);
17911 if (PyErr_Occurred()) SWIG_fail;
17912 }
17913 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17914 return resultobj;
17915 fail:
17916 return NULL;
17917 }
17918
17919
17920 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17921 PyObject *resultobj = 0;
17922 wxDC *arg1 = (wxDC *) 0 ;
17923 int arg2 ;
17924 int arg3 ;
17925 int arg4 ;
17926 int arg5 ;
17927 void *argp1 = 0 ;
17928 int res1 = 0 ;
17929 int val2 ;
17930 int ecode2 = 0 ;
17931 int val3 ;
17932 int ecode3 = 0 ;
17933 int val4 ;
17934 int ecode4 = 0 ;
17935 int val5 ;
17936 int ecode5 = 0 ;
17937 PyObject * obj0 = 0 ;
17938 PyObject * obj1 = 0 ;
17939 PyObject * obj2 = 0 ;
17940 PyObject * obj3 = 0 ;
17941 PyObject * obj4 = 0 ;
17942 char * kwnames[] = {
17943 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17944 };
17945
17946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17948 if (!SWIG_IsOK(res1)) {
17949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17950 }
17951 arg1 = reinterpret_cast< wxDC * >(argp1);
17952 ecode2 = SWIG_AsVal_int(obj1, &val2);
17953 if (!SWIG_IsOK(ecode2)) {
17954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17955 }
17956 arg2 = static_cast< int >(val2);
17957 ecode3 = SWIG_AsVal_int(obj2, &val3);
17958 if (!SWIG_IsOK(ecode3)) {
17959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17960 }
17961 arg3 = static_cast< int >(val3);
17962 ecode4 = SWIG_AsVal_int(obj3, &val4);
17963 if (!SWIG_IsOK(ecode4)) {
17964 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17965 }
17966 arg4 = static_cast< int >(val4);
17967 ecode5 = SWIG_AsVal_int(obj4, &val5);
17968 if (!SWIG_IsOK(ecode5)) {
17969 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17970 }
17971 arg5 = static_cast< int >(val5);
17972 {
17973 PyThreadState* __tstate = wxPyBeginAllowThreads();
17974 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17975 wxPyEndAllowThreads(__tstate);
17976 if (PyErr_Occurred()) SWIG_fail;
17977 }
17978 resultobj = SWIG_Py_Void();
17979 return resultobj;
17980 fail:
17981 return NULL;
17982 }
17983
17984
17985 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17986 PyObject *resultobj = 0;
17987 wxDC *arg1 = (wxDC *) 0 ;
17988 wxPoint *arg2 = 0 ;
17989 wxPoint *arg3 = 0 ;
17990 void *argp1 = 0 ;
17991 int res1 = 0 ;
17992 wxPoint temp2 ;
17993 wxPoint temp3 ;
17994 PyObject * obj0 = 0 ;
17995 PyObject * obj1 = 0 ;
17996 PyObject * obj2 = 0 ;
17997 char * kwnames[] = {
17998 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17999 };
18000
18001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18003 if (!SWIG_IsOK(res1)) {
18004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18005 }
18006 arg1 = reinterpret_cast< wxDC * >(argp1);
18007 {
18008 arg2 = &temp2;
18009 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18010 }
18011 {
18012 arg3 = &temp3;
18013 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18014 }
18015 {
18016 PyThreadState* __tstate = wxPyBeginAllowThreads();
18017 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18018 wxPyEndAllowThreads(__tstate);
18019 if (PyErr_Occurred()) SWIG_fail;
18020 }
18021 resultobj = SWIG_Py_Void();
18022 return resultobj;
18023 fail:
18024 return NULL;
18025 }
18026
18027
18028 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18029 PyObject *resultobj = 0;
18030 wxDC *arg1 = (wxDC *) 0 ;
18031 int arg2 ;
18032 int arg3 ;
18033 void *argp1 = 0 ;
18034 int res1 = 0 ;
18035 int val2 ;
18036 int ecode2 = 0 ;
18037 int val3 ;
18038 int ecode3 = 0 ;
18039 PyObject * obj0 = 0 ;
18040 PyObject * obj1 = 0 ;
18041 PyObject * obj2 = 0 ;
18042 char * kwnames[] = {
18043 (char *) "self",(char *) "x",(char *) "y", NULL
18044 };
18045
18046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18048 if (!SWIG_IsOK(res1)) {
18049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18050 }
18051 arg1 = reinterpret_cast< wxDC * >(argp1);
18052 ecode2 = SWIG_AsVal_int(obj1, &val2);
18053 if (!SWIG_IsOK(ecode2)) {
18054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18055 }
18056 arg2 = static_cast< int >(val2);
18057 ecode3 = SWIG_AsVal_int(obj2, &val3);
18058 if (!SWIG_IsOK(ecode3)) {
18059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18060 }
18061 arg3 = static_cast< int >(val3);
18062 {
18063 PyThreadState* __tstate = wxPyBeginAllowThreads();
18064 (arg1)->CrossHair(arg2,arg3);
18065 wxPyEndAllowThreads(__tstate);
18066 if (PyErr_Occurred()) SWIG_fail;
18067 }
18068 resultobj = SWIG_Py_Void();
18069 return resultobj;
18070 fail:
18071 return NULL;
18072 }
18073
18074
18075 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18076 PyObject *resultobj = 0;
18077 wxDC *arg1 = (wxDC *) 0 ;
18078 wxPoint *arg2 = 0 ;
18079 void *argp1 = 0 ;
18080 int res1 = 0 ;
18081 wxPoint temp2 ;
18082 PyObject * obj0 = 0 ;
18083 PyObject * obj1 = 0 ;
18084 char * kwnames[] = {
18085 (char *) "self",(char *) "pt", NULL
18086 };
18087
18088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18090 if (!SWIG_IsOK(res1)) {
18091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18092 }
18093 arg1 = reinterpret_cast< wxDC * >(argp1);
18094 {
18095 arg2 = &temp2;
18096 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18097 }
18098 {
18099 PyThreadState* __tstate = wxPyBeginAllowThreads();
18100 (arg1)->CrossHair((wxPoint const &)*arg2);
18101 wxPyEndAllowThreads(__tstate);
18102 if (PyErr_Occurred()) SWIG_fail;
18103 }
18104 resultobj = SWIG_Py_Void();
18105 return resultobj;
18106 fail:
18107 return NULL;
18108 }
18109
18110
18111 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18112 PyObject *resultobj = 0;
18113 wxDC *arg1 = (wxDC *) 0 ;
18114 int arg2 ;
18115 int arg3 ;
18116 int arg4 ;
18117 int arg5 ;
18118 int arg6 ;
18119 int arg7 ;
18120 void *argp1 = 0 ;
18121 int res1 = 0 ;
18122 int val2 ;
18123 int ecode2 = 0 ;
18124 int val3 ;
18125 int ecode3 = 0 ;
18126 int val4 ;
18127 int ecode4 = 0 ;
18128 int val5 ;
18129 int ecode5 = 0 ;
18130 int val6 ;
18131 int ecode6 = 0 ;
18132 int val7 ;
18133 int ecode7 = 0 ;
18134 PyObject * obj0 = 0 ;
18135 PyObject * obj1 = 0 ;
18136 PyObject * obj2 = 0 ;
18137 PyObject * obj3 = 0 ;
18138 PyObject * obj4 = 0 ;
18139 PyObject * obj5 = 0 ;
18140 PyObject * obj6 = 0 ;
18141 char * kwnames[] = {
18142 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18143 };
18144
18145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18147 if (!SWIG_IsOK(res1)) {
18148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18149 }
18150 arg1 = reinterpret_cast< wxDC * >(argp1);
18151 ecode2 = SWIG_AsVal_int(obj1, &val2);
18152 if (!SWIG_IsOK(ecode2)) {
18153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18154 }
18155 arg2 = static_cast< int >(val2);
18156 ecode3 = SWIG_AsVal_int(obj2, &val3);
18157 if (!SWIG_IsOK(ecode3)) {
18158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18159 }
18160 arg3 = static_cast< int >(val3);
18161 ecode4 = SWIG_AsVal_int(obj3, &val4);
18162 if (!SWIG_IsOK(ecode4)) {
18163 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18164 }
18165 arg4 = static_cast< int >(val4);
18166 ecode5 = SWIG_AsVal_int(obj4, &val5);
18167 if (!SWIG_IsOK(ecode5)) {
18168 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18169 }
18170 arg5 = static_cast< int >(val5);
18171 ecode6 = SWIG_AsVal_int(obj5, &val6);
18172 if (!SWIG_IsOK(ecode6)) {
18173 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18174 }
18175 arg6 = static_cast< int >(val6);
18176 ecode7 = SWIG_AsVal_int(obj6, &val7);
18177 if (!SWIG_IsOK(ecode7)) {
18178 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18179 }
18180 arg7 = static_cast< int >(val7);
18181 {
18182 PyThreadState* __tstate = wxPyBeginAllowThreads();
18183 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18184 wxPyEndAllowThreads(__tstate);
18185 if (PyErr_Occurred()) SWIG_fail;
18186 }
18187 resultobj = SWIG_Py_Void();
18188 return resultobj;
18189 fail:
18190 return NULL;
18191 }
18192
18193
18194 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18195 PyObject *resultobj = 0;
18196 wxDC *arg1 = (wxDC *) 0 ;
18197 wxPoint *arg2 = 0 ;
18198 wxPoint *arg3 = 0 ;
18199 wxPoint *arg4 = 0 ;
18200 void *argp1 = 0 ;
18201 int res1 = 0 ;
18202 wxPoint temp2 ;
18203 wxPoint temp3 ;
18204 wxPoint temp4 ;
18205 PyObject * obj0 = 0 ;
18206 PyObject * obj1 = 0 ;
18207 PyObject * obj2 = 0 ;
18208 PyObject * obj3 = 0 ;
18209 char * kwnames[] = {
18210 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18211 };
18212
18213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18215 if (!SWIG_IsOK(res1)) {
18216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18217 }
18218 arg1 = reinterpret_cast< wxDC * >(argp1);
18219 {
18220 arg2 = &temp2;
18221 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18222 }
18223 {
18224 arg3 = &temp3;
18225 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18226 }
18227 {
18228 arg4 = &temp4;
18229 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18230 }
18231 {
18232 PyThreadState* __tstate = wxPyBeginAllowThreads();
18233 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18234 wxPyEndAllowThreads(__tstate);
18235 if (PyErr_Occurred()) SWIG_fail;
18236 }
18237 resultobj = SWIG_Py_Void();
18238 return resultobj;
18239 fail:
18240 return NULL;
18241 }
18242
18243
18244 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18245 PyObject *resultobj = 0;
18246 wxDC *arg1 = (wxDC *) 0 ;
18247 int arg2 ;
18248 int arg3 ;
18249 int arg4 ;
18250 int arg5 ;
18251 void *argp1 = 0 ;
18252 int res1 = 0 ;
18253 int val2 ;
18254 int ecode2 = 0 ;
18255 int val3 ;
18256 int ecode3 = 0 ;
18257 int val4 ;
18258 int ecode4 = 0 ;
18259 int val5 ;
18260 int ecode5 = 0 ;
18261 PyObject * obj0 = 0 ;
18262 PyObject * obj1 = 0 ;
18263 PyObject * obj2 = 0 ;
18264 PyObject * obj3 = 0 ;
18265 PyObject * obj4 = 0 ;
18266 char * kwnames[] = {
18267 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18268 };
18269
18270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18272 if (!SWIG_IsOK(res1)) {
18273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18274 }
18275 arg1 = reinterpret_cast< wxDC * >(argp1);
18276 ecode2 = SWIG_AsVal_int(obj1, &val2);
18277 if (!SWIG_IsOK(ecode2)) {
18278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18279 }
18280 arg2 = static_cast< int >(val2);
18281 ecode3 = SWIG_AsVal_int(obj2, &val3);
18282 if (!SWIG_IsOK(ecode3)) {
18283 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18284 }
18285 arg3 = static_cast< int >(val3);
18286 ecode4 = SWIG_AsVal_int(obj3, &val4);
18287 if (!SWIG_IsOK(ecode4)) {
18288 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18289 }
18290 arg4 = static_cast< int >(val4);
18291 ecode5 = SWIG_AsVal_int(obj4, &val5);
18292 if (!SWIG_IsOK(ecode5)) {
18293 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18294 }
18295 arg5 = static_cast< int >(val5);
18296 {
18297 PyThreadState* __tstate = wxPyBeginAllowThreads();
18298 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18299 wxPyEndAllowThreads(__tstate);
18300 if (PyErr_Occurred()) SWIG_fail;
18301 }
18302 resultobj = SWIG_Py_Void();
18303 return resultobj;
18304 fail:
18305 return NULL;
18306 }
18307
18308
18309 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18310 PyObject *resultobj = 0;
18311 wxDC *arg1 = (wxDC *) 0 ;
18312 wxRect *arg2 = 0 ;
18313 void *argp1 = 0 ;
18314 int res1 = 0 ;
18315 wxRect temp2 ;
18316 PyObject * obj0 = 0 ;
18317 PyObject * obj1 = 0 ;
18318 char * kwnames[] = {
18319 (char *) "self",(char *) "rect", NULL
18320 };
18321
18322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18324 if (!SWIG_IsOK(res1)) {
18325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18326 }
18327 arg1 = reinterpret_cast< wxDC * >(argp1);
18328 {
18329 arg2 = &temp2;
18330 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18331 }
18332 {
18333 PyThreadState* __tstate = wxPyBeginAllowThreads();
18334 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18335 wxPyEndAllowThreads(__tstate);
18336 if (PyErr_Occurred()) SWIG_fail;
18337 }
18338 resultobj = SWIG_Py_Void();
18339 return resultobj;
18340 fail:
18341 return NULL;
18342 }
18343
18344
18345 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18346 PyObject *resultobj = 0;
18347 wxDC *arg1 = (wxDC *) 0 ;
18348 int arg2 ;
18349 int arg3 ;
18350 int arg4 ;
18351 int arg5 ;
18352 double arg6 ;
18353 double arg7 ;
18354 void *argp1 = 0 ;
18355 int res1 = 0 ;
18356 int val2 ;
18357 int ecode2 = 0 ;
18358 int val3 ;
18359 int ecode3 = 0 ;
18360 int val4 ;
18361 int ecode4 = 0 ;
18362 int val5 ;
18363 int ecode5 = 0 ;
18364 double val6 ;
18365 int ecode6 = 0 ;
18366 double val7 ;
18367 int ecode7 = 0 ;
18368 PyObject * obj0 = 0 ;
18369 PyObject * obj1 = 0 ;
18370 PyObject * obj2 = 0 ;
18371 PyObject * obj3 = 0 ;
18372 PyObject * obj4 = 0 ;
18373 PyObject * obj5 = 0 ;
18374 PyObject * obj6 = 0 ;
18375 char * kwnames[] = {
18376 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18377 };
18378
18379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18381 if (!SWIG_IsOK(res1)) {
18382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18383 }
18384 arg1 = reinterpret_cast< wxDC * >(argp1);
18385 ecode2 = SWIG_AsVal_int(obj1, &val2);
18386 if (!SWIG_IsOK(ecode2)) {
18387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18388 }
18389 arg2 = static_cast< int >(val2);
18390 ecode3 = SWIG_AsVal_int(obj2, &val3);
18391 if (!SWIG_IsOK(ecode3)) {
18392 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18393 }
18394 arg3 = static_cast< int >(val3);
18395 ecode4 = SWIG_AsVal_int(obj3, &val4);
18396 if (!SWIG_IsOK(ecode4)) {
18397 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18398 }
18399 arg4 = static_cast< int >(val4);
18400 ecode5 = SWIG_AsVal_int(obj4, &val5);
18401 if (!SWIG_IsOK(ecode5)) {
18402 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18403 }
18404 arg5 = static_cast< int >(val5);
18405 ecode6 = SWIG_AsVal_double(obj5, &val6);
18406 if (!SWIG_IsOK(ecode6)) {
18407 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18408 }
18409 arg6 = static_cast< double >(val6);
18410 ecode7 = SWIG_AsVal_double(obj6, &val7);
18411 if (!SWIG_IsOK(ecode7)) {
18412 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18413 }
18414 arg7 = static_cast< double >(val7);
18415 {
18416 PyThreadState* __tstate = wxPyBeginAllowThreads();
18417 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18418 wxPyEndAllowThreads(__tstate);
18419 if (PyErr_Occurred()) SWIG_fail;
18420 }
18421 resultobj = SWIG_Py_Void();
18422 return resultobj;
18423 fail:
18424 return NULL;
18425 }
18426
18427
18428 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18429 PyObject *resultobj = 0;
18430 wxDC *arg1 = (wxDC *) 0 ;
18431 wxPoint *arg2 = 0 ;
18432 wxSize *arg3 = 0 ;
18433 double arg4 ;
18434 double arg5 ;
18435 void *argp1 = 0 ;
18436 int res1 = 0 ;
18437 wxPoint temp2 ;
18438 wxSize temp3 ;
18439 double val4 ;
18440 int ecode4 = 0 ;
18441 double val5 ;
18442 int ecode5 = 0 ;
18443 PyObject * obj0 = 0 ;
18444 PyObject * obj1 = 0 ;
18445 PyObject * obj2 = 0 ;
18446 PyObject * obj3 = 0 ;
18447 PyObject * obj4 = 0 ;
18448 char * kwnames[] = {
18449 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18450 };
18451
18452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18454 if (!SWIG_IsOK(res1)) {
18455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18456 }
18457 arg1 = reinterpret_cast< wxDC * >(argp1);
18458 {
18459 arg2 = &temp2;
18460 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18461 }
18462 {
18463 arg3 = &temp3;
18464 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18465 }
18466 ecode4 = SWIG_AsVal_double(obj3, &val4);
18467 if (!SWIG_IsOK(ecode4)) {
18468 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18469 }
18470 arg4 = static_cast< double >(val4);
18471 ecode5 = SWIG_AsVal_double(obj4, &val5);
18472 if (!SWIG_IsOK(ecode5)) {
18473 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18474 }
18475 arg5 = static_cast< double >(val5);
18476 {
18477 PyThreadState* __tstate = wxPyBeginAllowThreads();
18478 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18479 wxPyEndAllowThreads(__tstate);
18480 if (PyErr_Occurred()) SWIG_fail;
18481 }
18482 resultobj = SWIG_Py_Void();
18483 return resultobj;
18484 fail:
18485 return NULL;
18486 }
18487
18488
18489 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18490 PyObject *resultobj = 0;
18491 wxDC *arg1 = (wxDC *) 0 ;
18492 int arg2 ;
18493 int arg3 ;
18494 void *argp1 = 0 ;
18495 int res1 = 0 ;
18496 int val2 ;
18497 int ecode2 = 0 ;
18498 int val3 ;
18499 int ecode3 = 0 ;
18500 PyObject * obj0 = 0 ;
18501 PyObject * obj1 = 0 ;
18502 PyObject * obj2 = 0 ;
18503 char * kwnames[] = {
18504 (char *) "self",(char *) "x",(char *) "y", NULL
18505 };
18506
18507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18509 if (!SWIG_IsOK(res1)) {
18510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18511 }
18512 arg1 = reinterpret_cast< wxDC * >(argp1);
18513 ecode2 = SWIG_AsVal_int(obj1, &val2);
18514 if (!SWIG_IsOK(ecode2)) {
18515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18516 }
18517 arg2 = static_cast< int >(val2);
18518 ecode3 = SWIG_AsVal_int(obj2, &val3);
18519 if (!SWIG_IsOK(ecode3)) {
18520 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18521 }
18522 arg3 = static_cast< int >(val3);
18523 {
18524 PyThreadState* __tstate = wxPyBeginAllowThreads();
18525 (arg1)->DrawPoint(arg2,arg3);
18526 wxPyEndAllowThreads(__tstate);
18527 if (PyErr_Occurred()) SWIG_fail;
18528 }
18529 resultobj = SWIG_Py_Void();
18530 return resultobj;
18531 fail:
18532 return NULL;
18533 }
18534
18535
18536 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18537 PyObject *resultobj = 0;
18538 wxDC *arg1 = (wxDC *) 0 ;
18539 wxPoint *arg2 = 0 ;
18540 void *argp1 = 0 ;
18541 int res1 = 0 ;
18542 wxPoint temp2 ;
18543 PyObject * obj0 = 0 ;
18544 PyObject * obj1 = 0 ;
18545 char * kwnames[] = {
18546 (char *) "self",(char *) "pt", NULL
18547 };
18548
18549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18551 if (!SWIG_IsOK(res1)) {
18552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18553 }
18554 arg1 = reinterpret_cast< wxDC * >(argp1);
18555 {
18556 arg2 = &temp2;
18557 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18558 }
18559 {
18560 PyThreadState* __tstate = wxPyBeginAllowThreads();
18561 (arg1)->DrawPoint((wxPoint const &)*arg2);
18562 wxPyEndAllowThreads(__tstate);
18563 if (PyErr_Occurred()) SWIG_fail;
18564 }
18565 resultobj = SWIG_Py_Void();
18566 return resultobj;
18567 fail:
18568 return NULL;
18569 }
18570
18571
18572 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18573 PyObject *resultobj = 0;
18574 wxDC *arg1 = (wxDC *) 0 ;
18575 int arg2 ;
18576 int arg3 ;
18577 int arg4 ;
18578 int arg5 ;
18579 void *argp1 = 0 ;
18580 int res1 = 0 ;
18581 int val2 ;
18582 int ecode2 = 0 ;
18583 int val3 ;
18584 int ecode3 = 0 ;
18585 int val4 ;
18586 int ecode4 = 0 ;
18587 int val5 ;
18588 int ecode5 = 0 ;
18589 PyObject * obj0 = 0 ;
18590 PyObject * obj1 = 0 ;
18591 PyObject * obj2 = 0 ;
18592 PyObject * obj3 = 0 ;
18593 PyObject * obj4 = 0 ;
18594 char * kwnames[] = {
18595 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18596 };
18597
18598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18600 if (!SWIG_IsOK(res1)) {
18601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18602 }
18603 arg1 = reinterpret_cast< wxDC * >(argp1);
18604 ecode2 = SWIG_AsVal_int(obj1, &val2);
18605 if (!SWIG_IsOK(ecode2)) {
18606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18607 }
18608 arg2 = static_cast< int >(val2);
18609 ecode3 = SWIG_AsVal_int(obj2, &val3);
18610 if (!SWIG_IsOK(ecode3)) {
18611 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18612 }
18613 arg3 = static_cast< int >(val3);
18614 ecode4 = SWIG_AsVal_int(obj3, &val4);
18615 if (!SWIG_IsOK(ecode4)) {
18616 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18617 }
18618 arg4 = static_cast< int >(val4);
18619 ecode5 = SWIG_AsVal_int(obj4, &val5);
18620 if (!SWIG_IsOK(ecode5)) {
18621 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18622 }
18623 arg5 = static_cast< int >(val5);
18624 {
18625 PyThreadState* __tstate = wxPyBeginAllowThreads();
18626 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18627 wxPyEndAllowThreads(__tstate);
18628 if (PyErr_Occurred()) SWIG_fail;
18629 }
18630 resultobj = SWIG_Py_Void();
18631 return resultobj;
18632 fail:
18633 return NULL;
18634 }
18635
18636
18637 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18638 PyObject *resultobj = 0;
18639 wxDC *arg1 = (wxDC *) 0 ;
18640 wxRect *arg2 = 0 ;
18641 void *argp1 = 0 ;
18642 int res1 = 0 ;
18643 wxRect temp2 ;
18644 PyObject * obj0 = 0 ;
18645 PyObject * obj1 = 0 ;
18646 char * kwnames[] = {
18647 (char *) "self",(char *) "rect", NULL
18648 };
18649
18650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18652 if (!SWIG_IsOK(res1)) {
18653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18654 }
18655 arg1 = reinterpret_cast< wxDC * >(argp1);
18656 {
18657 arg2 = &temp2;
18658 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18659 }
18660 {
18661 PyThreadState* __tstate = wxPyBeginAllowThreads();
18662 (arg1)->DrawRectangle((wxRect const &)*arg2);
18663 wxPyEndAllowThreads(__tstate);
18664 if (PyErr_Occurred()) SWIG_fail;
18665 }
18666 resultobj = SWIG_Py_Void();
18667 return resultobj;
18668 fail:
18669 return NULL;
18670 }
18671
18672
18673 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18674 PyObject *resultobj = 0;
18675 wxDC *arg1 = (wxDC *) 0 ;
18676 wxPoint *arg2 = 0 ;
18677 wxSize *arg3 = 0 ;
18678 void *argp1 = 0 ;
18679 int res1 = 0 ;
18680 wxPoint temp2 ;
18681 wxSize temp3 ;
18682 PyObject * obj0 = 0 ;
18683 PyObject * obj1 = 0 ;
18684 PyObject * obj2 = 0 ;
18685 char * kwnames[] = {
18686 (char *) "self",(char *) "pt",(char *) "sz", NULL
18687 };
18688
18689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18691 if (!SWIG_IsOK(res1)) {
18692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18693 }
18694 arg1 = reinterpret_cast< wxDC * >(argp1);
18695 {
18696 arg2 = &temp2;
18697 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18698 }
18699 {
18700 arg3 = &temp3;
18701 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18702 }
18703 {
18704 PyThreadState* __tstate = wxPyBeginAllowThreads();
18705 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18706 wxPyEndAllowThreads(__tstate);
18707 if (PyErr_Occurred()) SWIG_fail;
18708 }
18709 resultobj = SWIG_Py_Void();
18710 return resultobj;
18711 fail:
18712 return NULL;
18713 }
18714
18715
18716 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18717 PyObject *resultobj = 0;
18718 wxDC *arg1 = (wxDC *) 0 ;
18719 int arg2 ;
18720 int arg3 ;
18721 int arg4 ;
18722 int arg5 ;
18723 double arg6 ;
18724 void *argp1 = 0 ;
18725 int res1 = 0 ;
18726 int val2 ;
18727 int ecode2 = 0 ;
18728 int val3 ;
18729 int ecode3 = 0 ;
18730 int val4 ;
18731 int ecode4 = 0 ;
18732 int val5 ;
18733 int ecode5 = 0 ;
18734 double val6 ;
18735 int ecode6 = 0 ;
18736 PyObject * obj0 = 0 ;
18737 PyObject * obj1 = 0 ;
18738 PyObject * obj2 = 0 ;
18739 PyObject * obj3 = 0 ;
18740 PyObject * obj4 = 0 ;
18741 PyObject * obj5 = 0 ;
18742 char * kwnames[] = {
18743 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18744 };
18745
18746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18748 if (!SWIG_IsOK(res1)) {
18749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18750 }
18751 arg1 = reinterpret_cast< wxDC * >(argp1);
18752 ecode2 = SWIG_AsVal_int(obj1, &val2);
18753 if (!SWIG_IsOK(ecode2)) {
18754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18755 }
18756 arg2 = static_cast< int >(val2);
18757 ecode3 = SWIG_AsVal_int(obj2, &val3);
18758 if (!SWIG_IsOK(ecode3)) {
18759 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18760 }
18761 arg3 = static_cast< int >(val3);
18762 ecode4 = SWIG_AsVal_int(obj3, &val4);
18763 if (!SWIG_IsOK(ecode4)) {
18764 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18765 }
18766 arg4 = static_cast< int >(val4);
18767 ecode5 = SWIG_AsVal_int(obj4, &val5);
18768 if (!SWIG_IsOK(ecode5)) {
18769 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18770 }
18771 arg5 = static_cast< int >(val5);
18772 ecode6 = SWIG_AsVal_double(obj5, &val6);
18773 if (!SWIG_IsOK(ecode6)) {
18774 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18775 }
18776 arg6 = static_cast< double >(val6);
18777 {
18778 PyThreadState* __tstate = wxPyBeginAllowThreads();
18779 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18780 wxPyEndAllowThreads(__tstate);
18781 if (PyErr_Occurred()) SWIG_fail;
18782 }
18783 resultobj = SWIG_Py_Void();
18784 return resultobj;
18785 fail:
18786 return NULL;
18787 }
18788
18789
18790 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18791 PyObject *resultobj = 0;
18792 wxDC *arg1 = (wxDC *) 0 ;
18793 wxRect *arg2 = 0 ;
18794 double arg3 ;
18795 void *argp1 = 0 ;
18796 int res1 = 0 ;
18797 wxRect temp2 ;
18798 double val3 ;
18799 int ecode3 = 0 ;
18800 PyObject * obj0 = 0 ;
18801 PyObject * obj1 = 0 ;
18802 PyObject * obj2 = 0 ;
18803 char * kwnames[] = {
18804 (char *) "self",(char *) "r",(char *) "radius", NULL
18805 };
18806
18807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18809 if (!SWIG_IsOK(res1)) {
18810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18811 }
18812 arg1 = reinterpret_cast< wxDC * >(argp1);
18813 {
18814 arg2 = &temp2;
18815 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18816 }
18817 ecode3 = SWIG_AsVal_double(obj2, &val3);
18818 if (!SWIG_IsOK(ecode3)) {
18819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18820 }
18821 arg3 = static_cast< double >(val3);
18822 {
18823 PyThreadState* __tstate = wxPyBeginAllowThreads();
18824 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18825 wxPyEndAllowThreads(__tstate);
18826 if (PyErr_Occurred()) SWIG_fail;
18827 }
18828 resultobj = SWIG_Py_Void();
18829 return resultobj;
18830 fail:
18831 return NULL;
18832 }
18833
18834
18835 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18836 PyObject *resultobj = 0;
18837 wxDC *arg1 = (wxDC *) 0 ;
18838 wxPoint *arg2 = 0 ;
18839 wxSize *arg3 = 0 ;
18840 double arg4 ;
18841 void *argp1 = 0 ;
18842 int res1 = 0 ;
18843 wxPoint temp2 ;
18844 wxSize temp3 ;
18845 double val4 ;
18846 int ecode4 = 0 ;
18847 PyObject * obj0 = 0 ;
18848 PyObject * obj1 = 0 ;
18849 PyObject * obj2 = 0 ;
18850 PyObject * obj3 = 0 ;
18851 char * kwnames[] = {
18852 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18853 };
18854
18855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18857 if (!SWIG_IsOK(res1)) {
18858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18859 }
18860 arg1 = reinterpret_cast< wxDC * >(argp1);
18861 {
18862 arg2 = &temp2;
18863 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18864 }
18865 {
18866 arg3 = &temp3;
18867 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18868 }
18869 ecode4 = SWIG_AsVal_double(obj3, &val4);
18870 if (!SWIG_IsOK(ecode4)) {
18871 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18872 }
18873 arg4 = static_cast< double >(val4);
18874 {
18875 PyThreadState* __tstate = wxPyBeginAllowThreads();
18876 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18877 wxPyEndAllowThreads(__tstate);
18878 if (PyErr_Occurred()) SWIG_fail;
18879 }
18880 resultobj = SWIG_Py_Void();
18881 return resultobj;
18882 fail:
18883 return NULL;
18884 }
18885
18886
18887 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18888 PyObject *resultobj = 0;
18889 wxDC *arg1 = (wxDC *) 0 ;
18890 int arg2 ;
18891 int arg3 ;
18892 int arg4 ;
18893 void *argp1 = 0 ;
18894 int res1 = 0 ;
18895 int val2 ;
18896 int ecode2 = 0 ;
18897 int val3 ;
18898 int ecode3 = 0 ;
18899 int val4 ;
18900 int ecode4 = 0 ;
18901 PyObject * obj0 = 0 ;
18902 PyObject * obj1 = 0 ;
18903 PyObject * obj2 = 0 ;
18904 PyObject * obj3 = 0 ;
18905 char * kwnames[] = {
18906 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18907 };
18908
18909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18911 if (!SWIG_IsOK(res1)) {
18912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18913 }
18914 arg1 = reinterpret_cast< wxDC * >(argp1);
18915 ecode2 = SWIG_AsVal_int(obj1, &val2);
18916 if (!SWIG_IsOK(ecode2)) {
18917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18918 }
18919 arg2 = static_cast< int >(val2);
18920 ecode3 = SWIG_AsVal_int(obj2, &val3);
18921 if (!SWIG_IsOK(ecode3)) {
18922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18923 }
18924 arg3 = static_cast< int >(val3);
18925 ecode4 = SWIG_AsVal_int(obj3, &val4);
18926 if (!SWIG_IsOK(ecode4)) {
18927 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18928 }
18929 arg4 = static_cast< int >(val4);
18930 {
18931 PyThreadState* __tstate = wxPyBeginAllowThreads();
18932 (arg1)->DrawCircle(arg2,arg3,arg4);
18933 wxPyEndAllowThreads(__tstate);
18934 if (PyErr_Occurred()) SWIG_fail;
18935 }
18936 resultobj = SWIG_Py_Void();
18937 return resultobj;
18938 fail:
18939 return NULL;
18940 }
18941
18942
18943 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18944 PyObject *resultobj = 0;
18945 wxDC *arg1 = (wxDC *) 0 ;
18946 wxPoint *arg2 = 0 ;
18947 int arg3 ;
18948 void *argp1 = 0 ;
18949 int res1 = 0 ;
18950 wxPoint temp2 ;
18951 int val3 ;
18952 int ecode3 = 0 ;
18953 PyObject * obj0 = 0 ;
18954 PyObject * obj1 = 0 ;
18955 PyObject * obj2 = 0 ;
18956 char * kwnames[] = {
18957 (char *) "self",(char *) "pt",(char *) "radius", NULL
18958 };
18959
18960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18962 if (!SWIG_IsOK(res1)) {
18963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18964 }
18965 arg1 = reinterpret_cast< wxDC * >(argp1);
18966 {
18967 arg2 = &temp2;
18968 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18969 }
18970 ecode3 = SWIG_AsVal_int(obj2, &val3);
18971 if (!SWIG_IsOK(ecode3)) {
18972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18973 }
18974 arg3 = static_cast< int >(val3);
18975 {
18976 PyThreadState* __tstate = wxPyBeginAllowThreads();
18977 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18978 wxPyEndAllowThreads(__tstate);
18979 if (PyErr_Occurred()) SWIG_fail;
18980 }
18981 resultobj = SWIG_Py_Void();
18982 return resultobj;
18983 fail:
18984 return NULL;
18985 }
18986
18987
18988 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18989 PyObject *resultobj = 0;
18990 wxDC *arg1 = (wxDC *) 0 ;
18991 int arg2 ;
18992 int arg3 ;
18993 int arg4 ;
18994 int arg5 ;
18995 void *argp1 = 0 ;
18996 int res1 = 0 ;
18997 int val2 ;
18998 int ecode2 = 0 ;
18999 int val3 ;
19000 int ecode3 = 0 ;
19001 int val4 ;
19002 int ecode4 = 0 ;
19003 int val5 ;
19004 int ecode5 = 0 ;
19005 PyObject * obj0 = 0 ;
19006 PyObject * obj1 = 0 ;
19007 PyObject * obj2 = 0 ;
19008 PyObject * obj3 = 0 ;
19009 PyObject * obj4 = 0 ;
19010 char * kwnames[] = {
19011 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19012 };
19013
19014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19016 if (!SWIG_IsOK(res1)) {
19017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19018 }
19019 arg1 = reinterpret_cast< wxDC * >(argp1);
19020 ecode2 = SWIG_AsVal_int(obj1, &val2);
19021 if (!SWIG_IsOK(ecode2)) {
19022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19023 }
19024 arg2 = static_cast< int >(val2);
19025 ecode3 = SWIG_AsVal_int(obj2, &val3);
19026 if (!SWIG_IsOK(ecode3)) {
19027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19028 }
19029 arg3 = static_cast< int >(val3);
19030 ecode4 = SWIG_AsVal_int(obj3, &val4);
19031 if (!SWIG_IsOK(ecode4)) {
19032 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19033 }
19034 arg4 = static_cast< int >(val4);
19035 ecode5 = SWIG_AsVal_int(obj4, &val5);
19036 if (!SWIG_IsOK(ecode5)) {
19037 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19038 }
19039 arg5 = static_cast< int >(val5);
19040 {
19041 PyThreadState* __tstate = wxPyBeginAllowThreads();
19042 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19043 wxPyEndAllowThreads(__tstate);
19044 if (PyErr_Occurred()) SWIG_fail;
19045 }
19046 resultobj = SWIG_Py_Void();
19047 return resultobj;
19048 fail:
19049 return NULL;
19050 }
19051
19052
19053 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19054 PyObject *resultobj = 0;
19055 wxDC *arg1 = (wxDC *) 0 ;
19056 wxRect *arg2 = 0 ;
19057 void *argp1 = 0 ;
19058 int res1 = 0 ;
19059 wxRect temp2 ;
19060 PyObject * obj0 = 0 ;
19061 PyObject * obj1 = 0 ;
19062 char * kwnames[] = {
19063 (char *) "self",(char *) "rect", NULL
19064 };
19065
19066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19068 if (!SWIG_IsOK(res1)) {
19069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19070 }
19071 arg1 = reinterpret_cast< wxDC * >(argp1);
19072 {
19073 arg2 = &temp2;
19074 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19075 }
19076 {
19077 PyThreadState* __tstate = wxPyBeginAllowThreads();
19078 (arg1)->DrawEllipse((wxRect const &)*arg2);
19079 wxPyEndAllowThreads(__tstate);
19080 if (PyErr_Occurred()) SWIG_fail;
19081 }
19082 resultobj = SWIG_Py_Void();
19083 return resultobj;
19084 fail:
19085 return NULL;
19086 }
19087
19088
19089 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19090 PyObject *resultobj = 0;
19091 wxDC *arg1 = (wxDC *) 0 ;
19092 wxPoint *arg2 = 0 ;
19093 wxSize *arg3 = 0 ;
19094 void *argp1 = 0 ;
19095 int res1 = 0 ;
19096 wxPoint temp2 ;
19097 wxSize temp3 ;
19098 PyObject * obj0 = 0 ;
19099 PyObject * obj1 = 0 ;
19100 PyObject * obj2 = 0 ;
19101 char * kwnames[] = {
19102 (char *) "self",(char *) "pt",(char *) "sz", NULL
19103 };
19104
19105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19107 if (!SWIG_IsOK(res1)) {
19108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19109 }
19110 arg1 = reinterpret_cast< wxDC * >(argp1);
19111 {
19112 arg2 = &temp2;
19113 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19114 }
19115 {
19116 arg3 = &temp3;
19117 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19118 }
19119 {
19120 PyThreadState* __tstate = wxPyBeginAllowThreads();
19121 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19122 wxPyEndAllowThreads(__tstate);
19123 if (PyErr_Occurred()) SWIG_fail;
19124 }
19125 resultobj = SWIG_Py_Void();
19126 return resultobj;
19127 fail:
19128 return NULL;
19129 }
19130
19131
19132 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19133 PyObject *resultobj = 0;
19134 wxDC *arg1 = (wxDC *) 0 ;
19135 wxIcon *arg2 = 0 ;
19136 int arg3 ;
19137 int arg4 ;
19138 void *argp1 = 0 ;
19139 int res1 = 0 ;
19140 void *argp2 = 0 ;
19141 int res2 = 0 ;
19142 int val3 ;
19143 int ecode3 = 0 ;
19144 int val4 ;
19145 int ecode4 = 0 ;
19146 PyObject * obj0 = 0 ;
19147 PyObject * obj1 = 0 ;
19148 PyObject * obj2 = 0 ;
19149 PyObject * obj3 = 0 ;
19150 char * kwnames[] = {
19151 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19152 };
19153
19154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19156 if (!SWIG_IsOK(res1)) {
19157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19158 }
19159 arg1 = reinterpret_cast< wxDC * >(argp1);
19160 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19161 if (!SWIG_IsOK(res2)) {
19162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19163 }
19164 if (!argp2) {
19165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19166 }
19167 arg2 = reinterpret_cast< wxIcon * >(argp2);
19168 ecode3 = SWIG_AsVal_int(obj2, &val3);
19169 if (!SWIG_IsOK(ecode3)) {
19170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19171 }
19172 arg3 = static_cast< int >(val3);
19173 ecode4 = SWIG_AsVal_int(obj3, &val4);
19174 if (!SWIG_IsOK(ecode4)) {
19175 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19176 }
19177 arg4 = static_cast< int >(val4);
19178 {
19179 PyThreadState* __tstate = wxPyBeginAllowThreads();
19180 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19181 wxPyEndAllowThreads(__tstate);
19182 if (PyErr_Occurred()) SWIG_fail;
19183 }
19184 resultobj = SWIG_Py_Void();
19185 return resultobj;
19186 fail:
19187 return NULL;
19188 }
19189
19190
19191 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19192 PyObject *resultobj = 0;
19193 wxDC *arg1 = (wxDC *) 0 ;
19194 wxIcon *arg2 = 0 ;
19195 wxPoint *arg3 = 0 ;
19196 void *argp1 = 0 ;
19197 int res1 = 0 ;
19198 void *argp2 = 0 ;
19199 int res2 = 0 ;
19200 wxPoint temp3 ;
19201 PyObject * obj0 = 0 ;
19202 PyObject * obj1 = 0 ;
19203 PyObject * obj2 = 0 ;
19204 char * kwnames[] = {
19205 (char *) "self",(char *) "icon",(char *) "pt", NULL
19206 };
19207
19208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19210 if (!SWIG_IsOK(res1)) {
19211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19212 }
19213 arg1 = reinterpret_cast< wxDC * >(argp1);
19214 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19215 if (!SWIG_IsOK(res2)) {
19216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19217 }
19218 if (!argp2) {
19219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19220 }
19221 arg2 = reinterpret_cast< wxIcon * >(argp2);
19222 {
19223 arg3 = &temp3;
19224 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19225 }
19226 {
19227 PyThreadState* __tstate = wxPyBeginAllowThreads();
19228 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19229 wxPyEndAllowThreads(__tstate);
19230 if (PyErr_Occurred()) SWIG_fail;
19231 }
19232 resultobj = SWIG_Py_Void();
19233 return resultobj;
19234 fail:
19235 return NULL;
19236 }
19237
19238
19239 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19240 PyObject *resultobj = 0;
19241 wxDC *arg1 = (wxDC *) 0 ;
19242 wxBitmap *arg2 = 0 ;
19243 int arg3 ;
19244 int arg4 ;
19245 bool arg5 = (bool) false ;
19246 void *argp1 = 0 ;
19247 int res1 = 0 ;
19248 void *argp2 = 0 ;
19249 int res2 = 0 ;
19250 int val3 ;
19251 int ecode3 = 0 ;
19252 int val4 ;
19253 int ecode4 = 0 ;
19254 bool val5 ;
19255 int ecode5 = 0 ;
19256 PyObject * obj0 = 0 ;
19257 PyObject * obj1 = 0 ;
19258 PyObject * obj2 = 0 ;
19259 PyObject * obj3 = 0 ;
19260 PyObject * obj4 = 0 ;
19261 char * kwnames[] = {
19262 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19263 };
19264
19265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19267 if (!SWIG_IsOK(res1)) {
19268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19269 }
19270 arg1 = reinterpret_cast< wxDC * >(argp1);
19271 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19272 if (!SWIG_IsOK(res2)) {
19273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19274 }
19275 if (!argp2) {
19276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19277 }
19278 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19279 ecode3 = SWIG_AsVal_int(obj2, &val3);
19280 if (!SWIG_IsOK(ecode3)) {
19281 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19282 }
19283 arg3 = static_cast< int >(val3);
19284 ecode4 = SWIG_AsVal_int(obj3, &val4);
19285 if (!SWIG_IsOK(ecode4)) {
19286 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19287 }
19288 arg4 = static_cast< int >(val4);
19289 if (obj4) {
19290 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19291 if (!SWIG_IsOK(ecode5)) {
19292 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19293 }
19294 arg5 = static_cast< bool >(val5);
19295 }
19296 {
19297 PyThreadState* __tstate = wxPyBeginAllowThreads();
19298 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19299 wxPyEndAllowThreads(__tstate);
19300 if (PyErr_Occurred()) SWIG_fail;
19301 }
19302 resultobj = SWIG_Py_Void();
19303 return resultobj;
19304 fail:
19305 return NULL;
19306 }
19307
19308
19309 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19310 PyObject *resultobj = 0;
19311 wxDC *arg1 = (wxDC *) 0 ;
19312 wxBitmap *arg2 = 0 ;
19313 wxPoint *arg3 = 0 ;
19314 bool arg4 = (bool) false ;
19315 void *argp1 = 0 ;
19316 int res1 = 0 ;
19317 void *argp2 = 0 ;
19318 int res2 = 0 ;
19319 wxPoint temp3 ;
19320 bool val4 ;
19321 int ecode4 = 0 ;
19322 PyObject * obj0 = 0 ;
19323 PyObject * obj1 = 0 ;
19324 PyObject * obj2 = 0 ;
19325 PyObject * obj3 = 0 ;
19326 char * kwnames[] = {
19327 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19328 };
19329
19330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19332 if (!SWIG_IsOK(res1)) {
19333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19334 }
19335 arg1 = reinterpret_cast< wxDC * >(argp1);
19336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19337 if (!SWIG_IsOK(res2)) {
19338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19339 }
19340 if (!argp2) {
19341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19342 }
19343 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19344 {
19345 arg3 = &temp3;
19346 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19347 }
19348 if (obj3) {
19349 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19350 if (!SWIG_IsOK(ecode4)) {
19351 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19352 }
19353 arg4 = static_cast< bool >(val4);
19354 }
19355 {
19356 PyThreadState* __tstate = wxPyBeginAllowThreads();
19357 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19358 wxPyEndAllowThreads(__tstate);
19359 if (PyErr_Occurred()) SWIG_fail;
19360 }
19361 resultobj = SWIG_Py_Void();
19362 return resultobj;
19363 fail:
19364 return NULL;
19365 }
19366
19367
19368 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19369 PyObject *resultobj = 0;
19370 wxDC *arg1 = (wxDC *) 0 ;
19371 wxString *arg2 = 0 ;
19372 int arg3 ;
19373 int arg4 ;
19374 void *argp1 = 0 ;
19375 int res1 = 0 ;
19376 bool temp2 = false ;
19377 int val3 ;
19378 int ecode3 = 0 ;
19379 int val4 ;
19380 int ecode4 = 0 ;
19381 PyObject * obj0 = 0 ;
19382 PyObject * obj1 = 0 ;
19383 PyObject * obj2 = 0 ;
19384 PyObject * obj3 = 0 ;
19385 char * kwnames[] = {
19386 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19387 };
19388
19389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19391 if (!SWIG_IsOK(res1)) {
19392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19393 }
19394 arg1 = reinterpret_cast< wxDC * >(argp1);
19395 {
19396 arg2 = wxString_in_helper(obj1);
19397 if (arg2 == NULL) SWIG_fail;
19398 temp2 = true;
19399 }
19400 ecode3 = SWIG_AsVal_int(obj2, &val3);
19401 if (!SWIG_IsOK(ecode3)) {
19402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19403 }
19404 arg3 = static_cast< int >(val3);
19405 ecode4 = SWIG_AsVal_int(obj3, &val4);
19406 if (!SWIG_IsOK(ecode4)) {
19407 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19408 }
19409 arg4 = static_cast< int >(val4);
19410 {
19411 PyThreadState* __tstate = wxPyBeginAllowThreads();
19412 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19413 wxPyEndAllowThreads(__tstate);
19414 if (PyErr_Occurred()) SWIG_fail;
19415 }
19416 resultobj = SWIG_Py_Void();
19417 {
19418 if (temp2)
19419 delete arg2;
19420 }
19421 return resultobj;
19422 fail:
19423 {
19424 if (temp2)
19425 delete arg2;
19426 }
19427 return NULL;
19428 }
19429
19430
19431 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19432 PyObject *resultobj = 0;
19433 wxDC *arg1 = (wxDC *) 0 ;
19434 wxString *arg2 = 0 ;
19435 wxPoint *arg3 = 0 ;
19436 void *argp1 = 0 ;
19437 int res1 = 0 ;
19438 bool temp2 = false ;
19439 wxPoint temp3 ;
19440 PyObject * obj0 = 0 ;
19441 PyObject * obj1 = 0 ;
19442 PyObject * obj2 = 0 ;
19443 char * kwnames[] = {
19444 (char *) "self",(char *) "text",(char *) "pt", NULL
19445 };
19446
19447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19449 if (!SWIG_IsOK(res1)) {
19450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19451 }
19452 arg1 = reinterpret_cast< wxDC * >(argp1);
19453 {
19454 arg2 = wxString_in_helper(obj1);
19455 if (arg2 == NULL) SWIG_fail;
19456 temp2 = true;
19457 }
19458 {
19459 arg3 = &temp3;
19460 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19461 }
19462 {
19463 PyThreadState* __tstate = wxPyBeginAllowThreads();
19464 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19465 wxPyEndAllowThreads(__tstate);
19466 if (PyErr_Occurred()) SWIG_fail;
19467 }
19468 resultobj = SWIG_Py_Void();
19469 {
19470 if (temp2)
19471 delete arg2;
19472 }
19473 return resultobj;
19474 fail:
19475 {
19476 if (temp2)
19477 delete arg2;
19478 }
19479 return NULL;
19480 }
19481
19482
19483 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19484 PyObject *resultobj = 0;
19485 wxDC *arg1 = (wxDC *) 0 ;
19486 wxString *arg2 = 0 ;
19487 int arg3 ;
19488 int arg4 ;
19489 double arg5 ;
19490 void *argp1 = 0 ;
19491 int res1 = 0 ;
19492 bool temp2 = false ;
19493 int val3 ;
19494 int ecode3 = 0 ;
19495 int val4 ;
19496 int ecode4 = 0 ;
19497 double val5 ;
19498 int ecode5 = 0 ;
19499 PyObject * obj0 = 0 ;
19500 PyObject * obj1 = 0 ;
19501 PyObject * obj2 = 0 ;
19502 PyObject * obj3 = 0 ;
19503 PyObject * obj4 = 0 ;
19504 char * kwnames[] = {
19505 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19506 };
19507
19508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19510 if (!SWIG_IsOK(res1)) {
19511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19512 }
19513 arg1 = reinterpret_cast< wxDC * >(argp1);
19514 {
19515 arg2 = wxString_in_helper(obj1);
19516 if (arg2 == NULL) SWIG_fail;
19517 temp2 = true;
19518 }
19519 ecode3 = SWIG_AsVal_int(obj2, &val3);
19520 if (!SWIG_IsOK(ecode3)) {
19521 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19522 }
19523 arg3 = static_cast< int >(val3);
19524 ecode4 = SWIG_AsVal_int(obj3, &val4);
19525 if (!SWIG_IsOK(ecode4)) {
19526 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19527 }
19528 arg4 = static_cast< int >(val4);
19529 ecode5 = SWIG_AsVal_double(obj4, &val5);
19530 if (!SWIG_IsOK(ecode5)) {
19531 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19532 }
19533 arg5 = static_cast< double >(val5);
19534 {
19535 PyThreadState* __tstate = wxPyBeginAllowThreads();
19536 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19537 wxPyEndAllowThreads(__tstate);
19538 if (PyErr_Occurred()) SWIG_fail;
19539 }
19540 resultobj = SWIG_Py_Void();
19541 {
19542 if (temp2)
19543 delete arg2;
19544 }
19545 return resultobj;
19546 fail:
19547 {
19548 if (temp2)
19549 delete arg2;
19550 }
19551 return NULL;
19552 }
19553
19554
19555 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19556 PyObject *resultobj = 0;
19557 wxDC *arg1 = (wxDC *) 0 ;
19558 wxString *arg2 = 0 ;
19559 wxPoint *arg3 = 0 ;
19560 double arg4 ;
19561 void *argp1 = 0 ;
19562 int res1 = 0 ;
19563 bool temp2 = false ;
19564 wxPoint temp3 ;
19565 double val4 ;
19566 int ecode4 = 0 ;
19567 PyObject * obj0 = 0 ;
19568 PyObject * obj1 = 0 ;
19569 PyObject * obj2 = 0 ;
19570 PyObject * obj3 = 0 ;
19571 char * kwnames[] = {
19572 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19573 };
19574
19575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19577 if (!SWIG_IsOK(res1)) {
19578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19579 }
19580 arg1 = reinterpret_cast< wxDC * >(argp1);
19581 {
19582 arg2 = wxString_in_helper(obj1);
19583 if (arg2 == NULL) SWIG_fail;
19584 temp2 = true;
19585 }
19586 {
19587 arg3 = &temp3;
19588 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19589 }
19590 ecode4 = SWIG_AsVal_double(obj3, &val4);
19591 if (!SWIG_IsOK(ecode4)) {
19592 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19593 }
19594 arg4 = static_cast< double >(val4);
19595 {
19596 PyThreadState* __tstate = wxPyBeginAllowThreads();
19597 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19598 wxPyEndAllowThreads(__tstate);
19599 if (PyErr_Occurred()) SWIG_fail;
19600 }
19601 resultobj = SWIG_Py_Void();
19602 {
19603 if (temp2)
19604 delete arg2;
19605 }
19606 return resultobj;
19607 fail:
19608 {
19609 if (temp2)
19610 delete arg2;
19611 }
19612 return NULL;
19613 }
19614
19615
19616 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19617 PyObject *resultobj = 0;
19618 wxDC *arg1 = (wxDC *) 0 ;
19619 int arg2 ;
19620 int arg3 ;
19621 int arg4 ;
19622 int arg5 ;
19623 wxDC *arg6 = (wxDC *) 0 ;
19624 int arg7 ;
19625 int arg8 ;
19626 int arg9 = (int) wxCOPY ;
19627 bool arg10 = (bool) false ;
19628 int arg11 = (int) -1 ;
19629 int arg12 = (int) -1 ;
19630 bool result;
19631 void *argp1 = 0 ;
19632 int res1 = 0 ;
19633 int val2 ;
19634 int ecode2 = 0 ;
19635 int val3 ;
19636 int ecode3 = 0 ;
19637 int val4 ;
19638 int ecode4 = 0 ;
19639 int val5 ;
19640 int ecode5 = 0 ;
19641 void *argp6 = 0 ;
19642 int res6 = 0 ;
19643 int val7 ;
19644 int ecode7 = 0 ;
19645 int val8 ;
19646 int ecode8 = 0 ;
19647 int val9 ;
19648 int ecode9 = 0 ;
19649 bool val10 ;
19650 int ecode10 = 0 ;
19651 int val11 ;
19652 int ecode11 = 0 ;
19653 int val12 ;
19654 int ecode12 = 0 ;
19655 PyObject * obj0 = 0 ;
19656 PyObject * obj1 = 0 ;
19657 PyObject * obj2 = 0 ;
19658 PyObject * obj3 = 0 ;
19659 PyObject * obj4 = 0 ;
19660 PyObject * obj5 = 0 ;
19661 PyObject * obj6 = 0 ;
19662 PyObject * obj7 = 0 ;
19663 PyObject * obj8 = 0 ;
19664 PyObject * obj9 = 0 ;
19665 PyObject * obj10 = 0 ;
19666 PyObject * obj11 = 0 ;
19667 char * kwnames[] = {
19668 (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
19669 };
19670
19671 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;
19672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19673 if (!SWIG_IsOK(res1)) {
19674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19675 }
19676 arg1 = reinterpret_cast< wxDC * >(argp1);
19677 ecode2 = SWIG_AsVal_int(obj1, &val2);
19678 if (!SWIG_IsOK(ecode2)) {
19679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19680 }
19681 arg2 = static_cast< int >(val2);
19682 ecode3 = SWIG_AsVal_int(obj2, &val3);
19683 if (!SWIG_IsOK(ecode3)) {
19684 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19685 }
19686 arg3 = static_cast< int >(val3);
19687 ecode4 = SWIG_AsVal_int(obj3, &val4);
19688 if (!SWIG_IsOK(ecode4)) {
19689 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19690 }
19691 arg4 = static_cast< int >(val4);
19692 ecode5 = SWIG_AsVal_int(obj4, &val5);
19693 if (!SWIG_IsOK(ecode5)) {
19694 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19695 }
19696 arg5 = static_cast< int >(val5);
19697 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19698 if (!SWIG_IsOK(res6)) {
19699 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19700 }
19701 arg6 = reinterpret_cast< wxDC * >(argp6);
19702 ecode7 = SWIG_AsVal_int(obj6, &val7);
19703 if (!SWIG_IsOK(ecode7)) {
19704 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19705 }
19706 arg7 = static_cast< int >(val7);
19707 ecode8 = SWIG_AsVal_int(obj7, &val8);
19708 if (!SWIG_IsOK(ecode8)) {
19709 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19710 }
19711 arg8 = static_cast< int >(val8);
19712 if (obj8) {
19713 ecode9 = SWIG_AsVal_int(obj8, &val9);
19714 if (!SWIG_IsOK(ecode9)) {
19715 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19716 }
19717 arg9 = static_cast< int >(val9);
19718 }
19719 if (obj9) {
19720 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19721 if (!SWIG_IsOK(ecode10)) {
19722 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19723 }
19724 arg10 = static_cast< bool >(val10);
19725 }
19726 if (obj10) {
19727 ecode11 = SWIG_AsVal_int(obj10, &val11);
19728 if (!SWIG_IsOK(ecode11)) {
19729 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19730 }
19731 arg11 = static_cast< int >(val11);
19732 }
19733 if (obj11) {
19734 ecode12 = SWIG_AsVal_int(obj11, &val12);
19735 if (!SWIG_IsOK(ecode12)) {
19736 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19737 }
19738 arg12 = static_cast< int >(val12);
19739 }
19740 {
19741 PyThreadState* __tstate = wxPyBeginAllowThreads();
19742 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19743 wxPyEndAllowThreads(__tstate);
19744 if (PyErr_Occurred()) SWIG_fail;
19745 }
19746 {
19747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19748 }
19749 return resultobj;
19750 fail:
19751 return NULL;
19752 }
19753
19754
19755 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19756 PyObject *resultobj = 0;
19757 wxDC *arg1 = (wxDC *) 0 ;
19758 wxPoint *arg2 = 0 ;
19759 wxSize *arg3 = 0 ;
19760 wxDC *arg4 = (wxDC *) 0 ;
19761 wxPoint *arg5 = 0 ;
19762 int arg6 = (int) wxCOPY ;
19763 bool arg7 = (bool) false ;
19764 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19765 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19766 bool result;
19767 void *argp1 = 0 ;
19768 int res1 = 0 ;
19769 wxPoint temp2 ;
19770 wxSize temp3 ;
19771 void *argp4 = 0 ;
19772 int res4 = 0 ;
19773 wxPoint temp5 ;
19774 int val6 ;
19775 int ecode6 = 0 ;
19776 bool val7 ;
19777 int ecode7 = 0 ;
19778 wxPoint temp8 ;
19779 PyObject * obj0 = 0 ;
19780 PyObject * obj1 = 0 ;
19781 PyObject * obj2 = 0 ;
19782 PyObject * obj3 = 0 ;
19783 PyObject * obj4 = 0 ;
19784 PyObject * obj5 = 0 ;
19785 PyObject * obj6 = 0 ;
19786 PyObject * obj7 = 0 ;
19787 char * kwnames[] = {
19788 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19789 };
19790
19791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19793 if (!SWIG_IsOK(res1)) {
19794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19795 }
19796 arg1 = reinterpret_cast< wxDC * >(argp1);
19797 {
19798 arg2 = &temp2;
19799 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19800 }
19801 {
19802 arg3 = &temp3;
19803 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19804 }
19805 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19806 if (!SWIG_IsOK(res4)) {
19807 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19808 }
19809 arg4 = reinterpret_cast< wxDC * >(argp4);
19810 {
19811 arg5 = &temp5;
19812 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19813 }
19814 if (obj5) {
19815 ecode6 = SWIG_AsVal_int(obj5, &val6);
19816 if (!SWIG_IsOK(ecode6)) {
19817 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19818 }
19819 arg6 = static_cast< int >(val6);
19820 }
19821 if (obj6) {
19822 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19823 if (!SWIG_IsOK(ecode7)) {
19824 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19825 }
19826 arg7 = static_cast< bool >(val7);
19827 }
19828 if (obj7) {
19829 {
19830 arg8 = &temp8;
19831 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19832 }
19833 }
19834 {
19835 PyThreadState* __tstate = wxPyBeginAllowThreads();
19836 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19837 wxPyEndAllowThreads(__tstate);
19838 if (PyErr_Occurred()) SWIG_fail;
19839 }
19840 {
19841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19842 }
19843 return resultobj;
19844 fail:
19845 return NULL;
19846 }
19847
19848
19849 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19850 PyObject *resultobj = 0;
19851 wxDC *arg1 = (wxDC *) 0 ;
19852 wxRect *arg2 = (wxRect *) NULL ;
19853 SwigValueWrapper<wxBitmap > result;
19854 void *argp1 = 0 ;
19855 int res1 = 0 ;
19856 void *argp2 = 0 ;
19857 int res2 = 0 ;
19858 PyObject * obj0 = 0 ;
19859 PyObject * obj1 = 0 ;
19860 char * kwnames[] = {
19861 (char *) "self",(char *) "subrect", NULL
19862 };
19863
19864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19866 if (!SWIG_IsOK(res1)) {
19867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19868 }
19869 arg1 = reinterpret_cast< wxDC * >(argp1);
19870 if (obj1) {
19871 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19872 if (!SWIG_IsOK(res2)) {
19873 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19874 }
19875 arg2 = reinterpret_cast< wxRect * >(argp2);
19876 }
19877 {
19878 PyThreadState* __tstate = wxPyBeginAllowThreads();
19879 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19880 wxPyEndAllowThreads(__tstate);
19881 if (PyErr_Occurred()) SWIG_fail;
19882 }
19883 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19884 return resultobj;
19885 fail:
19886 return NULL;
19887 }
19888
19889
19890 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19891 PyObject *resultobj = 0;
19892 wxDC *arg1 = (wxDC *) 0 ;
19893 int arg2 ;
19894 int arg3 ;
19895 int arg4 ;
19896 int arg5 ;
19897 void *argp1 = 0 ;
19898 int res1 = 0 ;
19899 int val2 ;
19900 int ecode2 = 0 ;
19901 int val3 ;
19902 int ecode3 = 0 ;
19903 int val4 ;
19904 int ecode4 = 0 ;
19905 int val5 ;
19906 int ecode5 = 0 ;
19907 PyObject * obj0 = 0 ;
19908 PyObject * obj1 = 0 ;
19909 PyObject * obj2 = 0 ;
19910 PyObject * obj3 = 0 ;
19911 PyObject * obj4 = 0 ;
19912 char * kwnames[] = {
19913 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19914 };
19915
19916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19918 if (!SWIG_IsOK(res1)) {
19919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19920 }
19921 arg1 = reinterpret_cast< wxDC * >(argp1);
19922 ecode2 = SWIG_AsVal_int(obj1, &val2);
19923 if (!SWIG_IsOK(ecode2)) {
19924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19925 }
19926 arg2 = static_cast< int >(val2);
19927 ecode3 = SWIG_AsVal_int(obj2, &val3);
19928 if (!SWIG_IsOK(ecode3)) {
19929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19930 }
19931 arg3 = static_cast< int >(val3);
19932 ecode4 = SWIG_AsVal_int(obj3, &val4);
19933 if (!SWIG_IsOK(ecode4)) {
19934 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19935 }
19936 arg4 = static_cast< int >(val4);
19937 ecode5 = SWIG_AsVal_int(obj4, &val5);
19938 if (!SWIG_IsOK(ecode5)) {
19939 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19940 }
19941 arg5 = static_cast< int >(val5);
19942 {
19943 PyThreadState* __tstate = wxPyBeginAllowThreads();
19944 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19945 wxPyEndAllowThreads(__tstate);
19946 if (PyErr_Occurred()) SWIG_fail;
19947 }
19948 resultobj = SWIG_Py_Void();
19949 return resultobj;
19950 fail:
19951 return NULL;
19952 }
19953
19954
19955 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19956 PyObject *resultobj = 0;
19957 wxDC *arg1 = (wxDC *) 0 ;
19958 wxPoint *arg2 = 0 ;
19959 wxSize *arg3 = 0 ;
19960 void *argp1 = 0 ;
19961 int res1 = 0 ;
19962 wxPoint temp2 ;
19963 wxSize temp3 ;
19964 PyObject * obj0 = 0 ;
19965 PyObject * obj1 = 0 ;
19966 PyObject * obj2 = 0 ;
19967 char * kwnames[] = {
19968 (char *) "self",(char *) "pt",(char *) "sz", NULL
19969 };
19970
19971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19973 if (!SWIG_IsOK(res1)) {
19974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19975 }
19976 arg1 = reinterpret_cast< wxDC * >(argp1);
19977 {
19978 arg2 = &temp2;
19979 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19980 }
19981 {
19982 arg3 = &temp3;
19983 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19984 }
19985 {
19986 PyThreadState* __tstate = wxPyBeginAllowThreads();
19987 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19988 wxPyEndAllowThreads(__tstate);
19989 if (PyErr_Occurred()) SWIG_fail;
19990 }
19991 resultobj = SWIG_Py_Void();
19992 return resultobj;
19993 fail:
19994 return NULL;
19995 }
19996
19997
19998 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19999 PyObject *resultobj = 0;
20000 wxDC *arg1 = (wxDC *) 0 ;
20001 wxRegion *arg2 = 0 ;
20002 void *argp1 = 0 ;
20003 int res1 = 0 ;
20004 void *argp2 = 0 ;
20005 int res2 = 0 ;
20006 PyObject * obj0 = 0 ;
20007 PyObject * obj1 = 0 ;
20008 char * kwnames[] = {
20009 (char *) "self",(char *) "region", NULL
20010 };
20011
20012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20014 if (!SWIG_IsOK(res1)) {
20015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20016 }
20017 arg1 = reinterpret_cast< wxDC * >(argp1);
20018 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20019 if (!SWIG_IsOK(res2)) {
20020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20021 }
20022 if (!argp2) {
20023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20024 }
20025 arg2 = reinterpret_cast< wxRegion * >(argp2);
20026 {
20027 PyThreadState* __tstate = wxPyBeginAllowThreads();
20028 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20029 wxPyEndAllowThreads(__tstate);
20030 if (PyErr_Occurred()) SWIG_fail;
20031 }
20032 resultobj = SWIG_Py_Void();
20033 return resultobj;
20034 fail:
20035 return NULL;
20036 }
20037
20038
20039 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20040 PyObject *resultobj = 0;
20041 wxDC *arg1 = (wxDC *) 0 ;
20042 wxRect *arg2 = 0 ;
20043 void *argp1 = 0 ;
20044 int res1 = 0 ;
20045 wxRect temp2 ;
20046 PyObject * obj0 = 0 ;
20047 PyObject * obj1 = 0 ;
20048 char * kwnames[] = {
20049 (char *) "self",(char *) "rect", NULL
20050 };
20051
20052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20054 if (!SWIG_IsOK(res1)) {
20055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20056 }
20057 arg1 = reinterpret_cast< wxDC * >(argp1);
20058 {
20059 arg2 = &temp2;
20060 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20061 }
20062 {
20063 PyThreadState* __tstate = wxPyBeginAllowThreads();
20064 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20065 wxPyEndAllowThreads(__tstate);
20066 if (PyErr_Occurred()) SWIG_fail;
20067 }
20068 resultobj = SWIG_Py_Void();
20069 return resultobj;
20070 fail:
20071 return NULL;
20072 }
20073
20074
20075 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20076 PyObject *resultobj = 0;
20077 wxDC *arg1 = (wxDC *) 0 ;
20078 int arg2 ;
20079 wxPoint *arg3 = (wxPoint *) 0 ;
20080 int arg4 = (int) 0 ;
20081 int arg5 = (int) 0 ;
20082 void *argp1 = 0 ;
20083 int res1 = 0 ;
20084 int val4 ;
20085 int ecode4 = 0 ;
20086 int val5 ;
20087 int ecode5 = 0 ;
20088 PyObject * obj0 = 0 ;
20089 PyObject * obj1 = 0 ;
20090 PyObject * obj2 = 0 ;
20091 PyObject * obj3 = 0 ;
20092 char * kwnames[] = {
20093 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20094 };
20095
20096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20098 if (!SWIG_IsOK(res1)) {
20099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20100 }
20101 arg1 = reinterpret_cast< wxDC * >(argp1);
20102 {
20103 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20104 if (arg3 == NULL) SWIG_fail;
20105 }
20106 if (obj2) {
20107 ecode4 = SWIG_AsVal_int(obj2, &val4);
20108 if (!SWIG_IsOK(ecode4)) {
20109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20110 }
20111 arg4 = static_cast< int >(val4);
20112 }
20113 if (obj3) {
20114 ecode5 = SWIG_AsVal_int(obj3, &val5);
20115 if (!SWIG_IsOK(ecode5)) {
20116 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20117 }
20118 arg5 = static_cast< int >(val5);
20119 }
20120 {
20121 PyThreadState* __tstate = wxPyBeginAllowThreads();
20122 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20123 wxPyEndAllowThreads(__tstate);
20124 if (PyErr_Occurred()) SWIG_fail;
20125 }
20126 resultobj = SWIG_Py_Void();
20127 {
20128 if (arg3) delete [] arg3;
20129 }
20130 return resultobj;
20131 fail:
20132 {
20133 if (arg3) delete [] arg3;
20134 }
20135 return NULL;
20136 }
20137
20138
20139 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20140 PyObject *resultobj = 0;
20141 wxDC *arg1 = (wxDC *) 0 ;
20142 int arg2 ;
20143 wxPoint *arg3 = (wxPoint *) 0 ;
20144 int arg4 = (int) 0 ;
20145 int arg5 = (int) 0 ;
20146 int arg6 = (int) wxODDEVEN_RULE ;
20147 void *argp1 = 0 ;
20148 int res1 = 0 ;
20149 int val4 ;
20150 int ecode4 = 0 ;
20151 int val5 ;
20152 int ecode5 = 0 ;
20153 int val6 ;
20154 int ecode6 = 0 ;
20155 PyObject * obj0 = 0 ;
20156 PyObject * obj1 = 0 ;
20157 PyObject * obj2 = 0 ;
20158 PyObject * obj3 = 0 ;
20159 PyObject * obj4 = 0 ;
20160 char * kwnames[] = {
20161 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20162 };
20163
20164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20166 if (!SWIG_IsOK(res1)) {
20167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20168 }
20169 arg1 = reinterpret_cast< wxDC * >(argp1);
20170 {
20171 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20172 if (arg3 == NULL) SWIG_fail;
20173 }
20174 if (obj2) {
20175 ecode4 = SWIG_AsVal_int(obj2, &val4);
20176 if (!SWIG_IsOK(ecode4)) {
20177 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20178 }
20179 arg4 = static_cast< int >(val4);
20180 }
20181 if (obj3) {
20182 ecode5 = SWIG_AsVal_int(obj3, &val5);
20183 if (!SWIG_IsOK(ecode5)) {
20184 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20185 }
20186 arg5 = static_cast< int >(val5);
20187 }
20188 if (obj4) {
20189 ecode6 = SWIG_AsVal_int(obj4, &val6);
20190 if (!SWIG_IsOK(ecode6)) {
20191 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20192 }
20193 arg6 = static_cast< int >(val6);
20194 }
20195 {
20196 PyThreadState* __tstate = wxPyBeginAllowThreads();
20197 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20198 wxPyEndAllowThreads(__tstate);
20199 if (PyErr_Occurred()) SWIG_fail;
20200 }
20201 resultobj = SWIG_Py_Void();
20202 {
20203 if (arg3) delete [] arg3;
20204 }
20205 return resultobj;
20206 fail:
20207 {
20208 if (arg3) delete [] arg3;
20209 }
20210 return NULL;
20211 }
20212
20213
20214 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20215 PyObject *resultobj = 0;
20216 wxDC *arg1 = (wxDC *) 0 ;
20217 wxString *arg2 = 0 ;
20218 wxRect *arg3 = 0 ;
20219 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20220 int arg5 = (int) -1 ;
20221 void *argp1 = 0 ;
20222 int res1 = 0 ;
20223 bool temp2 = false ;
20224 wxRect temp3 ;
20225 int val4 ;
20226 int ecode4 = 0 ;
20227 int val5 ;
20228 int ecode5 = 0 ;
20229 PyObject * obj0 = 0 ;
20230 PyObject * obj1 = 0 ;
20231 PyObject * obj2 = 0 ;
20232 PyObject * obj3 = 0 ;
20233 PyObject * obj4 = 0 ;
20234 char * kwnames[] = {
20235 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20236 };
20237
20238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20240 if (!SWIG_IsOK(res1)) {
20241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20242 }
20243 arg1 = reinterpret_cast< wxDC * >(argp1);
20244 {
20245 arg2 = wxString_in_helper(obj1);
20246 if (arg2 == NULL) SWIG_fail;
20247 temp2 = true;
20248 }
20249 {
20250 arg3 = &temp3;
20251 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20252 }
20253 if (obj3) {
20254 ecode4 = SWIG_AsVal_int(obj3, &val4);
20255 if (!SWIG_IsOK(ecode4)) {
20256 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20257 }
20258 arg4 = static_cast< int >(val4);
20259 }
20260 if (obj4) {
20261 ecode5 = SWIG_AsVal_int(obj4, &val5);
20262 if (!SWIG_IsOK(ecode5)) {
20263 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20264 }
20265 arg5 = static_cast< int >(val5);
20266 }
20267 {
20268 PyThreadState* __tstate = wxPyBeginAllowThreads();
20269 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20270 wxPyEndAllowThreads(__tstate);
20271 if (PyErr_Occurred()) SWIG_fail;
20272 }
20273 resultobj = SWIG_Py_Void();
20274 {
20275 if (temp2)
20276 delete arg2;
20277 }
20278 return resultobj;
20279 fail:
20280 {
20281 if (temp2)
20282 delete arg2;
20283 }
20284 return NULL;
20285 }
20286
20287
20288 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20289 PyObject *resultobj = 0;
20290 wxDC *arg1 = (wxDC *) 0 ;
20291 wxString *arg2 = 0 ;
20292 wxBitmap *arg3 = 0 ;
20293 wxRect *arg4 = 0 ;
20294 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20295 int arg6 = (int) -1 ;
20296 wxRect result;
20297 void *argp1 = 0 ;
20298 int res1 = 0 ;
20299 bool temp2 = false ;
20300 void *argp3 = 0 ;
20301 int res3 = 0 ;
20302 wxRect temp4 ;
20303 int val5 ;
20304 int ecode5 = 0 ;
20305 int val6 ;
20306 int ecode6 = 0 ;
20307 PyObject * obj0 = 0 ;
20308 PyObject * obj1 = 0 ;
20309 PyObject * obj2 = 0 ;
20310 PyObject * obj3 = 0 ;
20311 PyObject * obj4 = 0 ;
20312 PyObject * obj5 = 0 ;
20313 char * kwnames[] = {
20314 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20315 };
20316
20317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20319 if (!SWIG_IsOK(res1)) {
20320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20321 }
20322 arg1 = reinterpret_cast< wxDC * >(argp1);
20323 {
20324 arg2 = wxString_in_helper(obj1);
20325 if (arg2 == NULL) SWIG_fail;
20326 temp2 = true;
20327 }
20328 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20329 if (!SWIG_IsOK(res3)) {
20330 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20331 }
20332 if (!argp3) {
20333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20334 }
20335 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20336 {
20337 arg4 = &temp4;
20338 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20339 }
20340 if (obj4) {
20341 ecode5 = SWIG_AsVal_int(obj4, &val5);
20342 if (!SWIG_IsOK(ecode5)) {
20343 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20344 }
20345 arg5 = static_cast< int >(val5);
20346 }
20347 if (obj5) {
20348 ecode6 = SWIG_AsVal_int(obj5, &val6);
20349 if (!SWIG_IsOK(ecode6)) {
20350 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20351 }
20352 arg6 = static_cast< int >(val6);
20353 }
20354 {
20355 PyThreadState* __tstate = wxPyBeginAllowThreads();
20356 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20357 wxPyEndAllowThreads(__tstate);
20358 if (PyErr_Occurred()) SWIG_fail;
20359 }
20360 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20361 {
20362 if (temp2)
20363 delete arg2;
20364 }
20365 return resultobj;
20366 fail:
20367 {
20368 if (temp2)
20369 delete arg2;
20370 }
20371 return NULL;
20372 }
20373
20374
20375 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20376 PyObject *resultobj = 0;
20377 wxDC *arg1 = (wxDC *) 0 ;
20378 int arg2 ;
20379 wxPoint *arg3 = (wxPoint *) 0 ;
20380 void *argp1 = 0 ;
20381 int res1 = 0 ;
20382 PyObject * obj0 = 0 ;
20383 PyObject * obj1 = 0 ;
20384 char * kwnames[] = {
20385 (char *) "self",(char *) "points", NULL
20386 };
20387
20388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20390 if (!SWIG_IsOK(res1)) {
20391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20392 }
20393 arg1 = reinterpret_cast< wxDC * >(argp1);
20394 {
20395 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20396 if (arg3 == NULL) SWIG_fail;
20397 }
20398 {
20399 PyThreadState* __tstate = wxPyBeginAllowThreads();
20400 (arg1)->DrawSpline(arg2,arg3);
20401 wxPyEndAllowThreads(__tstate);
20402 if (PyErr_Occurred()) SWIG_fail;
20403 }
20404 resultobj = SWIG_Py_Void();
20405 {
20406 if (arg3) delete [] arg3;
20407 }
20408 return resultobj;
20409 fail:
20410 {
20411 if (arg3) delete [] arg3;
20412 }
20413 return NULL;
20414 }
20415
20416
20417 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20418 PyObject *resultobj = 0;
20419 wxDC *arg1 = (wxDC *) 0 ;
20420 void *argp1 = 0 ;
20421 int res1 = 0 ;
20422 PyObject *swig_obj[1] ;
20423
20424 if (!args) SWIG_fail;
20425 swig_obj[0] = args;
20426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20427 if (!SWIG_IsOK(res1)) {
20428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20429 }
20430 arg1 = reinterpret_cast< wxDC * >(argp1);
20431 {
20432 PyThreadState* __tstate = wxPyBeginAllowThreads();
20433 (arg1)->Clear();
20434 wxPyEndAllowThreads(__tstate);
20435 if (PyErr_Occurred()) SWIG_fail;
20436 }
20437 resultobj = SWIG_Py_Void();
20438 return resultobj;
20439 fail:
20440 return NULL;
20441 }
20442
20443
20444 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20445 PyObject *resultobj = 0;
20446 wxDC *arg1 = (wxDC *) 0 ;
20447 wxString *arg2 = 0 ;
20448 bool result;
20449 void *argp1 = 0 ;
20450 int res1 = 0 ;
20451 bool temp2 = false ;
20452 PyObject * obj0 = 0 ;
20453 PyObject * obj1 = 0 ;
20454 char * kwnames[] = {
20455 (char *) "self",(char *) "message", NULL
20456 };
20457
20458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20460 if (!SWIG_IsOK(res1)) {
20461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20462 }
20463 arg1 = reinterpret_cast< wxDC * >(argp1);
20464 {
20465 arg2 = wxString_in_helper(obj1);
20466 if (arg2 == NULL) SWIG_fail;
20467 temp2 = true;
20468 }
20469 {
20470 PyThreadState* __tstate = wxPyBeginAllowThreads();
20471 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20472 wxPyEndAllowThreads(__tstate);
20473 if (PyErr_Occurred()) SWIG_fail;
20474 }
20475 {
20476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20477 }
20478 {
20479 if (temp2)
20480 delete arg2;
20481 }
20482 return resultobj;
20483 fail:
20484 {
20485 if (temp2)
20486 delete arg2;
20487 }
20488 return NULL;
20489 }
20490
20491
20492 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20493 PyObject *resultobj = 0;
20494 wxDC *arg1 = (wxDC *) 0 ;
20495 void *argp1 = 0 ;
20496 int res1 = 0 ;
20497 PyObject *swig_obj[1] ;
20498
20499 if (!args) SWIG_fail;
20500 swig_obj[0] = args;
20501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20502 if (!SWIG_IsOK(res1)) {
20503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20504 }
20505 arg1 = reinterpret_cast< wxDC * >(argp1);
20506 {
20507 PyThreadState* __tstate = wxPyBeginAllowThreads();
20508 (arg1)->EndDoc();
20509 wxPyEndAllowThreads(__tstate);
20510 if (PyErr_Occurred()) SWIG_fail;
20511 }
20512 resultobj = SWIG_Py_Void();
20513 return resultobj;
20514 fail:
20515 return NULL;
20516 }
20517
20518
20519 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20520 PyObject *resultobj = 0;
20521 wxDC *arg1 = (wxDC *) 0 ;
20522 void *argp1 = 0 ;
20523 int res1 = 0 ;
20524 PyObject *swig_obj[1] ;
20525
20526 if (!args) SWIG_fail;
20527 swig_obj[0] = args;
20528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20529 if (!SWIG_IsOK(res1)) {
20530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20531 }
20532 arg1 = reinterpret_cast< wxDC * >(argp1);
20533 {
20534 PyThreadState* __tstate = wxPyBeginAllowThreads();
20535 (arg1)->StartPage();
20536 wxPyEndAllowThreads(__tstate);
20537 if (PyErr_Occurred()) SWIG_fail;
20538 }
20539 resultobj = SWIG_Py_Void();
20540 return resultobj;
20541 fail:
20542 return NULL;
20543 }
20544
20545
20546 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20547 PyObject *resultobj = 0;
20548 wxDC *arg1 = (wxDC *) 0 ;
20549 void *argp1 = 0 ;
20550 int res1 = 0 ;
20551 PyObject *swig_obj[1] ;
20552
20553 if (!args) SWIG_fail;
20554 swig_obj[0] = args;
20555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20556 if (!SWIG_IsOK(res1)) {
20557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20558 }
20559 arg1 = reinterpret_cast< wxDC * >(argp1);
20560 {
20561 PyThreadState* __tstate = wxPyBeginAllowThreads();
20562 (arg1)->EndPage();
20563 wxPyEndAllowThreads(__tstate);
20564 if (PyErr_Occurred()) SWIG_fail;
20565 }
20566 resultobj = SWIG_Py_Void();
20567 return resultobj;
20568 fail:
20569 return NULL;
20570 }
20571
20572
20573 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20574 PyObject *resultobj = 0;
20575 wxDC *arg1 = (wxDC *) 0 ;
20576 wxFont *arg2 = 0 ;
20577 void *argp1 = 0 ;
20578 int res1 = 0 ;
20579 void *argp2 = 0 ;
20580 int res2 = 0 ;
20581 PyObject * obj0 = 0 ;
20582 PyObject * obj1 = 0 ;
20583 char * kwnames[] = {
20584 (char *) "self",(char *) "font", NULL
20585 };
20586
20587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20589 if (!SWIG_IsOK(res1)) {
20590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20591 }
20592 arg1 = reinterpret_cast< wxDC * >(argp1);
20593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20594 if (!SWIG_IsOK(res2)) {
20595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20596 }
20597 if (!argp2) {
20598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20599 }
20600 arg2 = reinterpret_cast< wxFont * >(argp2);
20601 {
20602 PyThreadState* __tstate = wxPyBeginAllowThreads();
20603 (arg1)->SetFont((wxFont const &)*arg2);
20604 wxPyEndAllowThreads(__tstate);
20605 if (PyErr_Occurred()) SWIG_fail;
20606 }
20607 resultobj = SWIG_Py_Void();
20608 return resultobj;
20609 fail:
20610 return NULL;
20611 }
20612
20613
20614 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20615 PyObject *resultobj = 0;
20616 wxDC *arg1 = (wxDC *) 0 ;
20617 wxPen *arg2 = 0 ;
20618 void *argp1 = 0 ;
20619 int res1 = 0 ;
20620 void *argp2 = 0 ;
20621 int res2 = 0 ;
20622 PyObject * obj0 = 0 ;
20623 PyObject * obj1 = 0 ;
20624 char * kwnames[] = {
20625 (char *) "self",(char *) "pen", NULL
20626 };
20627
20628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20630 if (!SWIG_IsOK(res1)) {
20631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20632 }
20633 arg1 = reinterpret_cast< wxDC * >(argp1);
20634 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20635 if (!SWIG_IsOK(res2)) {
20636 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20637 }
20638 if (!argp2) {
20639 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20640 }
20641 arg2 = reinterpret_cast< wxPen * >(argp2);
20642 {
20643 PyThreadState* __tstate = wxPyBeginAllowThreads();
20644 (arg1)->SetPen((wxPen const &)*arg2);
20645 wxPyEndAllowThreads(__tstate);
20646 if (PyErr_Occurred()) SWIG_fail;
20647 }
20648 resultobj = SWIG_Py_Void();
20649 return resultobj;
20650 fail:
20651 return NULL;
20652 }
20653
20654
20655 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20656 PyObject *resultobj = 0;
20657 wxDC *arg1 = (wxDC *) 0 ;
20658 wxBrush *arg2 = 0 ;
20659 void *argp1 = 0 ;
20660 int res1 = 0 ;
20661 void *argp2 = 0 ;
20662 int res2 = 0 ;
20663 PyObject * obj0 = 0 ;
20664 PyObject * obj1 = 0 ;
20665 char * kwnames[] = {
20666 (char *) "self",(char *) "brush", NULL
20667 };
20668
20669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20671 if (!SWIG_IsOK(res1)) {
20672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20673 }
20674 arg1 = reinterpret_cast< wxDC * >(argp1);
20675 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20676 if (!SWIG_IsOK(res2)) {
20677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20678 }
20679 if (!argp2) {
20680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20681 }
20682 arg2 = reinterpret_cast< wxBrush * >(argp2);
20683 {
20684 PyThreadState* __tstate = wxPyBeginAllowThreads();
20685 (arg1)->SetBrush((wxBrush const &)*arg2);
20686 wxPyEndAllowThreads(__tstate);
20687 if (PyErr_Occurred()) SWIG_fail;
20688 }
20689 resultobj = SWIG_Py_Void();
20690 return resultobj;
20691 fail:
20692 return NULL;
20693 }
20694
20695
20696 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20697 PyObject *resultobj = 0;
20698 wxDC *arg1 = (wxDC *) 0 ;
20699 wxBrush *arg2 = 0 ;
20700 void *argp1 = 0 ;
20701 int res1 = 0 ;
20702 void *argp2 = 0 ;
20703 int res2 = 0 ;
20704 PyObject * obj0 = 0 ;
20705 PyObject * obj1 = 0 ;
20706 char * kwnames[] = {
20707 (char *) "self",(char *) "brush", NULL
20708 };
20709
20710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20712 if (!SWIG_IsOK(res1)) {
20713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20714 }
20715 arg1 = reinterpret_cast< wxDC * >(argp1);
20716 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20717 if (!SWIG_IsOK(res2)) {
20718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20719 }
20720 if (!argp2) {
20721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20722 }
20723 arg2 = reinterpret_cast< wxBrush * >(argp2);
20724 {
20725 PyThreadState* __tstate = wxPyBeginAllowThreads();
20726 (arg1)->SetBackground((wxBrush const &)*arg2);
20727 wxPyEndAllowThreads(__tstate);
20728 if (PyErr_Occurred()) SWIG_fail;
20729 }
20730 resultobj = SWIG_Py_Void();
20731 return resultobj;
20732 fail:
20733 return NULL;
20734 }
20735
20736
20737 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20738 PyObject *resultobj = 0;
20739 wxDC *arg1 = (wxDC *) 0 ;
20740 int arg2 ;
20741 void *argp1 = 0 ;
20742 int res1 = 0 ;
20743 int val2 ;
20744 int ecode2 = 0 ;
20745 PyObject * obj0 = 0 ;
20746 PyObject * obj1 = 0 ;
20747 char * kwnames[] = {
20748 (char *) "self",(char *) "mode", NULL
20749 };
20750
20751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20753 if (!SWIG_IsOK(res1)) {
20754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20755 }
20756 arg1 = reinterpret_cast< wxDC * >(argp1);
20757 ecode2 = SWIG_AsVal_int(obj1, &val2);
20758 if (!SWIG_IsOK(ecode2)) {
20759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20760 }
20761 arg2 = static_cast< int >(val2);
20762 {
20763 PyThreadState* __tstate = wxPyBeginAllowThreads();
20764 (arg1)->SetBackgroundMode(arg2);
20765 wxPyEndAllowThreads(__tstate);
20766 if (PyErr_Occurred()) SWIG_fail;
20767 }
20768 resultobj = SWIG_Py_Void();
20769 return resultobj;
20770 fail:
20771 return NULL;
20772 }
20773
20774
20775 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20776 PyObject *resultobj = 0;
20777 wxDC *arg1 = (wxDC *) 0 ;
20778 wxPalette *arg2 = 0 ;
20779 void *argp1 = 0 ;
20780 int res1 = 0 ;
20781 void *argp2 = 0 ;
20782 int res2 = 0 ;
20783 PyObject * obj0 = 0 ;
20784 PyObject * obj1 = 0 ;
20785 char * kwnames[] = {
20786 (char *) "self",(char *) "palette", NULL
20787 };
20788
20789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20791 if (!SWIG_IsOK(res1)) {
20792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20793 }
20794 arg1 = reinterpret_cast< wxDC * >(argp1);
20795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20796 if (!SWIG_IsOK(res2)) {
20797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20798 }
20799 if (!argp2) {
20800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20801 }
20802 arg2 = reinterpret_cast< wxPalette * >(argp2);
20803 {
20804 PyThreadState* __tstate = wxPyBeginAllowThreads();
20805 (arg1)->SetPalette((wxPalette const &)*arg2);
20806 wxPyEndAllowThreads(__tstate);
20807 if (PyErr_Occurred()) SWIG_fail;
20808 }
20809 resultobj = SWIG_Py_Void();
20810 return resultobj;
20811 fail:
20812 return NULL;
20813 }
20814
20815
20816 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20817 PyObject *resultobj = 0;
20818 wxDC *arg1 = (wxDC *) 0 ;
20819 void *argp1 = 0 ;
20820 int res1 = 0 ;
20821 PyObject *swig_obj[1] ;
20822
20823 if (!args) SWIG_fail;
20824 swig_obj[0] = args;
20825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20826 if (!SWIG_IsOK(res1)) {
20827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20828 }
20829 arg1 = reinterpret_cast< wxDC * >(argp1);
20830 {
20831 PyThreadState* __tstate = wxPyBeginAllowThreads();
20832 (arg1)->DestroyClippingRegion();
20833 wxPyEndAllowThreads(__tstate);
20834 if (PyErr_Occurred()) SWIG_fail;
20835 }
20836 resultobj = SWIG_Py_Void();
20837 return resultobj;
20838 fail:
20839 return NULL;
20840 }
20841
20842
20843 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20844 PyObject *resultobj = 0;
20845 wxDC *arg1 = (wxDC *) 0 ;
20846 int *arg2 = (int *) 0 ;
20847 int *arg3 = (int *) 0 ;
20848 int *arg4 = (int *) 0 ;
20849 int *arg5 = (int *) 0 ;
20850 void *argp1 = 0 ;
20851 int res1 = 0 ;
20852 int temp2 ;
20853 int res2 = SWIG_TMPOBJ ;
20854 int temp3 ;
20855 int res3 = SWIG_TMPOBJ ;
20856 int temp4 ;
20857 int res4 = SWIG_TMPOBJ ;
20858 int temp5 ;
20859 int res5 = SWIG_TMPOBJ ;
20860 PyObject *swig_obj[1] ;
20861
20862 arg2 = &temp2;
20863 arg3 = &temp3;
20864 arg4 = &temp4;
20865 arg5 = &temp5;
20866 if (!args) SWIG_fail;
20867 swig_obj[0] = args;
20868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20869 if (!SWIG_IsOK(res1)) {
20870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20871 }
20872 arg1 = reinterpret_cast< wxDC * >(argp1);
20873 {
20874 PyThreadState* __tstate = wxPyBeginAllowThreads();
20875 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20876 wxPyEndAllowThreads(__tstate);
20877 if (PyErr_Occurred()) SWIG_fail;
20878 }
20879 resultobj = SWIG_Py_Void();
20880 if (SWIG_IsTmpObj(res2)) {
20881 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20882 } else {
20883 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20884 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20885 }
20886 if (SWIG_IsTmpObj(res3)) {
20887 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20888 } else {
20889 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20890 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20891 }
20892 if (SWIG_IsTmpObj(res4)) {
20893 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20894 } else {
20895 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20896 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20897 }
20898 if (SWIG_IsTmpObj(res5)) {
20899 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20900 } else {
20901 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20902 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20903 }
20904 return resultobj;
20905 fail:
20906 return NULL;
20907 }
20908
20909
20910 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20911 PyObject *resultobj = 0;
20912 wxDC *arg1 = (wxDC *) 0 ;
20913 wxRect result;
20914 void *argp1 = 0 ;
20915 int res1 = 0 ;
20916 PyObject *swig_obj[1] ;
20917
20918 if (!args) SWIG_fail;
20919 swig_obj[0] = args;
20920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20921 if (!SWIG_IsOK(res1)) {
20922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20923 }
20924 arg1 = reinterpret_cast< wxDC * >(argp1);
20925 {
20926 PyThreadState* __tstate = wxPyBeginAllowThreads();
20927 result = wxDC_GetClippingRect(arg1);
20928 wxPyEndAllowThreads(__tstate);
20929 if (PyErr_Occurred()) SWIG_fail;
20930 }
20931 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20932 return resultobj;
20933 fail:
20934 return NULL;
20935 }
20936
20937
20938 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20939 PyObject *resultobj = 0;
20940 wxDC *arg1 = (wxDC *) 0 ;
20941 int result;
20942 void *argp1 = 0 ;
20943 int res1 = 0 ;
20944 PyObject *swig_obj[1] ;
20945
20946 if (!args) SWIG_fail;
20947 swig_obj[0] = args;
20948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20949 if (!SWIG_IsOK(res1)) {
20950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20951 }
20952 arg1 = reinterpret_cast< wxDC * >(argp1);
20953 {
20954 PyThreadState* __tstate = wxPyBeginAllowThreads();
20955 result = (int)((wxDC const *)arg1)->GetCharHeight();
20956 wxPyEndAllowThreads(__tstate);
20957 if (PyErr_Occurred()) SWIG_fail;
20958 }
20959 resultobj = SWIG_From_int(static_cast< int >(result));
20960 return resultobj;
20961 fail:
20962 return NULL;
20963 }
20964
20965
20966 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20967 PyObject *resultobj = 0;
20968 wxDC *arg1 = (wxDC *) 0 ;
20969 int result;
20970 void *argp1 = 0 ;
20971 int res1 = 0 ;
20972 PyObject *swig_obj[1] ;
20973
20974 if (!args) SWIG_fail;
20975 swig_obj[0] = args;
20976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20977 if (!SWIG_IsOK(res1)) {
20978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20979 }
20980 arg1 = reinterpret_cast< wxDC * >(argp1);
20981 {
20982 PyThreadState* __tstate = wxPyBeginAllowThreads();
20983 result = (int)((wxDC const *)arg1)->GetCharWidth();
20984 wxPyEndAllowThreads(__tstate);
20985 if (PyErr_Occurred()) SWIG_fail;
20986 }
20987 resultobj = SWIG_From_int(static_cast< int >(result));
20988 return resultobj;
20989 fail:
20990 return NULL;
20991 }
20992
20993
20994 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20995 PyObject *resultobj = 0;
20996 wxDC *arg1 = (wxDC *) 0 ;
20997 wxString *arg2 = 0 ;
20998 int *arg3 = (int *) 0 ;
20999 int *arg4 = (int *) 0 ;
21000 void *argp1 = 0 ;
21001 int res1 = 0 ;
21002 bool temp2 = false ;
21003 int temp3 ;
21004 int res3 = SWIG_TMPOBJ ;
21005 int temp4 ;
21006 int res4 = SWIG_TMPOBJ ;
21007 PyObject * obj0 = 0 ;
21008 PyObject * obj1 = 0 ;
21009 char * kwnames[] = {
21010 (char *) "self",(char *) "string", NULL
21011 };
21012
21013 arg3 = &temp3;
21014 arg4 = &temp4;
21015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21017 if (!SWIG_IsOK(res1)) {
21018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21019 }
21020 arg1 = reinterpret_cast< wxDC * >(argp1);
21021 {
21022 arg2 = wxString_in_helper(obj1);
21023 if (arg2 == NULL) SWIG_fail;
21024 temp2 = true;
21025 }
21026 {
21027 PyThreadState* __tstate = wxPyBeginAllowThreads();
21028 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21029 wxPyEndAllowThreads(__tstate);
21030 if (PyErr_Occurred()) SWIG_fail;
21031 }
21032 resultobj = SWIG_Py_Void();
21033 if (SWIG_IsTmpObj(res3)) {
21034 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21035 } else {
21036 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21037 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21038 }
21039 if (SWIG_IsTmpObj(res4)) {
21040 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21041 } else {
21042 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21043 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21044 }
21045 {
21046 if (temp2)
21047 delete arg2;
21048 }
21049 return resultobj;
21050 fail:
21051 {
21052 if (temp2)
21053 delete arg2;
21054 }
21055 return NULL;
21056 }
21057
21058
21059 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21060 PyObject *resultobj = 0;
21061 wxDC *arg1 = (wxDC *) 0 ;
21062 wxString *arg2 = 0 ;
21063 int *arg3 = (int *) 0 ;
21064 int *arg4 = (int *) 0 ;
21065 int *arg5 = (int *) 0 ;
21066 int *arg6 = (int *) 0 ;
21067 wxFont *arg7 = (wxFont *) NULL ;
21068 void *argp1 = 0 ;
21069 int res1 = 0 ;
21070 bool temp2 = false ;
21071 int temp3 ;
21072 int res3 = SWIG_TMPOBJ ;
21073 int temp4 ;
21074 int res4 = SWIG_TMPOBJ ;
21075 int temp5 ;
21076 int res5 = SWIG_TMPOBJ ;
21077 int temp6 ;
21078 int res6 = SWIG_TMPOBJ ;
21079 void *argp7 = 0 ;
21080 int res7 = 0 ;
21081 PyObject * obj0 = 0 ;
21082 PyObject * obj1 = 0 ;
21083 PyObject * obj2 = 0 ;
21084 char * kwnames[] = {
21085 (char *) "self",(char *) "string",(char *) "font", NULL
21086 };
21087
21088 arg3 = &temp3;
21089 arg4 = &temp4;
21090 arg5 = &temp5;
21091 arg6 = &temp6;
21092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21094 if (!SWIG_IsOK(res1)) {
21095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21096 }
21097 arg1 = reinterpret_cast< wxDC * >(argp1);
21098 {
21099 arg2 = wxString_in_helper(obj1);
21100 if (arg2 == NULL) SWIG_fail;
21101 temp2 = true;
21102 }
21103 if (obj2) {
21104 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21105 if (!SWIG_IsOK(res7)) {
21106 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21107 }
21108 arg7 = reinterpret_cast< wxFont * >(argp7);
21109 }
21110 {
21111 PyThreadState* __tstate = wxPyBeginAllowThreads();
21112 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21113 wxPyEndAllowThreads(__tstate);
21114 if (PyErr_Occurred()) SWIG_fail;
21115 }
21116 resultobj = SWIG_Py_Void();
21117 if (SWIG_IsTmpObj(res3)) {
21118 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21119 } else {
21120 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21121 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21122 }
21123 if (SWIG_IsTmpObj(res4)) {
21124 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21125 } else {
21126 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21127 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21128 }
21129 if (SWIG_IsTmpObj(res5)) {
21130 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21131 } else {
21132 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21133 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21134 }
21135 if (SWIG_IsTmpObj(res6)) {
21136 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21137 } else {
21138 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21139 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21140 }
21141 {
21142 if (temp2)
21143 delete arg2;
21144 }
21145 return resultobj;
21146 fail:
21147 {
21148 if (temp2)
21149 delete arg2;
21150 }
21151 return NULL;
21152 }
21153
21154
21155 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21156 PyObject *resultobj = 0;
21157 wxDC *arg1 = (wxDC *) 0 ;
21158 wxString *arg2 = 0 ;
21159 int *arg3 = (int *) 0 ;
21160 int *arg4 = (int *) 0 ;
21161 int *arg5 = (int *) 0 ;
21162 wxFont *arg6 = (wxFont *) NULL ;
21163 void *argp1 = 0 ;
21164 int res1 = 0 ;
21165 bool temp2 = false ;
21166 int temp3 ;
21167 int res3 = SWIG_TMPOBJ ;
21168 int temp4 ;
21169 int res4 = SWIG_TMPOBJ ;
21170 int temp5 ;
21171 int res5 = SWIG_TMPOBJ ;
21172 void *argp6 = 0 ;
21173 int res6 = 0 ;
21174 PyObject * obj0 = 0 ;
21175 PyObject * obj1 = 0 ;
21176 PyObject * obj2 = 0 ;
21177 char * kwnames[] = {
21178 (char *) "self",(char *) "text",(char *) "font", NULL
21179 };
21180
21181 arg3 = &temp3;
21182 arg4 = &temp4;
21183 arg5 = &temp5;
21184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21186 if (!SWIG_IsOK(res1)) {
21187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21188 }
21189 arg1 = reinterpret_cast< wxDC * >(argp1);
21190 {
21191 arg2 = wxString_in_helper(obj1);
21192 if (arg2 == NULL) SWIG_fail;
21193 temp2 = true;
21194 }
21195 if (obj2) {
21196 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21197 if (!SWIG_IsOK(res6)) {
21198 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21199 }
21200 arg6 = reinterpret_cast< wxFont * >(argp6);
21201 }
21202 {
21203 PyThreadState* __tstate = wxPyBeginAllowThreads();
21204 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21205 wxPyEndAllowThreads(__tstate);
21206 if (PyErr_Occurred()) SWIG_fail;
21207 }
21208 resultobj = SWIG_Py_Void();
21209 if (SWIG_IsTmpObj(res3)) {
21210 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21211 } else {
21212 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21213 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21214 }
21215 if (SWIG_IsTmpObj(res4)) {
21216 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21217 } else {
21218 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21219 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21220 }
21221 if (SWIG_IsTmpObj(res5)) {
21222 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21223 } else {
21224 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21225 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21226 }
21227 {
21228 if (temp2)
21229 delete arg2;
21230 }
21231 return resultobj;
21232 fail:
21233 {
21234 if (temp2)
21235 delete arg2;
21236 }
21237 return NULL;
21238 }
21239
21240
21241 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21242 PyObject *resultobj = 0;
21243 wxDC *arg1 = (wxDC *) 0 ;
21244 wxString *arg2 = 0 ;
21245 wxArrayInt result;
21246 void *argp1 = 0 ;
21247 int res1 = 0 ;
21248 bool temp2 = false ;
21249 PyObject * obj0 = 0 ;
21250 PyObject * obj1 = 0 ;
21251 char * kwnames[] = {
21252 (char *) "self",(char *) "text", NULL
21253 };
21254
21255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21257 if (!SWIG_IsOK(res1)) {
21258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21259 }
21260 arg1 = reinterpret_cast< wxDC * >(argp1);
21261 {
21262 arg2 = wxString_in_helper(obj1);
21263 if (arg2 == NULL) SWIG_fail;
21264 temp2 = true;
21265 }
21266 {
21267 PyThreadState* __tstate = wxPyBeginAllowThreads();
21268 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21269 wxPyEndAllowThreads(__tstate);
21270 if (PyErr_Occurred()) SWIG_fail;
21271 }
21272 {
21273 resultobj = wxArrayInt2PyList_helper(result);
21274 }
21275 {
21276 if (temp2)
21277 delete arg2;
21278 }
21279 return resultobj;
21280 fail:
21281 {
21282 if (temp2)
21283 delete arg2;
21284 }
21285 return NULL;
21286 }
21287
21288
21289 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21290 PyObject *resultobj = 0;
21291 wxDC *arg1 = (wxDC *) 0 ;
21292 wxSize result;
21293 void *argp1 = 0 ;
21294 int res1 = 0 ;
21295 PyObject *swig_obj[1] ;
21296
21297 if (!args) SWIG_fail;
21298 swig_obj[0] = args;
21299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21300 if (!SWIG_IsOK(res1)) {
21301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21302 }
21303 arg1 = reinterpret_cast< wxDC * >(argp1);
21304 {
21305 PyThreadState* __tstate = wxPyBeginAllowThreads();
21306 result = (arg1)->GetSize();
21307 wxPyEndAllowThreads(__tstate);
21308 if (PyErr_Occurred()) SWIG_fail;
21309 }
21310 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21311 return resultobj;
21312 fail:
21313 return NULL;
21314 }
21315
21316
21317 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21318 PyObject *resultobj = 0;
21319 wxDC *arg1 = (wxDC *) 0 ;
21320 int *arg2 = (int *) 0 ;
21321 int *arg3 = (int *) 0 ;
21322 void *argp1 = 0 ;
21323 int res1 = 0 ;
21324 int temp2 ;
21325 int res2 = SWIG_TMPOBJ ;
21326 int temp3 ;
21327 int res3 = SWIG_TMPOBJ ;
21328 PyObject *swig_obj[1] ;
21329
21330 arg2 = &temp2;
21331 arg3 = &temp3;
21332 if (!args) SWIG_fail;
21333 swig_obj[0] = args;
21334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21335 if (!SWIG_IsOK(res1)) {
21336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21337 }
21338 arg1 = reinterpret_cast< wxDC * >(argp1);
21339 {
21340 PyThreadState* __tstate = wxPyBeginAllowThreads();
21341 (arg1)->GetSize(arg2,arg3);
21342 wxPyEndAllowThreads(__tstate);
21343 if (PyErr_Occurred()) SWIG_fail;
21344 }
21345 resultobj = SWIG_Py_Void();
21346 if (SWIG_IsTmpObj(res2)) {
21347 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21348 } else {
21349 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21350 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21351 }
21352 if (SWIG_IsTmpObj(res3)) {
21353 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21354 } else {
21355 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21356 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21357 }
21358 return resultobj;
21359 fail:
21360 return NULL;
21361 }
21362
21363
21364 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21365 PyObject *resultobj = 0;
21366 wxDC *arg1 = (wxDC *) 0 ;
21367 wxSize result;
21368 void *argp1 = 0 ;
21369 int res1 = 0 ;
21370 PyObject *swig_obj[1] ;
21371
21372 if (!args) SWIG_fail;
21373 swig_obj[0] = args;
21374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21375 if (!SWIG_IsOK(res1)) {
21376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21377 }
21378 arg1 = reinterpret_cast< wxDC * >(argp1);
21379 {
21380 PyThreadState* __tstate = wxPyBeginAllowThreads();
21381 result = ((wxDC const *)arg1)->GetSizeMM();
21382 wxPyEndAllowThreads(__tstate);
21383 if (PyErr_Occurred()) SWIG_fail;
21384 }
21385 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21386 return resultobj;
21387 fail:
21388 return NULL;
21389 }
21390
21391
21392 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21393 PyObject *resultobj = 0;
21394 wxDC *arg1 = (wxDC *) 0 ;
21395 int *arg2 = (int *) 0 ;
21396 int *arg3 = (int *) 0 ;
21397 void *argp1 = 0 ;
21398 int res1 = 0 ;
21399 int temp2 ;
21400 int res2 = SWIG_TMPOBJ ;
21401 int temp3 ;
21402 int res3 = SWIG_TMPOBJ ;
21403 PyObject *swig_obj[1] ;
21404
21405 arg2 = &temp2;
21406 arg3 = &temp3;
21407 if (!args) SWIG_fail;
21408 swig_obj[0] = args;
21409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21410 if (!SWIG_IsOK(res1)) {
21411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21412 }
21413 arg1 = reinterpret_cast< wxDC * >(argp1);
21414 {
21415 PyThreadState* __tstate = wxPyBeginAllowThreads();
21416 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21417 wxPyEndAllowThreads(__tstate);
21418 if (PyErr_Occurred()) SWIG_fail;
21419 }
21420 resultobj = SWIG_Py_Void();
21421 if (SWIG_IsTmpObj(res2)) {
21422 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21423 } else {
21424 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21425 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21426 }
21427 if (SWIG_IsTmpObj(res3)) {
21428 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21429 } else {
21430 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21431 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21432 }
21433 return resultobj;
21434 fail:
21435 return NULL;
21436 }
21437
21438
21439 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21440 PyObject *resultobj = 0;
21441 wxDC *arg1 = (wxDC *) 0 ;
21442 int arg2 ;
21443 int result;
21444 void *argp1 = 0 ;
21445 int res1 = 0 ;
21446 int val2 ;
21447 int ecode2 = 0 ;
21448 PyObject * obj0 = 0 ;
21449 PyObject * obj1 = 0 ;
21450 char * kwnames[] = {
21451 (char *) "self",(char *) "x", NULL
21452 };
21453
21454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21456 if (!SWIG_IsOK(res1)) {
21457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21458 }
21459 arg1 = reinterpret_cast< wxDC * >(argp1);
21460 ecode2 = SWIG_AsVal_int(obj1, &val2);
21461 if (!SWIG_IsOK(ecode2)) {
21462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21463 }
21464 arg2 = static_cast< int >(val2);
21465 {
21466 PyThreadState* __tstate = wxPyBeginAllowThreads();
21467 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21468 wxPyEndAllowThreads(__tstate);
21469 if (PyErr_Occurred()) SWIG_fail;
21470 }
21471 resultobj = SWIG_From_int(static_cast< int >(result));
21472 return resultobj;
21473 fail:
21474 return NULL;
21475 }
21476
21477
21478 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21479 PyObject *resultobj = 0;
21480 wxDC *arg1 = (wxDC *) 0 ;
21481 int arg2 ;
21482 int result;
21483 void *argp1 = 0 ;
21484 int res1 = 0 ;
21485 int val2 ;
21486 int ecode2 = 0 ;
21487 PyObject * obj0 = 0 ;
21488 PyObject * obj1 = 0 ;
21489 char * kwnames[] = {
21490 (char *) "self",(char *) "y", NULL
21491 };
21492
21493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21495 if (!SWIG_IsOK(res1)) {
21496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21497 }
21498 arg1 = reinterpret_cast< wxDC * >(argp1);
21499 ecode2 = SWIG_AsVal_int(obj1, &val2);
21500 if (!SWIG_IsOK(ecode2)) {
21501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21502 }
21503 arg2 = static_cast< int >(val2);
21504 {
21505 PyThreadState* __tstate = wxPyBeginAllowThreads();
21506 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21507 wxPyEndAllowThreads(__tstate);
21508 if (PyErr_Occurred()) SWIG_fail;
21509 }
21510 resultobj = SWIG_From_int(static_cast< int >(result));
21511 return resultobj;
21512 fail:
21513 return NULL;
21514 }
21515
21516
21517 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21518 PyObject *resultobj = 0;
21519 wxDC *arg1 = (wxDC *) 0 ;
21520 int arg2 ;
21521 int result;
21522 void *argp1 = 0 ;
21523 int res1 = 0 ;
21524 int val2 ;
21525 int ecode2 = 0 ;
21526 PyObject * obj0 = 0 ;
21527 PyObject * obj1 = 0 ;
21528 char * kwnames[] = {
21529 (char *) "self",(char *) "x", NULL
21530 };
21531
21532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21534 if (!SWIG_IsOK(res1)) {
21535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21536 }
21537 arg1 = reinterpret_cast< wxDC * >(argp1);
21538 ecode2 = SWIG_AsVal_int(obj1, &val2);
21539 if (!SWIG_IsOK(ecode2)) {
21540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21541 }
21542 arg2 = static_cast< int >(val2);
21543 {
21544 PyThreadState* __tstate = wxPyBeginAllowThreads();
21545 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21546 wxPyEndAllowThreads(__tstate);
21547 if (PyErr_Occurred()) SWIG_fail;
21548 }
21549 resultobj = SWIG_From_int(static_cast< int >(result));
21550 return resultobj;
21551 fail:
21552 return NULL;
21553 }
21554
21555
21556 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21557 PyObject *resultobj = 0;
21558 wxDC *arg1 = (wxDC *) 0 ;
21559 int arg2 ;
21560 int result;
21561 void *argp1 = 0 ;
21562 int res1 = 0 ;
21563 int val2 ;
21564 int ecode2 = 0 ;
21565 PyObject * obj0 = 0 ;
21566 PyObject * obj1 = 0 ;
21567 char * kwnames[] = {
21568 (char *) "self",(char *) "y", NULL
21569 };
21570
21571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21573 if (!SWIG_IsOK(res1)) {
21574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21575 }
21576 arg1 = reinterpret_cast< wxDC * >(argp1);
21577 ecode2 = SWIG_AsVal_int(obj1, &val2);
21578 if (!SWIG_IsOK(ecode2)) {
21579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21580 }
21581 arg2 = static_cast< int >(val2);
21582 {
21583 PyThreadState* __tstate = wxPyBeginAllowThreads();
21584 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21585 wxPyEndAllowThreads(__tstate);
21586 if (PyErr_Occurred()) SWIG_fail;
21587 }
21588 resultobj = SWIG_From_int(static_cast< int >(result));
21589 return resultobj;
21590 fail:
21591 return NULL;
21592 }
21593
21594
21595 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21596 PyObject *resultobj = 0;
21597 wxDC *arg1 = (wxDC *) 0 ;
21598 int arg2 ;
21599 int result;
21600 void *argp1 = 0 ;
21601 int res1 = 0 ;
21602 int val2 ;
21603 int ecode2 = 0 ;
21604 PyObject * obj0 = 0 ;
21605 PyObject * obj1 = 0 ;
21606 char * kwnames[] = {
21607 (char *) "self",(char *) "x", NULL
21608 };
21609
21610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21612 if (!SWIG_IsOK(res1)) {
21613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21614 }
21615 arg1 = reinterpret_cast< wxDC * >(argp1);
21616 ecode2 = SWIG_AsVal_int(obj1, &val2);
21617 if (!SWIG_IsOK(ecode2)) {
21618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21619 }
21620 arg2 = static_cast< int >(val2);
21621 {
21622 PyThreadState* __tstate = wxPyBeginAllowThreads();
21623 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21624 wxPyEndAllowThreads(__tstate);
21625 if (PyErr_Occurred()) SWIG_fail;
21626 }
21627 resultobj = SWIG_From_int(static_cast< int >(result));
21628 return resultobj;
21629 fail:
21630 return NULL;
21631 }
21632
21633
21634 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21635 PyObject *resultobj = 0;
21636 wxDC *arg1 = (wxDC *) 0 ;
21637 int arg2 ;
21638 int result;
21639 void *argp1 = 0 ;
21640 int res1 = 0 ;
21641 int val2 ;
21642 int ecode2 = 0 ;
21643 PyObject * obj0 = 0 ;
21644 PyObject * obj1 = 0 ;
21645 char * kwnames[] = {
21646 (char *) "self",(char *) "y", NULL
21647 };
21648
21649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21651 if (!SWIG_IsOK(res1)) {
21652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21653 }
21654 arg1 = reinterpret_cast< wxDC * >(argp1);
21655 ecode2 = SWIG_AsVal_int(obj1, &val2);
21656 if (!SWIG_IsOK(ecode2)) {
21657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21658 }
21659 arg2 = static_cast< int >(val2);
21660 {
21661 PyThreadState* __tstate = wxPyBeginAllowThreads();
21662 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21663 wxPyEndAllowThreads(__tstate);
21664 if (PyErr_Occurred()) SWIG_fail;
21665 }
21666 resultobj = SWIG_From_int(static_cast< int >(result));
21667 return resultobj;
21668 fail:
21669 return NULL;
21670 }
21671
21672
21673 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21674 PyObject *resultobj = 0;
21675 wxDC *arg1 = (wxDC *) 0 ;
21676 int arg2 ;
21677 int result;
21678 void *argp1 = 0 ;
21679 int res1 = 0 ;
21680 int val2 ;
21681 int ecode2 = 0 ;
21682 PyObject * obj0 = 0 ;
21683 PyObject * obj1 = 0 ;
21684 char * kwnames[] = {
21685 (char *) "self",(char *) "x", NULL
21686 };
21687
21688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21690 if (!SWIG_IsOK(res1)) {
21691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21692 }
21693 arg1 = reinterpret_cast< wxDC * >(argp1);
21694 ecode2 = SWIG_AsVal_int(obj1, &val2);
21695 if (!SWIG_IsOK(ecode2)) {
21696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21697 }
21698 arg2 = static_cast< int >(val2);
21699 {
21700 PyThreadState* __tstate = wxPyBeginAllowThreads();
21701 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21702 wxPyEndAllowThreads(__tstate);
21703 if (PyErr_Occurred()) SWIG_fail;
21704 }
21705 resultobj = SWIG_From_int(static_cast< int >(result));
21706 return resultobj;
21707 fail:
21708 return NULL;
21709 }
21710
21711
21712 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21713 PyObject *resultobj = 0;
21714 wxDC *arg1 = (wxDC *) 0 ;
21715 int arg2 ;
21716 int result;
21717 void *argp1 = 0 ;
21718 int res1 = 0 ;
21719 int val2 ;
21720 int ecode2 = 0 ;
21721 PyObject * obj0 = 0 ;
21722 PyObject * obj1 = 0 ;
21723 char * kwnames[] = {
21724 (char *) "self",(char *) "y", NULL
21725 };
21726
21727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21729 if (!SWIG_IsOK(res1)) {
21730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21731 }
21732 arg1 = reinterpret_cast< wxDC * >(argp1);
21733 ecode2 = SWIG_AsVal_int(obj1, &val2);
21734 if (!SWIG_IsOK(ecode2)) {
21735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21736 }
21737 arg2 = static_cast< int >(val2);
21738 {
21739 PyThreadState* __tstate = wxPyBeginAllowThreads();
21740 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21741 wxPyEndAllowThreads(__tstate);
21742 if (PyErr_Occurred()) SWIG_fail;
21743 }
21744 resultobj = SWIG_From_int(static_cast< int >(result));
21745 return resultobj;
21746 fail:
21747 return NULL;
21748 }
21749
21750
21751 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21752 PyObject *resultobj = 0;
21753 wxDC *arg1 = (wxDC *) 0 ;
21754 bool result;
21755 void *argp1 = 0 ;
21756 int res1 = 0 ;
21757 PyObject *swig_obj[1] ;
21758
21759 if (!args) SWIG_fail;
21760 swig_obj[0] = args;
21761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21762 if (!SWIG_IsOK(res1)) {
21763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21764 }
21765 arg1 = reinterpret_cast< wxDC * >(argp1);
21766 {
21767 PyThreadState* __tstate = wxPyBeginAllowThreads();
21768 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21769 wxPyEndAllowThreads(__tstate);
21770 if (PyErr_Occurred()) SWIG_fail;
21771 }
21772 {
21773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21774 }
21775 return resultobj;
21776 fail:
21777 return NULL;
21778 }
21779
21780
21781 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21782 PyObject *resultobj = 0;
21783 wxDC *arg1 = (wxDC *) 0 ;
21784 bool result;
21785 void *argp1 = 0 ;
21786 int res1 = 0 ;
21787 PyObject *swig_obj[1] ;
21788
21789 if (!args) SWIG_fail;
21790 swig_obj[0] = args;
21791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21792 if (!SWIG_IsOK(res1)) {
21793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21794 }
21795 arg1 = reinterpret_cast< wxDC * >(argp1);
21796 {
21797 PyThreadState* __tstate = wxPyBeginAllowThreads();
21798 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21799 wxPyEndAllowThreads(__tstate);
21800 if (PyErr_Occurred()) SWIG_fail;
21801 }
21802 {
21803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21804 }
21805 return resultobj;
21806 fail:
21807 return NULL;
21808 }
21809
21810
21811 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21812 PyObject *resultobj = 0;
21813 wxDC *arg1 = (wxDC *) 0 ;
21814 int result;
21815 void *argp1 = 0 ;
21816 int res1 = 0 ;
21817 PyObject *swig_obj[1] ;
21818
21819 if (!args) SWIG_fail;
21820 swig_obj[0] = args;
21821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21822 if (!SWIG_IsOK(res1)) {
21823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21824 }
21825 arg1 = reinterpret_cast< wxDC * >(argp1);
21826 {
21827 PyThreadState* __tstate = wxPyBeginAllowThreads();
21828 result = (int)((wxDC const *)arg1)->GetDepth();
21829 wxPyEndAllowThreads(__tstate);
21830 if (PyErr_Occurred()) SWIG_fail;
21831 }
21832 resultobj = SWIG_From_int(static_cast< int >(result));
21833 return resultobj;
21834 fail:
21835 return NULL;
21836 }
21837
21838
21839 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21840 PyObject *resultobj = 0;
21841 wxDC *arg1 = (wxDC *) 0 ;
21842 wxSize result;
21843 void *argp1 = 0 ;
21844 int res1 = 0 ;
21845 PyObject *swig_obj[1] ;
21846
21847 if (!args) SWIG_fail;
21848 swig_obj[0] = args;
21849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21850 if (!SWIG_IsOK(res1)) {
21851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21852 }
21853 arg1 = reinterpret_cast< wxDC * >(argp1);
21854 {
21855 PyThreadState* __tstate = wxPyBeginAllowThreads();
21856 result = ((wxDC const *)arg1)->GetPPI();
21857 wxPyEndAllowThreads(__tstate);
21858 if (PyErr_Occurred()) SWIG_fail;
21859 }
21860 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21861 return resultobj;
21862 fail:
21863 return NULL;
21864 }
21865
21866
21867 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21868 PyObject *resultobj = 0;
21869 wxDC *arg1 = (wxDC *) 0 ;
21870 bool result;
21871 void *argp1 = 0 ;
21872 int res1 = 0 ;
21873 PyObject *swig_obj[1] ;
21874
21875 if (!args) SWIG_fail;
21876 swig_obj[0] = args;
21877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21878 if (!SWIG_IsOK(res1)) {
21879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
21880 }
21881 arg1 = reinterpret_cast< wxDC * >(argp1);
21882 {
21883 PyThreadState* __tstate = wxPyBeginAllowThreads();
21884 result = (bool)((wxDC const *)arg1)->IsOk();
21885 wxPyEndAllowThreads(__tstate);
21886 if (PyErr_Occurred()) SWIG_fail;
21887 }
21888 {
21889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21890 }
21891 return resultobj;
21892 fail:
21893 return NULL;
21894 }
21895
21896
21897 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21898 PyObject *resultobj = 0;
21899 wxDC *arg1 = (wxDC *) 0 ;
21900 int result;
21901 void *argp1 = 0 ;
21902 int res1 = 0 ;
21903 PyObject *swig_obj[1] ;
21904
21905 if (!args) SWIG_fail;
21906 swig_obj[0] = args;
21907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21908 if (!SWIG_IsOK(res1)) {
21909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21910 }
21911 arg1 = reinterpret_cast< wxDC * >(argp1);
21912 {
21913 PyThreadState* __tstate = wxPyBeginAllowThreads();
21914 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21915 wxPyEndAllowThreads(__tstate);
21916 if (PyErr_Occurred()) SWIG_fail;
21917 }
21918 resultobj = SWIG_From_int(static_cast< int >(result));
21919 return resultobj;
21920 fail:
21921 return NULL;
21922 }
21923
21924
21925 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21926 PyObject *resultobj = 0;
21927 wxDC *arg1 = (wxDC *) 0 ;
21928 wxBrush *result = 0 ;
21929 void *argp1 = 0 ;
21930 int res1 = 0 ;
21931 PyObject *swig_obj[1] ;
21932
21933 if (!args) SWIG_fail;
21934 swig_obj[0] = args;
21935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21936 if (!SWIG_IsOK(res1)) {
21937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21938 }
21939 arg1 = reinterpret_cast< wxDC * >(argp1);
21940 {
21941 PyThreadState* __tstate = wxPyBeginAllowThreads();
21942 {
21943 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21944 result = (wxBrush *) &_result_ref;
21945 }
21946 wxPyEndAllowThreads(__tstate);
21947 if (PyErr_Occurred()) SWIG_fail;
21948 }
21949 {
21950 wxBrush* resultptr = new wxBrush(*result);
21951 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21952 }
21953 return resultobj;
21954 fail:
21955 return NULL;
21956 }
21957
21958
21959 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21960 PyObject *resultobj = 0;
21961 wxDC *arg1 = (wxDC *) 0 ;
21962 wxBrush *result = 0 ;
21963 void *argp1 = 0 ;
21964 int res1 = 0 ;
21965 PyObject *swig_obj[1] ;
21966
21967 if (!args) SWIG_fail;
21968 swig_obj[0] = args;
21969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21970 if (!SWIG_IsOK(res1)) {
21971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21972 }
21973 arg1 = reinterpret_cast< wxDC * >(argp1);
21974 {
21975 PyThreadState* __tstate = wxPyBeginAllowThreads();
21976 {
21977 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21978 result = (wxBrush *) &_result_ref;
21979 }
21980 wxPyEndAllowThreads(__tstate);
21981 if (PyErr_Occurred()) SWIG_fail;
21982 }
21983 {
21984 wxBrush* resultptr = new wxBrush(*result);
21985 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21986 }
21987 return resultobj;
21988 fail:
21989 return NULL;
21990 }
21991
21992
21993 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21994 PyObject *resultobj = 0;
21995 wxDC *arg1 = (wxDC *) 0 ;
21996 wxFont *result = 0 ;
21997 void *argp1 = 0 ;
21998 int res1 = 0 ;
21999 PyObject *swig_obj[1] ;
22000
22001 if (!args) SWIG_fail;
22002 swig_obj[0] = args;
22003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22004 if (!SWIG_IsOK(res1)) {
22005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22006 }
22007 arg1 = reinterpret_cast< wxDC * >(argp1);
22008 {
22009 PyThreadState* __tstate = wxPyBeginAllowThreads();
22010 {
22011 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22012 result = (wxFont *) &_result_ref;
22013 }
22014 wxPyEndAllowThreads(__tstate);
22015 if (PyErr_Occurred()) SWIG_fail;
22016 }
22017 {
22018 wxFont* resultptr = new wxFont(*result);
22019 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22020 }
22021 return resultobj;
22022 fail:
22023 return NULL;
22024 }
22025
22026
22027 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22028 PyObject *resultobj = 0;
22029 wxDC *arg1 = (wxDC *) 0 ;
22030 wxPen *result = 0 ;
22031 void *argp1 = 0 ;
22032 int res1 = 0 ;
22033 PyObject *swig_obj[1] ;
22034
22035 if (!args) SWIG_fail;
22036 swig_obj[0] = args;
22037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22038 if (!SWIG_IsOK(res1)) {
22039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22040 }
22041 arg1 = reinterpret_cast< wxDC * >(argp1);
22042 {
22043 PyThreadState* __tstate = wxPyBeginAllowThreads();
22044 {
22045 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22046 result = (wxPen *) &_result_ref;
22047 }
22048 wxPyEndAllowThreads(__tstate);
22049 if (PyErr_Occurred()) SWIG_fail;
22050 }
22051 {
22052 wxPen* resultptr = new wxPen(*result);
22053 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22054 }
22055 return resultobj;
22056 fail:
22057 return NULL;
22058 }
22059
22060
22061 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22062 PyObject *resultobj = 0;
22063 wxDC *arg1 = (wxDC *) 0 ;
22064 wxColour *result = 0 ;
22065 void *argp1 = 0 ;
22066 int res1 = 0 ;
22067 PyObject *swig_obj[1] ;
22068
22069 if (!args) SWIG_fail;
22070 swig_obj[0] = args;
22071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22072 if (!SWIG_IsOK(res1)) {
22073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22074 }
22075 arg1 = reinterpret_cast< wxDC * >(argp1);
22076 {
22077 PyThreadState* __tstate = wxPyBeginAllowThreads();
22078 {
22079 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22080 result = (wxColour *) &_result_ref;
22081 }
22082 wxPyEndAllowThreads(__tstate);
22083 if (PyErr_Occurred()) SWIG_fail;
22084 }
22085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22086 return resultobj;
22087 fail:
22088 return NULL;
22089 }
22090
22091
22092 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22093 PyObject *resultobj = 0;
22094 wxDC *arg1 = (wxDC *) 0 ;
22095 wxColour *result = 0 ;
22096 void *argp1 = 0 ;
22097 int res1 = 0 ;
22098 PyObject *swig_obj[1] ;
22099
22100 if (!args) SWIG_fail;
22101 swig_obj[0] = args;
22102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22103 if (!SWIG_IsOK(res1)) {
22104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22105 }
22106 arg1 = reinterpret_cast< wxDC * >(argp1);
22107 {
22108 PyThreadState* __tstate = wxPyBeginAllowThreads();
22109 {
22110 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22111 result = (wxColour *) &_result_ref;
22112 }
22113 wxPyEndAllowThreads(__tstate);
22114 if (PyErr_Occurred()) SWIG_fail;
22115 }
22116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22117 return resultobj;
22118 fail:
22119 return NULL;
22120 }
22121
22122
22123 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22124 PyObject *resultobj = 0;
22125 wxDC *arg1 = (wxDC *) 0 ;
22126 wxColour *arg2 = 0 ;
22127 void *argp1 = 0 ;
22128 int res1 = 0 ;
22129 wxColour temp2 ;
22130 PyObject * obj0 = 0 ;
22131 PyObject * obj1 = 0 ;
22132 char * kwnames[] = {
22133 (char *) "self",(char *) "colour", NULL
22134 };
22135
22136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22138 if (!SWIG_IsOK(res1)) {
22139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22140 }
22141 arg1 = reinterpret_cast< wxDC * >(argp1);
22142 {
22143 arg2 = &temp2;
22144 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22145 }
22146 {
22147 PyThreadState* __tstate = wxPyBeginAllowThreads();
22148 (arg1)->SetTextForeground((wxColour const &)*arg2);
22149 wxPyEndAllowThreads(__tstate);
22150 if (PyErr_Occurred()) SWIG_fail;
22151 }
22152 resultobj = SWIG_Py_Void();
22153 return resultobj;
22154 fail:
22155 return NULL;
22156 }
22157
22158
22159 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22160 PyObject *resultobj = 0;
22161 wxDC *arg1 = (wxDC *) 0 ;
22162 wxColour *arg2 = 0 ;
22163 void *argp1 = 0 ;
22164 int res1 = 0 ;
22165 wxColour temp2 ;
22166 PyObject * obj0 = 0 ;
22167 PyObject * obj1 = 0 ;
22168 char * kwnames[] = {
22169 (char *) "self",(char *) "colour", NULL
22170 };
22171
22172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22174 if (!SWIG_IsOK(res1)) {
22175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22176 }
22177 arg1 = reinterpret_cast< wxDC * >(argp1);
22178 {
22179 arg2 = &temp2;
22180 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22181 }
22182 {
22183 PyThreadState* __tstate = wxPyBeginAllowThreads();
22184 (arg1)->SetTextBackground((wxColour const &)*arg2);
22185 wxPyEndAllowThreads(__tstate);
22186 if (PyErr_Occurred()) SWIG_fail;
22187 }
22188 resultobj = SWIG_Py_Void();
22189 return resultobj;
22190 fail:
22191 return NULL;
22192 }
22193
22194
22195 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22196 PyObject *resultobj = 0;
22197 wxDC *arg1 = (wxDC *) 0 ;
22198 int result;
22199 void *argp1 = 0 ;
22200 int res1 = 0 ;
22201 PyObject *swig_obj[1] ;
22202
22203 if (!args) SWIG_fail;
22204 swig_obj[0] = args;
22205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22206 if (!SWIG_IsOK(res1)) {
22207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22208 }
22209 arg1 = reinterpret_cast< wxDC * >(argp1);
22210 {
22211 PyThreadState* __tstate = wxPyBeginAllowThreads();
22212 result = (int)((wxDC const *)arg1)->GetMapMode();
22213 wxPyEndAllowThreads(__tstate);
22214 if (PyErr_Occurred()) SWIG_fail;
22215 }
22216 resultobj = SWIG_From_int(static_cast< int >(result));
22217 return resultobj;
22218 fail:
22219 return NULL;
22220 }
22221
22222
22223 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22224 PyObject *resultobj = 0;
22225 wxDC *arg1 = (wxDC *) 0 ;
22226 int arg2 ;
22227 void *argp1 = 0 ;
22228 int res1 = 0 ;
22229 int val2 ;
22230 int ecode2 = 0 ;
22231 PyObject * obj0 = 0 ;
22232 PyObject * obj1 = 0 ;
22233 char * kwnames[] = {
22234 (char *) "self",(char *) "mode", NULL
22235 };
22236
22237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22239 if (!SWIG_IsOK(res1)) {
22240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22241 }
22242 arg1 = reinterpret_cast< wxDC * >(argp1);
22243 ecode2 = SWIG_AsVal_int(obj1, &val2);
22244 if (!SWIG_IsOK(ecode2)) {
22245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22246 }
22247 arg2 = static_cast< int >(val2);
22248 {
22249 PyThreadState* __tstate = wxPyBeginAllowThreads();
22250 (arg1)->SetMapMode(arg2);
22251 wxPyEndAllowThreads(__tstate);
22252 if (PyErr_Occurred()) SWIG_fail;
22253 }
22254 resultobj = SWIG_Py_Void();
22255 return resultobj;
22256 fail:
22257 return NULL;
22258 }
22259
22260
22261 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22262 PyObject *resultobj = 0;
22263 wxDC *arg1 = (wxDC *) 0 ;
22264 double *arg2 = (double *) 0 ;
22265 double *arg3 = (double *) 0 ;
22266 void *argp1 = 0 ;
22267 int res1 = 0 ;
22268 double temp2 ;
22269 int res2 = SWIG_TMPOBJ ;
22270 double temp3 ;
22271 int res3 = SWIG_TMPOBJ ;
22272 PyObject *swig_obj[1] ;
22273
22274 arg2 = &temp2;
22275 arg3 = &temp3;
22276 if (!args) SWIG_fail;
22277 swig_obj[0] = args;
22278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22279 if (!SWIG_IsOK(res1)) {
22280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22281 }
22282 arg1 = reinterpret_cast< wxDC * >(argp1);
22283 {
22284 PyThreadState* __tstate = wxPyBeginAllowThreads();
22285 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22286 wxPyEndAllowThreads(__tstate);
22287 if (PyErr_Occurred()) SWIG_fail;
22288 }
22289 resultobj = SWIG_Py_Void();
22290 if (SWIG_IsTmpObj(res2)) {
22291 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22292 } else {
22293 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22294 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22295 }
22296 if (SWIG_IsTmpObj(res3)) {
22297 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22298 } else {
22299 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22300 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22301 }
22302 return resultobj;
22303 fail:
22304 return NULL;
22305 }
22306
22307
22308 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22309 PyObject *resultobj = 0;
22310 wxDC *arg1 = (wxDC *) 0 ;
22311 double arg2 ;
22312 double arg3 ;
22313 void *argp1 = 0 ;
22314 int res1 = 0 ;
22315 double val2 ;
22316 int ecode2 = 0 ;
22317 double val3 ;
22318 int ecode3 = 0 ;
22319 PyObject * obj0 = 0 ;
22320 PyObject * obj1 = 0 ;
22321 PyObject * obj2 = 0 ;
22322 char * kwnames[] = {
22323 (char *) "self",(char *) "x",(char *) "y", NULL
22324 };
22325
22326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22328 if (!SWIG_IsOK(res1)) {
22329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22330 }
22331 arg1 = reinterpret_cast< wxDC * >(argp1);
22332 ecode2 = SWIG_AsVal_double(obj1, &val2);
22333 if (!SWIG_IsOK(ecode2)) {
22334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22335 }
22336 arg2 = static_cast< double >(val2);
22337 ecode3 = SWIG_AsVal_double(obj2, &val3);
22338 if (!SWIG_IsOK(ecode3)) {
22339 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22340 }
22341 arg3 = static_cast< double >(val3);
22342 {
22343 PyThreadState* __tstate = wxPyBeginAllowThreads();
22344 (arg1)->SetUserScale(arg2,arg3);
22345 wxPyEndAllowThreads(__tstate);
22346 if (PyErr_Occurred()) SWIG_fail;
22347 }
22348 resultobj = SWIG_Py_Void();
22349 return resultobj;
22350 fail:
22351 return NULL;
22352 }
22353
22354
22355 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22356 PyObject *resultobj = 0;
22357 wxDC *arg1 = (wxDC *) 0 ;
22358 double *arg2 = (double *) 0 ;
22359 double *arg3 = (double *) 0 ;
22360 void *argp1 = 0 ;
22361 int res1 = 0 ;
22362 double temp2 ;
22363 int res2 = SWIG_TMPOBJ ;
22364 double temp3 ;
22365 int res3 = SWIG_TMPOBJ ;
22366 PyObject *swig_obj[1] ;
22367
22368 arg2 = &temp2;
22369 arg3 = &temp3;
22370 if (!args) SWIG_fail;
22371 swig_obj[0] = args;
22372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22373 if (!SWIG_IsOK(res1)) {
22374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22375 }
22376 arg1 = reinterpret_cast< wxDC * >(argp1);
22377 {
22378 PyThreadState* __tstate = wxPyBeginAllowThreads();
22379 (arg1)->GetLogicalScale(arg2,arg3);
22380 wxPyEndAllowThreads(__tstate);
22381 if (PyErr_Occurred()) SWIG_fail;
22382 }
22383 resultobj = SWIG_Py_Void();
22384 if (SWIG_IsTmpObj(res2)) {
22385 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22386 } else {
22387 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22388 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22389 }
22390 if (SWIG_IsTmpObj(res3)) {
22391 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22392 } else {
22393 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22394 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22395 }
22396 return resultobj;
22397 fail:
22398 return NULL;
22399 }
22400
22401
22402 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22403 PyObject *resultobj = 0;
22404 wxDC *arg1 = (wxDC *) 0 ;
22405 double arg2 ;
22406 double arg3 ;
22407 void *argp1 = 0 ;
22408 int res1 = 0 ;
22409 double val2 ;
22410 int ecode2 = 0 ;
22411 double val3 ;
22412 int ecode3 = 0 ;
22413 PyObject * obj0 = 0 ;
22414 PyObject * obj1 = 0 ;
22415 PyObject * obj2 = 0 ;
22416 char * kwnames[] = {
22417 (char *) "self",(char *) "x",(char *) "y", NULL
22418 };
22419
22420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22422 if (!SWIG_IsOK(res1)) {
22423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22424 }
22425 arg1 = reinterpret_cast< wxDC * >(argp1);
22426 ecode2 = SWIG_AsVal_double(obj1, &val2);
22427 if (!SWIG_IsOK(ecode2)) {
22428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22429 }
22430 arg2 = static_cast< double >(val2);
22431 ecode3 = SWIG_AsVal_double(obj2, &val3);
22432 if (!SWIG_IsOK(ecode3)) {
22433 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22434 }
22435 arg3 = static_cast< double >(val3);
22436 {
22437 PyThreadState* __tstate = wxPyBeginAllowThreads();
22438 (arg1)->SetLogicalScale(arg2,arg3);
22439 wxPyEndAllowThreads(__tstate);
22440 if (PyErr_Occurred()) SWIG_fail;
22441 }
22442 resultobj = SWIG_Py_Void();
22443 return resultobj;
22444 fail:
22445 return NULL;
22446 }
22447
22448
22449 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22450 PyObject *resultobj = 0;
22451 wxDC *arg1 = (wxDC *) 0 ;
22452 wxPoint result;
22453 void *argp1 = 0 ;
22454 int res1 = 0 ;
22455 PyObject *swig_obj[1] ;
22456
22457 if (!args) SWIG_fail;
22458 swig_obj[0] = args;
22459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22460 if (!SWIG_IsOK(res1)) {
22461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22462 }
22463 arg1 = reinterpret_cast< wxDC * >(argp1);
22464 {
22465 PyThreadState* __tstate = wxPyBeginAllowThreads();
22466 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22467 wxPyEndAllowThreads(__tstate);
22468 if (PyErr_Occurred()) SWIG_fail;
22469 }
22470 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22471 return resultobj;
22472 fail:
22473 return NULL;
22474 }
22475
22476
22477 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22478 PyObject *resultobj = 0;
22479 wxDC *arg1 = (wxDC *) 0 ;
22480 int *arg2 = (int *) 0 ;
22481 int *arg3 = (int *) 0 ;
22482 void *argp1 = 0 ;
22483 int res1 = 0 ;
22484 int temp2 ;
22485 int res2 = SWIG_TMPOBJ ;
22486 int temp3 ;
22487 int res3 = SWIG_TMPOBJ ;
22488 PyObject *swig_obj[1] ;
22489
22490 arg2 = &temp2;
22491 arg3 = &temp3;
22492 if (!args) SWIG_fail;
22493 swig_obj[0] = args;
22494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22495 if (!SWIG_IsOK(res1)) {
22496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22497 }
22498 arg1 = reinterpret_cast< wxDC * >(argp1);
22499 {
22500 PyThreadState* __tstate = wxPyBeginAllowThreads();
22501 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22502 wxPyEndAllowThreads(__tstate);
22503 if (PyErr_Occurred()) SWIG_fail;
22504 }
22505 resultobj = SWIG_Py_Void();
22506 if (SWIG_IsTmpObj(res2)) {
22507 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22508 } else {
22509 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22510 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22511 }
22512 if (SWIG_IsTmpObj(res3)) {
22513 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22514 } else {
22515 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22516 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22517 }
22518 return resultobj;
22519 fail:
22520 return NULL;
22521 }
22522
22523
22524 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22525 PyObject *resultobj = 0;
22526 wxDC *arg1 = (wxDC *) 0 ;
22527 int arg2 ;
22528 int arg3 ;
22529 void *argp1 = 0 ;
22530 int res1 = 0 ;
22531 int val2 ;
22532 int ecode2 = 0 ;
22533 int val3 ;
22534 int ecode3 = 0 ;
22535 PyObject * obj0 = 0 ;
22536 PyObject * obj1 = 0 ;
22537 PyObject * obj2 = 0 ;
22538 char * kwnames[] = {
22539 (char *) "self",(char *) "x",(char *) "y", NULL
22540 };
22541
22542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22544 if (!SWIG_IsOK(res1)) {
22545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22546 }
22547 arg1 = reinterpret_cast< wxDC * >(argp1);
22548 ecode2 = SWIG_AsVal_int(obj1, &val2);
22549 if (!SWIG_IsOK(ecode2)) {
22550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22551 }
22552 arg2 = static_cast< int >(val2);
22553 ecode3 = SWIG_AsVal_int(obj2, &val3);
22554 if (!SWIG_IsOK(ecode3)) {
22555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22556 }
22557 arg3 = static_cast< int >(val3);
22558 {
22559 PyThreadState* __tstate = wxPyBeginAllowThreads();
22560 (arg1)->SetLogicalOrigin(arg2,arg3);
22561 wxPyEndAllowThreads(__tstate);
22562 if (PyErr_Occurred()) SWIG_fail;
22563 }
22564 resultobj = SWIG_Py_Void();
22565 return resultobj;
22566 fail:
22567 return NULL;
22568 }
22569
22570
22571 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22572 PyObject *resultobj = 0;
22573 wxDC *arg1 = (wxDC *) 0 ;
22574 wxPoint *arg2 = 0 ;
22575 void *argp1 = 0 ;
22576 int res1 = 0 ;
22577 wxPoint temp2 ;
22578 PyObject * obj0 = 0 ;
22579 PyObject * obj1 = 0 ;
22580 char * kwnames[] = {
22581 (char *) "self",(char *) "point", NULL
22582 };
22583
22584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22586 if (!SWIG_IsOK(res1)) {
22587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22588 }
22589 arg1 = reinterpret_cast< wxDC * >(argp1);
22590 {
22591 arg2 = &temp2;
22592 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22593 }
22594 {
22595 PyThreadState* __tstate = wxPyBeginAllowThreads();
22596 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22597 wxPyEndAllowThreads(__tstate);
22598 if (PyErr_Occurred()) SWIG_fail;
22599 }
22600 resultobj = SWIG_Py_Void();
22601 return resultobj;
22602 fail:
22603 return NULL;
22604 }
22605
22606
22607 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22608 PyObject *resultobj = 0;
22609 wxDC *arg1 = (wxDC *) 0 ;
22610 wxPoint result;
22611 void *argp1 = 0 ;
22612 int res1 = 0 ;
22613 PyObject *swig_obj[1] ;
22614
22615 if (!args) SWIG_fail;
22616 swig_obj[0] = args;
22617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22618 if (!SWIG_IsOK(res1)) {
22619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22620 }
22621 arg1 = reinterpret_cast< wxDC * >(argp1);
22622 {
22623 PyThreadState* __tstate = wxPyBeginAllowThreads();
22624 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22625 wxPyEndAllowThreads(__tstate);
22626 if (PyErr_Occurred()) SWIG_fail;
22627 }
22628 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22629 return resultobj;
22630 fail:
22631 return NULL;
22632 }
22633
22634
22635 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22636 PyObject *resultobj = 0;
22637 wxDC *arg1 = (wxDC *) 0 ;
22638 int *arg2 = (int *) 0 ;
22639 int *arg3 = (int *) 0 ;
22640 void *argp1 = 0 ;
22641 int res1 = 0 ;
22642 int temp2 ;
22643 int res2 = SWIG_TMPOBJ ;
22644 int temp3 ;
22645 int res3 = SWIG_TMPOBJ ;
22646 PyObject *swig_obj[1] ;
22647
22648 arg2 = &temp2;
22649 arg3 = &temp3;
22650 if (!args) SWIG_fail;
22651 swig_obj[0] = args;
22652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22653 if (!SWIG_IsOK(res1)) {
22654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22655 }
22656 arg1 = reinterpret_cast< wxDC * >(argp1);
22657 {
22658 PyThreadState* __tstate = wxPyBeginAllowThreads();
22659 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22660 wxPyEndAllowThreads(__tstate);
22661 if (PyErr_Occurred()) SWIG_fail;
22662 }
22663 resultobj = SWIG_Py_Void();
22664 if (SWIG_IsTmpObj(res2)) {
22665 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22666 } else {
22667 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22668 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22669 }
22670 if (SWIG_IsTmpObj(res3)) {
22671 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22672 } else {
22673 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22674 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22675 }
22676 return resultobj;
22677 fail:
22678 return NULL;
22679 }
22680
22681
22682 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22683 PyObject *resultobj = 0;
22684 wxDC *arg1 = (wxDC *) 0 ;
22685 int arg2 ;
22686 int arg3 ;
22687 void *argp1 = 0 ;
22688 int res1 = 0 ;
22689 int val2 ;
22690 int ecode2 = 0 ;
22691 int val3 ;
22692 int ecode3 = 0 ;
22693 PyObject * obj0 = 0 ;
22694 PyObject * obj1 = 0 ;
22695 PyObject * obj2 = 0 ;
22696 char * kwnames[] = {
22697 (char *) "self",(char *) "x",(char *) "y", NULL
22698 };
22699
22700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22702 if (!SWIG_IsOK(res1)) {
22703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22704 }
22705 arg1 = reinterpret_cast< wxDC * >(argp1);
22706 ecode2 = SWIG_AsVal_int(obj1, &val2);
22707 if (!SWIG_IsOK(ecode2)) {
22708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22709 }
22710 arg2 = static_cast< int >(val2);
22711 ecode3 = SWIG_AsVal_int(obj2, &val3);
22712 if (!SWIG_IsOK(ecode3)) {
22713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22714 }
22715 arg3 = static_cast< int >(val3);
22716 {
22717 PyThreadState* __tstate = wxPyBeginAllowThreads();
22718 (arg1)->SetDeviceOrigin(arg2,arg3);
22719 wxPyEndAllowThreads(__tstate);
22720 if (PyErr_Occurred()) SWIG_fail;
22721 }
22722 resultobj = SWIG_Py_Void();
22723 return resultobj;
22724 fail:
22725 return NULL;
22726 }
22727
22728
22729 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22730 PyObject *resultobj = 0;
22731 wxDC *arg1 = (wxDC *) 0 ;
22732 wxPoint *arg2 = 0 ;
22733 void *argp1 = 0 ;
22734 int res1 = 0 ;
22735 wxPoint temp2 ;
22736 PyObject * obj0 = 0 ;
22737 PyObject * obj1 = 0 ;
22738 char * kwnames[] = {
22739 (char *) "self",(char *) "point", NULL
22740 };
22741
22742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22744 if (!SWIG_IsOK(res1)) {
22745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22746 }
22747 arg1 = reinterpret_cast< wxDC * >(argp1);
22748 {
22749 arg2 = &temp2;
22750 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22751 }
22752 {
22753 PyThreadState* __tstate = wxPyBeginAllowThreads();
22754 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22755 wxPyEndAllowThreads(__tstate);
22756 if (PyErr_Occurred()) SWIG_fail;
22757 }
22758 resultobj = SWIG_Py_Void();
22759 return resultobj;
22760 fail:
22761 return NULL;
22762 }
22763
22764
22765 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22766 PyObject *resultobj = 0;
22767 wxDC *arg1 = (wxDC *) 0 ;
22768 bool arg2 ;
22769 bool arg3 ;
22770 void *argp1 = 0 ;
22771 int res1 = 0 ;
22772 bool val2 ;
22773 int ecode2 = 0 ;
22774 bool val3 ;
22775 int ecode3 = 0 ;
22776 PyObject * obj0 = 0 ;
22777 PyObject * obj1 = 0 ;
22778 PyObject * obj2 = 0 ;
22779 char * kwnames[] = {
22780 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22781 };
22782
22783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22785 if (!SWIG_IsOK(res1)) {
22786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22787 }
22788 arg1 = reinterpret_cast< wxDC * >(argp1);
22789 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22790 if (!SWIG_IsOK(ecode2)) {
22791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22792 }
22793 arg2 = static_cast< bool >(val2);
22794 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22795 if (!SWIG_IsOK(ecode3)) {
22796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22797 }
22798 arg3 = static_cast< bool >(val3);
22799 {
22800 PyThreadState* __tstate = wxPyBeginAllowThreads();
22801 (arg1)->SetAxisOrientation(arg2,arg3);
22802 wxPyEndAllowThreads(__tstate);
22803 if (PyErr_Occurred()) SWIG_fail;
22804 }
22805 resultobj = SWIG_Py_Void();
22806 return resultobj;
22807 fail:
22808 return NULL;
22809 }
22810
22811
22812 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22813 PyObject *resultobj = 0;
22814 wxDC *arg1 = (wxDC *) 0 ;
22815 int result;
22816 void *argp1 = 0 ;
22817 int res1 = 0 ;
22818 PyObject *swig_obj[1] ;
22819
22820 if (!args) SWIG_fail;
22821 swig_obj[0] = args;
22822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22823 if (!SWIG_IsOK(res1)) {
22824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22825 }
22826 arg1 = reinterpret_cast< wxDC * >(argp1);
22827 {
22828 PyThreadState* __tstate = wxPyBeginAllowThreads();
22829 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22830 wxPyEndAllowThreads(__tstate);
22831 if (PyErr_Occurred()) SWIG_fail;
22832 }
22833 resultobj = SWIG_From_int(static_cast< int >(result));
22834 return resultobj;
22835 fail:
22836 return NULL;
22837 }
22838
22839
22840 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22841 PyObject *resultobj = 0;
22842 wxDC *arg1 = (wxDC *) 0 ;
22843 int arg2 ;
22844 void *argp1 = 0 ;
22845 int res1 = 0 ;
22846 int val2 ;
22847 int ecode2 = 0 ;
22848 PyObject * obj0 = 0 ;
22849 PyObject * obj1 = 0 ;
22850 char * kwnames[] = {
22851 (char *) "self",(char *) "function", NULL
22852 };
22853
22854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22856 if (!SWIG_IsOK(res1)) {
22857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22858 }
22859 arg1 = reinterpret_cast< wxDC * >(argp1);
22860 ecode2 = SWIG_AsVal_int(obj1, &val2);
22861 if (!SWIG_IsOK(ecode2)) {
22862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22863 }
22864 arg2 = static_cast< int >(val2);
22865 {
22866 PyThreadState* __tstate = wxPyBeginAllowThreads();
22867 (arg1)->SetLogicalFunction(arg2);
22868 wxPyEndAllowThreads(__tstate);
22869 if (PyErr_Occurred()) SWIG_fail;
22870 }
22871 resultobj = SWIG_Py_Void();
22872 return resultobj;
22873 fail:
22874 return NULL;
22875 }
22876
22877
22878 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22879 PyObject *resultobj = 0;
22880 wxDC *arg1 = (wxDC *) 0 ;
22881 void *argp1 = 0 ;
22882 int res1 = 0 ;
22883 PyObject *swig_obj[1] ;
22884
22885 if (!args) SWIG_fail;
22886 swig_obj[0] = args;
22887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22888 if (!SWIG_IsOK(res1)) {
22889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22890 }
22891 arg1 = reinterpret_cast< wxDC * >(argp1);
22892 {
22893 PyThreadState* __tstate = wxPyBeginAllowThreads();
22894 (arg1)->ComputeScaleAndOrigin();
22895 wxPyEndAllowThreads(__tstate);
22896 if (PyErr_Occurred()) SWIG_fail;
22897 }
22898 resultobj = SWIG_Py_Void();
22899 return resultobj;
22900 fail:
22901 return NULL;
22902 }
22903
22904
22905 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22906 PyObject *resultobj = 0;
22907 wxDC *arg1 = (wxDC *) 0 ;
22908 int arg2 ;
22909 int arg3 ;
22910 void *argp1 = 0 ;
22911 int res1 = 0 ;
22912 int val2 ;
22913 int ecode2 = 0 ;
22914 int val3 ;
22915 int ecode3 = 0 ;
22916 PyObject * obj0 = 0 ;
22917 PyObject * obj1 = 0 ;
22918 PyObject * obj2 = 0 ;
22919 char * kwnames[] = {
22920 (char *) "self",(char *) "x",(char *) "y", NULL
22921 };
22922
22923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22925 if (!SWIG_IsOK(res1)) {
22926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22927 }
22928 arg1 = reinterpret_cast< wxDC * >(argp1);
22929 ecode2 = SWIG_AsVal_int(obj1, &val2);
22930 if (!SWIG_IsOK(ecode2)) {
22931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22932 }
22933 arg2 = static_cast< int >(val2);
22934 ecode3 = SWIG_AsVal_int(obj2, &val3);
22935 if (!SWIG_IsOK(ecode3)) {
22936 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22937 }
22938 arg3 = static_cast< int >(val3);
22939 {
22940 PyThreadState* __tstate = wxPyBeginAllowThreads();
22941 (arg1)->CalcBoundingBox(arg2,arg3);
22942 wxPyEndAllowThreads(__tstate);
22943 if (PyErr_Occurred()) SWIG_fail;
22944 }
22945 resultobj = SWIG_Py_Void();
22946 return resultobj;
22947 fail:
22948 return NULL;
22949 }
22950
22951
22952 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22953 PyObject *resultobj = 0;
22954 wxDC *arg1 = (wxDC *) 0 ;
22955 wxPoint *arg2 = 0 ;
22956 void *argp1 = 0 ;
22957 int res1 = 0 ;
22958 wxPoint temp2 ;
22959 PyObject * obj0 = 0 ;
22960 PyObject * obj1 = 0 ;
22961 char * kwnames[] = {
22962 (char *) "self",(char *) "point", NULL
22963 };
22964
22965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22967 if (!SWIG_IsOK(res1)) {
22968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22969 }
22970 arg1 = reinterpret_cast< wxDC * >(argp1);
22971 {
22972 arg2 = &temp2;
22973 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22974 }
22975 {
22976 PyThreadState* __tstate = wxPyBeginAllowThreads();
22977 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22978 wxPyEndAllowThreads(__tstate);
22979 if (PyErr_Occurred()) SWIG_fail;
22980 }
22981 resultobj = SWIG_Py_Void();
22982 return resultobj;
22983 fail:
22984 return NULL;
22985 }
22986
22987
22988 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22989 PyObject *resultobj = 0;
22990 wxDC *arg1 = (wxDC *) 0 ;
22991 void *argp1 = 0 ;
22992 int res1 = 0 ;
22993 PyObject *swig_obj[1] ;
22994
22995 if (!args) SWIG_fail;
22996 swig_obj[0] = args;
22997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22998 if (!SWIG_IsOK(res1)) {
22999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23000 }
23001 arg1 = reinterpret_cast< wxDC * >(argp1);
23002 {
23003 PyThreadState* __tstate = wxPyBeginAllowThreads();
23004 (arg1)->ResetBoundingBox();
23005 wxPyEndAllowThreads(__tstate);
23006 if (PyErr_Occurred()) SWIG_fail;
23007 }
23008 resultobj = SWIG_Py_Void();
23009 return resultobj;
23010 fail:
23011 return NULL;
23012 }
23013
23014
23015 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23016 PyObject *resultobj = 0;
23017 wxDC *arg1 = (wxDC *) 0 ;
23018 int result;
23019 void *argp1 = 0 ;
23020 int res1 = 0 ;
23021 PyObject *swig_obj[1] ;
23022
23023 if (!args) SWIG_fail;
23024 swig_obj[0] = args;
23025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23026 if (!SWIG_IsOK(res1)) {
23027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23028 }
23029 arg1 = reinterpret_cast< wxDC * >(argp1);
23030 {
23031 PyThreadState* __tstate = wxPyBeginAllowThreads();
23032 result = (int)((wxDC const *)arg1)->MinX();
23033 wxPyEndAllowThreads(__tstate);
23034 if (PyErr_Occurred()) SWIG_fail;
23035 }
23036 resultobj = SWIG_From_int(static_cast< int >(result));
23037 return resultobj;
23038 fail:
23039 return NULL;
23040 }
23041
23042
23043 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23044 PyObject *resultobj = 0;
23045 wxDC *arg1 = (wxDC *) 0 ;
23046 int result;
23047 void *argp1 = 0 ;
23048 int res1 = 0 ;
23049 PyObject *swig_obj[1] ;
23050
23051 if (!args) SWIG_fail;
23052 swig_obj[0] = args;
23053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23054 if (!SWIG_IsOK(res1)) {
23055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23056 }
23057 arg1 = reinterpret_cast< wxDC * >(argp1);
23058 {
23059 PyThreadState* __tstate = wxPyBeginAllowThreads();
23060 result = (int)((wxDC const *)arg1)->MaxX();
23061 wxPyEndAllowThreads(__tstate);
23062 if (PyErr_Occurred()) SWIG_fail;
23063 }
23064 resultobj = SWIG_From_int(static_cast< int >(result));
23065 return resultobj;
23066 fail:
23067 return NULL;
23068 }
23069
23070
23071 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23072 PyObject *resultobj = 0;
23073 wxDC *arg1 = (wxDC *) 0 ;
23074 int result;
23075 void *argp1 = 0 ;
23076 int res1 = 0 ;
23077 PyObject *swig_obj[1] ;
23078
23079 if (!args) SWIG_fail;
23080 swig_obj[0] = args;
23081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23082 if (!SWIG_IsOK(res1)) {
23083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23084 }
23085 arg1 = reinterpret_cast< wxDC * >(argp1);
23086 {
23087 PyThreadState* __tstate = wxPyBeginAllowThreads();
23088 result = (int)((wxDC const *)arg1)->MinY();
23089 wxPyEndAllowThreads(__tstate);
23090 if (PyErr_Occurred()) SWIG_fail;
23091 }
23092 resultobj = SWIG_From_int(static_cast< int >(result));
23093 return resultobj;
23094 fail:
23095 return NULL;
23096 }
23097
23098
23099 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23100 PyObject *resultobj = 0;
23101 wxDC *arg1 = (wxDC *) 0 ;
23102 int result;
23103 void *argp1 = 0 ;
23104 int res1 = 0 ;
23105 PyObject *swig_obj[1] ;
23106
23107 if (!args) SWIG_fail;
23108 swig_obj[0] = args;
23109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23110 if (!SWIG_IsOK(res1)) {
23111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23112 }
23113 arg1 = reinterpret_cast< wxDC * >(argp1);
23114 {
23115 PyThreadState* __tstate = wxPyBeginAllowThreads();
23116 result = (int)((wxDC const *)arg1)->MaxY();
23117 wxPyEndAllowThreads(__tstate);
23118 if (PyErr_Occurred()) SWIG_fail;
23119 }
23120 resultobj = SWIG_From_int(static_cast< int >(result));
23121 return resultobj;
23122 fail:
23123 return NULL;
23124 }
23125
23126
23127 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23128 PyObject *resultobj = 0;
23129 wxDC *arg1 = (wxDC *) 0 ;
23130 int *arg2 = (int *) 0 ;
23131 int *arg3 = (int *) 0 ;
23132 int *arg4 = (int *) 0 ;
23133 int *arg5 = (int *) 0 ;
23134 void *argp1 = 0 ;
23135 int res1 = 0 ;
23136 int temp2 ;
23137 int res2 = SWIG_TMPOBJ ;
23138 int temp3 ;
23139 int res3 = SWIG_TMPOBJ ;
23140 int temp4 ;
23141 int res4 = SWIG_TMPOBJ ;
23142 int temp5 ;
23143 int res5 = SWIG_TMPOBJ ;
23144 PyObject *swig_obj[1] ;
23145
23146 arg2 = &temp2;
23147 arg3 = &temp3;
23148 arg4 = &temp4;
23149 arg5 = &temp5;
23150 if (!args) SWIG_fail;
23151 swig_obj[0] = args;
23152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23153 if (!SWIG_IsOK(res1)) {
23154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23155 }
23156 arg1 = reinterpret_cast< wxDC * >(argp1);
23157 {
23158 PyThreadState* __tstate = wxPyBeginAllowThreads();
23159 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23160 wxPyEndAllowThreads(__tstate);
23161 if (PyErr_Occurred()) SWIG_fail;
23162 }
23163 resultobj = SWIG_Py_Void();
23164 if (SWIG_IsTmpObj(res2)) {
23165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23166 } else {
23167 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23169 }
23170 if (SWIG_IsTmpObj(res3)) {
23171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23172 } else {
23173 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23175 }
23176 if (SWIG_IsTmpObj(res4)) {
23177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23178 } else {
23179 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23181 }
23182 if (SWIG_IsTmpObj(res5)) {
23183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23184 } else {
23185 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23187 }
23188 return resultobj;
23189 fail:
23190 return NULL;
23191 }
23192
23193
23194 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23195 PyObject *resultobj = 0;
23196 wxDC *arg1 = (wxDC *) 0 ;
23197 wxLayoutDirection result;
23198 void *argp1 = 0 ;
23199 int res1 = 0 ;
23200 PyObject *swig_obj[1] ;
23201
23202 if (!args) SWIG_fail;
23203 swig_obj[0] = args;
23204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23205 if (!SWIG_IsOK(res1)) {
23206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23207 }
23208 arg1 = reinterpret_cast< wxDC * >(argp1);
23209 {
23210 PyThreadState* __tstate = wxPyBeginAllowThreads();
23211 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23212 wxPyEndAllowThreads(__tstate);
23213 if (PyErr_Occurred()) SWIG_fail;
23214 }
23215 resultobj = SWIG_From_int(static_cast< int >(result));
23216 return resultobj;
23217 fail:
23218 return NULL;
23219 }
23220
23221
23222 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23223 PyObject *resultobj = 0;
23224 wxDC *arg1 = (wxDC *) 0 ;
23225 wxLayoutDirection arg2 ;
23226 void *argp1 = 0 ;
23227 int res1 = 0 ;
23228 int val2 ;
23229 int ecode2 = 0 ;
23230 PyObject * obj0 = 0 ;
23231 PyObject * obj1 = 0 ;
23232 char * kwnames[] = {
23233 (char *) "self",(char *) "dir", NULL
23234 };
23235
23236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23238 if (!SWIG_IsOK(res1)) {
23239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23240 }
23241 arg1 = reinterpret_cast< wxDC * >(argp1);
23242 ecode2 = SWIG_AsVal_int(obj1, &val2);
23243 if (!SWIG_IsOK(ecode2)) {
23244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23245 }
23246 arg2 = static_cast< wxLayoutDirection >(val2);
23247 {
23248 PyThreadState* __tstate = wxPyBeginAllowThreads();
23249 (arg1)->SetLayoutDirection(arg2);
23250 wxPyEndAllowThreads(__tstate);
23251 if (PyErr_Occurred()) SWIG_fail;
23252 }
23253 resultobj = SWIG_Py_Void();
23254 return resultobj;
23255 fail:
23256 return NULL;
23257 }
23258
23259
23260 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23261 PyObject *resultobj = 0;
23262 wxDC *arg1 = (wxDC *) 0 ;
23263 PyObject *arg2 = (PyObject *) 0 ;
23264 PyObject *arg3 = (PyObject *) 0 ;
23265 PyObject *arg4 = (PyObject *) 0 ;
23266 PyObject *result = 0 ;
23267 void *argp1 = 0 ;
23268 int res1 = 0 ;
23269 PyObject * obj0 = 0 ;
23270 PyObject * obj1 = 0 ;
23271 PyObject * obj2 = 0 ;
23272 PyObject * obj3 = 0 ;
23273 char * kwnames[] = {
23274 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23275 };
23276
23277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23279 if (!SWIG_IsOK(res1)) {
23280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23281 }
23282 arg1 = reinterpret_cast< wxDC * >(argp1);
23283 arg2 = obj1;
23284 arg3 = obj2;
23285 arg4 = obj3;
23286 {
23287 PyThreadState* __tstate = wxPyBeginAllowThreads();
23288 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23289 wxPyEndAllowThreads(__tstate);
23290 if (PyErr_Occurred()) SWIG_fail;
23291 }
23292 resultobj = result;
23293 return resultobj;
23294 fail:
23295 return NULL;
23296 }
23297
23298
23299 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23300 PyObject *resultobj = 0;
23301 wxDC *arg1 = (wxDC *) 0 ;
23302 PyObject *arg2 = (PyObject *) 0 ;
23303 PyObject *arg3 = (PyObject *) 0 ;
23304 PyObject *arg4 = (PyObject *) 0 ;
23305 PyObject *result = 0 ;
23306 void *argp1 = 0 ;
23307 int res1 = 0 ;
23308 PyObject * obj0 = 0 ;
23309 PyObject * obj1 = 0 ;
23310 PyObject * obj2 = 0 ;
23311 PyObject * obj3 = 0 ;
23312 char * kwnames[] = {
23313 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23314 };
23315
23316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23318 if (!SWIG_IsOK(res1)) {
23319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23320 }
23321 arg1 = reinterpret_cast< wxDC * >(argp1);
23322 arg2 = obj1;
23323 arg3 = obj2;
23324 arg4 = obj3;
23325 {
23326 PyThreadState* __tstate = wxPyBeginAllowThreads();
23327 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23328 wxPyEndAllowThreads(__tstate);
23329 if (PyErr_Occurred()) SWIG_fail;
23330 }
23331 resultobj = result;
23332 return resultobj;
23333 fail:
23334 return NULL;
23335 }
23336
23337
23338 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23339 PyObject *resultobj = 0;
23340 wxDC *arg1 = (wxDC *) 0 ;
23341 PyObject *arg2 = (PyObject *) 0 ;
23342 PyObject *arg3 = (PyObject *) 0 ;
23343 PyObject *arg4 = (PyObject *) 0 ;
23344 PyObject *result = 0 ;
23345 void *argp1 = 0 ;
23346 int res1 = 0 ;
23347 PyObject * obj0 = 0 ;
23348 PyObject * obj1 = 0 ;
23349 PyObject * obj2 = 0 ;
23350 PyObject * obj3 = 0 ;
23351 char * kwnames[] = {
23352 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23353 };
23354
23355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23357 if (!SWIG_IsOK(res1)) {
23358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23359 }
23360 arg1 = reinterpret_cast< wxDC * >(argp1);
23361 arg2 = obj1;
23362 arg3 = obj2;
23363 arg4 = obj3;
23364 {
23365 PyThreadState* __tstate = wxPyBeginAllowThreads();
23366 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23367 wxPyEndAllowThreads(__tstate);
23368 if (PyErr_Occurred()) SWIG_fail;
23369 }
23370 resultobj = result;
23371 return resultobj;
23372 fail:
23373 return NULL;
23374 }
23375
23376
23377 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23378 PyObject *resultobj = 0;
23379 wxDC *arg1 = (wxDC *) 0 ;
23380 PyObject *arg2 = (PyObject *) 0 ;
23381 PyObject *arg3 = (PyObject *) 0 ;
23382 PyObject *arg4 = (PyObject *) 0 ;
23383 PyObject *result = 0 ;
23384 void *argp1 = 0 ;
23385 int res1 = 0 ;
23386 PyObject * obj0 = 0 ;
23387 PyObject * obj1 = 0 ;
23388 PyObject * obj2 = 0 ;
23389 PyObject * obj3 = 0 ;
23390 char * kwnames[] = {
23391 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23392 };
23393
23394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23396 if (!SWIG_IsOK(res1)) {
23397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23398 }
23399 arg1 = reinterpret_cast< wxDC * >(argp1);
23400 arg2 = obj1;
23401 arg3 = obj2;
23402 arg4 = obj3;
23403 {
23404 PyThreadState* __tstate = wxPyBeginAllowThreads();
23405 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23406 wxPyEndAllowThreads(__tstate);
23407 if (PyErr_Occurred()) SWIG_fail;
23408 }
23409 resultobj = result;
23410 return resultobj;
23411 fail:
23412 return NULL;
23413 }
23414
23415
23416 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23417 PyObject *resultobj = 0;
23418 wxDC *arg1 = (wxDC *) 0 ;
23419 PyObject *arg2 = (PyObject *) 0 ;
23420 PyObject *arg3 = (PyObject *) 0 ;
23421 PyObject *arg4 = (PyObject *) 0 ;
23422 PyObject *result = 0 ;
23423 void *argp1 = 0 ;
23424 int res1 = 0 ;
23425 PyObject * obj0 = 0 ;
23426 PyObject * obj1 = 0 ;
23427 PyObject * obj2 = 0 ;
23428 PyObject * obj3 = 0 ;
23429 char * kwnames[] = {
23430 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23431 };
23432
23433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23435 if (!SWIG_IsOK(res1)) {
23436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23437 }
23438 arg1 = reinterpret_cast< wxDC * >(argp1);
23439 arg2 = obj1;
23440 arg3 = obj2;
23441 arg4 = obj3;
23442 {
23443 PyThreadState* __tstate = wxPyBeginAllowThreads();
23444 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23445 wxPyEndAllowThreads(__tstate);
23446 if (PyErr_Occurred()) SWIG_fail;
23447 }
23448 resultobj = result;
23449 return resultobj;
23450 fail:
23451 return NULL;
23452 }
23453
23454
23455 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23456 PyObject *resultobj = 0;
23457 wxDC *arg1 = (wxDC *) 0 ;
23458 PyObject *arg2 = (PyObject *) 0 ;
23459 PyObject *arg3 = (PyObject *) 0 ;
23460 PyObject *arg4 = (PyObject *) 0 ;
23461 PyObject *arg5 = (PyObject *) 0 ;
23462 PyObject *result = 0 ;
23463 void *argp1 = 0 ;
23464 int res1 = 0 ;
23465 PyObject * obj0 = 0 ;
23466 PyObject * obj1 = 0 ;
23467 PyObject * obj2 = 0 ;
23468 PyObject * obj3 = 0 ;
23469 PyObject * obj4 = 0 ;
23470 char * kwnames[] = {
23471 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23472 };
23473
23474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23476 if (!SWIG_IsOK(res1)) {
23477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23478 }
23479 arg1 = reinterpret_cast< wxDC * >(argp1);
23480 arg2 = obj1;
23481 arg3 = obj2;
23482 arg4 = obj3;
23483 arg5 = obj4;
23484 {
23485 PyThreadState* __tstate = wxPyBeginAllowThreads();
23486 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23487 wxPyEndAllowThreads(__tstate);
23488 if (PyErr_Occurred()) SWIG_fail;
23489 }
23490 resultobj = result;
23491 return resultobj;
23492 fail:
23493 return NULL;
23494 }
23495
23496
23497 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23498 PyObject *obj;
23499 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23500 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23501 return SWIG_Py_Void();
23502 }
23503
23504 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23505 PyObject *resultobj = 0;
23506 wxDC *arg1 = 0 ;
23507 wxColour *arg2 = 0 ;
23508 wxDCTextColourChanger *result = 0 ;
23509 void *argp1 = 0 ;
23510 int res1 = 0 ;
23511 wxColour temp2 ;
23512 PyObject * obj0 = 0 ;
23513 PyObject * obj1 = 0 ;
23514 char * kwnames[] = {
23515 (char *) "dc",(char *) "col", NULL
23516 };
23517
23518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23519 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23520 if (!SWIG_IsOK(res1)) {
23521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23522 }
23523 if (!argp1) {
23524 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23525 }
23526 arg1 = reinterpret_cast< wxDC * >(argp1);
23527 {
23528 arg2 = &temp2;
23529 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23530 }
23531 {
23532 PyThreadState* __tstate = wxPyBeginAllowThreads();
23533 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23534 wxPyEndAllowThreads(__tstate);
23535 if (PyErr_Occurred()) SWIG_fail;
23536 }
23537 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23538 return resultobj;
23539 fail:
23540 return NULL;
23541 }
23542
23543
23544 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23545 PyObject *resultobj = 0;
23546 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23547 void *argp1 = 0 ;
23548 int res1 = 0 ;
23549 PyObject *swig_obj[1] ;
23550
23551 if (!args) SWIG_fail;
23552 swig_obj[0] = args;
23553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23554 if (!SWIG_IsOK(res1)) {
23555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23556 }
23557 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23558 {
23559 PyThreadState* __tstate = wxPyBeginAllowThreads();
23560 delete arg1;
23561
23562 wxPyEndAllowThreads(__tstate);
23563 if (PyErr_Occurred()) SWIG_fail;
23564 }
23565 resultobj = SWIG_Py_Void();
23566 return resultobj;
23567 fail:
23568 return NULL;
23569 }
23570
23571
23572 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23573 PyObject *obj;
23574 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23575 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23576 return SWIG_Py_Void();
23577 }
23578
23579 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23580 return SWIG_Python_InitShadowInstance(args);
23581 }
23582
23583 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23584 PyObject *resultobj = 0;
23585 wxDC *arg1 = 0 ;
23586 wxPen *arg2 = 0 ;
23587 wxDCPenChanger *result = 0 ;
23588 void *argp1 = 0 ;
23589 int res1 = 0 ;
23590 void *argp2 = 0 ;
23591 int res2 = 0 ;
23592 PyObject * obj0 = 0 ;
23593 PyObject * obj1 = 0 ;
23594 char * kwnames[] = {
23595 (char *) "dc",(char *) "pen", NULL
23596 };
23597
23598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23599 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23600 if (!SWIG_IsOK(res1)) {
23601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23602 }
23603 if (!argp1) {
23604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23605 }
23606 arg1 = reinterpret_cast< wxDC * >(argp1);
23607 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23608 if (!SWIG_IsOK(res2)) {
23609 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23610 }
23611 if (!argp2) {
23612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23613 }
23614 arg2 = reinterpret_cast< wxPen * >(argp2);
23615 {
23616 PyThreadState* __tstate = wxPyBeginAllowThreads();
23617 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23618 wxPyEndAllowThreads(__tstate);
23619 if (PyErr_Occurred()) SWIG_fail;
23620 }
23621 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23622 return resultobj;
23623 fail:
23624 return NULL;
23625 }
23626
23627
23628 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23629 PyObject *resultobj = 0;
23630 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23631 void *argp1 = 0 ;
23632 int res1 = 0 ;
23633 PyObject *swig_obj[1] ;
23634
23635 if (!args) SWIG_fail;
23636 swig_obj[0] = args;
23637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23638 if (!SWIG_IsOK(res1)) {
23639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23640 }
23641 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23642 {
23643 PyThreadState* __tstate = wxPyBeginAllowThreads();
23644 delete arg1;
23645
23646 wxPyEndAllowThreads(__tstate);
23647 if (PyErr_Occurred()) SWIG_fail;
23648 }
23649 resultobj = SWIG_Py_Void();
23650 return resultobj;
23651 fail:
23652 return NULL;
23653 }
23654
23655
23656 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23657 PyObject *obj;
23658 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23659 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23660 return SWIG_Py_Void();
23661 }
23662
23663 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23664 return SWIG_Python_InitShadowInstance(args);
23665 }
23666
23667 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23668 PyObject *resultobj = 0;
23669 wxDC *arg1 = 0 ;
23670 wxBrush *arg2 = 0 ;
23671 wxDCBrushChanger *result = 0 ;
23672 void *argp1 = 0 ;
23673 int res1 = 0 ;
23674 void *argp2 = 0 ;
23675 int res2 = 0 ;
23676 PyObject * obj0 = 0 ;
23677 PyObject * obj1 = 0 ;
23678 char * kwnames[] = {
23679 (char *) "dc",(char *) "brush", NULL
23680 };
23681
23682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23683 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23684 if (!SWIG_IsOK(res1)) {
23685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23686 }
23687 if (!argp1) {
23688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23689 }
23690 arg1 = reinterpret_cast< wxDC * >(argp1);
23691 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23692 if (!SWIG_IsOK(res2)) {
23693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23694 }
23695 if (!argp2) {
23696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23697 }
23698 arg2 = reinterpret_cast< wxBrush * >(argp2);
23699 {
23700 PyThreadState* __tstate = wxPyBeginAllowThreads();
23701 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23702 wxPyEndAllowThreads(__tstate);
23703 if (PyErr_Occurred()) SWIG_fail;
23704 }
23705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23706 return resultobj;
23707 fail:
23708 return NULL;
23709 }
23710
23711
23712 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23713 PyObject *resultobj = 0;
23714 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23715 void *argp1 = 0 ;
23716 int res1 = 0 ;
23717 PyObject *swig_obj[1] ;
23718
23719 if (!args) SWIG_fail;
23720 swig_obj[0] = args;
23721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23722 if (!SWIG_IsOK(res1)) {
23723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23724 }
23725 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23726 {
23727 PyThreadState* __tstate = wxPyBeginAllowThreads();
23728 delete arg1;
23729
23730 wxPyEndAllowThreads(__tstate);
23731 if (PyErr_Occurred()) SWIG_fail;
23732 }
23733 resultobj = SWIG_Py_Void();
23734 return resultobj;
23735 fail:
23736 return NULL;
23737 }
23738
23739
23740 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23741 PyObject *obj;
23742 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23743 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23744 return SWIG_Py_Void();
23745 }
23746
23747 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23748 return SWIG_Python_InitShadowInstance(args);
23749 }
23750
23751 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23752 PyObject *resultobj = 0;
23753 wxDC *arg1 = 0 ;
23754 wxRegion *arg2 = 0 ;
23755 wxDCClipper *result = 0 ;
23756 void *argp1 = 0 ;
23757 int res1 = 0 ;
23758 void *argp2 = 0 ;
23759 int res2 = 0 ;
23760
23761 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23763 if (!SWIG_IsOK(res1)) {
23764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23765 }
23766 if (!argp1) {
23767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23768 }
23769 arg1 = reinterpret_cast< wxDC * >(argp1);
23770 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23771 if (!SWIG_IsOK(res2)) {
23772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23773 }
23774 if (!argp2) {
23775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23776 }
23777 arg2 = reinterpret_cast< wxRegion * >(argp2);
23778 {
23779 PyThreadState* __tstate = wxPyBeginAllowThreads();
23780 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23781 wxPyEndAllowThreads(__tstate);
23782 if (PyErr_Occurred()) SWIG_fail;
23783 }
23784 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23785 return resultobj;
23786 fail:
23787 return NULL;
23788 }
23789
23790
23791 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23792 PyObject *resultobj = 0;
23793 wxDC *arg1 = 0 ;
23794 wxRect *arg2 = 0 ;
23795 wxDCClipper *result = 0 ;
23796 void *argp1 = 0 ;
23797 int res1 = 0 ;
23798 wxRect temp2 ;
23799
23800 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23802 if (!SWIG_IsOK(res1)) {
23803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23804 }
23805 if (!argp1) {
23806 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23807 }
23808 arg1 = reinterpret_cast< wxDC * >(argp1);
23809 {
23810 arg2 = &temp2;
23811 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23812 }
23813 {
23814 PyThreadState* __tstate = wxPyBeginAllowThreads();
23815 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23816 wxPyEndAllowThreads(__tstate);
23817 if (PyErr_Occurred()) SWIG_fail;
23818 }
23819 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23820 return resultobj;
23821 fail:
23822 return NULL;
23823 }
23824
23825
23826 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23827 PyObject *resultobj = 0;
23828 wxDC *arg1 = 0 ;
23829 int arg2 ;
23830 int arg3 ;
23831 int arg4 ;
23832 int arg5 ;
23833 wxDCClipper *result = 0 ;
23834 void *argp1 = 0 ;
23835 int res1 = 0 ;
23836 int val2 ;
23837 int ecode2 = 0 ;
23838 int val3 ;
23839 int ecode3 = 0 ;
23840 int val4 ;
23841 int ecode4 = 0 ;
23842 int val5 ;
23843 int ecode5 = 0 ;
23844
23845 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23847 if (!SWIG_IsOK(res1)) {
23848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23849 }
23850 if (!argp1) {
23851 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23852 }
23853 arg1 = reinterpret_cast< wxDC * >(argp1);
23854 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23855 if (!SWIG_IsOK(ecode2)) {
23856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23857 }
23858 arg2 = static_cast< int >(val2);
23859 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23860 if (!SWIG_IsOK(ecode3)) {
23861 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23862 }
23863 arg3 = static_cast< int >(val3);
23864 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23865 if (!SWIG_IsOK(ecode4)) {
23866 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23867 }
23868 arg4 = static_cast< int >(val4);
23869 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23870 if (!SWIG_IsOK(ecode5)) {
23871 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23872 }
23873 arg5 = static_cast< int >(val5);
23874 {
23875 PyThreadState* __tstate = wxPyBeginAllowThreads();
23876 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23877 wxPyEndAllowThreads(__tstate);
23878 if (PyErr_Occurred()) SWIG_fail;
23879 }
23880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23881 return resultobj;
23882 fail:
23883 return NULL;
23884 }
23885
23886
23887 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23888 int argc;
23889 PyObject *argv[6];
23890
23891 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23892 --argc;
23893 if (argc == 2) {
23894 int _v = 0;
23895 {
23896 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23897 _v = SWIG_CheckState(res);
23898 }
23899 if (!_v) goto check_1;
23900 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23901 }
23902 check_1:
23903
23904 if (argc == 2) {
23905 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23906 }
23907 if (argc == 5) {
23908 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23909 }
23910
23911 fail:
23912 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23913 return NULL;
23914 }
23915
23916
23917 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23918 PyObject *resultobj = 0;
23919 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23920 void *argp1 = 0 ;
23921 int res1 = 0 ;
23922 PyObject *swig_obj[1] ;
23923
23924 if (!args) SWIG_fail;
23925 swig_obj[0] = args;
23926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23927 if (!SWIG_IsOK(res1)) {
23928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23929 }
23930 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23931 {
23932 PyThreadState* __tstate = wxPyBeginAllowThreads();
23933 delete arg1;
23934
23935 wxPyEndAllowThreads(__tstate);
23936 if (PyErr_Occurred()) SWIG_fail;
23937 }
23938 resultobj = SWIG_Py_Void();
23939 return resultobj;
23940 fail:
23941 return NULL;
23942 }
23943
23944
23945 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23946 PyObject *obj;
23947 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23948 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23949 return SWIG_Py_Void();
23950 }
23951
23952 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23953 return SWIG_Python_InitShadowInstance(args);
23954 }
23955
23956 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23957 PyObject *resultobj = 0;
23958 wxScreenDC *result = 0 ;
23959
23960 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23961 {
23962 if (!wxPyCheckForApp()) SWIG_fail;
23963 PyThreadState* __tstate = wxPyBeginAllowThreads();
23964 result = (wxScreenDC *)new wxScreenDC();
23965 wxPyEndAllowThreads(__tstate);
23966 if (PyErr_Occurred()) SWIG_fail;
23967 }
23968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23969 return resultobj;
23970 fail:
23971 return NULL;
23972 }
23973
23974
23975 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23976 PyObject *resultobj = 0;
23977 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23978 wxWindow *arg2 = (wxWindow *) 0 ;
23979 bool result;
23980 void *argp1 = 0 ;
23981 int res1 = 0 ;
23982 void *argp2 = 0 ;
23983 int res2 = 0 ;
23984 PyObject * obj0 = 0 ;
23985 PyObject * obj1 = 0 ;
23986 char * kwnames[] = {
23987 (char *) "self",(char *) "window", NULL
23988 };
23989
23990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23992 if (!SWIG_IsOK(res1)) {
23993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23994 }
23995 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23996 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23997 if (!SWIG_IsOK(res2)) {
23998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23999 }
24000 arg2 = reinterpret_cast< wxWindow * >(argp2);
24001 {
24002 PyThreadState* __tstate = wxPyBeginAllowThreads();
24003 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24004 wxPyEndAllowThreads(__tstate);
24005 if (PyErr_Occurred()) SWIG_fail;
24006 }
24007 {
24008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24009 }
24010 return resultobj;
24011 fail:
24012 return NULL;
24013 }
24014
24015
24016 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24017 PyObject *resultobj = 0;
24018 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24019 wxRect *arg2 = (wxRect *) NULL ;
24020 bool result;
24021 void *argp1 = 0 ;
24022 int res1 = 0 ;
24023 void *argp2 = 0 ;
24024 int res2 = 0 ;
24025 PyObject * obj0 = 0 ;
24026 PyObject * obj1 = 0 ;
24027 char * kwnames[] = {
24028 (char *) "self",(char *) "rect", NULL
24029 };
24030
24031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24033 if (!SWIG_IsOK(res1)) {
24034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24035 }
24036 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24037 if (obj1) {
24038 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24039 if (!SWIG_IsOK(res2)) {
24040 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24041 }
24042 arg2 = reinterpret_cast< wxRect * >(argp2);
24043 }
24044 {
24045 PyThreadState* __tstate = wxPyBeginAllowThreads();
24046 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24047 wxPyEndAllowThreads(__tstate);
24048 if (PyErr_Occurred()) SWIG_fail;
24049 }
24050 {
24051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24052 }
24053 return resultobj;
24054 fail:
24055 return NULL;
24056 }
24057
24058
24059 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24060 PyObject *resultobj = 0;
24061 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24062 bool result;
24063 void *argp1 = 0 ;
24064 int res1 = 0 ;
24065 PyObject *swig_obj[1] ;
24066
24067 if (!args) SWIG_fail;
24068 swig_obj[0] = args;
24069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24070 if (!SWIG_IsOK(res1)) {
24071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24072 }
24073 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24074 {
24075 PyThreadState* __tstate = wxPyBeginAllowThreads();
24076 result = (bool)(arg1)->EndDrawingOnTop();
24077 wxPyEndAllowThreads(__tstate);
24078 if (PyErr_Occurred()) SWIG_fail;
24079 }
24080 {
24081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24082 }
24083 return resultobj;
24084 fail:
24085 return NULL;
24086 }
24087
24088
24089 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24090 PyObject *obj;
24091 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24092 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24093 return SWIG_Py_Void();
24094 }
24095
24096 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24097 return SWIG_Python_InitShadowInstance(args);
24098 }
24099
24100 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24101 PyObject *resultobj = 0;
24102 wxWindow *arg1 = (wxWindow *) 0 ;
24103 wxWindowDC *result = 0 ;
24104 void *argp1 = 0 ;
24105 int res1 = 0 ;
24106 PyObject * obj0 = 0 ;
24107 char * kwnames[] = {
24108 (char *) "win", NULL
24109 };
24110
24111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24113 if (!SWIG_IsOK(res1)) {
24114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24115 }
24116 arg1 = reinterpret_cast< wxWindow * >(argp1);
24117 {
24118 if (!wxPyCheckForApp()) SWIG_fail;
24119 PyThreadState* __tstate = wxPyBeginAllowThreads();
24120 result = (wxWindowDC *)new wxWindowDC(arg1);
24121 wxPyEndAllowThreads(__tstate);
24122 if (PyErr_Occurred()) SWIG_fail;
24123 }
24124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24125 return resultobj;
24126 fail:
24127 return NULL;
24128 }
24129
24130
24131 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24132 PyObject *obj;
24133 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24134 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24135 return SWIG_Py_Void();
24136 }
24137
24138 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24139 return SWIG_Python_InitShadowInstance(args);
24140 }
24141
24142 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24143 PyObject *resultobj = 0;
24144 wxWindow *arg1 = (wxWindow *) 0 ;
24145 wxClientDC *result = 0 ;
24146 void *argp1 = 0 ;
24147 int res1 = 0 ;
24148 PyObject * obj0 = 0 ;
24149 char * kwnames[] = {
24150 (char *) "win", NULL
24151 };
24152
24153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24155 if (!SWIG_IsOK(res1)) {
24156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24157 }
24158 arg1 = reinterpret_cast< wxWindow * >(argp1);
24159 {
24160 if (!wxPyCheckForApp()) SWIG_fail;
24161 PyThreadState* __tstate = wxPyBeginAllowThreads();
24162 result = (wxClientDC *)new wxClientDC(arg1);
24163 wxPyEndAllowThreads(__tstate);
24164 if (PyErr_Occurred()) SWIG_fail;
24165 }
24166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24167 return resultobj;
24168 fail:
24169 return NULL;
24170 }
24171
24172
24173 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24174 PyObject *obj;
24175 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24176 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24177 return SWIG_Py_Void();
24178 }
24179
24180 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24181 return SWIG_Python_InitShadowInstance(args);
24182 }
24183
24184 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24185 PyObject *resultobj = 0;
24186 wxWindow *arg1 = (wxWindow *) 0 ;
24187 wxPaintDC *result = 0 ;
24188 void *argp1 = 0 ;
24189 int res1 = 0 ;
24190 PyObject * obj0 = 0 ;
24191 char * kwnames[] = {
24192 (char *) "win", NULL
24193 };
24194
24195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24197 if (!SWIG_IsOK(res1)) {
24198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24199 }
24200 arg1 = reinterpret_cast< wxWindow * >(argp1);
24201 {
24202 if (!wxPyCheckForApp()) SWIG_fail;
24203 PyThreadState* __tstate = wxPyBeginAllowThreads();
24204 result = (wxPaintDC *)new wxPaintDC(arg1);
24205 wxPyEndAllowThreads(__tstate);
24206 if (PyErr_Occurred()) SWIG_fail;
24207 }
24208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24209 return resultobj;
24210 fail:
24211 return NULL;
24212 }
24213
24214
24215 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24216 PyObject *obj;
24217 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24218 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24219 return SWIG_Py_Void();
24220 }
24221
24222 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24223 return SWIG_Python_InitShadowInstance(args);
24224 }
24225
24226 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24227 PyObject *resultobj = 0;
24228 wxBitmap &arg1_defvalue = wxNullBitmap ;
24229 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24230 wxMemoryDC *result = 0 ;
24231 void *argp1 = 0 ;
24232 int res1 = 0 ;
24233 PyObject * obj0 = 0 ;
24234 char * kwnames[] = {
24235 (char *) "bitmap", NULL
24236 };
24237
24238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24239 if (obj0) {
24240 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24241 if (!SWIG_IsOK(res1)) {
24242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24243 }
24244 if (!argp1) {
24245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24246 }
24247 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24248 }
24249 {
24250 if (!wxPyCheckForApp()) SWIG_fail;
24251 PyThreadState* __tstate = wxPyBeginAllowThreads();
24252 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24253 wxPyEndAllowThreads(__tstate);
24254 if (PyErr_Occurred()) SWIG_fail;
24255 }
24256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24257 return resultobj;
24258 fail:
24259 return NULL;
24260 }
24261
24262
24263 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24264 PyObject *resultobj = 0;
24265 wxDC *arg1 = (wxDC *) 0 ;
24266 wxMemoryDC *result = 0 ;
24267 void *argp1 = 0 ;
24268 int res1 = 0 ;
24269 PyObject * obj0 = 0 ;
24270 char * kwnames[] = {
24271 (char *) "oldDC", NULL
24272 };
24273
24274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24276 if (!SWIG_IsOK(res1)) {
24277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24278 }
24279 arg1 = reinterpret_cast< wxDC * >(argp1);
24280 {
24281 if (!wxPyCheckForApp()) SWIG_fail;
24282 PyThreadState* __tstate = wxPyBeginAllowThreads();
24283 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24284 wxPyEndAllowThreads(__tstate);
24285 if (PyErr_Occurred()) SWIG_fail;
24286 }
24287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24288 return resultobj;
24289 fail:
24290 return NULL;
24291 }
24292
24293
24294 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24295 PyObject *resultobj = 0;
24296 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24297 wxBitmap *arg2 = 0 ;
24298 void *argp1 = 0 ;
24299 int res1 = 0 ;
24300 void *argp2 = 0 ;
24301 int res2 = 0 ;
24302 PyObject * obj0 = 0 ;
24303 PyObject * obj1 = 0 ;
24304 char * kwnames[] = {
24305 (char *) "self",(char *) "bitmap", NULL
24306 };
24307
24308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24310 if (!SWIG_IsOK(res1)) {
24311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24312 }
24313 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24314 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24315 if (!SWIG_IsOK(res2)) {
24316 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24317 }
24318 if (!argp2) {
24319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24320 }
24321 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24322 {
24323 PyThreadState* __tstate = wxPyBeginAllowThreads();
24324 (arg1)->SelectObject(*arg2);
24325 wxPyEndAllowThreads(__tstate);
24326 if (PyErr_Occurred()) SWIG_fail;
24327 }
24328 resultobj = SWIG_Py_Void();
24329 return resultobj;
24330 fail:
24331 return NULL;
24332 }
24333
24334
24335 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24336 PyObject *resultobj = 0;
24337 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24338 wxBitmap *arg2 = 0 ;
24339 void *argp1 = 0 ;
24340 int res1 = 0 ;
24341 void *argp2 = 0 ;
24342 int res2 = 0 ;
24343 PyObject * obj0 = 0 ;
24344 PyObject * obj1 = 0 ;
24345 char * kwnames[] = {
24346 (char *) "self",(char *) "bmp", NULL
24347 };
24348
24349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24351 if (!SWIG_IsOK(res1)) {
24352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24353 }
24354 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24355 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24356 if (!SWIG_IsOK(res2)) {
24357 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24358 }
24359 if (!argp2) {
24360 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24361 }
24362 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24363 {
24364 PyThreadState* __tstate = wxPyBeginAllowThreads();
24365 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24366 wxPyEndAllowThreads(__tstate);
24367 if (PyErr_Occurred()) SWIG_fail;
24368 }
24369 resultobj = SWIG_Py_Void();
24370 return resultobj;
24371 fail:
24372 return NULL;
24373 }
24374
24375
24376 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24377 PyObject *obj;
24378 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24379 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24380 return SWIG_Py_Void();
24381 }
24382
24383 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24384 return SWIG_Python_InitShadowInstance(args);
24385 }
24386
24387 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24388 PyObject *resultobj = 0;
24389 wxDC *arg1 = (wxDC *) 0 ;
24390 wxBitmap &arg2_defvalue = wxNullBitmap ;
24391 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24392 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24393 wxBufferedDC *result = 0 ;
24394 void *argp1 = 0 ;
24395 int res1 = 0 ;
24396 void *argp2 = 0 ;
24397 int res2 = 0 ;
24398 int val3 ;
24399 int ecode3 = 0 ;
24400
24401 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24403 if (!SWIG_IsOK(res1)) {
24404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24405 }
24406 arg1 = reinterpret_cast< wxDC * >(argp1);
24407 if (swig_obj[1]) {
24408 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
24409 if (!SWIG_IsOK(res2)) {
24410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24411 }
24412 if (!argp2) {
24413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24414 }
24415 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24416 }
24417 if (swig_obj[2]) {
24418 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24419 if (!SWIG_IsOK(ecode3)) {
24420 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24421 }
24422 arg3 = static_cast< int >(val3);
24423 }
24424 {
24425 if (!wxPyCheckForApp()) SWIG_fail;
24426 PyThreadState* __tstate = wxPyBeginAllowThreads();
24427 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
24428 wxPyEndAllowThreads(__tstate);
24429 if (PyErr_Occurred()) SWIG_fail;
24430 }
24431 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24432 return resultobj;
24433 fail:
24434 return NULL;
24435 }
24436
24437
24438 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24439 PyObject *resultobj = 0;
24440 wxDC *arg1 = (wxDC *) 0 ;
24441 wxSize *arg2 = 0 ;
24442 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24443 wxBufferedDC *result = 0 ;
24444 void *argp1 = 0 ;
24445 int res1 = 0 ;
24446 wxSize temp2 ;
24447 int val3 ;
24448 int ecode3 = 0 ;
24449
24450 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24452 if (!SWIG_IsOK(res1)) {
24453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24454 }
24455 arg1 = reinterpret_cast< wxDC * >(argp1);
24456 {
24457 arg2 = &temp2;
24458 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24459 }
24460 if (swig_obj[2]) {
24461 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24462 if (!SWIG_IsOK(ecode3)) {
24463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24464 }
24465 arg3 = static_cast< int >(val3);
24466 }
24467 {
24468 if (!wxPyCheckForApp()) SWIG_fail;
24469 PyThreadState* __tstate = wxPyBeginAllowThreads();
24470 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24471 wxPyEndAllowThreads(__tstate);
24472 if (PyErr_Occurred()) SWIG_fail;
24473 }
24474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24475 return resultobj;
24476 fail:
24477 return NULL;
24478 }
24479
24480
24481 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24482 int argc;
24483 PyObject *argv[4];
24484
24485 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
24486 --argc;
24487 if ((argc >= 1) && (argc <= 3)) {
24488 int _v = 0;
24489 if (argc > 1) {
24490 {
24491 void *vptr = 0;
24492 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
24493 _v = SWIG_CheckState(res);
24494 }
24495 if (!_v) goto check_1;
24496 }
24497 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24498 }
24499 check_1:
24500
24501 if ((argc >= 2) && (argc <= 3)) {
24502 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24503 }
24504
24505 fail:
24506 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24507 return NULL;
24508 }
24509
24510
24511 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24512 PyObject *resultobj = 0;
24513 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24514 void *argp1 = 0 ;
24515 int res1 = 0 ;
24516 PyObject *swig_obj[1] ;
24517
24518 if (!args) SWIG_fail;
24519 swig_obj[0] = args;
24520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24521 if (!SWIG_IsOK(res1)) {
24522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24523 }
24524 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24525 {
24526 PyThreadState* __tstate = wxPyBeginAllowThreads();
24527 delete arg1;
24528
24529 wxPyEndAllowThreads(__tstate);
24530 if (PyErr_Occurred()) SWIG_fail;
24531 }
24532 resultobj = SWIG_Py_Void();
24533 return resultobj;
24534 fail:
24535 return NULL;
24536 }
24537
24538
24539 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24540 PyObject *resultobj = 0;
24541 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24542 void *argp1 = 0 ;
24543 int res1 = 0 ;
24544 PyObject *swig_obj[1] ;
24545
24546 if (!args) SWIG_fail;
24547 swig_obj[0] = args;
24548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24549 if (!SWIG_IsOK(res1)) {
24550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24551 }
24552 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24553 {
24554 PyThreadState* __tstate = wxPyBeginAllowThreads();
24555 (arg1)->UnMask();
24556 wxPyEndAllowThreads(__tstate);
24557 if (PyErr_Occurred()) SWIG_fail;
24558 }
24559 resultobj = SWIG_Py_Void();
24560 return resultobj;
24561 fail:
24562 return NULL;
24563 }
24564
24565
24566 SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24567 PyObject *resultobj = 0;
24568 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24569 int arg2 ;
24570 void *argp1 = 0 ;
24571 int res1 = 0 ;
24572 int val2 ;
24573 int ecode2 = 0 ;
24574 PyObject * obj0 = 0 ;
24575 PyObject * obj1 = 0 ;
24576 char * kwnames[] = {
24577 (char *) "self",(char *) "style", NULL
24578 };
24579
24580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24582 if (!SWIG_IsOK(res1)) {
24583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24584 }
24585 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24586 ecode2 = SWIG_AsVal_int(obj1, &val2);
24587 if (!SWIG_IsOK(ecode2)) {
24588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24589 }
24590 arg2 = static_cast< int >(val2);
24591 {
24592 PyThreadState* __tstate = wxPyBeginAllowThreads();
24593 (arg1)->SetStyle(arg2);
24594 wxPyEndAllowThreads(__tstate);
24595 if (PyErr_Occurred()) SWIG_fail;
24596 }
24597 resultobj = SWIG_Py_Void();
24598 return resultobj;
24599 fail:
24600 return NULL;
24601 }
24602
24603
24604 SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24605 PyObject *resultobj = 0;
24606 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24607 int result;
24608 void *argp1 = 0 ;
24609 int res1 = 0 ;
24610 PyObject *swig_obj[1] ;
24611
24612 if (!args) SWIG_fail;
24613 swig_obj[0] = args;
24614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24615 if (!SWIG_IsOK(res1)) {
24616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24617 }
24618 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24619 {
24620 PyThreadState* __tstate = wxPyBeginAllowThreads();
24621 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24622 wxPyEndAllowThreads(__tstate);
24623 if (PyErr_Occurred()) SWIG_fail;
24624 }
24625 resultobj = SWIG_From_int(static_cast< int >(result));
24626 return resultobj;
24627 fail:
24628 return NULL;
24629 }
24630
24631
24632 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24633 PyObject *obj;
24634 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24635 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24636 return SWIG_Py_Void();
24637 }
24638
24639 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24640 return SWIG_Python_InitShadowInstance(args);
24641 }
24642
24643 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24644 PyObject *resultobj = 0;
24645 wxWindow *arg1 = (wxWindow *) 0 ;
24646 wxBitmap &arg2_defvalue = wxNullBitmap ;
24647 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24648 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24649 wxBufferedPaintDC *result = 0 ;
24650 void *argp1 = 0 ;
24651 int res1 = 0 ;
24652 void *argp2 = 0 ;
24653 int res2 = 0 ;
24654 int val3 ;
24655 int ecode3 = 0 ;
24656 PyObject * obj0 = 0 ;
24657 PyObject * obj1 = 0 ;
24658 PyObject * obj2 = 0 ;
24659 char * kwnames[] = {
24660 (char *) "window",(char *) "buffer",(char *) "style", NULL
24661 };
24662
24663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24665 if (!SWIG_IsOK(res1)) {
24666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24667 }
24668 arg1 = reinterpret_cast< wxWindow * >(argp1);
24669 if (obj1) {
24670 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24671 if (!SWIG_IsOK(res2)) {
24672 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24673 }
24674 if (!argp2) {
24675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24676 }
24677 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24678 }
24679 if (obj2) {
24680 ecode3 = SWIG_AsVal_int(obj2, &val3);
24681 if (!SWIG_IsOK(ecode3)) {
24682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24683 }
24684 arg3 = static_cast< int >(val3);
24685 }
24686 {
24687 if (!wxPyCheckForApp()) SWIG_fail;
24688 PyThreadState* __tstate = wxPyBeginAllowThreads();
24689 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
24690 wxPyEndAllowThreads(__tstate);
24691 if (PyErr_Occurred()) SWIG_fail;
24692 }
24693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24694 return resultobj;
24695 fail:
24696 return NULL;
24697 }
24698
24699
24700 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24701 PyObject *obj;
24702 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24703 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24704 return SWIG_Py_Void();
24705 }
24706
24707 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24708 return SWIG_Python_InitShadowInstance(args);
24709 }
24710
24711 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24712 PyObject *resultobj = 0;
24713 wxWindow *arg1 = (wxWindow *) 0 ;
24714 wxAutoBufferedPaintDC *result = 0 ;
24715 void *argp1 = 0 ;
24716 int res1 = 0 ;
24717 PyObject * obj0 = 0 ;
24718 char * kwnames[] = {
24719 (char *) "win", NULL
24720 };
24721
24722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
24723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24724 if (!SWIG_IsOK(res1)) {
24725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24726 }
24727 arg1 = reinterpret_cast< wxWindow * >(argp1);
24728 {
24729 PyThreadState* __tstate = wxPyBeginAllowThreads();
24730 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
24731 wxPyEndAllowThreads(__tstate);
24732 if (PyErr_Occurred()) SWIG_fail;
24733 }
24734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24735 return resultobj;
24736 fail:
24737 return NULL;
24738 }
24739
24740
24741 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24742 PyObject *obj;
24743 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24744 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
24745 return SWIG_Py_Void();
24746 }
24747
24748 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24749 return SWIG_Python_InitShadowInstance(args);
24750 }
24751
24752 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24753 PyObject *resultobj = 0;
24754 wxWindow *arg1 = (wxWindow *) 0 ;
24755 wxDC *result = 0 ;
24756 void *argp1 = 0 ;
24757 int res1 = 0 ;
24758 PyObject * obj0 = 0 ;
24759 char * kwnames[] = {
24760 (char *) "window", NULL
24761 };
24762
24763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24765 if (!SWIG_IsOK(res1)) {
24766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24767 }
24768 arg1 = reinterpret_cast< wxWindow * >(argp1);
24769 {
24770 PyThreadState* __tstate = wxPyBeginAllowThreads();
24771 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24772 wxPyEndAllowThreads(__tstate);
24773 if (PyErr_Occurred()) SWIG_fail;
24774 }
24775 {
24776 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24777 }
24778 return resultobj;
24779 fail:
24780 return NULL;
24781 }
24782
24783
24784 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24785 PyObject *resultobj = 0;
24786 wxDC *arg1 = 0 ;
24787 bool arg2 ;
24788 wxMirrorDC *result = 0 ;
24789 void *argp1 = 0 ;
24790 int res1 = 0 ;
24791 bool val2 ;
24792 int ecode2 = 0 ;
24793 PyObject * obj0 = 0 ;
24794 PyObject * obj1 = 0 ;
24795 char * kwnames[] = {
24796 (char *) "dc",(char *) "mirror", NULL
24797 };
24798
24799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24800 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24801 if (!SWIG_IsOK(res1)) {
24802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24803 }
24804 if (!argp1) {
24805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24806 }
24807 arg1 = reinterpret_cast< wxDC * >(argp1);
24808 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24809 if (!SWIG_IsOK(ecode2)) {
24810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24811 }
24812 arg2 = static_cast< bool >(val2);
24813 {
24814 if (!wxPyCheckForApp()) SWIG_fail;
24815 PyThreadState* __tstate = wxPyBeginAllowThreads();
24816 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24817 wxPyEndAllowThreads(__tstate);
24818 if (PyErr_Occurred()) SWIG_fail;
24819 }
24820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24821 return resultobj;
24822 fail:
24823 return NULL;
24824 }
24825
24826
24827 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24828 PyObject *obj;
24829 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24830 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24831 return SWIG_Py_Void();
24832 }
24833
24834 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24835 return SWIG_Python_InitShadowInstance(args);
24836 }
24837
24838 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24839 PyObject *resultobj = 0;
24840 wxPrintData *arg1 = 0 ;
24841 wxPostScriptDC *result = 0 ;
24842 void *argp1 = 0 ;
24843 int res1 = 0 ;
24844 PyObject * obj0 = 0 ;
24845 char * kwnames[] = {
24846 (char *) "printData", NULL
24847 };
24848
24849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24850 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24851 if (!SWIG_IsOK(res1)) {
24852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24853 }
24854 if (!argp1) {
24855 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24856 }
24857 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24858 {
24859 if (!wxPyCheckForApp()) SWIG_fail;
24860 PyThreadState* __tstate = wxPyBeginAllowThreads();
24861 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24862 wxPyEndAllowThreads(__tstate);
24863 if (PyErr_Occurred()) SWIG_fail;
24864 }
24865 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24866 return resultobj;
24867 fail:
24868 return NULL;
24869 }
24870
24871
24872 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24873 PyObject *resultobj = 0;
24874 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24875 wxPrintData *result = 0 ;
24876 void *argp1 = 0 ;
24877 int res1 = 0 ;
24878 PyObject *swig_obj[1] ;
24879
24880 if (!args) SWIG_fail;
24881 swig_obj[0] = args;
24882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24883 if (!SWIG_IsOK(res1)) {
24884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24885 }
24886 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24887 {
24888 PyThreadState* __tstate = wxPyBeginAllowThreads();
24889 {
24890 wxPrintData &_result_ref = (arg1)->GetPrintData();
24891 result = (wxPrintData *) &_result_ref;
24892 }
24893 wxPyEndAllowThreads(__tstate);
24894 if (PyErr_Occurred()) SWIG_fail;
24895 }
24896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24897 return resultobj;
24898 fail:
24899 return NULL;
24900 }
24901
24902
24903 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24904 PyObject *resultobj = 0;
24905 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24906 wxPrintData *arg2 = 0 ;
24907 void *argp1 = 0 ;
24908 int res1 = 0 ;
24909 void *argp2 = 0 ;
24910 int res2 = 0 ;
24911 PyObject * obj0 = 0 ;
24912 PyObject * obj1 = 0 ;
24913 char * kwnames[] = {
24914 (char *) "self",(char *) "data", NULL
24915 };
24916
24917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24919 if (!SWIG_IsOK(res1)) {
24920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24921 }
24922 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24923 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24924 if (!SWIG_IsOK(res2)) {
24925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24926 }
24927 if (!argp2) {
24928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24929 }
24930 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24931 {
24932 PyThreadState* __tstate = wxPyBeginAllowThreads();
24933 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24934 wxPyEndAllowThreads(__tstate);
24935 if (PyErr_Occurred()) SWIG_fail;
24936 }
24937 resultobj = SWIG_Py_Void();
24938 return resultobj;
24939 fail:
24940 return NULL;
24941 }
24942
24943
24944 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24945 PyObject *resultobj = 0;
24946 int arg1 ;
24947 int val1 ;
24948 int ecode1 = 0 ;
24949 PyObject * obj0 = 0 ;
24950 char * kwnames[] = {
24951 (char *) "ppi", NULL
24952 };
24953
24954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24955 ecode1 = SWIG_AsVal_int(obj0, &val1);
24956 if (!SWIG_IsOK(ecode1)) {
24957 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24958 }
24959 arg1 = static_cast< int >(val1);
24960 {
24961 PyThreadState* __tstate = wxPyBeginAllowThreads();
24962 wxPostScriptDC::SetResolution(arg1);
24963 wxPyEndAllowThreads(__tstate);
24964 if (PyErr_Occurred()) SWIG_fail;
24965 }
24966 resultobj = SWIG_Py_Void();
24967 return resultobj;
24968 fail:
24969 return NULL;
24970 }
24971
24972
24973 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24974 PyObject *resultobj = 0;
24975 int result;
24976
24977 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24978 {
24979 PyThreadState* __tstate = wxPyBeginAllowThreads();
24980 result = (int)wxPostScriptDC::GetResolution();
24981 wxPyEndAllowThreads(__tstate);
24982 if (PyErr_Occurred()) SWIG_fail;
24983 }
24984 resultobj = SWIG_From_int(static_cast< int >(result));
24985 return resultobj;
24986 fail:
24987 return NULL;
24988 }
24989
24990
24991 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24992 PyObject *obj;
24993 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24994 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24995 return SWIG_Py_Void();
24996 }
24997
24998 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24999 return SWIG_Python_InitShadowInstance(args);
25000 }
25001
25002 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25003 PyObject *resultobj = 0;
25004 wxString const &arg1_defvalue = wxPyEmptyString ;
25005 wxString *arg1 = (wxString *) &arg1_defvalue ;
25006 wxMetaFile *result = 0 ;
25007 bool temp1 = false ;
25008 PyObject * obj0 = 0 ;
25009 char * kwnames[] = {
25010 (char *) "filename", NULL
25011 };
25012
25013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25014 if (obj0) {
25015 {
25016 arg1 = wxString_in_helper(obj0);
25017 if (arg1 == NULL) SWIG_fail;
25018 temp1 = true;
25019 }
25020 }
25021 {
25022 if (!wxPyCheckForApp()) SWIG_fail;
25023 PyThreadState* __tstate = wxPyBeginAllowThreads();
25024 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25025 wxPyEndAllowThreads(__tstate);
25026 if (PyErr_Occurred()) SWIG_fail;
25027 }
25028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25029 {
25030 if (temp1)
25031 delete arg1;
25032 }
25033 return resultobj;
25034 fail:
25035 {
25036 if (temp1)
25037 delete arg1;
25038 }
25039 return NULL;
25040 }
25041
25042
25043 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25044 PyObject *obj;
25045 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25046 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25047 return SWIG_Py_Void();
25048 }
25049
25050 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25051 return SWIG_Python_InitShadowInstance(args);
25052 }
25053
25054 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25055 PyObject *resultobj = 0;
25056 wxString const &arg1_defvalue = wxPyEmptyString ;
25057 wxString *arg1 = (wxString *) &arg1_defvalue ;
25058 int arg2 = (int) 0 ;
25059 int arg3 = (int) 0 ;
25060 wxString const &arg4_defvalue = wxPyEmptyString ;
25061 wxString *arg4 = (wxString *) &arg4_defvalue ;
25062 wxMetaFileDC *result = 0 ;
25063 bool temp1 = false ;
25064 int val2 ;
25065 int ecode2 = 0 ;
25066 int val3 ;
25067 int ecode3 = 0 ;
25068 bool temp4 = false ;
25069 PyObject * obj0 = 0 ;
25070 PyObject * obj1 = 0 ;
25071 PyObject * obj2 = 0 ;
25072 PyObject * obj3 = 0 ;
25073 char * kwnames[] = {
25074 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25075 };
25076
25077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25078 if (obj0) {
25079 {
25080 arg1 = wxString_in_helper(obj0);
25081 if (arg1 == NULL) SWIG_fail;
25082 temp1 = true;
25083 }
25084 }
25085 if (obj1) {
25086 ecode2 = SWIG_AsVal_int(obj1, &val2);
25087 if (!SWIG_IsOK(ecode2)) {
25088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25089 }
25090 arg2 = static_cast< int >(val2);
25091 }
25092 if (obj2) {
25093 ecode3 = SWIG_AsVal_int(obj2, &val3);
25094 if (!SWIG_IsOK(ecode3)) {
25095 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25096 }
25097 arg3 = static_cast< int >(val3);
25098 }
25099 if (obj3) {
25100 {
25101 arg4 = wxString_in_helper(obj3);
25102 if (arg4 == NULL) SWIG_fail;
25103 temp4 = true;
25104 }
25105 }
25106 {
25107 if (!wxPyCheckForApp()) SWIG_fail;
25108 PyThreadState* __tstate = wxPyBeginAllowThreads();
25109 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25110 wxPyEndAllowThreads(__tstate);
25111 if (PyErr_Occurred()) SWIG_fail;
25112 }
25113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25114 {
25115 if (temp1)
25116 delete arg1;
25117 }
25118 {
25119 if (temp4)
25120 delete arg4;
25121 }
25122 return resultobj;
25123 fail:
25124 {
25125 if (temp1)
25126 delete arg1;
25127 }
25128 {
25129 if (temp4)
25130 delete arg4;
25131 }
25132 return NULL;
25133 }
25134
25135
25136 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25137 PyObject *obj;
25138 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25139 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25140 return SWIG_Py_Void();
25141 }
25142
25143 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25144 return SWIG_Python_InitShadowInstance(args);
25145 }
25146
25147 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25148 PyObject *resultobj = 0;
25149 wxPrintData *arg1 = 0 ;
25150 wxPrinterDC *result = 0 ;
25151 void *argp1 = 0 ;
25152 int res1 = 0 ;
25153 PyObject * obj0 = 0 ;
25154 char * kwnames[] = {
25155 (char *) "printData", NULL
25156 };
25157
25158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25159 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25160 if (!SWIG_IsOK(res1)) {
25161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25162 }
25163 if (!argp1) {
25164 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25165 }
25166 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25167 {
25168 if (!wxPyCheckForApp()) SWIG_fail;
25169 PyThreadState* __tstate = wxPyBeginAllowThreads();
25170 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25171 wxPyEndAllowThreads(__tstate);
25172 if (PyErr_Occurred()) SWIG_fail;
25173 }
25174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25175 return resultobj;
25176 fail:
25177 return NULL;
25178 }
25179
25180
25181 SWIGINTERN PyObject *PrinterDC_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_wxPrinterDC, SWIG_NewClientData(obj));
25185 return SWIG_Py_Void();
25186 }
25187
25188 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25189 return SWIG_Python_InitShadowInstance(args);
25190 }
25191
25192 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25193 PyObject *resultobj = 0;
25194 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25195 wxGraphicsObject *result = 0 ;
25196 void *argp1 = 0 ;
25197 int res1 = 0 ;
25198 PyObject * obj0 = 0 ;
25199 char * kwnames[] = {
25200 (char *) "renderer", NULL
25201 };
25202
25203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25204 if (obj0) {
25205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25206 if (!SWIG_IsOK(res1)) {
25207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25208 }
25209 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25210 }
25211 {
25212 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25213 if (PyErr_Occurred()) SWIG_fail;
25214 }
25215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25216 return resultobj;
25217 fail:
25218 return NULL;
25219 }
25220
25221
25222 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25223 PyObject *resultobj = 0;
25224 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25225 void *argp1 = 0 ;
25226 int res1 = 0 ;
25227 PyObject *swig_obj[1] ;
25228
25229 if (!args) SWIG_fail;
25230 swig_obj[0] = args;
25231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25232 if (!SWIG_IsOK(res1)) {
25233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25234 }
25235 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25236 {
25237 delete arg1;
25238
25239 if (PyErr_Occurred()) SWIG_fail;
25240 }
25241 resultobj = SWIG_Py_Void();
25242 return resultobj;
25243 fail:
25244 return NULL;
25245 }
25246
25247
25248 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25249 PyObject *resultobj = 0;
25250 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25251 bool result;
25252 void *argp1 = 0 ;
25253 int res1 = 0 ;
25254 PyObject *swig_obj[1] ;
25255
25256 if (!args) SWIG_fail;
25257 swig_obj[0] = args;
25258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25259 if (!SWIG_IsOK(res1)) {
25260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25261 }
25262 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25263 {
25264 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25265 if (PyErr_Occurred()) SWIG_fail;
25266 }
25267 {
25268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25269 }
25270 return resultobj;
25271 fail:
25272 return NULL;
25273 }
25274
25275
25276 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25277 PyObject *resultobj = 0;
25278 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25279 wxGraphicsRenderer *result = 0 ;
25280 void *argp1 = 0 ;
25281 int res1 = 0 ;
25282 PyObject *swig_obj[1] ;
25283
25284 if (!args) SWIG_fail;
25285 swig_obj[0] = args;
25286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25287 if (!SWIG_IsOK(res1)) {
25288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25289 }
25290 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25291 {
25292 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25293 if (PyErr_Occurred()) SWIG_fail;
25294 }
25295 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25296 return resultobj;
25297 fail:
25298 return NULL;
25299 }
25300
25301
25302 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25303 PyObject *obj;
25304 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25305 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25306 return SWIG_Py_Void();
25307 }
25308
25309 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25310 return SWIG_Python_InitShadowInstance(args);
25311 }
25312
25313 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25314 PyObject *resultobj = 0;
25315 wxGraphicsPen *result = 0 ;
25316
25317 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25318 {
25319 result = (wxGraphicsPen *)new wxGraphicsPen();
25320 if (PyErr_Occurred()) SWIG_fail;
25321 }
25322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25323 return resultobj;
25324 fail:
25325 return NULL;
25326 }
25327
25328
25329 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25330 PyObject *resultobj = 0;
25331 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25332 void *argp1 = 0 ;
25333 int res1 = 0 ;
25334 PyObject *swig_obj[1] ;
25335
25336 if (!args) SWIG_fail;
25337 swig_obj[0] = args;
25338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25339 if (!SWIG_IsOK(res1)) {
25340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25341 }
25342 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25343 {
25344 delete arg1;
25345
25346 if (PyErr_Occurred()) SWIG_fail;
25347 }
25348 resultobj = SWIG_Py_Void();
25349 return resultobj;
25350 fail:
25351 return NULL;
25352 }
25353
25354
25355 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25356 PyObject *obj;
25357 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25358 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25359 return SWIG_Py_Void();
25360 }
25361
25362 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25363 return SWIG_Python_InitShadowInstance(args);
25364 }
25365
25366 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25367 PyObject *resultobj = 0;
25368 wxGraphicsBrush *result = 0 ;
25369
25370 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25371 {
25372 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25373 if (PyErr_Occurred()) SWIG_fail;
25374 }
25375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25376 return resultobj;
25377 fail:
25378 return NULL;
25379 }
25380
25381
25382 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25383 PyObject *resultobj = 0;
25384 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25385 void *argp1 = 0 ;
25386 int res1 = 0 ;
25387 PyObject *swig_obj[1] ;
25388
25389 if (!args) SWIG_fail;
25390 swig_obj[0] = args;
25391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25392 if (!SWIG_IsOK(res1)) {
25393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25394 }
25395 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25396 {
25397 delete arg1;
25398
25399 if (PyErr_Occurred()) SWIG_fail;
25400 }
25401 resultobj = SWIG_Py_Void();
25402 return resultobj;
25403 fail:
25404 return NULL;
25405 }
25406
25407
25408 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25409 PyObject *obj;
25410 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25411 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25412 return SWIG_Py_Void();
25413 }
25414
25415 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25416 return SWIG_Python_InitShadowInstance(args);
25417 }
25418
25419 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25420 PyObject *resultobj = 0;
25421 wxGraphicsFont *result = 0 ;
25422
25423 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25424 {
25425 result = (wxGraphicsFont *)new wxGraphicsFont();
25426 if (PyErr_Occurred()) SWIG_fail;
25427 }
25428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25429 return resultobj;
25430 fail:
25431 return NULL;
25432 }
25433
25434
25435 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25436 PyObject *resultobj = 0;
25437 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25438 void *argp1 = 0 ;
25439 int res1 = 0 ;
25440 PyObject *swig_obj[1] ;
25441
25442 if (!args) SWIG_fail;
25443 swig_obj[0] = args;
25444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25445 if (!SWIG_IsOK(res1)) {
25446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25447 }
25448 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25449 {
25450 delete arg1;
25451
25452 if (PyErr_Occurred()) SWIG_fail;
25453 }
25454 resultobj = SWIG_Py_Void();
25455 return resultobj;
25456 fail:
25457 return NULL;
25458 }
25459
25460
25461 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25462 PyObject *obj;
25463 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25464 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25465 return SWIG_Py_Void();
25466 }
25467
25468 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25469 return SWIG_Python_InitShadowInstance(args);
25470 }
25471
25472 SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25473 PyObject *resultobj = 0;
25474 wxGraphicsMatrix *result = 0 ;
25475
25476 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25477 {
25478 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25479 if (PyErr_Occurred()) SWIG_fail;
25480 }
25481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25482 return resultobj;
25483 fail:
25484 return NULL;
25485 }
25486
25487
25488 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25489 PyObject *resultobj = 0;
25490 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25491 void *argp1 = 0 ;
25492 int res1 = 0 ;
25493 PyObject *swig_obj[1] ;
25494
25495 if (!args) SWIG_fail;
25496 swig_obj[0] = args;
25497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
25498 if (!SWIG_IsOK(res1)) {
25499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25500 }
25501 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25502 {
25503 delete arg1;
25504
25505 if (PyErr_Occurred()) SWIG_fail;
25506 }
25507 resultobj = SWIG_Py_Void();
25508 return resultobj;
25509 fail:
25510 return NULL;
25511 }
25512
25513
25514 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25515 PyObject *resultobj = 0;
25516 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25517 wxGraphicsMatrix *arg2 = 0 ;
25518 void *argp1 = 0 ;
25519 int res1 = 0 ;
25520 void *argp2 = 0 ;
25521 int res2 = 0 ;
25522 PyObject * obj0 = 0 ;
25523 PyObject * obj1 = 0 ;
25524 char * kwnames[] = {
25525 (char *) "self",(char *) "t", NULL
25526 };
25527
25528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25530 if (!SWIG_IsOK(res1)) {
25531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25532 }
25533 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25534 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25535 if (!SWIG_IsOK(res2)) {
25536 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25537 }
25538 if (!argp2) {
25539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25540 }
25541 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
25542 {
25543 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
25544 if (PyErr_Occurred()) SWIG_fail;
25545 }
25546 resultobj = SWIG_Py_Void();
25547 return resultobj;
25548 fail:
25549 return NULL;
25550 }
25551
25552
25553 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25554 PyObject *resultobj = 0;
25555 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25556 wxDouble arg2 = (wxDouble) 1.0 ;
25557 wxDouble arg3 = (wxDouble) 0.0 ;
25558 wxDouble arg4 = (wxDouble) 0.0 ;
25559 wxDouble arg5 = (wxDouble) 1.0 ;
25560 wxDouble arg6 = (wxDouble) 0.0 ;
25561 wxDouble arg7 = (wxDouble) 0.0 ;
25562 void *argp1 = 0 ;
25563 int res1 = 0 ;
25564 double val2 ;
25565 int ecode2 = 0 ;
25566 double val3 ;
25567 int ecode3 = 0 ;
25568 double val4 ;
25569 int ecode4 = 0 ;
25570 double val5 ;
25571 int ecode5 = 0 ;
25572 double val6 ;
25573 int ecode6 = 0 ;
25574 double val7 ;
25575 int ecode7 = 0 ;
25576 PyObject * obj0 = 0 ;
25577 PyObject * obj1 = 0 ;
25578 PyObject * obj2 = 0 ;
25579 PyObject * obj3 = 0 ;
25580 PyObject * obj4 = 0 ;
25581 PyObject * obj5 = 0 ;
25582 PyObject * obj6 = 0 ;
25583 char * kwnames[] = {
25584 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25585 };
25586
25587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25589 if (!SWIG_IsOK(res1)) {
25590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25591 }
25592 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25593 if (obj1) {
25594 ecode2 = SWIG_AsVal_double(obj1, &val2);
25595 if (!SWIG_IsOK(ecode2)) {
25596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25597 }
25598 arg2 = static_cast< wxDouble >(val2);
25599 }
25600 if (obj2) {
25601 ecode3 = SWIG_AsVal_double(obj2, &val3);
25602 if (!SWIG_IsOK(ecode3)) {
25603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25604 }
25605 arg3 = static_cast< wxDouble >(val3);
25606 }
25607 if (obj3) {
25608 ecode4 = SWIG_AsVal_double(obj3, &val4);
25609 if (!SWIG_IsOK(ecode4)) {
25610 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25611 }
25612 arg4 = static_cast< wxDouble >(val4);
25613 }
25614 if (obj4) {
25615 ecode5 = SWIG_AsVal_double(obj4, &val5);
25616 if (!SWIG_IsOK(ecode5)) {
25617 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25618 }
25619 arg5 = static_cast< wxDouble >(val5);
25620 }
25621 if (obj5) {
25622 ecode6 = SWIG_AsVal_double(obj5, &val6);
25623 if (!SWIG_IsOK(ecode6)) {
25624 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25625 }
25626 arg6 = static_cast< wxDouble >(val6);
25627 }
25628 if (obj6) {
25629 ecode7 = SWIG_AsVal_double(obj6, &val7);
25630 if (!SWIG_IsOK(ecode7)) {
25631 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25632 }
25633 arg7 = static_cast< wxDouble >(val7);
25634 }
25635 {
25636 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
25637 if (PyErr_Occurred()) SWIG_fail;
25638 }
25639 resultobj = SWIG_Py_Void();
25640 return resultobj;
25641 fail:
25642 return NULL;
25643 }
25644
25645
25646 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25647 PyObject *resultobj = 0;
25648 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25649 void *argp1 = 0 ;
25650 int res1 = 0 ;
25651 PyObject *swig_obj[1] ;
25652
25653 if (!args) SWIG_fail;
25654 swig_obj[0] = args;
25655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25656 if (!SWIG_IsOK(res1)) {
25657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25658 }
25659 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25660 {
25661 (arg1)->Invert();
25662 if (PyErr_Occurred()) SWIG_fail;
25663 }
25664 resultobj = SWIG_Py_Void();
25665 return resultobj;
25666 fail:
25667 return NULL;
25668 }
25669
25670
25671 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25672 PyObject *resultobj = 0;
25673 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25674 wxGraphicsMatrix *arg2 = 0 ;
25675 bool result;
25676 void *argp1 = 0 ;
25677 int res1 = 0 ;
25678 void *argp2 = 0 ;
25679 int res2 = 0 ;
25680 PyObject * obj0 = 0 ;
25681 PyObject * obj1 = 0 ;
25682 char * kwnames[] = {
25683 (char *) "self",(char *) "t", NULL
25684 };
25685
25686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25688 if (!SWIG_IsOK(res1)) {
25689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25690 }
25691 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25692 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25693 if (!SWIG_IsOK(res2)) {
25694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25695 }
25696 if (!argp2) {
25697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25698 }
25699 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
25700 {
25701 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
25702 if (PyErr_Occurred()) SWIG_fail;
25703 }
25704 {
25705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25706 }
25707 return resultobj;
25708 fail:
25709 return NULL;
25710 }
25711
25712
25713 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25714 PyObject *resultobj = 0;
25715 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25716 bool result;
25717 void *argp1 = 0 ;
25718 int res1 = 0 ;
25719 PyObject *swig_obj[1] ;
25720
25721 if (!args) SWIG_fail;
25722 swig_obj[0] = args;
25723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25724 if (!SWIG_IsOK(res1)) {
25725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25726 }
25727 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25728 {
25729 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
25730 if (PyErr_Occurred()) SWIG_fail;
25731 }
25732 {
25733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25734 }
25735 return resultobj;
25736 fail:
25737 return NULL;
25738 }
25739
25740
25741 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25742 PyObject *resultobj = 0;
25743 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25744 wxDouble arg2 ;
25745 wxDouble arg3 ;
25746 void *argp1 = 0 ;
25747 int res1 = 0 ;
25748 double val2 ;
25749 int ecode2 = 0 ;
25750 double val3 ;
25751 int ecode3 = 0 ;
25752 PyObject * obj0 = 0 ;
25753 PyObject * obj1 = 0 ;
25754 PyObject * obj2 = 0 ;
25755 char * kwnames[] = {
25756 (char *) "self",(char *) "dx",(char *) "dy", NULL
25757 };
25758
25759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25761 if (!SWIG_IsOK(res1)) {
25762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25763 }
25764 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25765 ecode2 = SWIG_AsVal_double(obj1, &val2);
25766 if (!SWIG_IsOK(ecode2)) {
25767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25768 }
25769 arg2 = static_cast< wxDouble >(val2);
25770 ecode3 = SWIG_AsVal_double(obj2, &val3);
25771 if (!SWIG_IsOK(ecode3)) {
25772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25773 }
25774 arg3 = static_cast< wxDouble >(val3);
25775 {
25776 (arg1)->Translate(arg2,arg3);
25777 if (PyErr_Occurred()) SWIG_fail;
25778 }
25779 resultobj = SWIG_Py_Void();
25780 return resultobj;
25781 fail:
25782 return NULL;
25783 }
25784
25785
25786 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25787 PyObject *resultobj = 0;
25788 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25789 wxDouble arg2 ;
25790 wxDouble arg3 ;
25791 void *argp1 = 0 ;
25792 int res1 = 0 ;
25793 double val2 ;
25794 int ecode2 = 0 ;
25795 double val3 ;
25796 int ecode3 = 0 ;
25797 PyObject * obj0 = 0 ;
25798 PyObject * obj1 = 0 ;
25799 PyObject * obj2 = 0 ;
25800 char * kwnames[] = {
25801 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25802 };
25803
25804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25806 if (!SWIG_IsOK(res1)) {
25807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25808 }
25809 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25810 ecode2 = SWIG_AsVal_double(obj1, &val2);
25811 if (!SWIG_IsOK(ecode2)) {
25812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25813 }
25814 arg2 = static_cast< wxDouble >(val2);
25815 ecode3 = SWIG_AsVal_double(obj2, &val3);
25816 if (!SWIG_IsOK(ecode3)) {
25817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25818 }
25819 arg3 = static_cast< wxDouble >(val3);
25820 {
25821 (arg1)->Scale(arg2,arg3);
25822 if (PyErr_Occurred()) SWIG_fail;
25823 }
25824 resultobj = SWIG_Py_Void();
25825 return resultobj;
25826 fail:
25827 return NULL;
25828 }
25829
25830
25831 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25832 PyObject *resultobj = 0;
25833 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25834 wxDouble arg2 ;
25835 void *argp1 = 0 ;
25836 int res1 = 0 ;
25837 double val2 ;
25838 int ecode2 = 0 ;
25839 PyObject * obj0 = 0 ;
25840 PyObject * obj1 = 0 ;
25841 char * kwnames[] = {
25842 (char *) "self",(char *) "angle", NULL
25843 };
25844
25845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25847 if (!SWIG_IsOK(res1)) {
25848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25849 }
25850 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25851 ecode2 = SWIG_AsVal_double(obj1, &val2);
25852 if (!SWIG_IsOK(ecode2)) {
25853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25854 }
25855 arg2 = static_cast< wxDouble >(val2);
25856 {
25857 (arg1)->Rotate(arg2);
25858 if (PyErr_Occurred()) SWIG_fail;
25859 }
25860 resultobj = SWIG_Py_Void();
25861 return resultobj;
25862 fail:
25863 return NULL;
25864 }
25865
25866
25867 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25868 PyObject *resultobj = 0;
25869 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25870 wxDouble *arg2 = (wxDouble *) 0 ;
25871 wxDouble *arg3 = (wxDouble *) 0 ;
25872 void *argp1 = 0 ;
25873 int res1 = 0 ;
25874 wxDouble temp2 ;
25875 int res2 = 0 ;
25876 wxDouble temp3 ;
25877 int res3 = 0 ;
25878 PyObject * obj0 = 0 ;
25879 PyObject * obj1 = 0 ;
25880 PyObject * obj2 = 0 ;
25881 char * kwnames[] = {
25882 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
25883 };
25884
25885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25887 if (!SWIG_IsOK(res1)) {
25888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25889 }
25890 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25891 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
25892 double val;
25893 int ecode = SWIG_AsVal_double(obj1, &val);
25894 if (!SWIG_IsOK(ecode)) {
25895 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25896 }
25897 temp2 = static_cast< wxDouble >(val);
25898 arg2 = &temp2;
25899 res2 = SWIG_AddTmpMask(ecode);
25900 }
25901 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
25902 double val;
25903 int ecode = SWIG_AsVal_double(obj2, &val);
25904 if (!SWIG_IsOK(ecode)) {
25905 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25906 }
25907 temp3 = static_cast< wxDouble >(val);
25908 arg3 = &temp3;
25909 res3 = SWIG_AddTmpMask(ecode);
25910 }
25911 {
25912 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
25913 if (PyErr_Occurred()) SWIG_fail;
25914 }
25915 resultobj = SWIG_Py_Void();
25916 if (SWIG_IsTmpObj(res2)) {
25917 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25918 } else {
25919 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25920 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25921 }
25922 if (SWIG_IsTmpObj(res3)) {
25923 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25924 } else {
25925 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25926 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25927 }
25928 return resultobj;
25929 fail:
25930 return NULL;
25931 }
25932
25933
25934 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25935 PyObject *resultobj = 0;
25936 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25937 wxDouble *arg2 = (wxDouble *) 0 ;
25938 wxDouble *arg3 = (wxDouble *) 0 ;
25939 void *argp1 = 0 ;
25940 int res1 = 0 ;
25941 wxDouble temp2 ;
25942 int res2 = 0 ;
25943 wxDouble temp3 ;
25944 int res3 = 0 ;
25945 PyObject * obj0 = 0 ;
25946 PyObject * obj1 = 0 ;
25947 PyObject * obj2 = 0 ;
25948 char * kwnames[] = {
25949 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
25950 };
25951
25952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25954 if (!SWIG_IsOK(res1)) {
25955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25956 }
25957 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25958 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
25959 double val;
25960 int ecode = SWIG_AsVal_double(obj1, &val);
25961 if (!SWIG_IsOK(ecode)) {
25962 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
25963 }
25964 temp2 = static_cast< wxDouble >(val);
25965 arg2 = &temp2;
25966 res2 = SWIG_AddTmpMask(ecode);
25967 }
25968 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
25969 double val;
25970 int ecode = SWIG_AsVal_double(obj2, &val);
25971 if (!SWIG_IsOK(ecode)) {
25972 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
25973 }
25974 temp3 = static_cast< wxDouble >(val);
25975 arg3 = &temp3;
25976 res3 = SWIG_AddTmpMask(ecode);
25977 }
25978 {
25979 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
25980 if (PyErr_Occurred()) SWIG_fail;
25981 }
25982 resultobj = SWIG_Py_Void();
25983 if (SWIG_IsTmpObj(res2)) {
25984 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25985 } else {
25986 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25987 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25988 }
25989 if (SWIG_IsTmpObj(res3)) {
25990 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25991 } else {
25992 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25993 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25994 }
25995 return resultobj;
25996 fail:
25997 return NULL;
25998 }
25999
26000
26001 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26002 PyObject *resultobj = 0;
26003 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26004 void *result = 0 ;
26005 void *argp1 = 0 ;
26006 int res1 = 0 ;
26007 PyObject *swig_obj[1] ;
26008
26009 if (!args) SWIG_fail;
26010 swig_obj[0] = args;
26011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26012 if (!SWIG_IsOK(res1)) {
26013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26014 }
26015 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26016 {
26017 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26018 if (PyErr_Occurred()) SWIG_fail;
26019 }
26020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26021 return resultobj;
26022 fail:
26023 return NULL;
26024 }
26025
26026
26027 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26028 PyObject *obj;
26029 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26030 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26031 return SWIG_Py_Void();
26032 }
26033
26034 SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26035 return SWIG_Python_InitShadowInstance(args);
26036 }
26037
26038 SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26039 PyObject *resultobj = 0;
26040 wxGraphicsPath *result = 0 ;
26041
26042 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26043 {
26044 if (!wxPyCheckForApp()) SWIG_fail;
26045 PyThreadState* __tstate = wxPyBeginAllowThreads();
26046 result = (wxGraphicsPath *)new wxGraphicsPath();
26047 wxPyEndAllowThreads(__tstate);
26048 if (PyErr_Occurred()) SWIG_fail;
26049 }
26050 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26051 return resultobj;
26052 fail:
26053 return NULL;
26054 }
26055
26056
26057 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26058 PyObject *resultobj = 0;
26059 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26060 void *argp1 = 0 ;
26061 int res1 = 0 ;
26062 PyObject *swig_obj[1] ;
26063
26064 if (!args) SWIG_fail;
26065 swig_obj[0] = args;
26066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
26067 if (!SWIG_IsOK(res1)) {
26068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26069 }
26070 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26071 {
26072 delete arg1;
26073
26074 if (PyErr_Occurred()) SWIG_fail;
26075 }
26076 resultobj = SWIG_Py_Void();
26077 return resultobj;
26078 fail:
26079 return NULL;
26080 }
26081
26082
26083 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26084 PyObject *resultobj = 0;
26085 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26086 wxDouble arg2 ;
26087 wxDouble arg3 ;
26088 void *argp1 = 0 ;
26089 int res1 = 0 ;
26090 double val2 ;
26091 int ecode2 = 0 ;
26092 double val3 ;
26093 int ecode3 = 0 ;
26094
26095 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26097 if (!SWIG_IsOK(res1)) {
26098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26099 }
26100 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26101 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26102 if (!SWIG_IsOK(ecode2)) {
26103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26104 }
26105 arg2 = static_cast< wxDouble >(val2);
26106 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26107 if (!SWIG_IsOK(ecode3)) {
26108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26109 }
26110 arg3 = static_cast< wxDouble >(val3);
26111 {
26112 (arg1)->MoveToPoint(arg2,arg3);
26113 if (PyErr_Occurred()) SWIG_fail;
26114 }
26115 resultobj = SWIG_Py_Void();
26116 return resultobj;
26117 fail:
26118 return NULL;
26119 }
26120
26121
26122 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26123 PyObject *resultobj = 0;
26124 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26125 wxPoint2D *arg2 = 0 ;
26126 void *argp1 = 0 ;
26127 int res1 = 0 ;
26128 wxPoint2D temp2 ;
26129
26130 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26132 if (!SWIG_IsOK(res1)) {
26133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26134 }
26135 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26136 {
26137 arg2 = &temp2;
26138 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26139 }
26140 {
26141 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
26142 if (PyErr_Occurred()) SWIG_fail;
26143 }
26144 resultobj = SWIG_Py_Void();
26145 return resultobj;
26146 fail:
26147 return NULL;
26148 }
26149
26150
26151 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
26152 int argc;
26153 PyObject *argv[4];
26154
26155 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
26156 --argc;
26157 if (argc == 2) {
26158 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
26159 }
26160 if (argc == 3) {
26161 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
26162 }
26163
26164 fail:
26165 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
26166 return NULL;
26167 }
26168
26169
26170 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26171 PyObject *resultobj = 0;
26172 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26173 wxDouble arg2 ;
26174 wxDouble arg3 ;
26175 void *argp1 = 0 ;
26176 int res1 = 0 ;
26177 double val2 ;
26178 int ecode2 = 0 ;
26179 double val3 ;
26180 int ecode3 = 0 ;
26181
26182 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26184 if (!SWIG_IsOK(res1)) {
26185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26186 }
26187 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26188 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26189 if (!SWIG_IsOK(ecode2)) {
26190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26191 }
26192 arg2 = static_cast< wxDouble >(val2);
26193 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26194 if (!SWIG_IsOK(ecode3)) {
26195 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26196 }
26197 arg3 = static_cast< wxDouble >(val3);
26198 {
26199 (arg1)->AddLineToPoint(arg2,arg3);
26200 if (PyErr_Occurred()) SWIG_fail;
26201 }
26202 resultobj = SWIG_Py_Void();
26203 return resultobj;
26204 fail:
26205 return NULL;
26206 }
26207
26208
26209 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26210 PyObject *resultobj = 0;
26211 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26212 wxPoint2D *arg2 = 0 ;
26213 void *argp1 = 0 ;
26214 int res1 = 0 ;
26215 wxPoint2D temp2 ;
26216
26217 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26219 if (!SWIG_IsOK(res1)) {
26220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26221 }
26222 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26223 {
26224 arg2 = &temp2;
26225 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26226 }
26227 {
26228 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
26229 if (PyErr_Occurred()) SWIG_fail;
26230 }
26231 resultobj = SWIG_Py_Void();
26232 return resultobj;
26233 fail:
26234 return NULL;
26235 }
26236
26237
26238 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26239 int argc;
26240 PyObject *argv[4];
26241
26242 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26243 --argc;
26244 if (argc == 2) {
26245 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
26246 }
26247 if (argc == 3) {
26248 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
26249 }
26250
26251 fail:
26252 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
26253 return NULL;
26254 }
26255
26256
26257 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26258 PyObject *resultobj = 0;
26259 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26260 wxDouble arg2 ;
26261 wxDouble arg3 ;
26262 wxDouble arg4 ;
26263 wxDouble arg5 ;
26264 wxDouble arg6 ;
26265 wxDouble arg7 ;
26266 void *argp1 = 0 ;
26267 int res1 = 0 ;
26268 double val2 ;
26269 int ecode2 = 0 ;
26270 double val3 ;
26271 int ecode3 = 0 ;
26272 double val4 ;
26273 int ecode4 = 0 ;
26274 double val5 ;
26275 int ecode5 = 0 ;
26276 double val6 ;
26277 int ecode6 = 0 ;
26278 double val7 ;
26279 int ecode7 = 0 ;
26280
26281 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26283 if (!SWIG_IsOK(res1)) {
26284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26285 }
26286 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26287 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26288 if (!SWIG_IsOK(ecode2)) {
26289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26290 }
26291 arg2 = static_cast< wxDouble >(val2);
26292 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26293 if (!SWIG_IsOK(ecode3)) {
26294 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26295 }
26296 arg3 = static_cast< wxDouble >(val3);
26297 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26298 if (!SWIG_IsOK(ecode4)) {
26299 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26300 }
26301 arg4 = static_cast< wxDouble >(val4);
26302 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26303 if (!SWIG_IsOK(ecode5)) {
26304 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26305 }
26306 arg5 = static_cast< wxDouble >(val5);
26307 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26308 if (!SWIG_IsOK(ecode6)) {
26309 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26310 }
26311 arg6 = static_cast< wxDouble >(val6);
26312 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26313 if (!SWIG_IsOK(ecode7)) {
26314 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26315 }
26316 arg7 = static_cast< wxDouble >(val7);
26317 {
26318 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
26319 if (PyErr_Occurred()) SWIG_fail;
26320 }
26321 resultobj = SWIG_Py_Void();
26322 return resultobj;
26323 fail:
26324 return NULL;
26325 }
26326
26327
26328 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26329 PyObject *resultobj = 0;
26330 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26331 wxPoint2D *arg2 = 0 ;
26332 wxPoint2D *arg3 = 0 ;
26333 wxPoint2D *arg4 = 0 ;
26334 void *argp1 = 0 ;
26335 int res1 = 0 ;
26336 wxPoint2D temp2 ;
26337 wxPoint2D temp3 ;
26338 wxPoint2D temp4 ;
26339
26340 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26342 if (!SWIG_IsOK(res1)) {
26343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26344 }
26345 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26346 {
26347 arg2 = &temp2;
26348 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26349 }
26350 {
26351 arg3 = &temp3;
26352 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
26353 }
26354 {
26355 arg4 = &temp4;
26356 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26357 }
26358 {
26359 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
26360 if (PyErr_Occurred()) SWIG_fail;
26361 }
26362 resultobj = SWIG_Py_Void();
26363 return resultobj;
26364 fail:
26365 return NULL;
26366 }
26367
26368
26369 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26370 int argc;
26371 PyObject *argv[8];
26372
26373 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26374 --argc;
26375 if (argc == 4) {
26376 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
26377 }
26378 if (argc == 7) {
26379 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
26380 }
26381
26382 fail:
26383 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
26384 return NULL;
26385 }
26386
26387
26388 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26389 PyObject *resultobj = 0;
26390 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26391 wxGraphicsPath *arg2 = 0 ;
26392 void *argp1 = 0 ;
26393 int res1 = 0 ;
26394 void *argp2 = 0 ;
26395 int res2 = 0 ;
26396 PyObject * obj0 = 0 ;
26397 PyObject * obj1 = 0 ;
26398 char * kwnames[] = {
26399 (char *) "self",(char *) "path", NULL
26400 };
26401
26402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
26403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26404 if (!SWIG_IsOK(res1)) {
26405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26406 }
26407 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26408 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
26409 if (!SWIG_IsOK(res2)) {
26410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26411 }
26412 if (!argp2) {
26413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26414 }
26415 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26416 {
26417 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
26418 if (PyErr_Occurred()) SWIG_fail;
26419 }
26420 resultobj = SWIG_Py_Void();
26421 return resultobj;
26422 fail:
26423 return NULL;
26424 }
26425
26426
26427 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26428 PyObject *resultobj = 0;
26429 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26430 void *argp1 = 0 ;
26431 int res1 = 0 ;
26432 PyObject *swig_obj[1] ;
26433
26434 if (!args) SWIG_fail;
26435 swig_obj[0] = args;
26436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26437 if (!SWIG_IsOK(res1)) {
26438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26439 }
26440 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26441 {
26442 (arg1)->CloseSubpath();
26443 if (PyErr_Occurred()) SWIG_fail;
26444 }
26445 resultobj = SWIG_Py_Void();
26446 return resultobj;
26447 fail:
26448 return NULL;
26449 }
26450
26451
26452 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26453 PyObject *resultobj = 0;
26454 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26455 wxPoint2D result;
26456 void *argp1 = 0 ;
26457 int res1 = 0 ;
26458 PyObject *swig_obj[1] ;
26459
26460 if (!args) SWIG_fail;
26461 swig_obj[0] = args;
26462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26463 if (!SWIG_IsOK(res1)) {
26464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
26465 }
26466 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26467 {
26468 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
26469 if (PyErr_Occurred()) SWIG_fail;
26470 }
26471 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
26472 return resultobj;
26473 fail:
26474 return NULL;
26475 }
26476
26477
26478 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26479 PyObject *resultobj = 0;
26480 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26481 wxDouble arg2 ;
26482 wxDouble arg3 ;
26483 wxDouble arg4 ;
26484 wxDouble arg5 ;
26485 wxDouble arg6 ;
26486 bool arg7 ;
26487 void *argp1 = 0 ;
26488 int res1 = 0 ;
26489 double val2 ;
26490 int ecode2 = 0 ;
26491 double val3 ;
26492 int ecode3 = 0 ;
26493 double val4 ;
26494 int ecode4 = 0 ;
26495 double val5 ;
26496 int ecode5 = 0 ;
26497 double val6 ;
26498 int ecode6 = 0 ;
26499 bool val7 ;
26500 int ecode7 = 0 ;
26501
26502 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26504 if (!SWIG_IsOK(res1)) {
26505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26506 }
26507 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26508 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26509 if (!SWIG_IsOK(ecode2)) {
26510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
26511 }
26512 arg2 = static_cast< wxDouble >(val2);
26513 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26514 if (!SWIG_IsOK(ecode3)) {
26515 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26516 }
26517 arg3 = static_cast< wxDouble >(val3);
26518 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26519 if (!SWIG_IsOK(ecode4)) {
26520 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26521 }
26522 arg4 = static_cast< wxDouble >(val4);
26523 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26524 if (!SWIG_IsOK(ecode5)) {
26525 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26526 }
26527 arg5 = static_cast< wxDouble >(val5);
26528 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26529 if (!SWIG_IsOK(ecode6)) {
26530 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26531 }
26532 arg6 = static_cast< wxDouble >(val6);
26533 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26534 if (!SWIG_IsOK(ecode7)) {
26535 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26536 }
26537 arg7 = static_cast< bool >(val7);
26538 {
26539 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
26540 if (PyErr_Occurred()) SWIG_fail;
26541 }
26542 resultobj = SWIG_Py_Void();
26543 return resultobj;
26544 fail:
26545 return NULL;
26546 }
26547
26548
26549 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26550 PyObject *resultobj = 0;
26551 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26552 wxPoint2D *arg2 = 0 ;
26553 wxDouble arg3 ;
26554 wxDouble arg4 ;
26555 wxDouble arg5 ;
26556 bool arg6 ;
26557 void *argp1 = 0 ;
26558 int res1 = 0 ;
26559 wxPoint2D temp2 ;
26560 double val3 ;
26561 int ecode3 = 0 ;
26562 double val4 ;
26563 int ecode4 = 0 ;
26564 double val5 ;
26565 int ecode5 = 0 ;
26566 bool val6 ;
26567 int ecode6 = 0 ;
26568
26569 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
26570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26571 if (!SWIG_IsOK(res1)) {
26572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26573 }
26574 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26575 {
26576 arg2 = &temp2;
26577 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26578 }
26579 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26580 if (!SWIG_IsOK(ecode3)) {
26581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26582 }
26583 arg3 = static_cast< wxDouble >(val3);
26584 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26585 if (!SWIG_IsOK(ecode4)) {
26586 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26587 }
26588 arg4 = static_cast< wxDouble >(val4);
26589 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26590 if (!SWIG_IsOK(ecode5)) {
26591 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26592 }
26593 arg5 = static_cast< wxDouble >(val5);
26594 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26595 if (!SWIG_IsOK(ecode6)) {
26596 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26597 }
26598 arg6 = static_cast< bool >(val6);
26599 {
26600 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
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_AddArc(PyObject *self, PyObject *args) {
26611 int argc;
26612 PyObject *argv[8];
26613
26614 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
26615 --argc;
26616 if (argc == 6) {
26617 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
26618 }
26619 if (argc == 7) {
26620 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
26621 }
26622
26623 fail:
26624 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
26625 return NULL;
26626 }
26627
26628
26629 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26630 PyObject *resultobj = 0;
26631 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26632 wxDouble arg2 ;
26633 wxDouble arg3 ;
26634 wxDouble arg4 ;
26635 wxDouble arg5 ;
26636 void *argp1 = 0 ;
26637 int res1 = 0 ;
26638 double val2 ;
26639 int ecode2 = 0 ;
26640 double val3 ;
26641 int ecode3 = 0 ;
26642 double val4 ;
26643 int ecode4 = 0 ;
26644 double val5 ;
26645 int ecode5 = 0 ;
26646 PyObject * obj0 = 0 ;
26647 PyObject * obj1 = 0 ;
26648 PyObject * obj2 = 0 ;
26649 PyObject * obj3 = 0 ;
26650 PyObject * obj4 = 0 ;
26651 char * kwnames[] = {
26652 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26653 };
26654
26655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26657 if (!SWIG_IsOK(res1)) {
26658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26659 }
26660 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26661 ecode2 = SWIG_AsVal_double(obj1, &val2);
26662 if (!SWIG_IsOK(ecode2)) {
26663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26664 }
26665 arg2 = static_cast< wxDouble >(val2);
26666 ecode3 = SWIG_AsVal_double(obj2, &val3);
26667 if (!SWIG_IsOK(ecode3)) {
26668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26669 }
26670 arg3 = static_cast< wxDouble >(val3);
26671 ecode4 = SWIG_AsVal_double(obj3, &val4);
26672 if (!SWIG_IsOK(ecode4)) {
26673 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26674 }
26675 arg4 = static_cast< wxDouble >(val4);
26676 ecode5 = SWIG_AsVal_double(obj4, &val5);
26677 if (!SWIG_IsOK(ecode5)) {
26678 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26679 }
26680 arg5 = static_cast< wxDouble >(val5);
26681 {
26682 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
26683 if (PyErr_Occurred()) SWIG_fail;
26684 }
26685 resultobj = SWIG_Py_Void();
26686 return resultobj;
26687 fail:
26688 return NULL;
26689 }
26690
26691
26692 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26693 PyObject *resultobj = 0;
26694 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26695 wxDouble arg2 ;
26696 wxDouble arg3 ;
26697 wxDouble arg4 ;
26698 wxDouble arg5 ;
26699 void *argp1 = 0 ;
26700 int res1 = 0 ;
26701 double val2 ;
26702 int ecode2 = 0 ;
26703 double val3 ;
26704 int ecode3 = 0 ;
26705 double val4 ;
26706 int ecode4 = 0 ;
26707 double val5 ;
26708 int ecode5 = 0 ;
26709 PyObject * obj0 = 0 ;
26710 PyObject * obj1 = 0 ;
26711 PyObject * obj2 = 0 ;
26712 PyObject * obj3 = 0 ;
26713 PyObject * obj4 = 0 ;
26714 char * kwnames[] = {
26715 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26716 };
26717
26718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26720 if (!SWIG_IsOK(res1)) {
26721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26722 }
26723 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26724 ecode2 = SWIG_AsVal_double(obj1, &val2);
26725 if (!SWIG_IsOK(ecode2)) {
26726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26727 }
26728 arg2 = static_cast< wxDouble >(val2);
26729 ecode3 = SWIG_AsVal_double(obj2, &val3);
26730 if (!SWIG_IsOK(ecode3)) {
26731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26732 }
26733 arg3 = static_cast< wxDouble >(val3);
26734 ecode4 = SWIG_AsVal_double(obj3, &val4);
26735 if (!SWIG_IsOK(ecode4)) {
26736 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26737 }
26738 arg4 = static_cast< wxDouble >(val4);
26739 ecode5 = SWIG_AsVal_double(obj4, &val5);
26740 if (!SWIG_IsOK(ecode5)) {
26741 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26742 }
26743 arg5 = static_cast< wxDouble >(val5);
26744 {
26745 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
26746 if (PyErr_Occurred()) SWIG_fail;
26747 }
26748 resultobj = SWIG_Py_Void();
26749 return resultobj;
26750 fail:
26751 return NULL;
26752 }
26753
26754
26755 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26756 PyObject *resultobj = 0;
26757 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26758 wxDouble arg2 ;
26759 wxDouble arg3 ;
26760 wxDouble arg4 ;
26761 void *argp1 = 0 ;
26762 int res1 = 0 ;
26763 double val2 ;
26764 int ecode2 = 0 ;
26765 double val3 ;
26766 int ecode3 = 0 ;
26767 double val4 ;
26768 int ecode4 = 0 ;
26769 PyObject * obj0 = 0 ;
26770 PyObject * obj1 = 0 ;
26771 PyObject * obj2 = 0 ;
26772 PyObject * obj3 = 0 ;
26773 char * kwnames[] = {
26774 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
26775 };
26776
26777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26779 if (!SWIG_IsOK(res1)) {
26780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26781 }
26782 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26783 ecode2 = SWIG_AsVal_double(obj1, &val2);
26784 if (!SWIG_IsOK(ecode2)) {
26785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26786 }
26787 arg2 = static_cast< wxDouble >(val2);
26788 ecode3 = SWIG_AsVal_double(obj2, &val3);
26789 if (!SWIG_IsOK(ecode3)) {
26790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
26791 }
26792 arg3 = static_cast< wxDouble >(val3);
26793 ecode4 = SWIG_AsVal_double(obj3, &val4);
26794 if (!SWIG_IsOK(ecode4)) {
26795 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
26796 }
26797 arg4 = static_cast< wxDouble >(val4);
26798 {
26799 (arg1)->AddCircle(arg2,arg3,arg4);
26800 if (PyErr_Occurred()) SWIG_fail;
26801 }
26802 resultobj = SWIG_Py_Void();
26803 return resultobj;
26804 fail:
26805 return NULL;
26806 }
26807
26808
26809 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26810 PyObject *resultobj = 0;
26811 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26812 wxDouble arg2 ;
26813 wxDouble arg3 ;
26814 wxDouble arg4 ;
26815 wxDouble arg5 ;
26816 wxDouble arg6 ;
26817 void *argp1 = 0 ;
26818 int res1 = 0 ;
26819 double val2 ;
26820 int ecode2 = 0 ;
26821 double val3 ;
26822 int ecode3 = 0 ;
26823 double val4 ;
26824 int ecode4 = 0 ;
26825 double val5 ;
26826 int ecode5 = 0 ;
26827 double val6 ;
26828 int ecode6 = 0 ;
26829 PyObject * obj0 = 0 ;
26830 PyObject * obj1 = 0 ;
26831 PyObject * obj2 = 0 ;
26832 PyObject * obj3 = 0 ;
26833 PyObject * obj4 = 0 ;
26834 PyObject * obj5 = 0 ;
26835 char * kwnames[] = {
26836 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
26837 };
26838
26839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26841 if (!SWIG_IsOK(res1)) {
26842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26843 }
26844 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26845 ecode2 = SWIG_AsVal_double(obj1, &val2);
26846 if (!SWIG_IsOK(ecode2)) {
26847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26848 }
26849 arg2 = static_cast< wxDouble >(val2);
26850 ecode3 = SWIG_AsVal_double(obj2, &val3);
26851 if (!SWIG_IsOK(ecode3)) {
26852 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26853 }
26854 arg3 = static_cast< wxDouble >(val3);
26855 ecode4 = SWIG_AsVal_double(obj3, &val4);
26856 if (!SWIG_IsOK(ecode4)) {
26857 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26858 }
26859 arg4 = static_cast< wxDouble >(val4);
26860 ecode5 = SWIG_AsVal_double(obj4, &val5);
26861 if (!SWIG_IsOK(ecode5)) {
26862 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26863 }
26864 arg5 = static_cast< wxDouble >(val5);
26865 ecode6 = SWIG_AsVal_double(obj5, &val6);
26866 if (!SWIG_IsOK(ecode6)) {
26867 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26868 }
26869 arg6 = static_cast< wxDouble >(val6);
26870 {
26871 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
26872 if (PyErr_Occurred()) SWIG_fail;
26873 }
26874 resultobj = SWIG_Py_Void();
26875 return resultobj;
26876 fail:
26877 return NULL;
26878 }
26879
26880
26881 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26882 PyObject *resultobj = 0;
26883 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26884 wxDouble arg2 ;
26885 wxDouble arg3 ;
26886 wxDouble arg4 ;
26887 wxDouble arg5 ;
26888 void *argp1 = 0 ;
26889 int res1 = 0 ;
26890 double val2 ;
26891 int ecode2 = 0 ;
26892 double val3 ;
26893 int ecode3 = 0 ;
26894 double val4 ;
26895 int ecode4 = 0 ;
26896 double val5 ;
26897 int ecode5 = 0 ;
26898 PyObject * obj0 = 0 ;
26899 PyObject * obj1 = 0 ;
26900 PyObject * obj2 = 0 ;
26901 PyObject * obj3 = 0 ;
26902 PyObject * obj4 = 0 ;
26903 char * kwnames[] = {
26904 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26905 };
26906
26907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26909 if (!SWIG_IsOK(res1)) {
26910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26911 }
26912 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26913 ecode2 = SWIG_AsVal_double(obj1, &val2);
26914 if (!SWIG_IsOK(ecode2)) {
26915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26916 }
26917 arg2 = static_cast< wxDouble >(val2);
26918 ecode3 = SWIG_AsVal_double(obj2, &val3);
26919 if (!SWIG_IsOK(ecode3)) {
26920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26921 }
26922 arg3 = static_cast< wxDouble >(val3);
26923 ecode4 = SWIG_AsVal_double(obj3, &val4);
26924 if (!SWIG_IsOK(ecode4)) {
26925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26926 }
26927 arg4 = static_cast< wxDouble >(val4);
26928 ecode5 = SWIG_AsVal_double(obj4, &val5);
26929 if (!SWIG_IsOK(ecode5)) {
26930 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26931 }
26932 arg5 = static_cast< wxDouble >(val5);
26933 {
26934 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
26935 if (PyErr_Occurred()) SWIG_fail;
26936 }
26937 resultobj = SWIG_Py_Void();
26938 return resultobj;
26939 fail:
26940 return NULL;
26941 }
26942
26943
26944 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26945 PyObject *resultobj = 0;
26946 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26947 wxDouble arg2 ;
26948 wxDouble arg3 ;
26949 wxDouble arg4 ;
26950 wxDouble arg5 ;
26951 wxDouble arg6 ;
26952 void *argp1 = 0 ;
26953 int res1 = 0 ;
26954 double val2 ;
26955 int ecode2 = 0 ;
26956 double val3 ;
26957 int ecode3 = 0 ;
26958 double val4 ;
26959 int ecode4 = 0 ;
26960 double val5 ;
26961 int ecode5 = 0 ;
26962 double val6 ;
26963 int ecode6 = 0 ;
26964 PyObject * obj0 = 0 ;
26965 PyObject * obj1 = 0 ;
26966 PyObject * obj2 = 0 ;
26967 PyObject * obj3 = 0 ;
26968 PyObject * obj4 = 0 ;
26969 PyObject * obj5 = 0 ;
26970 char * kwnames[] = {
26971 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26972 };
26973
26974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26976 if (!SWIG_IsOK(res1)) {
26977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26978 }
26979 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26980 ecode2 = SWIG_AsVal_double(obj1, &val2);
26981 if (!SWIG_IsOK(ecode2)) {
26982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26983 }
26984 arg2 = static_cast< wxDouble >(val2);
26985 ecode3 = SWIG_AsVal_double(obj2, &val3);
26986 if (!SWIG_IsOK(ecode3)) {
26987 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26988 }
26989 arg3 = static_cast< wxDouble >(val3);
26990 ecode4 = SWIG_AsVal_double(obj3, &val4);
26991 if (!SWIG_IsOK(ecode4)) {
26992 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26993 }
26994 arg4 = static_cast< wxDouble >(val4);
26995 ecode5 = SWIG_AsVal_double(obj4, &val5);
26996 if (!SWIG_IsOK(ecode5)) {
26997 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26998 }
26999 arg5 = static_cast< wxDouble >(val5);
27000 ecode6 = SWIG_AsVal_double(obj5, &val6);
27001 if (!SWIG_IsOK(ecode6)) {
27002 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27003 }
27004 arg6 = static_cast< wxDouble >(val6);
27005 {
27006 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27007 if (PyErr_Occurred()) SWIG_fail;
27008 }
27009 resultobj = SWIG_Py_Void();
27010 return resultobj;
27011 fail:
27012 return NULL;
27013 }
27014
27015
27016 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27017 PyObject *resultobj = 0;
27018 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27019 void *result = 0 ;
27020 void *argp1 = 0 ;
27021 int res1 = 0 ;
27022 PyObject *swig_obj[1] ;
27023
27024 if (!args) SWIG_fail;
27025 swig_obj[0] = args;
27026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27027 if (!SWIG_IsOK(res1)) {
27028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27029 }
27030 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27031 {
27032 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
27033 if (PyErr_Occurred()) SWIG_fail;
27034 }
27035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27036 return resultobj;
27037 fail:
27038 return NULL;
27039 }
27040
27041
27042 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27043 PyObject *resultobj = 0;
27044 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27045 void *arg2 = (void *) 0 ;
27046 void *argp1 = 0 ;
27047 int res1 = 0 ;
27048 int res2 ;
27049 PyObject * obj0 = 0 ;
27050 PyObject * obj1 = 0 ;
27051 char * kwnames[] = {
27052 (char *) "self",(char *) "p", NULL
27053 };
27054
27055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27057 if (!SWIG_IsOK(res1)) {
27058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27059 }
27060 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27061 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27062 if (!SWIG_IsOK(res2)) {
27063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
27064 }
27065 {
27066 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
27067 if (PyErr_Occurred()) SWIG_fail;
27068 }
27069 resultobj = SWIG_Py_Void();
27070 return resultobj;
27071 fail:
27072 return NULL;
27073 }
27074
27075
27076 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27077 PyObject *resultobj = 0;
27078 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27079 wxGraphicsMatrix *arg2 = 0 ;
27080 void *argp1 = 0 ;
27081 int res1 = 0 ;
27082 void *argp2 = 0 ;
27083 int res2 = 0 ;
27084 PyObject * obj0 = 0 ;
27085 PyObject * obj1 = 0 ;
27086 char * kwnames[] = {
27087 (char *) "self",(char *) "matrix", NULL
27088 };
27089
27090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27092 if (!SWIG_IsOK(res1)) {
27093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27094 }
27095 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27096 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27097 if (!SWIG_IsOK(res2)) {
27098 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27099 }
27100 if (!argp2) {
27101 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27102 }
27103 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
27104 {
27105 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
27106 if (PyErr_Occurred()) SWIG_fail;
27107 }
27108 resultobj = SWIG_Py_Void();
27109 return resultobj;
27110 fail:
27111 return NULL;
27112 }
27113
27114
27115 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27116 PyObject *resultobj = 0;
27117 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27118 wxRect2DDouble result;
27119 void *argp1 = 0 ;
27120 int res1 = 0 ;
27121 PyObject *swig_obj[1] ;
27122
27123 if (!args) SWIG_fail;
27124 swig_obj[0] = args;
27125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27126 if (!SWIG_IsOK(res1)) {
27127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27128 }
27129 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27130 {
27131 result = ((wxGraphicsPath const *)arg1)->GetBox();
27132 if (PyErr_Occurred()) SWIG_fail;
27133 }
27134 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
27135 return resultobj;
27136 fail:
27137 return NULL;
27138 }
27139
27140
27141 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27142 PyObject *resultobj = 0;
27143 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27144 wxDouble arg2 ;
27145 wxDouble arg3 ;
27146 int arg4 = (int) wxODDEVEN_RULE ;
27147 bool result;
27148 void *argp1 = 0 ;
27149 int res1 = 0 ;
27150 double val2 ;
27151 int ecode2 = 0 ;
27152 double val3 ;
27153 int ecode3 = 0 ;
27154 int val4 ;
27155 int ecode4 = 0 ;
27156
27157 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27159 if (!SWIG_IsOK(res1)) {
27160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27161 }
27162 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27163 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27164 if (!SWIG_IsOK(ecode2)) {
27165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27166 }
27167 arg2 = static_cast< wxDouble >(val2);
27168 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27169 if (!SWIG_IsOK(ecode3)) {
27170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27171 }
27172 arg3 = static_cast< wxDouble >(val3);
27173 if (swig_obj[3]) {
27174 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27175 if (!SWIG_IsOK(ecode4)) {
27176 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27177 }
27178 arg4 = static_cast< int >(val4);
27179 }
27180 {
27181 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
27182 if (PyErr_Occurred()) SWIG_fail;
27183 }
27184 {
27185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27186 }
27187 return resultobj;
27188 fail:
27189 return NULL;
27190 }
27191
27192
27193 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27194 PyObject *resultobj = 0;
27195 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27196 wxPoint2DDouble *arg2 = 0 ;
27197 int arg3 = (int) wxODDEVEN_RULE ;
27198 bool result;
27199 void *argp1 = 0 ;
27200 int res1 = 0 ;
27201 void *argp2 = 0 ;
27202 int res2 = 0 ;
27203 int val3 ;
27204 int ecode3 = 0 ;
27205
27206 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27208 if (!SWIG_IsOK(res1)) {
27209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27210 }
27211 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27212 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27213 if (!SWIG_IsOK(res2)) {
27214 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27215 }
27216 if (!argp2) {
27217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27218 }
27219 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27220 if (swig_obj[2]) {
27221 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27222 if (!SWIG_IsOK(ecode3)) {
27223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27224 }
27225 arg3 = static_cast< int >(val3);
27226 }
27227 {
27228 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
27229 if (PyErr_Occurred()) SWIG_fail;
27230 }
27231 {
27232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27233 }
27234 return resultobj;
27235 fail:
27236 return NULL;
27237 }
27238
27239
27240 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27241 int argc;
27242 PyObject *argv[5];
27243
27244 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27245 --argc;
27246 if ((argc >= 2) && (argc <= 3)) {
27247 int _v = 0;
27248 {
27249 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27250 _v = SWIG_CheckState(res);
27251 }
27252 if (!_v) goto check_1;
27253 if (argc > 2) {
27254 {
27255 {
27256 int res = SWIG_AsVal_int(argv[2], NULL);
27257 _v = SWIG_CheckState(res);
27258 }
27259 }
27260 if (!_v) goto check_1;
27261 }
27262 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
27263 }
27264 check_1:
27265
27266 if ((argc >= 3) && (argc <= 4)) {
27267 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
27268 }
27269
27270 fail:
27271 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
27272 return NULL;
27273 }
27274
27275
27276 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27277 PyObject *obj;
27278 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27279 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
27280 return SWIG_Py_Void();
27281 }
27282
27283 SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27284 return SWIG_Python_InitShadowInstance(args);
27285 }
27286
27287 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27288 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27289 return 1;
27290 }
27291
27292
27293 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27294 PyObject *pyobj = 0;
27295
27296 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27297 return pyobj;
27298 }
27299
27300
27301 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27302 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27303 return 1;
27304 }
27305
27306
27307 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27308 PyObject *pyobj = 0;
27309
27310 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27311 return pyobj;
27312 }
27313
27314
27315 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27316 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27317 return 1;
27318 }
27319
27320
27321 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27322 PyObject *pyobj = 0;
27323
27324 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27325 return pyobj;
27326 }
27327
27328
27329 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27330 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27331 return 1;
27332 }
27333
27334
27335 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27336 PyObject *pyobj = 0;
27337
27338 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27339 return pyobj;
27340 }
27341
27342
27343 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27344 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27345 return 1;
27346 }
27347
27348
27349 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27350 PyObject *pyobj = 0;
27351
27352 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27353 return pyobj;
27354 }
27355
27356
27357 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27358 PyObject *resultobj = 0;
27359 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27360 void *argp1 = 0 ;
27361 int res1 = 0 ;
27362 PyObject *swig_obj[1] ;
27363
27364 if (!args) SWIG_fail;
27365 swig_obj[0] = args;
27366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27367 if (!SWIG_IsOK(res1)) {
27368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27369 }
27370 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27371 {
27372 delete arg1;
27373
27374 if (PyErr_Occurred()) SWIG_fail;
27375 }
27376 resultobj = SWIG_Py_Void();
27377 return resultobj;
27378 fail:
27379 return NULL;
27380 }
27381
27382
27383 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27384 PyObject *resultobj = 0;
27385 wxWindowDC *arg1 = 0 ;
27386 wxGraphicsContext *result = 0 ;
27387 void *argp1 = 0 ;
27388 int res1 = 0 ;
27389
27390 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27392 if (!SWIG_IsOK(res1)) {
27393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27394 }
27395 if (!argp1) {
27396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27397 }
27398 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27399 {
27400 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27401 if (PyErr_Occurred()) SWIG_fail;
27402 }
27403 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27404 return resultobj;
27405 fail:
27406 return NULL;
27407 }
27408
27409
27410 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27411 PyObject *resultobj = 0;
27412 wxWindow *arg1 = (wxWindow *) 0 ;
27413 wxGraphicsContext *result = 0 ;
27414 void *argp1 = 0 ;
27415 int res1 = 0 ;
27416
27417 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27419 if (!SWIG_IsOK(res1)) {
27420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27421 }
27422 arg1 = reinterpret_cast< wxWindow * >(argp1);
27423 {
27424 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27425 if (PyErr_Occurred()) SWIG_fail;
27426 }
27427 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27428 return resultobj;
27429 fail:
27430 return NULL;
27431 }
27432
27433
27434 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27435 int argc;
27436 PyObject *argv[2];
27437
27438 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27439 --argc;
27440 if (argc == 1) {
27441 int _v = 0;
27442 {
27443 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27444 _v = SWIG_CheckState(res);
27445 }
27446 if (!_v) goto check_1;
27447 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27448 }
27449 check_1:
27450
27451 if (argc == 1) {
27452 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27453 }
27454
27455 fail:
27456 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27457 return NULL;
27458 }
27459
27460
27461 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27462 PyObject *resultobj = 0;
27463 wxGraphicsContext *result = 0 ;
27464
27465 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
27466 {
27467 result = (wxGraphicsContext *)wxGraphicsContext::Create();
27468 if (PyErr_Occurred()) SWIG_fail;
27469 }
27470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27471 return resultobj;
27472 fail:
27473 return NULL;
27474 }
27475
27476
27477 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27478 PyObject *resultobj = 0;
27479 void *arg1 = (void *) 0 ;
27480 wxGraphicsContext *result = 0 ;
27481 int res1 ;
27482 PyObject * obj0 = 0 ;
27483 char * kwnames[] = {
27484 (char *) "context", NULL
27485 };
27486
27487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27488 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27489 if (!SWIG_IsOK(res1)) {
27490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27491 }
27492 {
27493 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27494 if (PyErr_Occurred()) SWIG_fail;
27495 }
27496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27497 return resultobj;
27498 fail:
27499 return NULL;
27500 }
27501
27502
27503 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27504 PyObject *resultobj = 0;
27505 void *arg1 = (void *) 0 ;
27506 wxGraphicsContext *result = 0 ;
27507 int res1 ;
27508 PyObject * obj0 = 0 ;
27509 char * kwnames[] = {
27510 (char *) "window", NULL
27511 };
27512
27513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27514 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27515 if (!SWIG_IsOK(res1)) {
27516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27517 }
27518 {
27519 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27520 if (PyErr_Occurred()) SWIG_fail;
27521 }
27522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27523 return resultobj;
27524 fail:
27525 return NULL;
27526 }
27527
27528
27529 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27530 PyObject *resultobj = 0;
27531 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27532 wxGraphicsPath result;
27533 void *argp1 = 0 ;
27534 int res1 = 0 ;
27535 PyObject *swig_obj[1] ;
27536
27537 if (!args) SWIG_fail;
27538 swig_obj[0] = args;
27539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27540 if (!SWIG_IsOK(res1)) {
27541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27542 }
27543 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27544 {
27545 result = (arg1)->CreatePath();
27546 if (PyErr_Occurred()) SWIG_fail;
27547 }
27548 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
27549 return resultobj;
27550 fail:
27551 return NULL;
27552 }
27553
27554
27555 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27556 PyObject *resultobj = 0;
27557 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27558 wxPen *arg2 = 0 ;
27559 wxGraphicsPen result;
27560 void *argp1 = 0 ;
27561 int res1 = 0 ;
27562 void *argp2 = 0 ;
27563 int res2 = 0 ;
27564 PyObject * obj0 = 0 ;
27565 PyObject * obj1 = 0 ;
27566 char * kwnames[] = {
27567 (char *) "self",(char *) "pen", NULL
27568 };
27569
27570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27572 if (!SWIG_IsOK(res1)) {
27573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27574 }
27575 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27576 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27577 if (!SWIG_IsOK(res2)) {
27578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27579 }
27580 if (!argp2) {
27581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27582 }
27583 arg2 = reinterpret_cast< wxPen * >(argp2);
27584 {
27585 result = (arg1)->CreatePen((wxPen const &)*arg2);
27586 if (PyErr_Occurred()) SWIG_fail;
27587 }
27588 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
27589 return resultobj;
27590 fail:
27591 return NULL;
27592 }
27593
27594
27595 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27596 PyObject *resultobj = 0;
27597 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27598 wxBrush *arg2 = 0 ;
27599 wxGraphicsBrush result;
27600 void *argp1 = 0 ;
27601 int res1 = 0 ;
27602 void *argp2 = 0 ;
27603 int res2 = 0 ;
27604 PyObject * obj0 = 0 ;
27605 PyObject * obj1 = 0 ;
27606 char * kwnames[] = {
27607 (char *) "self",(char *) "brush", NULL
27608 };
27609
27610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27612 if (!SWIG_IsOK(res1)) {
27613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27614 }
27615 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27616 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27617 if (!SWIG_IsOK(res2)) {
27618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27619 }
27620 if (!argp2) {
27621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27622 }
27623 arg2 = reinterpret_cast< wxBrush * >(argp2);
27624 {
27625 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
27626 if (PyErr_Occurred()) SWIG_fail;
27627 }
27628 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27629 return resultobj;
27630 fail:
27631 return NULL;
27632 }
27633
27634
27635 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27636 PyObject *resultobj = 0;
27637 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27638 wxDouble arg2 ;
27639 wxDouble arg3 ;
27640 wxDouble arg4 ;
27641 wxDouble arg5 ;
27642 wxColour *arg6 = 0 ;
27643 wxColour *arg7 = 0 ;
27644 wxGraphicsBrush result;
27645 void *argp1 = 0 ;
27646 int res1 = 0 ;
27647 double val2 ;
27648 int ecode2 = 0 ;
27649 double val3 ;
27650 int ecode3 = 0 ;
27651 double val4 ;
27652 int ecode4 = 0 ;
27653 double val5 ;
27654 int ecode5 = 0 ;
27655 wxColour temp6 ;
27656 wxColour temp7 ;
27657 PyObject * obj0 = 0 ;
27658 PyObject * obj1 = 0 ;
27659 PyObject * obj2 = 0 ;
27660 PyObject * obj3 = 0 ;
27661 PyObject * obj4 = 0 ;
27662 PyObject * obj5 = 0 ;
27663 PyObject * obj6 = 0 ;
27664 char * kwnames[] = {
27665 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
27666 };
27667
27668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27670 if (!SWIG_IsOK(res1)) {
27671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27672 }
27673 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27674 ecode2 = SWIG_AsVal_double(obj1, &val2);
27675 if (!SWIG_IsOK(ecode2)) {
27676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
27677 }
27678 arg2 = static_cast< wxDouble >(val2);
27679 ecode3 = SWIG_AsVal_double(obj2, &val3);
27680 if (!SWIG_IsOK(ecode3)) {
27681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
27682 }
27683 arg3 = static_cast< wxDouble >(val3);
27684 ecode4 = SWIG_AsVal_double(obj3, &val4);
27685 if (!SWIG_IsOK(ecode4)) {
27686 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
27687 }
27688 arg4 = static_cast< wxDouble >(val4);
27689 ecode5 = SWIG_AsVal_double(obj4, &val5);
27690 if (!SWIG_IsOK(ecode5)) {
27691 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
27692 }
27693 arg5 = static_cast< wxDouble >(val5);
27694 {
27695 arg6 = &temp6;
27696 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
27697 }
27698 {
27699 arg7 = &temp7;
27700 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27701 }
27702 {
27703 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
27704 if (PyErr_Occurred()) SWIG_fail;
27705 }
27706 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27707 return resultobj;
27708 fail:
27709 return NULL;
27710 }
27711
27712
27713 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27714 PyObject *resultobj = 0;
27715 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27716 wxDouble arg2 ;
27717 wxDouble arg3 ;
27718 wxDouble arg4 ;
27719 wxDouble arg5 ;
27720 wxDouble arg6 ;
27721 wxColour *arg7 = 0 ;
27722 wxColour *arg8 = 0 ;
27723 wxGraphicsBrush result;
27724 void *argp1 = 0 ;
27725 int res1 = 0 ;
27726 double val2 ;
27727 int ecode2 = 0 ;
27728 double val3 ;
27729 int ecode3 = 0 ;
27730 double val4 ;
27731 int ecode4 = 0 ;
27732 double val5 ;
27733 int ecode5 = 0 ;
27734 double val6 ;
27735 int ecode6 = 0 ;
27736 wxColour temp7 ;
27737 wxColour temp8 ;
27738 PyObject * obj0 = 0 ;
27739 PyObject * obj1 = 0 ;
27740 PyObject * obj2 = 0 ;
27741 PyObject * obj3 = 0 ;
27742 PyObject * obj4 = 0 ;
27743 PyObject * obj5 = 0 ;
27744 PyObject * obj6 = 0 ;
27745 PyObject * obj7 = 0 ;
27746 char * kwnames[] = {
27747 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
27748 };
27749
27750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27752 if (!SWIG_IsOK(res1)) {
27753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27754 }
27755 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27756 ecode2 = SWIG_AsVal_double(obj1, &val2);
27757 if (!SWIG_IsOK(ecode2)) {
27758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
27759 }
27760 arg2 = static_cast< wxDouble >(val2);
27761 ecode3 = SWIG_AsVal_double(obj2, &val3);
27762 if (!SWIG_IsOK(ecode3)) {
27763 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
27764 }
27765 arg3 = static_cast< wxDouble >(val3);
27766 ecode4 = SWIG_AsVal_double(obj3, &val4);
27767 if (!SWIG_IsOK(ecode4)) {
27768 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
27769 }
27770 arg4 = static_cast< wxDouble >(val4);
27771 ecode5 = SWIG_AsVal_double(obj4, &val5);
27772 if (!SWIG_IsOK(ecode5)) {
27773 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
27774 }
27775 arg5 = static_cast< wxDouble >(val5);
27776 ecode6 = SWIG_AsVal_double(obj5, &val6);
27777 if (!SWIG_IsOK(ecode6)) {
27778 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
27779 }
27780 arg6 = static_cast< wxDouble >(val6);
27781 {
27782 arg7 = &temp7;
27783 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27784 }
27785 {
27786 arg8 = &temp8;
27787 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27788 }
27789 {
27790 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
27791 if (PyErr_Occurred()) SWIG_fail;
27792 }
27793 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27794 return resultobj;
27795 fail:
27796 return NULL;
27797 }
27798
27799
27800 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27801 PyObject *resultobj = 0;
27802 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27803 wxFont *arg2 = 0 ;
27804 wxColour const &arg3_defvalue = *wxBLACK ;
27805 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
27806 wxGraphicsFont result;
27807 void *argp1 = 0 ;
27808 int res1 = 0 ;
27809 void *argp2 = 0 ;
27810 int res2 = 0 ;
27811 wxColour temp3 ;
27812 PyObject * obj0 = 0 ;
27813 PyObject * obj1 = 0 ;
27814 PyObject * obj2 = 0 ;
27815 char * kwnames[] = {
27816 (char *) "self",(char *) "font",(char *) "col", NULL
27817 };
27818
27819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27821 if (!SWIG_IsOK(res1)) {
27822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27823 }
27824 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27825 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27826 if (!SWIG_IsOK(res2)) {
27827 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27828 }
27829 if (!argp2) {
27830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27831 }
27832 arg2 = reinterpret_cast< wxFont * >(argp2);
27833 if (obj2) {
27834 {
27835 arg3 = &temp3;
27836 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27837 }
27838 }
27839 {
27840 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
27841 if (PyErr_Occurred()) SWIG_fail;
27842 }
27843 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
27844 return resultobj;
27845 fail:
27846 return NULL;
27847 }
27848
27849
27850 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27851 PyObject *resultobj = 0;
27852 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27853 wxDouble arg2 = (wxDouble) 1.0 ;
27854 wxDouble arg3 = (wxDouble) 0.0 ;
27855 wxDouble arg4 = (wxDouble) 0.0 ;
27856 wxDouble arg5 = (wxDouble) 1.0 ;
27857 wxDouble arg6 = (wxDouble) 0.0 ;
27858 wxDouble arg7 = (wxDouble) 0.0 ;
27859 wxGraphicsMatrix result;
27860 void *argp1 = 0 ;
27861 int res1 = 0 ;
27862 double val2 ;
27863 int ecode2 = 0 ;
27864 double val3 ;
27865 int ecode3 = 0 ;
27866 double val4 ;
27867 int ecode4 = 0 ;
27868 double val5 ;
27869 int ecode5 = 0 ;
27870 double val6 ;
27871 int ecode6 = 0 ;
27872 double val7 ;
27873 int ecode7 = 0 ;
27874 PyObject * obj0 = 0 ;
27875 PyObject * obj1 = 0 ;
27876 PyObject * obj2 = 0 ;
27877 PyObject * obj3 = 0 ;
27878 PyObject * obj4 = 0 ;
27879 PyObject * obj5 = 0 ;
27880 PyObject * obj6 = 0 ;
27881 char * kwnames[] = {
27882 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
27883 };
27884
27885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27887 if (!SWIG_IsOK(res1)) {
27888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27889 }
27890 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27891 if (obj1) {
27892 ecode2 = SWIG_AsVal_double(obj1, &val2);
27893 if (!SWIG_IsOK(ecode2)) {
27894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
27895 }
27896 arg2 = static_cast< wxDouble >(val2);
27897 }
27898 if (obj2) {
27899 ecode3 = SWIG_AsVal_double(obj2, &val3);
27900 if (!SWIG_IsOK(ecode3)) {
27901 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
27902 }
27903 arg3 = static_cast< wxDouble >(val3);
27904 }
27905 if (obj3) {
27906 ecode4 = SWIG_AsVal_double(obj3, &val4);
27907 if (!SWIG_IsOK(ecode4)) {
27908 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
27909 }
27910 arg4 = static_cast< wxDouble >(val4);
27911 }
27912 if (obj4) {
27913 ecode5 = SWIG_AsVal_double(obj4, &val5);
27914 if (!SWIG_IsOK(ecode5)) {
27915 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
27916 }
27917 arg5 = static_cast< wxDouble >(val5);
27918 }
27919 if (obj5) {
27920 ecode6 = SWIG_AsVal_double(obj5, &val6);
27921 if (!SWIG_IsOK(ecode6)) {
27922 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
27923 }
27924 arg6 = static_cast< wxDouble >(val6);
27925 }
27926 if (obj6) {
27927 ecode7 = SWIG_AsVal_double(obj6, &val7);
27928 if (!SWIG_IsOK(ecode7)) {
27929 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
27930 }
27931 arg7 = static_cast< wxDouble >(val7);
27932 }
27933 {
27934 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
27935 if (PyErr_Occurred()) SWIG_fail;
27936 }
27937 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
27938 return resultobj;
27939 fail:
27940 return NULL;
27941 }
27942
27943
27944 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27945 PyObject *resultobj = 0;
27946 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27947 void *argp1 = 0 ;
27948 int res1 = 0 ;
27949 PyObject *swig_obj[1] ;
27950
27951 if (!args) SWIG_fail;
27952 swig_obj[0] = args;
27953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27954 if (!SWIG_IsOK(res1)) {
27955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27956 }
27957 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27958 {
27959 (arg1)->PushState();
27960 if (PyErr_Occurred()) SWIG_fail;
27961 }
27962 resultobj = SWIG_Py_Void();
27963 return resultobj;
27964 fail:
27965 return NULL;
27966 }
27967
27968
27969 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27970 PyObject *resultobj = 0;
27971 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27972 void *argp1 = 0 ;
27973 int res1 = 0 ;
27974 PyObject *swig_obj[1] ;
27975
27976 if (!args) SWIG_fail;
27977 swig_obj[0] = args;
27978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27979 if (!SWIG_IsOK(res1)) {
27980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27981 }
27982 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27983 {
27984 (arg1)->PopState();
27985 if (PyErr_Occurred()) SWIG_fail;
27986 }
27987 resultobj = SWIG_Py_Void();
27988 return resultobj;
27989 fail:
27990 return NULL;
27991 }
27992
27993
27994 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27995 PyObject *resultobj = 0;
27996 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27997 wxRegion *arg2 = 0 ;
27998 void *argp1 = 0 ;
27999 int res1 = 0 ;
28000 void *argp2 = 0 ;
28001 int res2 = 0 ;
28002 PyObject * obj0 = 0 ;
28003 PyObject * obj1 = 0 ;
28004 char * kwnames[] = {
28005 (char *) "self",(char *) "region", NULL
28006 };
28007
28008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
28009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28010 if (!SWIG_IsOK(res1)) {
28011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28012 }
28013 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28014 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28015 if (!SWIG_IsOK(res2)) {
28016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28017 }
28018 if (!argp2) {
28019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28020 }
28021 arg2 = reinterpret_cast< wxRegion * >(argp2);
28022 {
28023 (arg1)->Clip((wxRegion const &)*arg2);
28024 if (PyErr_Occurred()) SWIG_fail;
28025 }
28026 resultobj = SWIG_Py_Void();
28027 return resultobj;
28028 fail:
28029 return NULL;
28030 }
28031
28032
28033 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28034 PyObject *resultobj = 0;
28035 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28036 wxDouble arg2 ;
28037 wxDouble arg3 ;
28038 wxDouble arg4 ;
28039 wxDouble arg5 ;
28040 void *argp1 = 0 ;
28041 int res1 = 0 ;
28042 double val2 ;
28043 int ecode2 = 0 ;
28044 double val3 ;
28045 int ecode3 = 0 ;
28046 double val4 ;
28047 int ecode4 = 0 ;
28048 double val5 ;
28049 int ecode5 = 0 ;
28050 PyObject * obj0 = 0 ;
28051 PyObject * obj1 = 0 ;
28052 PyObject * obj2 = 0 ;
28053 PyObject * obj3 = 0 ;
28054 PyObject * obj4 = 0 ;
28055 char * kwnames[] = {
28056 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28057 };
28058
28059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28061 if (!SWIG_IsOK(res1)) {
28062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28063 }
28064 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28065 ecode2 = SWIG_AsVal_double(obj1, &val2);
28066 if (!SWIG_IsOK(ecode2)) {
28067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28068 }
28069 arg2 = static_cast< wxDouble >(val2);
28070 ecode3 = SWIG_AsVal_double(obj2, &val3);
28071 if (!SWIG_IsOK(ecode3)) {
28072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28073 }
28074 arg3 = static_cast< wxDouble >(val3);
28075 ecode4 = SWIG_AsVal_double(obj3, &val4);
28076 if (!SWIG_IsOK(ecode4)) {
28077 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28078 }
28079 arg4 = static_cast< wxDouble >(val4);
28080 ecode5 = SWIG_AsVal_double(obj4, &val5);
28081 if (!SWIG_IsOK(ecode5)) {
28082 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28083 }
28084 arg5 = static_cast< wxDouble >(val5);
28085 {
28086 (arg1)->Clip(arg2,arg3,arg4,arg5);
28087 if (PyErr_Occurred()) SWIG_fail;
28088 }
28089 resultobj = SWIG_Py_Void();
28090 return resultobj;
28091 fail:
28092 return NULL;
28093 }
28094
28095
28096 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28097 PyObject *resultobj = 0;
28098 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28099 void *argp1 = 0 ;
28100 int res1 = 0 ;
28101 PyObject *swig_obj[1] ;
28102
28103 if (!args) SWIG_fail;
28104 swig_obj[0] = args;
28105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28106 if (!SWIG_IsOK(res1)) {
28107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28108 }
28109 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28110 {
28111 (arg1)->ResetClip();
28112 if (PyErr_Occurred()) SWIG_fail;
28113 }
28114 resultobj = SWIG_Py_Void();
28115 return resultobj;
28116 fail:
28117 return NULL;
28118 }
28119
28120
28121 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28122 PyObject *resultobj = 0;
28123 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28124 void *result = 0 ;
28125 void *argp1 = 0 ;
28126 int res1 = 0 ;
28127 PyObject *swig_obj[1] ;
28128
28129 if (!args) SWIG_fail;
28130 swig_obj[0] = args;
28131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28132 if (!SWIG_IsOK(res1)) {
28133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28134 }
28135 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28136 {
28137 result = (void *)(arg1)->GetNativeContext();
28138 if (PyErr_Occurred()) SWIG_fail;
28139 }
28140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28141 return resultobj;
28142 fail:
28143 return NULL;
28144 }
28145
28146
28147 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28148 PyObject *resultobj = 0;
28149 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28150 wxDouble arg2 ;
28151 wxDouble arg3 ;
28152 void *argp1 = 0 ;
28153 int res1 = 0 ;
28154 double val2 ;
28155 int ecode2 = 0 ;
28156 double val3 ;
28157 int ecode3 = 0 ;
28158 PyObject * obj0 = 0 ;
28159 PyObject * obj1 = 0 ;
28160 PyObject * obj2 = 0 ;
28161 char * kwnames[] = {
28162 (char *) "self",(char *) "dx",(char *) "dy", NULL
28163 };
28164
28165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28167 if (!SWIG_IsOK(res1)) {
28168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28169 }
28170 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28171 ecode2 = SWIG_AsVal_double(obj1, &val2);
28172 if (!SWIG_IsOK(ecode2)) {
28173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28174 }
28175 arg2 = static_cast< wxDouble >(val2);
28176 ecode3 = SWIG_AsVal_double(obj2, &val3);
28177 if (!SWIG_IsOK(ecode3)) {
28178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28179 }
28180 arg3 = static_cast< wxDouble >(val3);
28181 {
28182 (arg1)->Translate(arg2,arg3);
28183 if (PyErr_Occurred()) SWIG_fail;
28184 }
28185 resultobj = SWIG_Py_Void();
28186 return resultobj;
28187 fail:
28188 return NULL;
28189 }
28190
28191
28192 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28193 PyObject *resultobj = 0;
28194 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28195 wxDouble arg2 ;
28196 wxDouble arg3 ;
28197 void *argp1 = 0 ;
28198 int res1 = 0 ;
28199 double val2 ;
28200 int ecode2 = 0 ;
28201 double val3 ;
28202 int ecode3 = 0 ;
28203 PyObject * obj0 = 0 ;
28204 PyObject * obj1 = 0 ;
28205 PyObject * obj2 = 0 ;
28206 char * kwnames[] = {
28207 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28208 };
28209
28210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28212 if (!SWIG_IsOK(res1)) {
28213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28214 }
28215 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28216 ecode2 = SWIG_AsVal_double(obj1, &val2);
28217 if (!SWIG_IsOK(ecode2)) {
28218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28219 }
28220 arg2 = static_cast< wxDouble >(val2);
28221 ecode3 = SWIG_AsVal_double(obj2, &val3);
28222 if (!SWIG_IsOK(ecode3)) {
28223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28224 }
28225 arg3 = static_cast< wxDouble >(val3);
28226 {
28227 (arg1)->Scale(arg2,arg3);
28228 if (PyErr_Occurred()) SWIG_fail;
28229 }
28230 resultobj = SWIG_Py_Void();
28231 return resultobj;
28232 fail:
28233 return NULL;
28234 }
28235
28236
28237 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28238 PyObject *resultobj = 0;
28239 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28240 wxDouble arg2 ;
28241 void *argp1 = 0 ;
28242 int res1 = 0 ;
28243 double val2 ;
28244 int ecode2 = 0 ;
28245 PyObject * obj0 = 0 ;
28246 PyObject * obj1 = 0 ;
28247 char * kwnames[] = {
28248 (char *) "self",(char *) "angle", NULL
28249 };
28250
28251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28253 if (!SWIG_IsOK(res1)) {
28254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28255 }
28256 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28257 ecode2 = SWIG_AsVal_double(obj1, &val2);
28258 if (!SWIG_IsOK(ecode2)) {
28259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28260 }
28261 arg2 = static_cast< wxDouble >(val2);
28262 {
28263 (arg1)->Rotate(arg2);
28264 if (PyErr_Occurred()) SWIG_fail;
28265 }
28266 resultobj = SWIG_Py_Void();
28267 return resultobj;
28268 fail:
28269 return NULL;
28270 }
28271
28272
28273 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28274 PyObject *resultobj = 0;
28275 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28276 wxGraphicsMatrix *arg2 = 0 ;
28277 void *argp1 = 0 ;
28278 int res1 = 0 ;
28279 void *argp2 = 0 ;
28280 int res2 = 0 ;
28281 PyObject * obj0 = 0 ;
28282 PyObject * obj1 = 0 ;
28283 char * kwnames[] = {
28284 (char *) "self",(char *) "matrix", NULL
28285 };
28286
28287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28289 if (!SWIG_IsOK(res1)) {
28290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28291 }
28292 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28293 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28294 if (!SWIG_IsOK(res2)) {
28295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28296 }
28297 if (!argp2) {
28298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28299 }
28300 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28301 {
28302 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28303 if (PyErr_Occurred()) SWIG_fail;
28304 }
28305 resultobj = SWIG_Py_Void();
28306 return resultobj;
28307 fail:
28308 return NULL;
28309 }
28310
28311
28312 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28313 PyObject *resultobj = 0;
28314 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28315 wxGraphicsMatrix *arg2 = 0 ;
28316 void *argp1 = 0 ;
28317 int res1 = 0 ;
28318 void *argp2 = 0 ;
28319 int res2 = 0 ;
28320 PyObject * obj0 = 0 ;
28321 PyObject * obj1 = 0 ;
28322 char * kwnames[] = {
28323 (char *) "self",(char *) "matrix", NULL
28324 };
28325
28326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28328 if (!SWIG_IsOK(res1)) {
28329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28330 }
28331 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28332 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28333 if (!SWIG_IsOK(res2)) {
28334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28335 }
28336 if (!argp2) {
28337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28338 }
28339 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28340 {
28341 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28342 if (PyErr_Occurred()) SWIG_fail;
28343 }
28344 resultobj = SWIG_Py_Void();
28345 return resultobj;
28346 fail:
28347 return NULL;
28348 }
28349
28350
28351 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28352 PyObject *resultobj = 0;
28353 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28354 wxGraphicsMatrix result;
28355 void *argp1 = 0 ;
28356 int res1 = 0 ;
28357 PyObject *swig_obj[1] ;
28358
28359 if (!args) SWIG_fail;
28360 swig_obj[0] = args;
28361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28362 if (!SWIG_IsOK(res1)) {
28363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28364 }
28365 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28366 {
28367 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28368 if (PyErr_Occurred()) SWIG_fail;
28369 }
28370 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28371 return resultobj;
28372 fail:
28373 return NULL;
28374 }
28375
28376
28377 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28378 PyObject *resultobj = 0;
28379 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28380 wxGraphicsPen *arg2 = 0 ;
28381 void *argp1 = 0 ;
28382 int res1 = 0 ;
28383 void *argp2 = 0 ;
28384 int res2 = 0 ;
28385
28386 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28388 if (!SWIG_IsOK(res1)) {
28389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28390 }
28391 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28392 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28393 if (!SWIG_IsOK(res2)) {
28394 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28395 }
28396 if (!argp2) {
28397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28398 }
28399 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28400 {
28401 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28402 if (PyErr_Occurred()) SWIG_fail;
28403 }
28404 resultobj = SWIG_Py_Void();
28405 return resultobj;
28406 fail:
28407 return NULL;
28408 }
28409
28410
28411 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28412 PyObject *resultobj = 0;
28413 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28414 wxPen *arg2 = 0 ;
28415 void *argp1 = 0 ;
28416 int res1 = 0 ;
28417 void *argp2 = 0 ;
28418 int res2 = 0 ;
28419
28420 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28422 if (!SWIG_IsOK(res1)) {
28423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28424 }
28425 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28426 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28427 if (!SWIG_IsOK(res2)) {
28428 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28429 }
28430 if (!argp2) {
28431 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28432 }
28433 arg2 = reinterpret_cast< wxPen * >(argp2);
28434 {
28435 (arg1)->SetPen((wxPen const &)*arg2);
28436 if (PyErr_Occurred()) SWIG_fail;
28437 }
28438 resultobj = SWIG_Py_Void();
28439 return resultobj;
28440 fail:
28441 return NULL;
28442 }
28443
28444
28445 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28446 int argc;
28447 PyObject *argv[3];
28448
28449 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28450 --argc;
28451 if (argc == 2) {
28452 int _v = 0;
28453 {
28454 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28455 _v = SWIG_CheckState(res);
28456 }
28457 if (!_v) goto check_1;
28458 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28459 }
28460 check_1:
28461
28462 if (argc == 2) {
28463 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28464 }
28465
28466 fail:
28467 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28468 return NULL;
28469 }
28470
28471
28472 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28473 PyObject *resultobj = 0;
28474 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28475 wxGraphicsBrush *arg2 = 0 ;
28476 void *argp1 = 0 ;
28477 int res1 = 0 ;
28478 void *argp2 = 0 ;
28479 int res2 = 0 ;
28480
28481 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28483 if (!SWIG_IsOK(res1)) {
28484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28485 }
28486 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28487 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28488 if (!SWIG_IsOK(res2)) {
28489 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28490 }
28491 if (!argp2) {
28492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28493 }
28494 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28495 {
28496 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28497 if (PyErr_Occurred()) SWIG_fail;
28498 }
28499 resultobj = SWIG_Py_Void();
28500 return resultobj;
28501 fail:
28502 return NULL;
28503 }
28504
28505
28506 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28507 PyObject *resultobj = 0;
28508 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28509 wxBrush *arg2 = 0 ;
28510 void *argp1 = 0 ;
28511 int res1 = 0 ;
28512 void *argp2 = 0 ;
28513 int res2 = 0 ;
28514
28515 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28517 if (!SWIG_IsOK(res1)) {
28518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28519 }
28520 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28521 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28522 if (!SWIG_IsOK(res2)) {
28523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28524 }
28525 if (!argp2) {
28526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28527 }
28528 arg2 = reinterpret_cast< wxBrush * >(argp2);
28529 {
28530 (arg1)->SetBrush((wxBrush const &)*arg2);
28531 if (PyErr_Occurred()) SWIG_fail;
28532 }
28533 resultobj = SWIG_Py_Void();
28534 return resultobj;
28535 fail:
28536 return NULL;
28537 }
28538
28539
28540 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28541 int argc;
28542 PyObject *argv[3];
28543
28544 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28545 --argc;
28546 if (argc == 2) {
28547 int _v = 0;
28548 {
28549 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28550 _v = SWIG_CheckState(res);
28551 }
28552 if (!_v) goto check_1;
28553 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
28554 }
28555 check_1:
28556
28557 if (argc == 2) {
28558 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
28559 }
28560
28561 fail:
28562 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
28563 return NULL;
28564 }
28565
28566
28567 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28568 PyObject *resultobj = 0;
28569 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28570 wxGraphicsFont *arg2 = 0 ;
28571 void *argp1 = 0 ;
28572 int res1 = 0 ;
28573 void *argp2 = 0 ;
28574 int res2 = 0 ;
28575
28576 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28578 if (!SWIG_IsOK(res1)) {
28579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28580 }
28581 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28582 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28583 if (!SWIG_IsOK(res2)) {
28584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
28585 }
28586 if (!argp2) {
28587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
28588 }
28589 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
28590 {
28591 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
28592 if (PyErr_Occurred()) SWIG_fail;
28593 }
28594 resultobj = SWIG_Py_Void();
28595 return resultobj;
28596 fail:
28597 return NULL;
28598 }
28599
28600
28601 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28602 PyObject *resultobj = 0;
28603 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28604 wxFont *arg2 = 0 ;
28605 wxColour const &arg3_defvalue = *wxBLACK ;
28606 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28607 void *argp1 = 0 ;
28608 int res1 = 0 ;
28609 void *argp2 = 0 ;
28610 int res2 = 0 ;
28611 wxColour temp3 ;
28612
28613 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28615 if (!SWIG_IsOK(res1)) {
28616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28617 }
28618 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28619 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28620 if (!SWIG_IsOK(res2)) {
28621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28622 }
28623 if (!argp2) {
28624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28625 }
28626 arg2 = reinterpret_cast< wxFont * >(argp2);
28627 if (swig_obj[2]) {
28628 {
28629 arg3 = &temp3;
28630 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28631 }
28632 }
28633 {
28634 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28635 if (PyErr_Occurred()) SWIG_fail;
28636 }
28637 resultobj = SWIG_Py_Void();
28638 return resultobj;
28639 fail:
28640 return NULL;
28641 }
28642
28643
28644 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28645 int argc;
28646 PyObject *argv[4];
28647
28648 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28649 --argc;
28650 if (argc == 2) {
28651 int _v = 0;
28652 {
28653 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28654 _v = SWIG_CheckState(res);
28655 }
28656 if (!_v) goto check_1;
28657 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
28658 }
28659 check_1:
28660
28661 if ((argc >= 2) && (argc <= 3)) {
28662 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
28663 }
28664
28665 fail:
28666 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
28667 return NULL;
28668 }
28669
28670
28671 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28672 PyObject *resultobj = 0;
28673 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28674 wxGraphicsPath *arg2 = 0 ;
28675 void *argp1 = 0 ;
28676 int res1 = 0 ;
28677 void *argp2 = 0 ;
28678 int res2 = 0 ;
28679 PyObject * obj0 = 0 ;
28680 PyObject * obj1 = 0 ;
28681 char * kwnames[] = {
28682 (char *) "self",(char *) "path", NULL
28683 };
28684
28685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28687 if (!SWIG_IsOK(res1)) {
28688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28689 }
28690 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28691 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28692 if (!SWIG_IsOK(res2)) {
28693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28694 }
28695 if (!argp2) {
28696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28697 }
28698 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28699 {
28700 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
28701 if (PyErr_Occurred()) SWIG_fail;
28702 }
28703 resultobj = SWIG_Py_Void();
28704 return resultobj;
28705 fail:
28706 return NULL;
28707 }
28708
28709
28710 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28711 PyObject *resultobj = 0;
28712 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28713 wxGraphicsPath *arg2 = 0 ;
28714 int arg3 = (int) wxODDEVEN_RULE ;
28715 void *argp1 = 0 ;
28716 int res1 = 0 ;
28717 void *argp2 = 0 ;
28718 int res2 = 0 ;
28719 int val3 ;
28720 int ecode3 = 0 ;
28721 PyObject * obj0 = 0 ;
28722 PyObject * obj1 = 0 ;
28723 PyObject * obj2 = 0 ;
28724 char * kwnames[] = {
28725 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28726 };
28727
28728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28730 if (!SWIG_IsOK(res1)) {
28731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28732 }
28733 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28734 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28735 if (!SWIG_IsOK(res2)) {
28736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28737 }
28738 if (!argp2) {
28739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28740 }
28741 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28742 if (obj2) {
28743 ecode3 = SWIG_AsVal_int(obj2, &val3);
28744 if (!SWIG_IsOK(ecode3)) {
28745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28746 }
28747 arg3 = static_cast< int >(val3);
28748 }
28749 {
28750 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
28751 if (PyErr_Occurred()) SWIG_fail;
28752 }
28753 resultobj = SWIG_Py_Void();
28754 return resultobj;
28755 fail:
28756 return NULL;
28757 }
28758
28759
28760 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28761 PyObject *resultobj = 0;
28762 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28763 wxGraphicsPath *arg2 = 0 ;
28764 int arg3 = (int) wxODDEVEN_RULE ;
28765 void *argp1 = 0 ;
28766 int res1 = 0 ;
28767 void *argp2 = 0 ;
28768 int res2 = 0 ;
28769 int val3 ;
28770 int ecode3 = 0 ;
28771 PyObject * obj0 = 0 ;
28772 PyObject * obj1 = 0 ;
28773 PyObject * obj2 = 0 ;
28774 char * kwnames[] = {
28775 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28776 };
28777
28778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28780 if (!SWIG_IsOK(res1)) {
28781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28782 }
28783 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28784 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28785 if (!SWIG_IsOK(res2)) {
28786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28787 }
28788 if (!argp2) {
28789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28790 }
28791 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28792 if (obj2) {
28793 ecode3 = SWIG_AsVal_int(obj2, &val3);
28794 if (!SWIG_IsOK(ecode3)) {
28795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
28796 }
28797 arg3 = static_cast< int >(val3);
28798 }
28799 {
28800 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
28801 if (PyErr_Occurred()) SWIG_fail;
28802 }
28803 resultobj = SWIG_Py_Void();
28804 return resultobj;
28805 fail:
28806 return NULL;
28807 }
28808
28809
28810 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28811 PyObject *resultobj = 0;
28812 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28813 wxString *arg2 = 0 ;
28814 wxDouble arg3 ;
28815 wxDouble arg4 ;
28816 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
28817 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
28818 void *argp1 = 0 ;
28819 int res1 = 0 ;
28820 bool temp2 = false ;
28821 double val3 ;
28822 int ecode3 = 0 ;
28823 double val4 ;
28824 int ecode4 = 0 ;
28825 void *argp5 = 0 ;
28826 int res5 = 0 ;
28827 PyObject * obj0 = 0 ;
28828 PyObject * obj1 = 0 ;
28829 PyObject * obj2 = 0 ;
28830 PyObject * obj3 = 0 ;
28831 PyObject * obj4 = 0 ;
28832 char * kwnames[] = {
28833 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
28834 };
28835
28836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28838 if (!SWIG_IsOK(res1)) {
28839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28840 }
28841 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28842 {
28843 arg2 = wxString_in_helper(obj1);
28844 if (arg2 == NULL) SWIG_fail;
28845 temp2 = true;
28846 }
28847 ecode3 = SWIG_AsVal_double(obj2, &val3);
28848 if (!SWIG_IsOK(ecode3)) {
28849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
28850 }
28851 arg3 = static_cast< wxDouble >(val3);
28852 ecode4 = SWIG_AsVal_double(obj3, &val4);
28853 if (!SWIG_IsOK(ecode4)) {
28854 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
28855 }
28856 arg4 = static_cast< wxDouble >(val4);
28857 if (obj4) {
28858 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28859 if (!SWIG_IsOK(res5)) {
28860 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
28861 }
28862 if (!argp5) {
28863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
28864 }
28865 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
28866 }
28867 {
28868 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
28869 if (PyErr_Occurred()) SWIG_fail;
28870 }
28871 resultobj = SWIG_Py_Void();
28872 {
28873 if (temp2)
28874 delete arg2;
28875 }
28876 return resultobj;
28877 fail:
28878 {
28879 if (temp2)
28880 delete arg2;
28881 }
28882 return NULL;
28883 }
28884
28885
28886 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28887 PyObject *resultobj = 0;
28888 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28889 wxString *arg2 = 0 ;
28890 wxDouble arg3 ;
28891 wxDouble arg4 ;
28892 wxDouble arg5 ;
28893 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
28894 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
28895 void *argp1 = 0 ;
28896 int res1 = 0 ;
28897 bool temp2 = false ;
28898 double val3 ;
28899 int ecode3 = 0 ;
28900 double val4 ;
28901 int ecode4 = 0 ;
28902 double val5 ;
28903 int ecode5 = 0 ;
28904 void *argp6 = 0 ;
28905 int res6 = 0 ;
28906 PyObject * obj0 = 0 ;
28907 PyObject * obj1 = 0 ;
28908 PyObject * obj2 = 0 ;
28909 PyObject * obj3 = 0 ;
28910 PyObject * obj4 = 0 ;
28911 PyObject * obj5 = 0 ;
28912 char * kwnames[] = {
28913 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
28914 };
28915
28916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28918 if (!SWIG_IsOK(res1)) {
28919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28920 }
28921 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28922 {
28923 arg2 = wxString_in_helper(obj1);
28924 if (arg2 == NULL) SWIG_fail;
28925 temp2 = true;
28926 }
28927 ecode3 = SWIG_AsVal_double(obj2, &val3);
28928 if (!SWIG_IsOK(ecode3)) {
28929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
28930 }
28931 arg3 = static_cast< wxDouble >(val3);
28932 ecode4 = SWIG_AsVal_double(obj3, &val4);
28933 if (!SWIG_IsOK(ecode4)) {
28934 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
28935 }
28936 arg4 = static_cast< wxDouble >(val4);
28937 ecode5 = SWIG_AsVal_double(obj4, &val5);
28938 if (!SWIG_IsOK(ecode5)) {
28939 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
28940 }
28941 arg5 = static_cast< wxDouble >(val5);
28942 if (obj5) {
28943 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28944 if (!SWIG_IsOK(res6)) {
28945 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
28946 }
28947 if (!argp6) {
28948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
28949 }
28950 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
28951 }
28952 {
28953 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
28954 if (PyErr_Occurred()) SWIG_fail;
28955 }
28956 resultobj = SWIG_Py_Void();
28957 {
28958 if (temp2)
28959 delete arg2;
28960 }
28961 return resultobj;
28962 fail:
28963 {
28964 if (temp2)
28965 delete arg2;
28966 }
28967 return NULL;
28968 }
28969
28970
28971 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28972 PyObject *resultobj = 0;
28973 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28974 wxString *arg2 = 0 ;
28975 wxDouble *arg3 = (wxDouble *) 0 ;
28976 wxDouble *arg4 = (wxDouble *) 0 ;
28977 wxDouble *arg5 = (wxDouble *) 0 ;
28978 wxDouble *arg6 = (wxDouble *) 0 ;
28979 void *argp1 = 0 ;
28980 int res1 = 0 ;
28981 bool temp2 = false ;
28982 wxDouble temp3 ;
28983 int res3 = SWIG_TMPOBJ ;
28984 wxDouble temp4 ;
28985 int res4 = SWIG_TMPOBJ ;
28986 wxDouble temp5 ;
28987 int res5 = SWIG_TMPOBJ ;
28988 wxDouble temp6 ;
28989 int res6 = SWIG_TMPOBJ ;
28990 PyObject * obj0 = 0 ;
28991 PyObject * obj1 = 0 ;
28992 char * kwnames[] = {
28993 (char *) "self",(char *) "text", NULL
28994 };
28995
28996 arg3 = &temp3;
28997 arg4 = &temp4;
28998 arg5 = &temp5;
28999 arg6 = &temp6;
29000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29002 if (!SWIG_IsOK(res1)) {
29003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29004 }
29005 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29006 {
29007 arg2 = wxString_in_helper(obj1);
29008 if (arg2 == NULL) SWIG_fail;
29009 temp2 = true;
29010 }
29011 {
29012 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
29013 if (PyErr_Occurred()) SWIG_fail;
29014 }
29015 resultobj = SWIG_Py_Void();
29016 if (SWIG_IsTmpObj(res3)) {
29017 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29018 } else {
29019 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29020 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29021 }
29022 if (SWIG_IsTmpObj(res4)) {
29023 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29024 } else {
29025 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29026 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29027 }
29028 if (SWIG_IsTmpObj(res5)) {
29029 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29030 } else {
29031 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29032 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29033 }
29034 if (SWIG_IsTmpObj(res6)) {
29035 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29036 } else {
29037 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29038 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29039 }
29040 {
29041 if (temp2)
29042 delete arg2;
29043 }
29044 return resultobj;
29045 fail:
29046 {
29047 if (temp2)
29048 delete arg2;
29049 }
29050 return NULL;
29051 }
29052
29053
29054 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29055 PyObject *resultobj = 0;
29056 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29057 wxString *arg2 = 0 ;
29058 PyObject *result = 0 ;
29059 void *argp1 = 0 ;
29060 int res1 = 0 ;
29061 bool temp2 = false ;
29062 PyObject * obj0 = 0 ;
29063 PyObject * obj1 = 0 ;
29064 char * kwnames[] = {
29065 (char *) "self",(char *) "text", NULL
29066 };
29067
29068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29070 if (!SWIG_IsOK(res1)) {
29071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29072 }
29073 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29074 {
29075 arg2 = wxString_in_helper(obj1);
29076 if (arg2 == NULL) SWIG_fail;
29077 temp2 = true;
29078 }
29079 {
29080 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29081 if (PyErr_Occurred()) SWIG_fail;
29082 }
29083 resultobj = result;
29084 {
29085 if (temp2)
29086 delete arg2;
29087 }
29088 return resultobj;
29089 fail:
29090 {
29091 if (temp2)
29092 delete arg2;
29093 }
29094 return NULL;
29095 }
29096
29097
29098 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29099 PyObject *resultobj = 0;
29100 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29101 wxString *arg2 = 0 ;
29102 wxArrayDouble result;
29103 void *argp1 = 0 ;
29104 int res1 = 0 ;
29105 bool temp2 = false ;
29106 PyObject * obj0 = 0 ;
29107 PyObject * obj1 = 0 ;
29108 char * kwnames[] = {
29109 (char *) "self",(char *) "text", NULL
29110 };
29111
29112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
29113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29114 if (!SWIG_IsOK(res1)) {
29115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29116 }
29117 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29118 {
29119 arg2 = wxString_in_helper(obj1);
29120 if (arg2 == NULL) SWIG_fail;
29121 temp2 = true;
29122 }
29123 {
29124 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
29125 if (PyErr_Occurred()) SWIG_fail;
29126 }
29127 {
29128 resultobj = wxArrayDouble2PyList_helper(result);
29129 }
29130 {
29131 if (temp2)
29132 delete arg2;
29133 }
29134 return resultobj;
29135 fail:
29136 {
29137 if (temp2)
29138 delete arg2;
29139 }
29140 return NULL;
29141 }
29142
29143
29144 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29145 PyObject *resultobj = 0;
29146 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29147 wxBitmap *arg2 = 0 ;
29148 wxDouble arg3 ;
29149 wxDouble arg4 ;
29150 wxDouble arg5 ;
29151 wxDouble arg6 ;
29152 void *argp1 = 0 ;
29153 int res1 = 0 ;
29154 void *argp2 = 0 ;
29155 int res2 = 0 ;
29156 double val3 ;
29157 int ecode3 = 0 ;
29158 double val4 ;
29159 int ecode4 = 0 ;
29160 double val5 ;
29161 int ecode5 = 0 ;
29162 double val6 ;
29163 int ecode6 = 0 ;
29164 PyObject * obj0 = 0 ;
29165 PyObject * obj1 = 0 ;
29166 PyObject * obj2 = 0 ;
29167 PyObject * obj3 = 0 ;
29168 PyObject * obj4 = 0 ;
29169 PyObject * obj5 = 0 ;
29170 char * kwnames[] = {
29171 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29172 };
29173
29174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29176 if (!SWIG_IsOK(res1)) {
29177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29178 }
29179 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29180 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29181 if (!SWIG_IsOK(res2)) {
29182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29183 }
29184 if (!argp2) {
29185 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29186 }
29187 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29188 ecode3 = SWIG_AsVal_double(obj2, &val3);
29189 if (!SWIG_IsOK(ecode3)) {
29190 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29191 }
29192 arg3 = static_cast< wxDouble >(val3);
29193 ecode4 = SWIG_AsVal_double(obj3, &val4);
29194 if (!SWIG_IsOK(ecode4)) {
29195 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29196 }
29197 arg4 = static_cast< wxDouble >(val4);
29198 ecode5 = SWIG_AsVal_double(obj4, &val5);
29199 if (!SWIG_IsOK(ecode5)) {
29200 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29201 }
29202 arg5 = static_cast< wxDouble >(val5);
29203 ecode6 = SWIG_AsVal_double(obj5, &val6);
29204 if (!SWIG_IsOK(ecode6)) {
29205 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29206 }
29207 arg6 = static_cast< wxDouble >(val6);
29208 {
29209 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
29210 if (PyErr_Occurred()) SWIG_fail;
29211 }
29212 resultobj = SWIG_Py_Void();
29213 return resultobj;
29214 fail:
29215 return NULL;
29216 }
29217
29218
29219 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29220 PyObject *resultobj = 0;
29221 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29222 wxIcon *arg2 = 0 ;
29223 wxDouble arg3 ;
29224 wxDouble arg4 ;
29225 wxDouble arg5 ;
29226 wxDouble arg6 ;
29227 void *argp1 = 0 ;
29228 int res1 = 0 ;
29229 void *argp2 = 0 ;
29230 int res2 = 0 ;
29231 double val3 ;
29232 int ecode3 = 0 ;
29233 double val4 ;
29234 int ecode4 = 0 ;
29235 double val5 ;
29236 int ecode5 = 0 ;
29237 double val6 ;
29238 int ecode6 = 0 ;
29239 PyObject * obj0 = 0 ;
29240 PyObject * obj1 = 0 ;
29241 PyObject * obj2 = 0 ;
29242 PyObject * obj3 = 0 ;
29243 PyObject * obj4 = 0 ;
29244 PyObject * obj5 = 0 ;
29245 char * kwnames[] = {
29246 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29247 };
29248
29249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29251 if (!SWIG_IsOK(res1)) {
29252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29253 }
29254 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29256 if (!SWIG_IsOK(res2)) {
29257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29258 }
29259 if (!argp2) {
29260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29261 }
29262 arg2 = reinterpret_cast< wxIcon * >(argp2);
29263 ecode3 = SWIG_AsVal_double(obj2, &val3);
29264 if (!SWIG_IsOK(ecode3)) {
29265 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29266 }
29267 arg3 = static_cast< wxDouble >(val3);
29268 ecode4 = SWIG_AsVal_double(obj3, &val4);
29269 if (!SWIG_IsOK(ecode4)) {
29270 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29271 }
29272 arg4 = static_cast< wxDouble >(val4);
29273 ecode5 = SWIG_AsVal_double(obj4, &val5);
29274 if (!SWIG_IsOK(ecode5)) {
29275 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29276 }
29277 arg5 = static_cast< wxDouble >(val5);
29278 ecode6 = SWIG_AsVal_double(obj5, &val6);
29279 if (!SWIG_IsOK(ecode6)) {
29280 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29281 }
29282 arg6 = static_cast< wxDouble >(val6);
29283 {
29284 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29285 if (PyErr_Occurred()) SWIG_fail;
29286 }
29287 resultobj = SWIG_Py_Void();
29288 return resultobj;
29289 fail:
29290 return NULL;
29291 }
29292
29293
29294 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29295 PyObject *resultobj = 0;
29296 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29297 wxDouble arg2 ;
29298 wxDouble arg3 ;
29299 wxDouble arg4 ;
29300 wxDouble arg5 ;
29301 void *argp1 = 0 ;
29302 int res1 = 0 ;
29303 double val2 ;
29304 int ecode2 = 0 ;
29305 double val3 ;
29306 int ecode3 = 0 ;
29307 double val4 ;
29308 int ecode4 = 0 ;
29309 double val5 ;
29310 int ecode5 = 0 ;
29311 PyObject * obj0 = 0 ;
29312 PyObject * obj1 = 0 ;
29313 PyObject * obj2 = 0 ;
29314 PyObject * obj3 = 0 ;
29315 PyObject * obj4 = 0 ;
29316 char * kwnames[] = {
29317 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29318 };
29319
29320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29322 if (!SWIG_IsOK(res1)) {
29323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29324 }
29325 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29326 ecode2 = SWIG_AsVal_double(obj1, &val2);
29327 if (!SWIG_IsOK(ecode2)) {
29328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29329 }
29330 arg2 = static_cast< wxDouble >(val2);
29331 ecode3 = SWIG_AsVal_double(obj2, &val3);
29332 if (!SWIG_IsOK(ecode3)) {
29333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29334 }
29335 arg3 = static_cast< wxDouble >(val3);
29336 ecode4 = SWIG_AsVal_double(obj3, &val4);
29337 if (!SWIG_IsOK(ecode4)) {
29338 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29339 }
29340 arg4 = static_cast< wxDouble >(val4);
29341 ecode5 = SWIG_AsVal_double(obj4, &val5);
29342 if (!SWIG_IsOK(ecode5)) {
29343 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29344 }
29345 arg5 = static_cast< wxDouble >(val5);
29346 {
29347 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29348 if (PyErr_Occurred()) SWIG_fail;
29349 }
29350 resultobj = SWIG_Py_Void();
29351 return resultobj;
29352 fail:
29353 return NULL;
29354 }
29355
29356
29357 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29358 PyObject *resultobj = 0;
29359 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29360 size_t arg2 ;
29361 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29362 void *argp1 = 0 ;
29363 int res1 = 0 ;
29364 PyObject * obj0 = 0 ;
29365 PyObject * obj1 = 0 ;
29366 char * kwnames[] = {
29367 (char *) "self",(char *) "points", NULL
29368 };
29369
29370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29372 if (!SWIG_IsOK(res1)) {
29373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29374 }
29375 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29376 {
29377 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29378 if (arg3 == NULL) SWIG_fail;
29379 }
29380 {
29381 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29382 if (PyErr_Occurred()) SWIG_fail;
29383 }
29384 resultobj = SWIG_Py_Void();
29385 {
29386 if (arg3) delete [] arg3;
29387 }
29388 return resultobj;
29389 fail:
29390 {
29391 if (arg3) delete [] arg3;
29392 }
29393 return NULL;
29394 }
29395
29396
29397 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29398 PyObject *resultobj = 0;
29399 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29400 PyObject *arg2 = (PyObject *) 0 ;
29401 PyObject *arg3 = (PyObject *) 0 ;
29402 void *argp1 = 0 ;
29403 int res1 = 0 ;
29404 PyObject * obj0 = 0 ;
29405 PyObject * obj1 = 0 ;
29406 PyObject * obj2 = 0 ;
29407 char * kwnames[] = {
29408 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29409 };
29410
29411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29413 if (!SWIG_IsOK(res1)) {
29414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29415 }
29416 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29417 arg2 = obj1;
29418 arg3 = obj2;
29419 {
29420 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29421 if (PyErr_Occurred()) SWIG_fail;
29422 }
29423 resultobj = SWIG_Py_Void();
29424 return resultobj;
29425 fail:
29426 return NULL;
29427 }
29428
29429
29430 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29431 PyObject *resultobj = 0;
29432 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29433 size_t arg2 ;
29434 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29435 int arg4 = (int) wxODDEVEN_RULE ;
29436 void *argp1 = 0 ;
29437 int res1 = 0 ;
29438 int val4 ;
29439 int ecode4 = 0 ;
29440 PyObject * obj0 = 0 ;
29441 PyObject * obj1 = 0 ;
29442 PyObject * obj2 = 0 ;
29443 char * kwnames[] = {
29444 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29445 };
29446
29447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29449 if (!SWIG_IsOK(res1)) {
29450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29451 }
29452 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29453 {
29454 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29455 if (arg3 == NULL) SWIG_fail;
29456 }
29457 if (obj2) {
29458 ecode4 = SWIG_AsVal_int(obj2, &val4);
29459 if (!SWIG_IsOK(ecode4)) {
29460 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29461 }
29462 arg4 = static_cast< int >(val4);
29463 }
29464 {
29465 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29466 if (PyErr_Occurred()) SWIG_fail;
29467 }
29468 resultobj = SWIG_Py_Void();
29469 {
29470 if (arg3) delete [] arg3;
29471 }
29472 return resultobj;
29473 fail:
29474 {
29475 if (arg3) delete [] arg3;
29476 }
29477 return NULL;
29478 }
29479
29480
29481 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29482 PyObject *resultobj = 0;
29483 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29484 wxDouble arg2 ;
29485 wxDouble arg3 ;
29486 wxDouble arg4 ;
29487 wxDouble arg5 ;
29488 void *argp1 = 0 ;
29489 int res1 = 0 ;
29490 double val2 ;
29491 int ecode2 = 0 ;
29492 double val3 ;
29493 int ecode3 = 0 ;
29494 double val4 ;
29495 int ecode4 = 0 ;
29496 double val5 ;
29497 int ecode5 = 0 ;
29498 PyObject * obj0 = 0 ;
29499 PyObject * obj1 = 0 ;
29500 PyObject * obj2 = 0 ;
29501 PyObject * obj3 = 0 ;
29502 PyObject * obj4 = 0 ;
29503 char * kwnames[] = {
29504 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29505 };
29506
29507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29509 if (!SWIG_IsOK(res1)) {
29510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29511 }
29512 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29513 ecode2 = SWIG_AsVal_double(obj1, &val2);
29514 if (!SWIG_IsOK(ecode2)) {
29515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29516 }
29517 arg2 = static_cast< wxDouble >(val2);
29518 ecode3 = SWIG_AsVal_double(obj2, &val3);
29519 if (!SWIG_IsOK(ecode3)) {
29520 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29521 }
29522 arg3 = static_cast< wxDouble >(val3);
29523 ecode4 = SWIG_AsVal_double(obj3, &val4);
29524 if (!SWIG_IsOK(ecode4)) {
29525 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29526 }
29527 arg4 = static_cast< wxDouble >(val4);
29528 ecode5 = SWIG_AsVal_double(obj4, &val5);
29529 if (!SWIG_IsOK(ecode5)) {
29530 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29531 }
29532 arg5 = static_cast< wxDouble >(val5);
29533 {
29534 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29535 if (PyErr_Occurred()) SWIG_fail;
29536 }
29537 resultobj = SWIG_Py_Void();
29538 return resultobj;
29539 fail:
29540 return NULL;
29541 }
29542
29543
29544 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29545 PyObject *resultobj = 0;
29546 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29547 wxDouble arg2 ;
29548 wxDouble arg3 ;
29549 wxDouble arg4 ;
29550 wxDouble arg5 ;
29551 void *argp1 = 0 ;
29552 int res1 = 0 ;
29553 double val2 ;
29554 int ecode2 = 0 ;
29555 double val3 ;
29556 int ecode3 = 0 ;
29557 double val4 ;
29558 int ecode4 = 0 ;
29559 double val5 ;
29560 int ecode5 = 0 ;
29561 PyObject * obj0 = 0 ;
29562 PyObject * obj1 = 0 ;
29563 PyObject * obj2 = 0 ;
29564 PyObject * obj3 = 0 ;
29565 PyObject * obj4 = 0 ;
29566 char * kwnames[] = {
29567 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29568 };
29569
29570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29572 if (!SWIG_IsOK(res1)) {
29573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29574 }
29575 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29576 ecode2 = SWIG_AsVal_double(obj1, &val2);
29577 if (!SWIG_IsOK(ecode2)) {
29578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29579 }
29580 arg2 = static_cast< wxDouble >(val2);
29581 ecode3 = SWIG_AsVal_double(obj2, &val3);
29582 if (!SWIG_IsOK(ecode3)) {
29583 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
29584 }
29585 arg3 = static_cast< wxDouble >(val3);
29586 ecode4 = SWIG_AsVal_double(obj3, &val4);
29587 if (!SWIG_IsOK(ecode4)) {
29588 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
29589 }
29590 arg4 = static_cast< wxDouble >(val4);
29591 ecode5 = SWIG_AsVal_double(obj4, &val5);
29592 if (!SWIG_IsOK(ecode5)) {
29593 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
29594 }
29595 arg5 = static_cast< wxDouble >(val5);
29596 {
29597 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
29598 if (PyErr_Occurred()) SWIG_fail;
29599 }
29600 resultobj = SWIG_Py_Void();
29601 return resultobj;
29602 fail:
29603 return NULL;
29604 }
29605
29606
29607 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29608 PyObject *resultobj = 0;
29609 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29610 wxDouble arg2 ;
29611 wxDouble arg3 ;
29612 wxDouble arg4 ;
29613 wxDouble arg5 ;
29614 wxDouble arg6 ;
29615 void *argp1 = 0 ;
29616 int res1 = 0 ;
29617 double val2 ;
29618 int ecode2 = 0 ;
29619 double val3 ;
29620 int ecode3 = 0 ;
29621 double val4 ;
29622 int ecode4 = 0 ;
29623 double val5 ;
29624 int ecode5 = 0 ;
29625 double val6 ;
29626 int ecode6 = 0 ;
29627 PyObject * obj0 = 0 ;
29628 PyObject * obj1 = 0 ;
29629 PyObject * obj2 = 0 ;
29630 PyObject * obj3 = 0 ;
29631 PyObject * obj4 = 0 ;
29632 PyObject * obj5 = 0 ;
29633 char * kwnames[] = {
29634 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
29635 };
29636
29637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29639 if (!SWIG_IsOK(res1)) {
29640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29641 }
29642 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29643 ecode2 = SWIG_AsVal_double(obj1, &val2);
29644 if (!SWIG_IsOK(ecode2)) {
29645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29646 }
29647 arg2 = static_cast< wxDouble >(val2);
29648 ecode3 = SWIG_AsVal_double(obj2, &val3);
29649 if (!SWIG_IsOK(ecode3)) {
29650 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29651 }
29652 arg3 = static_cast< wxDouble >(val3);
29653 ecode4 = SWIG_AsVal_double(obj3, &val4);
29654 if (!SWIG_IsOK(ecode4)) {
29655 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29656 }
29657 arg4 = static_cast< wxDouble >(val4);
29658 ecode5 = SWIG_AsVal_double(obj4, &val5);
29659 if (!SWIG_IsOK(ecode5)) {
29660 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29661 }
29662 arg5 = static_cast< wxDouble >(val5);
29663 ecode6 = SWIG_AsVal_double(obj5, &val6);
29664 if (!SWIG_IsOK(ecode6)) {
29665 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29666 }
29667 arg6 = static_cast< wxDouble >(val6);
29668 {
29669 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
29670 if (PyErr_Occurred()) SWIG_fail;
29671 }
29672 resultobj = SWIG_Py_Void();
29673 return resultobj;
29674 fail:
29675 return NULL;
29676 }
29677
29678
29679 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29680 PyObject *resultobj = 0;
29681 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29682 bool result;
29683 void *argp1 = 0 ;
29684 int res1 = 0 ;
29685 PyObject *swig_obj[1] ;
29686
29687 if (!args) SWIG_fail;
29688 swig_obj[0] = args;
29689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29690 if (!SWIG_IsOK(res1)) {
29691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29692 }
29693 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29694 {
29695 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29696 if (PyErr_Occurred()) SWIG_fail;
29697 }
29698 {
29699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29700 }
29701 return resultobj;
29702 fail:
29703 return NULL;
29704 }
29705
29706
29707 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29708 PyObject *obj;
29709 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29710 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29711 return SWIG_Py_Void();
29712 }
29713
29714 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29715 PyObject *resultobj = 0;
29716 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29717 void *argp1 = 0 ;
29718 int res1 = 0 ;
29719 PyObject *swig_obj[1] ;
29720
29721 if (!args) SWIG_fail;
29722 swig_obj[0] = args;
29723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29724 if (!SWIG_IsOK(res1)) {
29725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29726 }
29727 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29728 {
29729 delete arg1;
29730
29731 if (PyErr_Occurred()) SWIG_fail;
29732 }
29733 resultobj = SWIG_Py_Void();
29734 return resultobj;
29735 fail:
29736 return NULL;
29737 }
29738
29739
29740 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29741 PyObject *resultobj = 0;
29742 wxGraphicsRenderer *result = 0 ;
29743
29744 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
29745 {
29746 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29747 if (PyErr_Occurred()) SWIG_fail;
29748 }
29749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29750 return resultobj;
29751 fail:
29752 return NULL;
29753 }
29754
29755
29756 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29757 PyObject *resultobj = 0;
29758 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29759 wxWindowDC *arg2 = 0 ;
29760 wxGraphicsContext *result = 0 ;
29761 void *argp1 = 0 ;
29762 int res1 = 0 ;
29763 void *argp2 = 0 ;
29764 int res2 = 0 ;
29765
29766 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29768 if (!SWIG_IsOK(res1)) {
29769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29770 }
29771 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29772 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29773 if (!SWIG_IsOK(res2)) {
29774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29775 }
29776 if (!argp2) {
29777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29778 }
29779 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29780 {
29781 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29782 if (PyErr_Occurred()) SWIG_fail;
29783 }
29784 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29785 return resultobj;
29786 fail:
29787 return NULL;
29788 }
29789
29790
29791 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29792 PyObject *resultobj = 0;
29793 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29794 wxWindow *arg2 = (wxWindow *) 0 ;
29795 wxGraphicsContext *result = 0 ;
29796 void *argp1 = 0 ;
29797 int res1 = 0 ;
29798 void *argp2 = 0 ;
29799 int res2 = 0 ;
29800
29801 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29803 if (!SWIG_IsOK(res1)) {
29804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29805 }
29806 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29807 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29808 if (!SWIG_IsOK(res2)) {
29809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
29810 }
29811 arg2 = reinterpret_cast< wxWindow * >(argp2);
29812 {
29813 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
29814 if (PyErr_Occurred()) SWIG_fail;
29815 }
29816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29817 return resultobj;
29818 fail:
29819 return NULL;
29820 }
29821
29822
29823 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
29824 int argc;
29825 PyObject *argv[3];
29826
29827 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
29828 --argc;
29829 if (argc == 2) {
29830 int _v = 0;
29831 {
29832 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
29833 _v = SWIG_CheckState(res);
29834 }
29835 if (!_v) goto check_1;
29836 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
29837 }
29838 check_1:
29839
29840 if (argc == 2) {
29841 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
29842 }
29843
29844 fail:
29845 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
29846 return NULL;
29847 }
29848
29849
29850 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29851 PyObject *resultobj = 0;
29852 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29853 wxGraphicsContext *result = 0 ;
29854 void *argp1 = 0 ;
29855 int res1 = 0 ;
29856 PyObject *swig_obj[1] ;
29857
29858 if (!args) SWIG_fail;
29859 swig_obj[0] = args;
29860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29861 if (!SWIG_IsOK(res1)) {
29862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29863 }
29864 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29865 {
29866 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
29867 if (PyErr_Occurred()) SWIG_fail;
29868 }
29869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29870 return resultobj;
29871 fail:
29872 return NULL;
29873 }
29874
29875
29876 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29877 PyObject *resultobj = 0;
29878 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29879 void *arg2 = (void *) 0 ;
29880 wxGraphicsContext *result = 0 ;
29881 void *argp1 = 0 ;
29882 int res1 = 0 ;
29883 int res2 ;
29884 PyObject * obj0 = 0 ;
29885 PyObject * obj1 = 0 ;
29886 char * kwnames[] = {
29887 (char *) "self",(char *) "context", NULL
29888 };
29889
29890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
29891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29892 if (!SWIG_IsOK(res1)) {
29893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29894 }
29895 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29896 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29897 if (!SWIG_IsOK(res2)) {
29898 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
29899 }
29900 {
29901 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
29902 if (PyErr_Occurred()) SWIG_fail;
29903 }
29904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29905 return resultobj;
29906 fail:
29907 return NULL;
29908 }
29909
29910
29911 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29912 PyObject *resultobj = 0;
29913 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29914 void *arg2 = (void *) 0 ;
29915 wxGraphicsContext *result = 0 ;
29916 void *argp1 = 0 ;
29917 int res1 = 0 ;
29918 int res2 ;
29919 PyObject * obj0 = 0 ;
29920 PyObject * obj1 = 0 ;
29921 char * kwnames[] = {
29922 (char *) "self",(char *) "window", NULL
29923 };
29924
29925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
29926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29927 if (!SWIG_IsOK(res1)) {
29928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29929 }
29930 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29931 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29932 if (!SWIG_IsOK(res2)) {
29933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
29934 }
29935 {
29936 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
29937 if (PyErr_Occurred()) SWIG_fail;
29938 }
29939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29940 return resultobj;
29941 fail:
29942 return NULL;
29943 }
29944
29945
29946 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29947 PyObject *resultobj = 0;
29948 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29949 wxGraphicsPath result;
29950 void *argp1 = 0 ;
29951 int res1 = 0 ;
29952 PyObject *swig_obj[1] ;
29953
29954 if (!args) SWIG_fail;
29955 swig_obj[0] = args;
29956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29957 if (!SWIG_IsOK(res1)) {
29958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29959 }
29960 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29961 {
29962 result = (arg1)->CreatePath();
29963 if (PyErr_Occurred()) SWIG_fail;
29964 }
29965 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
29966 return resultobj;
29967 fail:
29968 return NULL;
29969 }
29970
29971
29972 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29973 PyObject *resultobj = 0;
29974 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29975 wxDouble arg2 = (wxDouble) 1.0 ;
29976 wxDouble arg3 = (wxDouble) 0.0 ;
29977 wxDouble arg4 = (wxDouble) 0.0 ;
29978 wxDouble arg5 = (wxDouble) 1.0 ;
29979 wxDouble arg6 = (wxDouble) 0.0 ;
29980 wxDouble arg7 = (wxDouble) 0.0 ;
29981 wxGraphicsMatrix result;
29982 void *argp1 = 0 ;
29983 int res1 = 0 ;
29984 double val2 ;
29985 int ecode2 = 0 ;
29986 double val3 ;
29987 int ecode3 = 0 ;
29988 double val4 ;
29989 int ecode4 = 0 ;
29990 double val5 ;
29991 int ecode5 = 0 ;
29992 double val6 ;
29993 int ecode6 = 0 ;
29994 double val7 ;
29995 int ecode7 = 0 ;
29996 PyObject * obj0 = 0 ;
29997 PyObject * obj1 = 0 ;
29998 PyObject * obj2 = 0 ;
29999 PyObject * obj3 = 0 ;
30000 PyObject * obj4 = 0 ;
30001 PyObject * obj5 = 0 ;
30002 PyObject * obj6 = 0 ;
30003 char * kwnames[] = {
30004 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
30005 };
30006
30007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30009 if (!SWIG_IsOK(res1)) {
30010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30011 }
30012 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30013 if (obj1) {
30014 ecode2 = SWIG_AsVal_double(obj1, &val2);
30015 if (!SWIG_IsOK(ecode2)) {
30016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30017 }
30018 arg2 = static_cast< wxDouble >(val2);
30019 }
30020 if (obj2) {
30021 ecode3 = SWIG_AsVal_double(obj2, &val3);
30022 if (!SWIG_IsOK(ecode3)) {
30023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30024 }
30025 arg3 = static_cast< wxDouble >(val3);
30026 }
30027 if (obj3) {
30028 ecode4 = SWIG_AsVal_double(obj3, &val4);
30029 if (!SWIG_IsOK(ecode4)) {
30030 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30031 }
30032 arg4 = static_cast< wxDouble >(val4);
30033 }
30034 if (obj4) {
30035 ecode5 = SWIG_AsVal_double(obj4, &val5);
30036 if (!SWIG_IsOK(ecode5)) {
30037 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30038 }
30039 arg5 = static_cast< wxDouble >(val5);
30040 }
30041 if (obj5) {
30042 ecode6 = SWIG_AsVal_double(obj5, &val6);
30043 if (!SWIG_IsOK(ecode6)) {
30044 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30045 }
30046 arg6 = static_cast< wxDouble >(val6);
30047 }
30048 if (obj6) {
30049 ecode7 = SWIG_AsVal_double(obj6, &val7);
30050 if (!SWIG_IsOK(ecode7)) {
30051 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30052 }
30053 arg7 = static_cast< wxDouble >(val7);
30054 }
30055 {
30056 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
30057 if (PyErr_Occurred()) SWIG_fail;
30058 }
30059 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
30060 return resultobj;
30061 fail:
30062 return NULL;
30063 }
30064
30065
30066 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30067 PyObject *resultobj = 0;
30068 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30069 wxPen *arg2 = 0 ;
30070 wxGraphicsPen result;
30071 void *argp1 = 0 ;
30072 int res1 = 0 ;
30073 void *argp2 = 0 ;
30074 int res2 = 0 ;
30075 PyObject * obj0 = 0 ;
30076 PyObject * obj1 = 0 ;
30077 char * kwnames[] = {
30078 (char *) "self",(char *) "pen", NULL
30079 };
30080
30081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30083 if (!SWIG_IsOK(res1)) {
30084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30085 }
30086 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30087 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30088 if (!SWIG_IsOK(res2)) {
30089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30090 }
30091 if (!argp2) {
30092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30093 }
30094 arg2 = reinterpret_cast< wxPen * >(argp2);
30095 {
30096 result = (arg1)->CreatePen((wxPen const &)*arg2);
30097 if (PyErr_Occurred()) SWIG_fail;
30098 }
30099 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30100 return resultobj;
30101 fail:
30102 return NULL;
30103 }
30104
30105
30106 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30107 PyObject *resultobj = 0;
30108 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30109 wxBrush *arg2 = 0 ;
30110 wxGraphicsBrush result;
30111 void *argp1 = 0 ;
30112 int res1 = 0 ;
30113 void *argp2 = 0 ;
30114 int res2 = 0 ;
30115 PyObject * obj0 = 0 ;
30116 PyObject * obj1 = 0 ;
30117 char * kwnames[] = {
30118 (char *) "self",(char *) "brush", NULL
30119 };
30120
30121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30123 if (!SWIG_IsOK(res1)) {
30124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30125 }
30126 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30127 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30128 if (!SWIG_IsOK(res2)) {
30129 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30130 }
30131 if (!argp2) {
30132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30133 }
30134 arg2 = reinterpret_cast< wxBrush * >(argp2);
30135 {
30136 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30137 if (PyErr_Occurred()) SWIG_fail;
30138 }
30139 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30140 return resultobj;
30141 fail:
30142 return NULL;
30143 }
30144
30145
30146 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30147 PyObject *resultobj = 0;
30148 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30149 wxDouble arg2 ;
30150 wxDouble arg3 ;
30151 wxDouble arg4 ;
30152 wxDouble arg5 ;
30153 wxColour *arg6 = 0 ;
30154 wxColour *arg7 = 0 ;
30155 wxGraphicsBrush result;
30156 void *argp1 = 0 ;
30157 int res1 = 0 ;
30158 double val2 ;
30159 int ecode2 = 0 ;
30160 double val3 ;
30161 int ecode3 = 0 ;
30162 double val4 ;
30163 int ecode4 = 0 ;
30164 double val5 ;
30165 int ecode5 = 0 ;
30166 wxColour temp6 ;
30167 wxColour temp7 ;
30168 PyObject * obj0 = 0 ;
30169 PyObject * obj1 = 0 ;
30170 PyObject * obj2 = 0 ;
30171 PyObject * obj3 = 0 ;
30172 PyObject * obj4 = 0 ;
30173 PyObject * obj5 = 0 ;
30174 PyObject * obj6 = 0 ;
30175 char * kwnames[] = {
30176 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
30177 };
30178
30179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30181 if (!SWIG_IsOK(res1)) {
30182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30183 }
30184 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30185 ecode2 = SWIG_AsVal_double(obj1, &val2);
30186 if (!SWIG_IsOK(ecode2)) {
30187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30188 }
30189 arg2 = static_cast< wxDouble >(val2);
30190 ecode3 = SWIG_AsVal_double(obj2, &val3);
30191 if (!SWIG_IsOK(ecode3)) {
30192 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30193 }
30194 arg3 = static_cast< wxDouble >(val3);
30195 ecode4 = SWIG_AsVal_double(obj3, &val4);
30196 if (!SWIG_IsOK(ecode4)) {
30197 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30198 }
30199 arg4 = static_cast< wxDouble >(val4);
30200 ecode5 = SWIG_AsVal_double(obj4, &val5);
30201 if (!SWIG_IsOK(ecode5)) {
30202 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30203 }
30204 arg5 = static_cast< wxDouble >(val5);
30205 {
30206 arg6 = &temp6;
30207 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30208 }
30209 {
30210 arg7 = &temp7;
30211 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30212 }
30213 {
30214 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
30215 if (PyErr_Occurred()) SWIG_fail;
30216 }
30217 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30218 return resultobj;
30219 fail:
30220 return NULL;
30221 }
30222
30223
30224 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30225 PyObject *resultobj = 0;
30226 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30227 wxDouble arg2 ;
30228 wxDouble arg3 ;
30229 wxDouble arg4 ;
30230 wxDouble arg5 ;
30231 wxDouble arg6 ;
30232 wxColour *arg7 = 0 ;
30233 wxColour *arg8 = 0 ;
30234 wxGraphicsBrush result;
30235 void *argp1 = 0 ;
30236 int res1 = 0 ;
30237 double val2 ;
30238 int ecode2 = 0 ;
30239 double val3 ;
30240 int ecode3 = 0 ;
30241 double val4 ;
30242 int ecode4 = 0 ;
30243 double val5 ;
30244 int ecode5 = 0 ;
30245 double val6 ;
30246 int ecode6 = 0 ;
30247 wxColour temp7 ;
30248 wxColour temp8 ;
30249 PyObject * obj0 = 0 ;
30250 PyObject * obj1 = 0 ;
30251 PyObject * obj2 = 0 ;
30252 PyObject * obj3 = 0 ;
30253 PyObject * obj4 = 0 ;
30254 PyObject * obj5 = 0 ;
30255 PyObject * obj6 = 0 ;
30256 PyObject * obj7 = 0 ;
30257 char * kwnames[] = {
30258 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
30259 };
30260
30261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30263 if (!SWIG_IsOK(res1)) {
30264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30265 }
30266 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30267 ecode2 = SWIG_AsVal_double(obj1, &val2);
30268 if (!SWIG_IsOK(ecode2)) {
30269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30270 }
30271 arg2 = static_cast< wxDouble >(val2);
30272 ecode3 = SWIG_AsVal_double(obj2, &val3);
30273 if (!SWIG_IsOK(ecode3)) {
30274 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30275 }
30276 arg3 = static_cast< wxDouble >(val3);
30277 ecode4 = SWIG_AsVal_double(obj3, &val4);
30278 if (!SWIG_IsOK(ecode4)) {
30279 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30280 }
30281 arg4 = static_cast< wxDouble >(val4);
30282 ecode5 = SWIG_AsVal_double(obj4, &val5);
30283 if (!SWIG_IsOK(ecode5)) {
30284 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30285 }
30286 arg5 = static_cast< wxDouble >(val5);
30287 ecode6 = SWIG_AsVal_double(obj5, &val6);
30288 if (!SWIG_IsOK(ecode6)) {
30289 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
30290 }
30291 arg6 = static_cast< wxDouble >(val6);
30292 {
30293 arg7 = &temp7;
30294 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30295 }
30296 {
30297 arg8 = &temp8;
30298 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30299 }
30300 {
30301 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
30302 if (PyErr_Occurred()) SWIG_fail;
30303 }
30304 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30305 return resultobj;
30306 fail:
30307 return NULL;
30308 }
30309
30310
30311 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30312 PyObject *resultobj = 0;
30313 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30314 wxFont *arg2 = 0 ;
30315 wxColour const &arg3_defvalue = *wxBLACK ;
30316 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30317 wxGraphicsFont result;
30318 void *argp1 = 0 ;
30319 int res1 = 0 ;
30320 void *argp2 = 0 ;
30321 int res2 = 0 ;
30322 wxColour temp3 ;
30323 PyObject * obj0 = 0 ;
30324 PyObject * obj1 = 0 ;
30325 PyObject * obj2 = 0 ;
30326 char * kwnames[] = {
30327 (char *) "self",(char *) "font",(char *) "col", NULL
30328 };
30329
30330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30332 if (!SWIG_IsOK(res1)) {
30333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30334 }
30335 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30337 if (!SWIG_IsOK(res2)) {
30338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30339 }
30340 if (!argp2) {
30341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30342 }
30343 arg2 = reinterpret_cast< wxFont * >(argp2);
30344 if (obj2) {
30345 {
30346 arg3 = &temp3;
30347 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30348 }
30349 }
30350 {
30351 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30352 if (PyErr_Occurred()) SWIG_fail;
30353 }
30354 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30355 return resultobj;
30356 fail:
30357 return NULL;
30358 }
30359
30360
30361 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30362 PyObject *obj;
30363 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30364 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
30365 return SWIG_Py_Void();
30366 }
30367
30368 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30369 PyObject *resultobj = 0;
30370 wxWindowDC *arg1 = 0 ;
30371 wxGCDC *result = 0 ;
30372 void *argp1 = 0 ;
30373 int res1 = 0 ;
30374
30375 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30377 if (!SWIG_IsOK(res1)) {
30378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30379 }
30380 if (!argp1) {
30381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30382 }
30383 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30384 {
30385 if (!wxPyCheckForApp()) SWIG_fail;
30386 PyThreadState* __tstate = wxPyBeginAllowThreads();
30387 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30388 wxPyEndAllowThreads(__tstate);
30389 if (PyErr_Occurred()) SWIG_fail;
30390 }
30391 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30392 return resultobj;
30393 fail:
30394 return NULL;
30395 }
30396
30397
30398 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30399 PyObject *resultobj = 0;
30400 wxWindow *arg1 = (wxWindow *) 0 ;
30401 wxGCDC *result = 0 ;
30402 void *argp1 = 0 ;
30403 int res1 = 0 ;
30404
30405 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
30407 if (!SWIG_IsOK(res1)) {
30408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
30409 }
30410 arg1 = reinterpret_cast< wxWindow * >(argp1);
30411 {
30412 if (!wxPyCheckForApp()) SWIG_fail;
30413 PyThreadState* __tstate = wxPyBeginAllowThreads();
30414 result = (wxGCDC *)new wxGCDC(arg1);
30415 wxPyEndAllowThreads(__tstate);
30416 if (PyErr_Occurred()) SWIG_fail;
30417 }
30418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30419 return resultobj;
30420 fail:
30421 return NULL;
30422 }
30423
30424
30425 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
30426 int argc;
30427 PyObject *argv[2];
30428
30429 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
30430 --argc;
30431 if (argc == 1) {
30432 int _v = 0;
30433 {
30434 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
30435 _v = SWIG_CheckState(res);
30436 }
30437 if (!_v) goto check_1;
30438 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
30439 }
30440 check_1:
30441
30442 if (argc == 1) {
30443 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
30444 }
30445
30446 fail:
30447 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
30448 return NULL;
30449 }
30450
30451
30452 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30453 PyObject *resultobj = 0;
30454 wxGCDC *arg1 = (wxGCDC *) 0 ;
30455 void *argp1 = 0 ;
30456 int res1 = 0 ;
30457 PyObject *swig_obj[1] ;
30458
30459 if (!args) SWIG_fail;
30460 swig_obj[0] = args;
30461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30462 if (!SWIG_IsOK(res1)) {
30463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30464 }
30465 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30466 {
30467 delete arg1;
30468
30469 if (PyErr_Occurred()) SWIG_fail;
30470 }
30471 resultobj = SWIG_Py_Void();
30472 return resultobj;
30473 fail:
30474 return NULL;
30475 }
30476
30477
30478 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30479 PyObject *resultobj = 0;
30480 wxGCDC *arg1 = (wxGCDC *) 0 ;
30481 wxGraphicsContext *result = 0 ;
30482 void *argp1 = 0 ;
30483 int res1 = 0 ;
30484 PyObject *swig_obj[1] ;
30485
30486 if (!args) SWIG_fail;
30487 swig_obj[0] = args;
30488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30489 if (!SWIG_IsOK(res1)) {
30490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30491 }
30492 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30493 {
30494 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
30495 if (PyErr_Occurred()) SWIG_fail;
30496 }
30497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30498 return resultobj;
30499 fail:
30500 return NULL;
30501 }
30502
30503
30504 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30505 PyObject *resultobj = 0;
30506 wxGCDC *arg1 = (wxGCDC *) 0 ;
30507 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30508 void *argp1 = 0 ;
30509 int res1 = 0 ;
30510 void *argp2 = 0 ;
30511 int res2 = 0 ;
30512 PyObject * obj0 = 0 ;
30513 PyObject * obj1 = 0 ;
30514 char * kwnames[] = {
30515 (char *) "self",(char *) "ctx", NULL
30516 };
30517
30518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30520 if (!SWIG_IsOK(res1)) {
30521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30522 }
30523 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30524 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30525 if (!SWIG_IsOK(res2)) {
30526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30527 }
30528 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30529 {
30530 (arg1)->SetGraphicsContext(arg2);
30531 if (PyErr_Occurred()) SWIG_fail;
30532 }
30533 resultobj = SWIG_Py_Void();
30534 return resultobj;
30535 fail:
30536 return NULL;
30537 }
30538
30539
30540 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30541 PyObject *obj;
30542 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30543 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30544 return SWIG_Py_Void();
30545 }
30546
30547 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30548 return SWIG_Python_InitShadowInstance(args);
30549 }
30550
30551 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30552 PyObject *resultobj = 0;
30553 wxOverlay *result = 0 ;
30554
30555 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30556 {
30557 PyThreadState* __tstate = wxPyBeginAllowThreads();
30558 result = (wxOverlay *)new wxOverlay();
30559 wxPyEndAllowThreads(__tstate);
30560 if (PyErr_Occurred()) SWIG_fail;
30561 }
30562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30563 return resultobj;
30564 fail:
30565 return NULL;
30566 }
30567
30568
30569 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30570 PyObject *resultobj = 0;
30571 wxOverlay *arg1 = (wxOverlay *) 0 ;
30572 void *argp1 = 0 ;
30573 int res1 = 0 ;
30574 PyObject *swig_obj[1] ;
30575
30576 if (!args) SWIG_fail;
30577 swig_obj[0] = args;
30578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30579 if (!SWIG_IsOK(res1)) {
30580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30581 }
30582 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30583 {
30584 PyThreadState* __tstate = wxPyBeginAllowThreads();
30585 delete arg1;
30586
30587 wxPyEndAllowThreads(__tstate);
30588 if (PyErr_Occurred()) SWIG_fail;
30589 }
30590 resultobj = SWIG_Py_Void();
30591 return resultobj;
30592 fail:
30593 return NULL;
30594 }
30595
30596
30597 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30598 PyObject *resultobj = 0;
30599 wxOverlay *arg1 = (wxOverlay *) 0 ;
30600 void *argp1 = 0 ;
30601 int res1 = 0 ;
30602 PyObject *swig_obj[1] ;
30603
30604 if (!args) SWIG_fail;
30605 swig_obj[0] = args;
30606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30607 if (!SWIG_IsOK(res1)) {
30608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30609 }
30610 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30611 {
30612 PyThreadState* __tstate = wxPyBeginAllowThreads();
30613 (arg1)->Reset();
30614 wxPyEndAllowThreads(__tstate);
30615 if (PyErr_Occurred()) SWIG_fail;
30616 }
30617 resultobj = SWIG_Py_Void();
30618 return resultobj;
30619 fail:
30620 return NULL;
30621 }
30622
30623
30624 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30625 PyObject *obj;
30626 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30627 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30628 return SWIG_Py_Void();
30629 }
30630
30631 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30632 return SWIG_Python_InitShadowInstance(args);
30633 }
30634
30635 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30636 PyObject *resultobj = 0;
30637 wxOverlay *arg1 = 0 ;
30638 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30639 int arg3 ;
30640 int arg4 ;
30641 int arg5 ;
30642 int arg6 ;
30643 wxDCOverlay *result = 0 ;
30644 void *argp1 = 0 ;
30645 int res1 = 0 ;
30646 void *argp2 = 0 ;
30647 int res2 = 0 ;
30648 int val3 ;
30649 int ecode3 = 0 ;
30650 int val4 ;
30651 int ecode4 = 0 ;
30652 int val5 ;
30653 int ecode5 = 0 ;
30654 int val6 ;
30655 int ecode6 = 0 ;
30656
30657 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30659 if (!SWIG_IsOK(res1)) {
30660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30661 }
30662 if (!argp1) {
30663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30664 }
30665 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30666 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30667 if (!SWIG_IsOK(res2)) {
30668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30669 }
30670 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30671 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30672 if (!SWIG_IsOK(ecode3)) {
30673 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30674 }
30675 arg3 = static_cast< int >(val3);
30676 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30677 if (!SWIG_IsOK(ecode4)) {
30678 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30679 }
30680 arg4 = static_cast< int >(val4);
30681 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30682 if (!SWIG_IsOK(ecode5)) {
30683 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30684 }
30685 arg5 = static_cast< int >(val5);
30686 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30687 if (!SWIG_IsOK(ecode6)) {
30688 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30689 }
30690 arg6 = static_cast< int >(val6);
30691 {
30692 PyThreadState* __tstate = wxPyBeginAllowThreads();
30693 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30694 wxPyEndAllowThreads(__tstate);
30695 if (PyErr_Occurred()) SWIG_fail;
30696 }
30697 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30698 return resultobj;
30699 fail:
30700 return NULL;
30701 }
30702
30703
30704 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30705 PyObject *resultobj = 0;
30706 wxOverlay *arg1 = 0 ;
30707 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30708 wxDCOverlay *result = 0 ;
30709 void *argp1 = 0 ;
30710 int res1 = 0 ;
30711 void *argp2 = 0 ;
30712 int res2 = 0 ;
30713
30714 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30716 if (!SWIG_IsOK(res1)) {
30717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30718 }
30719 if (!argp1) {
30720 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30721 }
30722 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30723 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30724 if (!SWIG_IsOK(res2)) {
30725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30726 }
30727 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30728 {
30729 PyThreadState* __tstate = wxPyBeginAllowThreads();
30730 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30731 wxPyEndAllowThreads(__tstate);
30732 if (PyErr_Occurred()) SWIG_fail;
30733 }
30734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30735 return resultobj;
30736 fail:
30737 return NULL;
30738 }
30739
30740
30741 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30742 int argc;
30743 PyObject *argv[7];
30744
30745 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30746 --argc;
30747 if (argc == 2) {
30748 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30749 }
30750 if (argc == 6) {
30751 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30752 }
30753
30754 fail:
30755 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30756 return NULL;
30757 }
30758
30759
30760 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30761 PyObject *resultobj = 0;
30762 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30763 void *argp1 = 0 ;
30764 int res1 = 0 ;
30765 PyObject *swig_obj[1] ;
30766
30767 if (!args) SWIG_fail;
30768 swig_obj[0] = args;
30769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30770 if (!SWIG_IsOK(res1)) {
30771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30772 }
30773 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30774 {
30775 PyThreadState* __tstate = wxPyBeginAllowThreads();
30776 delete arg1;
30777
30778 wxPyEndAllowThreads(__tstate);
30779 if (PyErr_Occurred()) SWIG_fail;
30780 }
30781 resultobj = SWIG_Py_Void();
30782 return resultobj;
30783 fail:
30784 return NULL;
30785 }
30786
30787
30788 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30789 PyObject *resultobj = 0;
30790 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30791 void *argp1 = 0 ;
30792 int res1 = 0 ;
30793 PyObject *swig_obj[1] ;
30794
30795 if (!args) SWIG_fail;
30796 swig_obj[0] = args;
30797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
30798 if (!SWIG_IsOK(res1)) {
30799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30800 }
30801 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30802 {
30803 PyThreadState* __tstate = wxPyBeginAllowThreads();
30804 (arg1)->Clear();
30805 wxPyEndAllowThreads(__tstate);
30806 if (PyErr_Occurred()) SWIG_fail;
30807 }
30808 resultobj = SWIG_Py_Void();
30809 return resultobj;
30810 fail:
30811 return NULL;
30812 }
30813
30814
30815 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30816 PyObject *obj;
30817 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30818 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
30819 return SWIG_Py_Void();
30820 }
30821
30822 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30823 return SWIG_Python_InitShadowInstance(args);
30824 }
30825
30826 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30827 PyObject *resultobj = 0;
30828 int arg1 ;
30829 int arg2 ;
30830 int arg3 = (int) true ;
30831 int arg4 = (int) 1 ;
30832 wxImageList *result = 0 ;
30833 int val1 ;
30834 int ecode1 = 0 ;
30835 int val2 ;
30836 int ecode2 = 0 ;
30837 int val3 ;
30838 int ecode3 = 0 ;
30839 int val4 ;
30840 int ecode4 = 0 ;
30841 PyObject * obj0 = 0 ;
30842 PyObject * obj1 = 0 ;
30843 PyObject * obj2 = 0 ;
30844 PyObject * obj3 = 0 ;
30845 char * kwnames[] = {
30846 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
30847 };
30848
30849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30850 ecode1 = SWIG_AsVal_int(obj0, &val1);
30851 if (!SWIG_IsOK(ecode1)) {
30852 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
30853 }
30854 arg1 = static_cast< int >(val1);
30855 ecode2 = SWIG_AsVal_int(obj1, &val2);
30856 if (!SWIG_IsOK(ecode2)) {
30857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
30858 }
30859 arg2 = static_cast< int >(val2);
30860 if (obj2) {
30861 ecode3 = SWIG_AsVal_int(obj2, &val3);
30862 if (!SWIG_IsOK(ecode3)) {
30863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
30864 }
30865 arg3 = static_cast< int >(val3);
30866 }
30867 if (obj3) {
30868 ecode4 = SWIG_AsVal_int(obj3, &val4);
30869 if (!SWIG_IsOK(ecode4)) {
30870 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
30871 }
30872 arg4 = static_cast< int >(val4);
30873 }
30874 {
30875 if (!wxPyCheckForApp()) SWIG_fail;
30876 PyThreadState* __tstate = wxPyBeginAllowThreads();
30877 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
30878 wxPyEndAllowThreads(__tstate);
30879 if (PyErr_Occurred()) SWIG_fail;
30880 }
30881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
30882 return resultobj;
30883 fail:
30884 return NULL;
30885 }
30886
30887
30888 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30889 PyObject *resultobj = 0;
30890 wxImageList *arg1 = (wxImageList *) 0 ;
30891 void *argp1 = 0 ;
30892 int res1 = 0 ;
30893 PyObject *swig_obj[1] ;
30894
30895 if (!args) SWIG_fail;
30896 swig_obj[0] = args;
30897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30898 if (!SWIG_IsOK(res1)) {
30899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
30900 }
30901 arg1 = reinterpret_cast< wxImageList * >(argp1);
30902 {
30903 PyThreadState* __tstate = wxPyBeginAllowThreads();
30904 delete arg1;
30905
30906 wxPyEndAllowThreads(__tstate);
30907 if (PyErr_Occurred()) SWIG_fail;
30908 }
30909 resultobj = SWIG_Py_Void();
30910 return resultobj;
30911 fail:
30912 return NULL;
30913 }
30914
30915
30916 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30917 PyObject *resultobj = 0;
30918 wxImageList *arg1 = (wxImageList *) 0 ;
30919 wxBitmap *arg2 = 0 ;
30920 wxBitmap const &arg3_defvalue = wxNullBitmap ;
30921 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
30922 int result;
30923 void *argp1 = 0 ;
30924 int res1 = 0 ;
30925 void *argp2 = 0 ;
30926 int res2 = 0 ;
30927 void *argp3 = 0 ;
30928 int res3 = 0 ;
30929 PyObject * obj0 = 0 ;
30930 PyObject * obj1 = 0 ;
30931 PyObject * obj2 = 0 ;
30932 char * kwnames[] = {
30933 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
30934 };
30935
30936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30938 if (!SWIG_IsOK(res1)) {
30939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
30940 }
30941 arg1 = reinterpret_cast< wxImageList * >(argp1);
30942 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30943 if (!SWIG_IsOK(res2)) {
30944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30945 }
30946 if (!argp2) {
30947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30948 }
30949 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30950 if (obj2) {
30951 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30952 if (!SWIG_IsOK(res3)) {
30953 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30954 }
30955 if (!argp3) {
30956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30957 }
30958 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30959 }
30960 {
30961 PyThreadState* __tstate = wxPyBeginAllowThreads();
30962 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
30963 wxPyEndAllowThreads(__tstate);
30964 if (PyErr_Occurred()) SWIG_fail;
30965 }
30966 resultobj = SWIG_From_int(static_cast< int >(result));
30967 return resultobj;
30968 fail:
30969 return NULL;
30970 }
30971
30972
30973 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30974 PyObject *resultobj = 0;
30975 wxImageList *arg1 = (wxImageList *) 0 ;
30976 wxBitmap *arg2 = 0 ;
30977 wxColour *arg3 = 0 ;
30978 int result;
30979 void *argp1 = 0 ;
30980 int res1 = 0 ;
30981 void *argp2 = 0 ;
30982 int res2 = 0 ;
30983 wxColour temp3 ;
30984 PyObject * obj0 = 0 ;
30985 PyObject * obj1 = 0 ;
30986 PyObject * obj2 = 0 ;
30987 char * kwnames[] = {
30988 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
30989 };
30990
30991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30993 if (!SWIG_IsOK(res1)) {
30994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
30995 }
30996 arg1 = reinterpret_cast< wxImageList * >(argp1);
30997 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30998 if (!SWIG_IsOK(res2)) {
30999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31000 }
31001 if (!argp2) {
31002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31003 }
31004 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31005 {
31006 arg3 = &temp3;
31007 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31008 }
31009 {
31010 PyThreadState* __tstate = wxPyBeginAllowThreads();
31011 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31012 wxPyEndAllowThreads(__tstate);
31013 if (PyErr_Occurred()) SWIG_fail;
31014 }
31015 resultobj = SWIG_From_int(static_cast< int >(result));
31016 return resultobj;
31017 fail:
31018 return NULL;
31019 }
31020
31021
31022 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31023 PyObject *resultobj = 0;
31024 wxImageList *arg1 = (wxImageList *) 0 ;
31025 wxIcon *arg2 = 0 ;
31026 int result;
31027 void *argp1 = 0 ;
31028 int res1 = 0 ;
31029 void *argp2 = 0 ;
31030 int res2 = 0 ;
31031 PyObject * obj0 = 0 ;
31032 PyObject * obj1 = 0 ;
31033 char * kwnames[] = {
31034 (char *) "self",(char *) "icon", NULL
31035 };
31036
31037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31039 if (!SWIG_IsOK(res1)) {
31040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31041 }
31042 arg1 = reinterpret_cast< wxImageList * >(argp1);
31043 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31044 if (!SWIG_IsOK(res2)) {
31045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31046 }
31047 if (!argp2) {
31048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31049 }
31050 arg2 = reinterpret_cast< wxIcon * >(argp2);
31051 {
31052 PyThreadState* __tstate = wxPyBeginAllowThreads();
31053 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31054 wxPyEndAllowThreads(__tstate);
31055 if (PyErr_Occurred()) SWIG_fail;
31056 }
31057 resultobj = SWIG_From_int(static_cast< int >(result));
31058 return resultobj;
31059 fail:
31060 return NULL;
31061 }
31062
31063
31064 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31065 PyObject *resultobj = 0;
31066 wxImageList *arg1 = (wxImageList *) 0 ;
31067 int arg2 ;
31068 SwigValueWrapper<wxBitmap > result;
31069 void *argp1 = 0 ;
31070 int res1 = 0 ;
31071 int val2 ;
31072 int ecode2 = 0 ;
31073 PyObject * obj0 = 0 ;
31074 PyObject * obj1 = 0 ;
31075 char * kwnames[] = {
31076 (char *) "self",(char *) "index", NULL
31077 };
31078
31079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31081 if (!SWIG_IsOK(res1)) {
31082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31083 }
31084 arg1 = reinterpret_cast< wxImageList * >(argp1);
31085 ecode2 = SWIG_AsVal_int(obj1, &val2);
31086 if (!SWIG_IsOK(ecode2)) {
31087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31088 }
31089 arg2 = static_cast< int >(val2);
31090 {
31091 PyThreadState* __tstate = wxPyBeginAllowThreads();
31092 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31093 wxPyEndAllowThreads(__tstate);
31094 if (PyErr_Occurred()) SWIG_fail;
31095 }
31096 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31097 return resultobj;
31098 fail:
31099 return NULL;
31100 }
31101
31102
31103 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31104 PyObject *resultobj = 0;
31105 wxImageList *arg1 = (wxImageList *) 0 ;
31106 int arg2 ;
31107 wxIcon result;
31108 void *argp1 = 0 ;
31109 int res1 = 0 ;
31110 int val2 ;
31111 int ecode2 = 0 ;
31112 PyObject * obj0 = 0 ;
31113 PyObject * obj1 = 0 ;
31114 char * kwnames[] = {
31115 (char *) "self",(char *) "index", NULL
31116 };
31117
31118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31120 if (!SWIG_IsOK(res1)) {
31121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31122 }
31123 arg1 = reinterpret_cast< wxImageList * >(argp1);
31124 ecode2 = SWIG_AsVal_int(obj1, &val2);
31125 if (!SWIG_IsOK(ecode2)) {
31126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31127 }
31128 arg2 = static_cast< int >(val2);
31129 {
31130 PyThreadState* __tstate = wxPyBeginAllowThreads();
31131 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31132 wxPyEndAllowThreads(__tstate);
31133 if (PyErr_Occurred()) SWIG_fail;
31134 }
31135 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31136 return resultobj;
31137 fail:
31138 return NULL;
31139 }
31140
31141
31142 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31143 PyObject *resultobj = 0;
31144 wxImageList *arg1 = (wxImageList *) 0 ;
31145 int arg2 ;
31146 wxBitmap *arg3 = 0 ;
31147 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31148 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
31149 bool result;
31150 void *argp1 = 0 ;
31151 int res1 = 0 ;
31152 int val2 ;
31153 int ecode2 = 0 ;
31154 void *argp3 = 0 ;
31155 int res3 = 0 ;
31156 void *argp4 = 0 ;
31157 int res4 = 0 ;
31158 PyObject * obj0 = 0 ;
31159 PyObject * obj1 = 0 ;
31160 PyObject * obj2 = 0 ;
31161 PyObject * obj3 = 0 ;
31162 char * kwnames[] = {
31163 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
31164 };
31165
31166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31168 if (!SWIG_IsOK(res1)) {
31169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31170 }
31171 arg1 = reinterpret_cast< wxImageList * >(argp1);
31172 ecode2 = SWIG_AsVal_int(obj1, &val2);
31173 if (!SWIG_IsOK(ecode2)) {
31174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31175 }
31176 arg2 = static_cast< int >(val2);
31177 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31178 if (!SWIG_IsOK(res3)) {
31179 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31180 }
31181 if (!argp3) {
31182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31183 }
31184 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31185 if (obj3) {
31186 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31187 if (!SWIG_IsOK(res4)) {
31188 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31189 }
31190 if (!argp4) {
31191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31192 }
31193 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31194 }
31195 {
31196 PyThreadState* __tstate = wxPyBeginAllowThreads();
31197 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
31198 wxPyEndAllowThreads(__tstate);
31199 if (PyErr_Occurred()) SWIG_fail;
31200 }
31201 {
31202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31203 }
31204 return resultobj;
31205 fail:
31206 return NULL;
31207 }
31208
31209
31210 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31211 PyObject *resultobj = 0;
31212 wxImageList *arg1 = (wxImageList *) 0 ;
31213 int arg2 ;
31214 wxDC *arg3 = 0 ;
31215 int arg4 ;
31216 int arg5 ;
31217 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31218 bool arg7 = (bool) (bool)false ;
31219 bool result;
31220 void *argp1 = 0 ;
31221 int res1 = 0 ;
31222 int val2 ;
31223 int ecode2 = 0 ;
31224 void *argp3 = 0 ;
31225 int res3 = 0 ;
31226 int val4 ;
31227 int ecode4 = 0 ;
31228 int val5 ;
31229 int ecode5 = 0 ;
31230 int val6 ;
31231 int ecode6 = 0 ;
31232 bool val7 ;
31233 int ecode7 = 0 ;
31234 PyObject * obj0 = 0 ;
31235 PyObject * obj1 = 0 ;
31236 PyObject * obj2 = 0 ;
31237 PyObject * obj3 = 0 ;
31238 PyObject * obj4 = 0 ;
31239 PyObject * obj5 = 0 ;
31240 PyObject * obj6 = 0 ;
31241 char * kwnames[] = {
31242 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31243 };
31244
31245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31247 if (!SWIG_IsOK(res1)) {
31248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31249 }
31250 arg1 = reinterpret_cast< wxImageList * >(argp1);
31251 ecode2 = SWIG_AsVal_int(obj1, &val2);
31252 if (!SWIG_IsOK(ecode2)) {
31253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31254 }
31255 arg2 = static_cast< int >(val2);
31256 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31257 if (!SWIG_IsOK(res3)) {
31258 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31259 }
31260 if (!argp3) {
31261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31262 }
31263 arg3 = reinterpret_cast< wxDC * >(argp3);
31264 ecode4 = SWIG_AsVal_int(obj3, &val4);
31265 if (!SWIG_IsOK(ecode4)) {
31266 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31267 }
31268 arg4 = static_cast< int >(val4);
31269 ecode5 = SWIG_AsVal_int(obj4, &val5);
31270 if (!SWIG_IsOK(ecode5)) {
31271 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31272 }
31273 arg5 = static_cast< int >(val5);
31274 if (obj5) {
31275 ecode6 = SWIG_AsVal_int(obj5, &val6);
31276 if (!SWIG_IsOK(ecode6)) {
31277 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31278 }
31279 arg6 = static_cast< int >(val6);
31280 }
31281 if (obj6) {
31282 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31283 if (!SWIG_IsOK(ecode7)) {
31284 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31285 }
31286 arg7 = static_cast< bool >(val7);
31287 }
31288 {
31289 PyThreadState* __tstate = wxPyBeginAllowThreads();
31290 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31291 wxPyEndAllowThreads(__tstate);
31292 if (PyErr_Occurred()) SWIG_fail;
31293 }
31294 {
31295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31296 }
31297 return resultobj;
31298 fail:
31299 return NULL;
31300 }
31301
31302
31303 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31304 PyObject *resultobj = 0;
31305 wxImageList *arg1 = (wxImageList *) 0 ;
31306 int result;
31307 void *argp1 = 0 ;
31308 int res1 = 0 ;
31309 PyObject *swig_obj[1] ;
31310
31311 if (!args) SWIG_fail;
31312 swig_obj[0] = args;
31313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31314 if (!SWIG_IsOK(res1)) {
31315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31316 }
31317 arg1 = reinterpret_cast< wxImageList * >(argp1);
31318 {
31319 PyThreadState* __tstate = wxPyBeginAllowThreads();
31320 result = (int)(arg1)->GetImageCount();
31321 wxPyEndAllowThreads(__tstate);
31322 if (PyErr_Occurred()) SWIG_fail;
31323 }
31324 resultobj = SWIG_From_int(static_cast< int >(result));
31325 return resultobj;
31326 fail:
31327 return NULL;
31328 }
31329
31330
31331 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31332 PyObject *resultobj = 0;
31333 wxImageList *arg1 = (wxImageList *) 0 ;
31334 int arg2 ;
31335 bool result;
31336 void *argp1 = 0 ;
31337 int res1 = 0 ;
31338 int val2 ;
31339 int ecode2 = 0 ;
31340 PyObject * obj0 = 0 ;
31341 PyObject * obj1 = 0 ;
31342 char * kwnames[] = {
31343 (char *) "self",(char *) "index", NULL
31344 };
31345
31346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31348 if (!SWIG_IsOK(res1)) {
31349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31350 }
31351 arg1 = reinterpret_cast< wxImageList * >(argp1);
31352 ecode2 = SWIG_AsVal_int(obj1, &val2);
31353 if (!SWIG_IsOK(ecode2)) {
31354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31355 }
31356 arg2 = static_cast< int >(val2);
31357 {
31358 PyThreadState* __tstate = wxPyBeginAllowThreads();
31359 result = (bool)(arg1)->Remove(arg2);
31360 wxPyEndAllowThreads(__tstate);
31361 if (PyErr_Occurred()) SWIG_fail;
31362 }
31363 {
31364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31365 }
31366 return resultobj;
31367 fail:
31368 return NULL;
31369 }
31370
31371
31372 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31373 PyObject *resultobj = 0;
31374 wxImageList *arg1 = (wxImageList *) 0 ;
31375 bool result;
31376 void *argp1 = 0 ;
31377 int res1 = 0 ;
31378 PyObject *swig_obj[1] ;
31379
31380 if (!args) SWIG_fail;
31381 swig_obj[0] = args;
31382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31383 if (!SWIG_IsOK(res1)) {
31384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31385 }
31386 arg1 = reinterpret_cast< wxImageList * >(argp1);
31387 {
31388 PyThreadState* __tstate = wxPyBeginAllowThreads();
31389 result = (bool)(arg1)->RemoveAll();
31390 wxPyEndAllowThreads(__tstate);
31391 if (PyErr_Occurred()) SWIG_fail;
31392 }
31393 {
31394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31395 }
31396 return resultobj;
31397 fail:
31398 return NULL;
31399 }
31400
31401
31402 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31403 PyObject *resultobj = 0;
31404 wxImageList *arg1 = (wxImageList *) 0 ;
31405 int arg2 ;
31406 int *arg3 = 0 ;
31407 int *arg4 = 0 ;
31408 void *argp1 = 0 ;
31409 int res1 = 0 ;
31410 int val2 ;
31411 int ecode2 = 0 ;
31412 int temp3 ;
31413 int res3 = SWIG_TMPOBJ ;
31414 int temp4 ;
31415 int res4 = SWIG_TMPOBJ ;
31416 PyObject * obj0 = 0 ;
31417 PyObject * obj1 = 0 ;
31418 char * kwnames[] = {
31419 (char *) "self",(char *) "index", NULL
31420 };
31421
31422 arg3 = &temp3;
31423 arg4 = &temp4;
31424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31426 if (!SWIG_IsOK(res1)) {
31427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31428 }
31429 arg1 = reinterpret_cast< wxImageList * >(argp1);
31430 ecode2 = SWIG_AsVal_int(obj1, &val2);
31431 if (!SWIG_IsOK(ecode2)) {
31432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31433 }
31434 arg2 = static_cast< int >(val2);
31435 {
31436 PyThreadState* __tstate = wxPyBeginAllowThreads();
31437 (arg1)->GetSize(arg2,*arg3,*arg4);
31438 wxPyEndAllowThreads(__tstate);
31439 if (PyErr_Occurred()) SWIG_fail;
31440 }
31441 resultobj = SWIG_Py_Void();
31442 if (SWIG_IsTmpObj(res3)) {
31443 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31444 } else {
31445 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31446 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31447 }
31448 if (SWIG_IsTmpObj(res4)) {
31449 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31450 } else {
31451 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31452 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31453 }
31454 return resultobj;
31455 fail:
31456 return NULL;
31457 }
31458
31459
31460 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31461 PyObject *obj;
31462 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31463 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31464 return SWIG_Py_Void();
31465 }
31466
31467 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31468 return SWIG_Python_InitShadowInstance(args);
31469 }
31470
31471 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31472 PyObject *resultobj = 0;
31473 wxStockGDI *result = 0 ;
31474
31475 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31476 {
31477 PyThreadState* __tstate = wxPyBeginAllowThreads();
31478 result = (wxStockGDI *)new wxStockGDI();
31479 wxPyEndAllowThreads(__tstate);
31480 if (PyErr_Occurred()) SWIG_fail;
31481 }
31482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31483 return resultobj;
31484 fail:
31485 return NULL;
31486 }
31487
31488
31489 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31490 PyObject *resultobj = 0;
31491 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31492 void *argp1 = 0 ;
31493 int res1 = 0 ;
31494 PyObject *swig_obj[1] ;
31495
31496 if (!args) SWIG_fail;
31497 swig_obj[0] = args;
31498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31499 if (!SWIG_IsOK(res1)) {
31500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31501 }
31502 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31503 {
31504 PyThreadState* __tstate = wxPyBeginAllowThreads();
31505 delete arg1;
31506
31507 wxPyEndAllowThreads(__tstate);
31508 if (PyErr_Occurred()) SWIG_fail;
31509 }
31510 resultobj = SWIG_Py_Void();
31511 return resultobj;
31512 fail:
31513 return NULL;
31514 }
31515
31516
31517 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31518 PyObject *resultobj = 0;
31519
31520 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31521 {
31522 PyThreadState* __tstate = wxPyBeginAllowThreads();
31523 wxStockGDI::DeleteAll();
31524 wxPyEndAllowThreads(__tstate);
31525 if (PyErr_Occurred()) SWIG_fail;
31526 }
31527 resultobj = SWIG_Py_Void();
31528 return resultobj;
31529 fail:
31530 return NULL;
31531 }
31532
31533
31534 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31535 PyObject *resultobj = 0;
31536 wxStockGDI *result = 0 ;
31537
31538 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31539 {
31540 PyThreadState* __tstate = wxPyBeginAllowThreads();
31541 {
31542 wxStockGDI &_result_ref = wxStockGDI::instance();
31543 result = (wxStockGDI *) &_result_ref;
31544 }
31545 wxPyEndAllowThreads(__tstate);
31546 if (PyErr_Occurred()) SWIG_fail;
31547 }
31548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31549 return resultobj;
31550 fail:
31551 return NULL;
31552 }
31553
31554
31555 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31556 PyObject *resultobj = 0;
31557 wxStockGDI::Item arg1 ;
31558 wxBrush *result = 0 ;
31559 int val1 ;
31560 int ecode1 = 0 ;
31561 PyObject * obj0 = 0 ;
31562 char * kwnames[] = {
31563 (char *) "item", NULL
31564 };
31565
31566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31567 ecode1 = SWIG_AsVal_int(obj0, &val1);
31568 if (!SWIG_IsOK(ecode1)) {
31569 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31570 }
31571 arg1 = static_cast< wxStockGDI::Item >(val1);
31572 {
31573 PyThreadState* __tstate = wxPyBeginAllowThreads();
31574 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31575 wxPyEndAllowThreads(__tstate);
31576 if (PyErr_Occurred()) SWIG_fail;
31577 }
31578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31579 return resultobj;
31580 fail:
31581 return NULL;
31582 }
31583
31584
31585 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31586 PyObject *resultobj = 0;
31587 wxStockGDI::Item arg1 ;
31588 wxColour *result = 0 ;
31589 int val1 ;
31590 int ecode1 = 0 ;
31591 PyObject * obj0 = 0 ;
31592 char * kwnames[] = {
31593 (char *) "item", NULL
31594 };
31595
31596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31597 ecode1 = SWIG_AsVal_int(obj0, &val1);
31598 if (!SWIG_IsOK(ecode1)) {
31599 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31600 }
31601 arg1 = static_cast< wxStockGDI::Item >(val1);
31602 {
31603 PyThreadState* __tstate = wxPyBeginAllowThreads();
31604 result = (wxColour *)wxStockGDI::GetColour(arg1);
31605 wxPyEndAllowThreads(__tstate);
31606 if (PyErr_Occurred()) SWIG_fail;
31607 }
31608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31609 return resultobj;
31610 fail:
31611 return NULL;
31612 }
31613
31614
31615 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31616 PyObject *resultobj = 0;
31617 wxStockGDI::Item arg1 ;
31618 wxCursor *result = 0 ;
31619 int val1 ;
31620 int ecode1 = 0 ;
31621 PyObject * obj0 = 0 ;
31622 char * kwnames[] = {
31623 (char *) "item", NULL
31624 };
31625
31626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31627 ecode1 = SWIG_AsVal_int(obj0, &val1);
31628 if (!SWIG_IsOK(ecode1)) {
31629 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31630 }
31631 arg1 = static_cast< wxStockGDI::Item >(val1);
31632 {
31633 PyThreadState* __tstate = wxPyBeginAllowThreads();
31634 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31635 wxPyEndAllowThreads(__tstate);
31636 if (PyErr_Occurred()) SWIG_fail;
31637 }
31638 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31639 return resultobj;
31640 fail:
31641 return NULL;
31642 }
31643
31644
31645 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31646 PyObject *resultobj = 0;
31647 wxStockGDI::Item arg1 ;
31648 wxPen *result = 0 ;
31649 int val1 ;
31650 int ecode1 = 0 ;
31651 PyObject * obj0 = 0 ;
31652 char * kwnames[] = {
31653 (char *) "item", NULL
31654 };
31655
31656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31657 ecode1 = SWIG_AsVal_int(obj0, &val1);
31658 if (!SWIG_IsOK(ecode1)) {
31659 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31660 }
31661 arg1 = static_cast< wxStockGDI::Item >(val1);
31662 {
31663 PyThreadState* __tstate = wxPyBeginAllowThreads();
31664 result = (wxPen *)wxStockGDI::GetPen(arg1);
31665 wxPyEndAllowThreads(__tstate);
31666 if (PyErr_Occurred()) SWIG_fail;
31667 }
31668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31669 return resultobj;
31670 fail:
31671 return NULL;
31672 }
31673
31674
31675 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31676 PyObject *resultobj = 0;
31677 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31678 wxStockGDI::Item arg2 ;
31679 wxFont *result = 0 ;
31680 void *argp1 = 0 ;
31681 int res1 = 0 ;
31682 int val2 ;
31683 int ecode2 = 0 ;
31684 PyObject * obj0 = 0 ;
31685 PyObject * obj1 = 0 ;
31686 char * kwnames[] = {
31687 (char *) "self",(char *) "item", NULL
31688 };
31689
31690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31692 if (!SWIG_IsOK(res1)) {
31693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31694 }
31695 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31696 ecode2 = SWIG_AsVal_int(obj1, &val2);
31697 if (!SWIG_IsOK(ecode2)) {
31698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31699 }
31700 arg2 = static_cast< wxStockGDI::Item >(val2);
31701 {
31702 PyThreadState* __tstate = wxPyBeginAllowThreads();
31703 result = (wxFont *)(arg1)->GetFont(arg2);
31704 wxPyEndAllowThreads(__tstate);
31705 if (PyErr_Occurred()) SWIG_fail;
31706 }
31707 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31708 return resultobj;
31709 fail:
31710 return NULL;
31711 }
31712
31713
31714 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31715 PyObject *obj;
31716 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31717 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31718 return SWIG_Py_Void();
31719 }
31720
31721 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31722 return SWIG_Python_InitShadowInstance(args);
31723 }
31724
31725 SWIGINTERN int NullBitmap_set(PyObject *) {
31726 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31727 return 1;
31728 }
31729
31730
31731 SWIGINTERN PyObject *NullBitmap_get(void) {
31732 PyObject *pyobj = 0;
31733
31734 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31735 return pyobj;
31736 }
31737
31738
31739 SWIGINTERN int NullIcon_set(PyObject *) {
31740 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31741 return 1;
31742 }
31743
31744
31745 SWIGINTERN PyObject *NullIcon_get(void) {
31746 PyObject *pyobj = 0;
31747
31748 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31749 return pyobj;
31750 }
31751
31752
31753 SWIGINTERN int NullCursor_set(PyObject *) {
31754 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31755 return 1;
31756 }
31757
31758
31759 SWIGINTERN PyObject *NullCursor_get(void) {
31760 PyObject *pyobj = 0;
31761
31762 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31763 return pyobj;
31764 }
31765
31766
31767 SWIGINTERN int NullPen_set(PyObject *) {
31768 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31769 return 1;
31770 }
31771
31772
31773 SWIGINTERN PyObject *NullPen_get(void) {
31774 PyObject *pyobj = 0;
31775
31776 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31777 return pyobj;
31778 }
31779
31780
31781 SWIGINTERN int NullBrush_set(PyObject *) {
31782 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31783 return 1;
31784 }
31785
31786
31787 SWIGINTERN PyObject *NullBrush_get(void) {
31788 PyObject *pyobj = 0;
31789
31790 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31791 return pyobj;
31792 }
31793
31794
31795 SWIGINTERN int NullPalette_set(PyObject *) {
31796 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
31797 return 1;
31798 }
31799
31800
31801 SWIGINTERN PyObject *NullPalette_get(void) {
31802 PyObject *pyobj = 0;
31803
31804 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
31805 return pyobj;
31806 }
31807
31808
31809 SWIGINTERN int NullFont_set(PyObject *) {
31810 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
31811 return 1;
31812 }
31813
31814
31815 SWIGINTERN PyObject *NullFont_get(void) {
31816 PyObject *pyobj = 0;
31817
31818 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
31819 return pyobj;
31820 }
31821
31822
31823 SWIGINTERN int NullColour_set(PyObject *) {
31824 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
31825 return 1;
31826 }
31827
31828
31829 SWIGINTERN PyObject *NullColour_get(void) {
31830 PyObject *pyobj = 0;
31831
31832 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
31833 return pyobj;
31834 }
31835
31836
31837 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31838 PyObject *resultobj = 0;
31839 wxGDIObjListBase *result = 0 ;
31840
31841 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
31842 {
31843 PyThreadState* __tstate = wxPyBeginAllowThreads();
31844 result = (wxGDIObjListBase *)new wxGDIObjListBase();
31845 wxPyEndAllowThreads(__tstate);
31846 if (PyErr_Occurred()) SWIG_fail;
31847 }
31848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
31849 return resultobj;
31850 fail:
31851 return NULL;
31852 }
31853
31854
31855 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31856 PyObject *resultobj = 0;
31857 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
31858 void *argp1 = 0 ;
31859 int res1 = 0 ;
31860 PyObject *swig_obj[1] ;
31861
31862 if (!args) SWIG_fail;
31863 swig_obj[0] = args;
31864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
31865 if (!SWIG_IsOK(res1)) {
31866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
31867 }
31868 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
31869 {
31870 PyThreadState* __tstate = wxPyBeginAllowThreads();
31871 delete arg1;
31872
31873 wxPyEndAllowThreads(__tstate);
31874 if (PyErr_Occurred()) SWIG_fail;
31875 }
31876 resultobj = SWIG_Py_Void();
31877 return resultobj;
31878 fail:
31879 return NULL;
31880 }
31881
31882
31883 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31884 PyObject *obj;
31885 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31886 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
31887 return SWIG_Py_Void();
31888 }
31889
31890 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31891 return SWIG_Python_InitShadowInstance(args);
31892 }
31893
31894 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31895 PyObject *resultobj = 0;
31896 wxPenList *arg1 = (wxPenList *) 0 ;
31897 wxColour *arg2 = 0 ;
31898 int arg3 ;
31899 int arg4 ;
31900 wxPen *result = 0 ;
31901 void *argp1 = 0 ;
31902 int res1 = 0 ;
31903 wxColour temp2 ;
31904 int val3 ;
31905 int ecode3 = 0 ;
31906 int val4 ;
31907 int ecode4 = 0 ;
31908 PyObject * obj0 = 0 ;
31909 PyObject * obj1 = 0 ;
31910 PyObject * obj2 = 0 ;
31911 PyObject * obj3 = 0 ;
31912 char * kwnames[] = {
31913 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
31914 };
31915
31916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31918 if (!SWIG_IsOK(res1)) {
31919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
31920 }
31921 arg1 = reinterpret_cast< wxPenList * >(argp1);
31922 {
31923 arg2 = &temp2;
31924 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31925 }
31926 ecode3 = SWIG_AsVal_int(obj2, &val3);
31927 if (!SWIG_IsOK(ecode3)) {
31928 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
31929 }
31930 arg3 = static_cast< int >(val3);
31931 ecode4 = SWIG_AsVal_int(obj3, &val4);
31932 if (!SWIG_IsOK(ecode4)) {
31933 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
31934 }
31935 arg4 = static_cast< int >(val4);
31936 {
31937 PyThreadState* __tstate = wxPyBeginAllowThreads();
31938 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
31939 wxPyEndAllowThreads(__tstate);
31940 if (PyErr_Occurred()) SWIG_fail;
31941 }
31942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31943 return resultobj;
31944 fail:
31945 return NULL;
31946 }
31947
31948
31949 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31950 PyObject *resultobj = 0;
31951 wxPenList *arg1 = (wxPenList *) 0 ;
31952 wxPen *arg2 = (wxPen *) 0 ;
31953 void *argp1 = 0 ;
31954 int res1 = 0 ;
31955 void *argp2 = 0 ;
31956 int res2 = 0 ;
31957 PyObject * obj0 = 0 ;
31958 PyObject * obj1 = 0 ;
31959 char * kwnames[] = {
31960 (char *) "self",(char *) "pen", NULL
31961 };
31962
31963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
31964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31965 if (!SWIG_IsOK(res1)) {
31966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
31967 }
31968 arg1 = reinterpret_cast< wxPenList * >(argp1);
31969 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31970 if (!SWIG_IsOK(res2)) {
31971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
31972 }
31973 arg2 = reinterpret_cast< wxPen * >(argp2);
31974 {
31975 PyThreadState* __tstate = wxPyBeginAllowThreads();
31976 (arg1)->AddPen(arg2);
31977 wxPyEndAllowThreads(__tstate);
31978 if (PyErr_Occurred()) SWIG_fail;
31979 }
31980 resultobj = SWIG_Py_Void();
31981 return resultobj;
31982 fail:
31983 return NULL;
31984 }
31985
31986
31987 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31988 PyObject *resultobj = 0;
31989 wxPenList *arg1 = (wxPenList *) 0 ;
31990 wxPen *arg2 = (wxPen *) 0 ;
31991 void *argp1 = 0 ;
31992 int res1 = 0 ;
31993 void *argp2 = 0 ;
31994 int res2 = 0 ;
31995 PyObject * obj0 = 0 ;
31996 PyObject * obj1 = 0 ;
31997 char * kwnames[] = {
31998 (char *) "self",(char *) "pen", NULL
31999 };
32000
32001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32003 if (!SWIG_IsOK(res1)) {
32004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32005 }
32006 arg1 = reinterpret_cast< wxPenList * >(argp1);
32007 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32008 if (!SWIG_IsOK(res2)) {
32009 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32010 }
32011 arg2 = reinterpret_cast< wxPen * >(argp2);
32012 {
32013 PyThreadState* __tstate = wxPyBeginAllowThreads();
32014 (arg1)->RemovePen(arg2);
32015 wxPyEndAllowThreads(__tstate);
32016 if (PyErr_Occurred()) SWIG_fail;
32017 }
32018 resultobj = SWIG_Py_Void();
32019 return resultobj;
32020 fail:
32021 return NULL;
32022 }
32023
32024
32025 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32026 PyObject *obj;
32027 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32028 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32029 return SWIG_Py_Void();
32030 }
32031
32032 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32033 PyObject *resultobj = 0;
32034 wxBrushList *arg1 = (wxBrushList *) 0 ;
32035 wxColour *arg2 = 0 ;
32036 int arg3 = (int) wxSOLID ;
32037 wxBrush *result = 0 ;
32038 void *argp1 = 0 ;
32039 int res1 = 0 ;
32040 wxColour temp2 ;
32041 int val3 ;
32042 int ecode3 = 0 ;
32043 PyObject * obj0 = 0 ;
32044 PyObject * obj1 = 0 ;
32045 PyObject * obj2 = 0 ;
32046 char * kwnames[] = {
32047 (char *) "self",(char *) "colour",(char *) "style", NULL
32048 };
32049
32050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32052 if (!SWIG_IsOK(res1)) {
32053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32054 }
32055 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32056 {
32057 arg2 = &temp2;
32058 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32059 }
32060 if (obj2) {
32061 ecode3 = SWIG_AsVal_int(obj2, &val3);
32062 if (!SWIG_IsOK(ecode3)) {
32063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32064 }
32065 arg3 = static_cast< int >(val3);
32066 }
32067 {
32068 PyThreadState* __tstate = wxPyBeginAllowThreads();
32069 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32070 wxPyEndAllowThreads(__tstate);
32071 if (PyErr_Occurred()) SWIG_fail;
32072 }
32073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32074 return resultobj;
32075 fail:
32076 return NULL;
32077 }
32078
32079
32080 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32081 PyObject *resultobj = 0;
32082 wxBrushList *arg1 = (wxBrushList *) 0 ;
32083 wxBrush *arg2 = (wxBrush *) 0 ;
32084 void *argp1 = 0 ;
32085 int res1 = 0 ;
32086 void *argp2 = 0 ;
32087 int res2 = 0 ;
32088 PyObject * obj0 = 0 ;
32089 PyObject * obj1 = 0 ;
32090 char * kwnames[] = {
32091 (char *) "self",(char *) "brush", NULL
32092 };
32093
32094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32096 if (!SWIG_IsOK(res1)) {
32097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32098 }
32099 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32100 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32101 if (!SWIG_IsOK(res2)) {
32102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32103 }
32104 arg2 = reinterpret_cast< wxBrush * >(argp2);
32105 {
32106 PyThreadState* __tstate = wxPyBeginAllowThreads();
32107 (arg1)->AddBrush(arg2);
32108 wxPyEndAllowThreads(__tstate);
32109 if (PyErr_Occurred()) SWIG_fail;
32110 }
32111 resultobj = SWIG_Py_Void();
32112 return resultobj;
32113 fail:
32114 return NULL;
32115 }
32116
32117
32118 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32119 PyObject *resultobj = 0;
32120 wxBrushList *arg1 = (wxBrushList *) 0 ;
32121 wxBrush *arg2 = (wxBrush *) 0 ;
32122 void *argp1 = 0 ;
32123 int res1 = 0 ;
32124 void *argp2 = 0 ;
32125 int res2 = 0 ;
32126 PyObject * obj0 = 0 ;
32127 PyObject * obj1 = 0 ;
32128 char * kwnames[] = {
32129 (char *) "self",(char *) "brush", NULL
32130 };
32131
32132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32134 if (!SWIG_IsOK(res1)) {
32135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32136 }
32137 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32138 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32139 if (!SWIG_IsOK(res2)) {
32140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32141 }
32142 arg2 = reinterpret_cast< wxBrush * >(argp2);
32143 {
32144 PyThreadState* __tstate = wxPyBeginAllowThreads();
32145 (arg1)->RemoveBrush(arg2);
32146 wxPyEndAllowThreads(__tstate);
32147 if (PyErr_Occurred()) SWIG_fail;
32148 }
32149 resultobj = SWIG_Py_Void();
32150 return resultobj;
32151 fail:
32152 return NULL;
32153 }
32154
32155
32156 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32157 PyObject *obj;
32158 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32159 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32160 return SWIG_Py_Void();
32161 }
32162
32163 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32164 PyObject *resultobj = 0;
32165 wxFontList *arg1 = (wxFontList *) 0 ;
32166 int arg2 ;
32167 int arg3 ;
32168 int arg4 ;
32169 int arg5 ;
32170 bool arg6 = (bool) false ;
32171 wxString const &arg7_defvalue = wxPyEmptyString ;
32172 wxString *arg7 = (wxString *) &arg7_defvalue ;
32173 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32174 wxFont *result = 0 ;
32175 void *argp1 = 0 ;
32176 int res1 = 0 ;
32177 int val2 ;
32178 int ecode2 = 0 ;
32179 int val3 ;
32180 int ecode3 = 0 ;
32181 int val4 ;
32182 int ecode4 = 0 ;
32183 int val5 ;
32184 int ecode5 = 0 ;
32185 bool val6 ;
32186 int ecode6 = 0 ;
32187 bool temp7 = false ;
32188 int val8 ;
32189 int ecode8 = 0 ;
32190 PyObject * obj0 = 0 ;
32191 PyObject * obj1 = 0 ;
32192 PyObject * obj2 = 0 ;
32193 PyObject * obj3 = 0 ;
32194 PyObject * obj4 = 0 ;
32195 PyObject * obj5 = 0 ;
32196 PyObject * obj6 = 0 ;
32197 PyObject * obj7 = 0 ;
32198 char * kwnames[] = {
32199 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
32200 };
32201
32202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32204 if (!SWIG_IsOK(res1)) {
32205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32206 }
32207 arg1 = reinterpret_cast< wxFontList * >(argp1);
32208 ecode2 = SWIG_AsVal_int(obj1, &val2);
32209 if (!SWIG_IsOK(ecode2)) {
32210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32211 }
32212 arg2 = static_cast< int >(val2);
32213 ecode3 = SWIG_AsVal_int(obj2, &val3);
32214 if (!SWIG_IsOK(ecode3)) {
32215 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32216 }
32217 arg3 = static_cast< int >(val3);
32218 ecode4 = SWIG_AsVal_int(obj3, &val4);
32219 if (!SWIG_IsOK(ecode4)) {
32220 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32221 }
32222 arg4 = static_cast< int >(val4);
32223 ecode5 = SWIG_AsVal_int(obj4, &val5);
32224 if (!SWIG_IsOK(ecode5)) {
32225 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32226 }
32227 arg5 = static_cast< int >(val5);
32228 if (obj5) {
32229 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32230 if (!SWIG_IsOK(ecode6)) {
32231 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32232 }
32233 arg6 = static_cast< bool >(val6);
32234 }
32235 if (obj6) {
32236 {
32237 arg7 = wxString_in_helper(obj6);
32238 if (arg7 == NULL) SWIG_fail;
32239 temp7 = true;
32240 }
32241 }
32242 if (obj7) {
32243 ecode8 = SWIG_AsVal_int(obj7, &val8);
32244 if (!SWIG_IsOK(ecode8)) {
32245 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
32246 }
32247 arg8 = static_cast< wxFontEncoding >(val8);
32248 }
32249 {
32250 PyThreadState* __tstate = wxPyBeginAllowThreads();
32251 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
32252 wxPyEndAllowThreads(__tstate);
32253 if (PyErr_Occurred()) SWIG_fail;
32254 }
32255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32256 {
32257 if (temp7)
32258 delete arg7;
32259 }
32260 return resultobj;
32261 fail:
32262 {
32263 if (temp7)
32264 delete arg7;
32265 }
32266 return NULL;
32267 }
32268
32269
32270 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32271 PyObject *resultobj = 0;
32272 wxFontList *arg1 = (wxFontList *) 0 ;
32273 wxFont *arg2 = (wxFont *) 0 ;
32274 void *argp1 = 0 ;
32275 int res1 = 0 ;
32276 void *argp2 = 0 ;
32277 int res2 = 0 ;
32278 PyObject * obj0 = 0 ;
32279 PyObject * obj1 = 0 ;
32280 char * kwnames[] = {
32281 (char *) "self",(char *) "font", NULL
32282 };
32283
32284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32286 if (!SWIG_IsOK(res1)) {
32287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32288 }
32289 arg1 = reinterpret_cast< wxFontList * >(argp1);
32290 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32291 if (!SWIG_IsOK(res2)) {
32292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
32293 }
32294 arg2 = reinterpret_cast< wxFont * >(argp2);
32295 {
32296 PyThreadState* __tstate = wxPyBeginAllowThreads();
32297 (arg1)->AddFont(arg2);
32298 wxPyEndAllowThreads(__tstate);
32299 if (PyErr_Occurred()) SWIG_fail;
32300 }
32301 resultobj = SWIG_Py_Void();
32302 return resultobj;
32303 fail:
32304 return NULL;
32305 }
32306
32307
32308 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32309 PyObject *resultobj = 0;
32310 wxFontList *arg1 = (wxFontList *) 0 ;
32311 wxFont *arg2 = (wxFont *) 0 ;
32312 void *argp1 = 0 ;
32313 int res1 = 0 ;
32314 void *argp2 = 0 ;
32315 int res2 = 0 ;
32316 PyObject * obj0 = 0 ;
32317 PyObject * obj1 = 0 ;
32318 char * kwnames[] = {
32319 (char *) "self",(char *) "font", NULL
32320 };
32321
32322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32324 if (!SWIG_IsOK(res1)) {
32325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32326 }
32327 arg1 = reinterpret_cast< wxFontList * >(argp1);
32328 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32329 if (!SWIG_IsOK(res2)) {
32330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32331 }
32332 arg2 = reinterpret_cast< wxFont * >(argp2);
32333 {
32334 PyThreadState* __tstate = wxPyBeginAllowThreads();
32335 (arg1)->RemoveFont(arg2);
32336 wxPyEndAllowThreads(__tstate);
32337 if (PyErr_Occurred()) SWIG_fail;
32338 }
32339 resultobj = SWIG_Py_Void();
32340 return resultobj;
32341 fail:
32342 return NULL;
32343 }
32344
32345
32346 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32347 PyObject *obj;
32348 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32349 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
32350 return SWIG_Py_Void();
32351 }
32352
32353 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32354 PyObject *resultobj = 0;
32355 wxColourDatabase *result = 0 ;
32356
32357 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32358 {
32359 if (!wxPyCheckForApp()) SWIG_fail;
32360 PyThreadState* __tstate = wxPyBeginAllowThreads();
32361 result = (wxColourDatabase *)new wxColourDatabase();
32362 wxPyEndAllowThreads(__tstate);
32363 if (PyErr_Occurred()) SWIG_fail;
32364 }
32365 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32366 return resultobj;
32367 fail:
32368 return NULL;
32369 }
32370
32371
32372 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32373 PyObject *resultobj = 0;
32374 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32375 void *argp1 = 0 ;
32376 int res1 = 0 ;
32377 PyObject *swig_obj[1] ;
32378
32379 if (!args) SWIG_fail;
32380 swig_obj[0] = args;
32381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32382 if (!SWIG_IsOK(res1)) {
32383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32384 }
32385 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32386 {
32387 PyThreadState* __tstate = wxPyBeginAllowThreads();
32388 delete arg1;
32389
32390 wxPyEndAllowThreads(__tstate);
32391 if (PyErr_Occurred()) SWIG_fail;
32392 }
32393 resultobj = SWIG_Py_Void();
32394 return resultobj;
32395 fail:
32396 return NULL;
32397 }
32398
32399
32400 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32401 PyObject *resultobj = 0;
32402 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32403 wxString *arg2 = 0 ;
32404 wxColour result;
32405 void *argp1 = 0 ;
32406 int res1 = 0 ;
32407 bool temp2 = false ;
32408 PyObject * obj0 = 0 ;
32409 PyObject * obj1 = 0 ;
32410 char * kwnames[] = {
32411 (char *) "self",(char *) "name", NULL
32412 };
32413
32414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32416 if (!SWIG_IsOK(res1)) {
32417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32418 }
32419 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32420 {
32421 arg2 = wxString_in_helper(obj1);
32422 if (arg2 == NULL) SWIG_fail;
32423 temp2 = true;
32424 }
32425 {
32426 PyThreadState* __tstate = wxPyBeginAllowThreads();
32427 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32428 wxPyEndAllowThreads(__tstate);
32429 if (PyErr_Occurred()) SWIG_fail;
32430 }
32431 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32432 {
32433 if (temp2)
32434 delete arg2;
32435 }
32436 return resultobj;
32437 fail:
32438 {
32439 if (temp2)
32440 delete arg2;
32441 }
32442 return NULL;
32443 }
32444
32445
32446 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32447 PyObject *resultobj = 0;
32448 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32449 wxColour *arg2 = 0 ;
32450 wxString result;
32451 void *argp1 = 0 ;
32452 int res1 = 0 ;
32453 wxColour temp2 ;
32454 PyObject * obj0 = 0 ;
32455 PyObject * obj1 = 0 ;
32456 char * kwnames[] = {
32457 (char *) "self",(char *) "colour", NULL
32458 };
32459
32460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32462 if (!SWIG_IsOK(res1)) {
32463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32464 }
32465 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32466 {
32467 arg2 = &temp2;
32468 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32469 }
32470 {
32471 PyThreadState* __tstate = wxPyBeginAllowThreads();
32472 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32473 wxPyEndAllowThreads(__tstate);
32474 if (PyErr_Occurred()) SWIG_fail;
32475 }
32476 {
32477 #if wxUSE_UNICODE
32478 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32479 #else
32480 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32481 #endif
32482 }
32483 return resultobj;
32484 fail:
32485 return NULL;
32486 }
32487
32488
32489 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32490 PyObject *resultobj = 0;
32491 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32492 wxString *arg2 = 0 ;
32493 wxColour *arg3 = 0 ;
32494 void *argp1 = 0 ;
32495 int res1 = 0 ;
32496 bool temp2 = false ;
32497 wxColour temp3 ;
32498 PyObject * obj0 = 0 ;
32499 PyObject * obj1 = 0 ;
32500 PyObject * obj2 = 0 ;
32501 char * kwnames[] = {
32502 (char *) "self",(char *) "name",(char *) "colour", NULL
32503 };
32504
32505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32507 if (!SWIG_IsOK(res1)) {
32508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32509 }
32510 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32511 {
32512 arg2 = wxString_in_helper(obj1);
32513 if (arg2 == NULL) SWIG_fail;
32514 temp2 = true;
32515 }
32516 {
32517 arg3 = &temp3;
32518 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32519 }
32520 {
32521 PyThreadState* __tstate = wxPyBeginAllowThreads();
32522 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32523 wxPyEndAllowThreads(__tstate);
32524 if (PyErr_Occurred()) SWIG_fail;
32525 }
32526 resultobj = SWIG_Py_Void();
32527 {
32528 if (temp2)
32529 delete arg2;
32530 }
32531 return resultobj;
32532 fail:
32533 {
32534 if (temp2)
32535 delete arg2;
32536 }
32537 return NULL;
32538 }
32539
32540
32541 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32542 PyObject *resultobj = 0;
32543 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32544 wxString *arg2 = 0 ;
32545 int arg3 ;
32546 int arg4 ;
32547 int arg5 ;
32548 void *argp1 = 0 ;
32549 int res1 = 0 ;
32550 bool temp2 = false ;
32551 int val3 ;
32552 int ecode3 = 0 ;
32553 int val4 ;
32554 int ecode4 = 0 ;
32555 int val5 ;
32556 int ecode5 = 0 ;
32557 PyObject * obj0 = 0 ;
32558 PyObject * obj1 = 0 ;
32559 PyObject * obj2 = 0 ;
32560 PyObject * obj3 = 0 ;
32561 PyObject * obj4 = 0 ;
32562 char * kwnames[] = {
32563 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
32564 };
32565
32566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32568 if (!SWIG_IsOK(res1)) {
32569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32570 }
32571 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32572 {
32573 arg2 = wxString_in_helper(obj1);
32574 if (arg2 == NULL) SWIG_fail;
32575 temp2 = true;
32576 }
32577 ecode3 = SWIG_AsVal_int(obj2, &val3);
32578 if (!SWIG_IsOK(ecode3)) {
32579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
32580 }
32581 arg3 = static_cast< int >(val3);
32582 ecode4 = SWIG_AsVal_int(obj3, &val4);
32583 if (!SWIG_IsOK(ecode4)) {
32584 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
32585 }
32586 arg4 = static_cast< int >(val4);
32587 ecode5 = SWIG_AsVal_int(obj4, &val5);
32588 if (!SWIG_IsOK(ecode5)) {
32589 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
32590 }
32591 arg5 = static_cast< int >(val5);
32592 {
32593 PyThreadState* __tstate = wxPyBeginAllowThreads();
32594 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
32595 wxPyEndAllowThreads(__tstate);
32596 if (PyErr_Occurred()) SWIG_fail;
32597 }
32598 resultobj = SWIG_Py_Void();
32599 {
32600 if (temp2)
32601 delete arg2;
32602 }
32603 return resultobj;
32604 fail:
32605 {
32606 if (temp2)
32607 delete arg2;
32608 }
32609 return NULL;
32610 }
32611
32612
32613 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32614 PyObject *obj;
32615 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32616 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32617 return SWIG_Py_Void();
32618 }
32619
32620 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32621 return SWIG_Python_InitShadowInstance(args);
32622 }
32623
32624 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32625 PyObject *resultobj = 0;
32626 wxFontList *result = 0 ;
32627
32628 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
32629 {
32630 PyThreadState* __tstate = wxPyBeginAllowThreads();
32631 result = (wxFontList *)_wxPyInitTheFontList();
32632 wxPyEndAllowThreads(__tstate);
32633 if (PyErr_Occurred()) SWIG_fail;
32634 }
32635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
32636 return resultobj;
32637 fail:
32638 return NULL;
32639 }
32640
32641
32642 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32643 PyObject *resultobj = 0;
32644 wxPenList *result = 0 ;
32645
32646 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
32647 {
32648 PyThreadState* __tstate = wxPyBeginAllowThreads();
32649 result = (wxPenList *)_wxPyInitThePenList();
32650 wxPyEndAllowThreads(__tstate);
32651 if (PyErr_Occurred()) SWIG_fail;
32652 }
32653 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
32654 return resultobj;
32655 fail:
32656 return NULL;
32657 }
32658
32659
32660 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32661 PyObject *resultobj = 0;
32662 wxBrushList *result = 0 ;
32663
32664 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32665 {
32666 PyThreadState* __tstate = wxPyBeginAllowThreads();
32667 result = (wxBrushList *)_wxPyInitTheBrushList();
32668 wxPyEndAllowThreads(__tstate);
32669 if (PyErr_Occurred()) SWIG_fail;
32670 }
32671 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32672 return resultobj;
32673 fail:
32674 return NULL;
32675 }
32676
32677
32678 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32679 PyObject *resultobj = 0;
32680 wxColourDatabase *result = 0 ;
32681
32682 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32683 {
32684 PyThreadState* __tstate = wxPyBeginAllowThreads();
32685 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32686 wxPyEndAllowThreads(__tstate);
32687 if (PyErr_Occurred()) SWIG_fail;
32688 }
32689 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32690 return resultobj;
32691 fail:
32692 return NULL;
32693 }
32694
32695
32696 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32697 PyObject *resultobj = 0;
32698 wxEffects *result = 0 ;
32699
32700 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32701 {
32702 PyThreadState* __tstate = wxPyBeginAllowThreads();
32703 result = (wxEffects *)new wxEffects();
32704 wxPyEndAllowThreads(__tstate);
32705 if (PyErr_Occurred()) SWIG_fail;
32706 }
32707 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32708 return resultobj;
32709 fail:
32710 return NULL;
32711 }
32712
32713
32714 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32715 PyObject *resultobj = 0;
32716 wxEffects *arg1 = (wxEffects *) 0 ;
32717 wxColour result;
32718 void *argp1 = 0 ;
32719 int res1 = 0 ;
32720 PyObject *swig_obj[1] ;
32721
32722 if (!args) SWIG_fail;
32723 swig_obj[0] = args;
32724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32725 if (!SWIG_IsOK(res1)) {
32726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32727 }
32728 arg1 = reinterpret_cast< wxEffects * >(argp1);
32729 {
32730 PyThreadState* __tstate = wxPyBeginAllowThreads();
32731 result = ((wxEffects const *)arg1)->GetHighlightColour();
32732 wxPyEndAllowThreads(__tstate);
32733 if (PyErr_Occurred()) SWIG_fail;
32734 }
32735 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32736 return resultobj;
32737 fail:
32738 return NULL;
32739 }
32740
32741
32742 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32743 PyObject *resultobj = 0;
32744 wxEffects *arg1 = (wxEffects *) 0 ;
32745 wxColour result;
32746 void *argp1 = 0 ;
32747 int res1 = 0 ;
32748 PyObject *swig_obj[1] ;
32749
32750 if (!args) SWIG_fail;
32751 swig_obj[0] = args;
32752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32753 if (!SWIG_IsOK(res1)) {
32754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32755 }
32756 arg1 = reinterpret_cast< wxEffects * >(argp1);
32757 {
32758 PyThreadState* __tstate = wxPyBeginAllowThreads();
32759 result = ((wxEffects const *)arg1)->GetLightShadow();
32760 wxPyEndAllowThreads(__tstate);
32761 if (PyErr_Occurred()) SWIG_fail;
32762 }
32763 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32764 return resultobj;
32765 fail:
32766 return NULL;
32767 }
32768
32769
32770 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32771 PyObject *resultobj = 0;
32772 wxEffects *arg1 = (wxEffects *) 0 ;
32773 wxColour result;
32774 void *argp1 = 0 ;
32775 int res1 = 0 ;
32776 PyObject *swig_obj[1] ;
32777
32778 if (!args) SWIG_fail;
32779 swig_obj[0] = args;
32780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32781 if (!SWIG_IsOK(res1)) {
32782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32783 }
32784 arg1 = reinterpret_cast< wxEffects * >(argp1);
32785 {
32786 PyThreadState* __tstate = wxPyBeginAllowThreads();
32787 result = ((wxEffects const *)arg1)->GetFaceColour();
32788 wxPyEndAllowThreads(__tstate);
32789 if (PyErr_Occurred()) SWIG_fail;
32790 }
32791 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32792 return resultobj;
32793 fail:
32794 return NULL;
32795 }
32796
32797
32798 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32799 PyObject *resultobj = 0;
32800 wxEffects *arg1 = (wxEffects *) 0 ;
32801 wxColour result;
32802 void *argp1 = 0 ;
32803 int res1 = 0 ;
32804 PyObject *swig_obj[1] ;
32805
32806 if (!args) SWIG_fail;
32807 swig_obj[0] = args;
32808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32809 if (!SWIG_IsOK(res1)) {
32810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32811 }
32812 arg1 = reinterpret_cast< wxEffects * >(argp1);
32813 {
32814 PyThreadState* __tstate = wxPyBeginAllowThreads();
32815 result = ((wxEffects const *)arg1)->GetMediumShadow();
32816 wxPyEndAllowThreads(__tstate);
32817 if (PyErr_Occurred()) SWIG_fail;
32818 }
32819 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32820 return resultobj;
32821 fail:
32822 return NULL;
32823 }
32824
32825
32826 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32827 PyObject *resultobj = 0;
32828 wxEffects *arg1 = (wxEffects *) 0 ;
32829 wxColour result;
32830 void *argp1 = 0 ;
32831 int res1 = 0 ;
32832 PyObject *swig_obj[1] ;
32833
32834 if (!args) SWIG_fail;
32835 swig_obj[0] = args;
32836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32837 if (!SWIG_IsOK(res1)) {
32838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32839 }
32840 arg1 = reinterpret_cast< wxEffects * >(argp1);
32841 {
32842 PyThreadState* __tstate = wxPyBeginAllowThreads();
32843 result = ((wxEffects const *)arg1)->GetDarkShadow();
32844 wxPyEndAllowThreads(__tstate);
32845 if (PyErr_Occurred()) SWIG_fail;
32846 }
32847 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32848 return resultobj;
32849 fail:
32850 return NULL;
32851 }
32852
32853
32854 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32855 PyObject *resultobj = 0;
32856 wxEffects *arg1 = (wxEffects *) 0 ;
32857 wxColour *arg2 = 0 ;
32858 void *argp1 = 0 ;
32859 int res1 = 0 ;
32860 wxColour temp2 ;
32861 PyObject * obj0 = 0 ;
32862 PyObject * obj1 = 0 ;
32863 char * kwnames[] = {
32864 (char *) "self",(char *) "c", NULL
32865 };
32866
32867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
32868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32869 if (!SWIG_IsOK(res1)) {
32870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32871 }
32872 arg1 = reinterpret_cast< wxEffects * >(argp1);
32873 {
32874 arg2 = &temp2;
32875 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32876 }
32877 {
32878 PyThreadState* __tstate = wxPyBeginAllowThreads();
32879 (arg1)->SetHighlightColour((wxColour const &)*arg2);
32880 wxPyEndAllowThreads(__tstate);
32881 if (PyErr_Occurred()) SWIG_fail;
32882 }
32883 resultobj = SWIG_Py_Void();
32884 return resultobj;
32885 fail:
32886 return NULL;
32887 }
32888
32889
32890 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32891 PyObject *resultobj = 0;
32892 wxEffects *arg1 = (wxEffects *) 0 ;
32893 wxColour *arg2 = 0 ;
32894 void *argp1 = 0 ;
32895 int res1 = 0 ;
32896 wxColour temp2 ;
32897 PyObject * obj0 = 0 ;
32898 PyObject * obj1 = 0 ;
32899 char * kwnames[] = {
32900 (char *) "self",(char *) "c", NULL
32901 };
32902
32903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32905 if (!SWIG_IsOK(res1)) {
32906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32907 }
32908 arg1 = reinterpret_cast< wxEffects * >(argp1);
32909 {
32910 arg2 = &temp2;
32911 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32912 }
32913 {
32914 PyThreadState* __tstate = wxPyBeginAllowThreads();
32915 (arg1)->SetLightShadow((wxColour const &)*arg2);
32916 wxPyEndAllowThreads(__tstate);
32917 if (PyErr_Occurred()) SWIG_fail;
32918 }
32919 resultobj = SWIG_Py_Void();
32920 return resultobj;
32921 fail:
32922 return NULL;
32923 }
32924
32925
32926 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32927 PyObject *resultobj = 0;
32928 wxEffects *arg1 = (wxEffects *) 0 ;
32929 wxColour *arg2 = 0 ;
32930 void *argp1 = 0 ;
32931 int res1 = 0 ;
32932 wxColour temp2 ;
32933 PyObject * obj0 = 0 ;
32934 PyObject * obj1 = 0 ;
32935 char * kwnames[] = {
32936 (char *) "self",(char *) "c", NULL
32937 };
32938
32939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
32940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32941 if (!SWIG_IsOK(res1)) {
32942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32943 }
32944 arg1 = reinterpret_cast< wxEffects * >(argp1);
32945 {
32946 arg2 = &temp2;
32947 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32948 }
32949 {
32950 PyThreadState* __tstate = wxPyBeginAllowThreads();
32951 (arg1)->SetFaceColour((wxColour const &)*arg2);
32952 wxPyEndAllowThreads(__tstate);
32953 if (PyErr_Occurred()) SWIG_fail;
32954 }
32955 resultobj = SWIG_Py_Void();
32956 return resultobj;
32957 fail:
32958 return NULL;
32959 }
32960
32961
32962 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32963 PyObject *resultobj = 0;
32964 wxEffects *arg1 = (wxEffects *) 0 ;
32965 wxColour *arg2 = 0 ;
32966 void *argp1 = 0 ;
32967 int res1 = 0 ;
32968 wxColour temp2 ;
32969 PyObject * obj0 = 0 ;
32970 PyObject * obj1 = 0 ;
32971 char * kwnames[] = {
32972 (char *) "self",(char *) "c", NULL
32973 };
32974
32975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32977 if (!SWIG_IsOK(res1)) {
32978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32979 }
32980 arg1 = reinterpret_cast< wxEffects * >(argp1);
32981 {
32982 arg2 = &temp2;
32983 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32984 }
32985 {
32986 PyThreadState* __tstate = wxPyBeginAllowThreads();
32987 (arg1)->SetMediumShadow((wxColour const &)*arg2);
32988 wxPyEndAllowThreads(__tstate);
32989 if (PyErr_Occurred()) SWIG_fail;
32990 }
32991 resultobj = SWIG_Py_Void();
32992 return resultobj;
32993 fail:
32994 return NULL;
32995 }
32996
32997
32998 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32999 PyObject *resultobj = 0;
33000 wxEffects *arg1 = (wxEffects *) 0 ;
33001 wxColour *arg2 = 0 ;
33002 void *argp1 = 0 ;
33003 int res1 = 0 ;
33004 wxColour temp2 ;
33005 PyObject * obj0 = 0 ;
33006 PyObject * obj1 = 0 ;
33007 char * kwnames[] = {
33008 (char *) "self",(char *) "c", NULL
33009 };
33010
33011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33013 if (!SWIG_IsOK(res1)) {
33014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33015 }
33016 arg1 = reinterpret_cast< wxEffects * >(argp1);
33017 {
33018 arg2 = &temp2;
33019 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33020 }
33021 {
33022 PyThreadState* __tstate = wxPyBeginAllowThreads();
33023 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33024 wxPyEndAllowThreads(__tstate);
33025 if (PyErr_Occurred()) SWIG_fail;
33026 }
33027 resultobj = SWIG_Py_Void();
33028 return resultobj;
33029 fail:
33030 return NULL;
33031 }
33032
33033
33034 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33035 PyObject *resultobj = 0;
33036 wxEffects *arg1 = (wxEffects *) 0 ;
33037 wxColour *arg2 = 0 ;
33038 wxColour *arg3 = 0 ;
33039 wxColour *arg4 = 0 ;
33040 wxColour *arg5 = 0 ;
33041 wxColour *arg6 = 0 ;
33042 void *argp1 = 0 ;
33043 int res1 = 0 ;
33044 wxColour temp2 ;
33045 wxColour temp3 ;
33046 wxColour temp4 ;
33047 wxColour temp5 ;
33048 wxColour temp6 ;
33049 PyObject * obj0 = 0 ;
33050 PyObject * obj1 = 0 ;
33051 PyObject * obj2 = 0 ;
33052 PyObject * obj3 = 0 ;
33053 PyObject * obj4 = 0 ;
33054 PyObject * obj5 = 0 ;
33055 char * kwnames[] = {
33056 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33057 };
33058
33059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33061 if (!SWIG_IsOK(res1)) {
33062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33063 }
33064 arg1 = reinterpret_cast< wxEffects * >(argp1);
33065 {
33066 arg2 = &temp2;
33067 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33068 }
33069 {
33070 arg3 = &temp3;
33071 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33072 }
33073 {
33074 arg4 = &temp4;
33075 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33076 }
33077 {
33078 arg5 = &temp5;
33079 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33080 }
33081 {
33082 arg6 = &temp6;
33083 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33084 }
33085 {
33086 PyThreadState* __tstate = wxPyBeginAllowThreads();
33087 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33088 wxPyEndAllowThreads(__tstate);
33089 if (PyErr_Occurred()) SWIG_fail;
33090 }
33091 resultobj = SWIG_Py_Void();
33092 return resultobj;
33093 fail:
33094 return NULL;
33095 }
33096
33097
33098 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33099 PyObject *resultobj = 0;
33100 wxEffects *arg1 = (wxEffects *) 0 ;
33101 wxDC *arg2 = 0 ;
33102 wxRect *arg3 = 0 ;
33103 int arg4 = (int) 1 ;
33104 void *argp1 = 0 ;
33105 int res1 = 0 ;
33106 void *argp2 = 0 ;
33107 int res2 = 0 ;
33108 wxRect temp3 ;
33109 int val4 ;
33110 int ecode4 = 0 ;
33111 PyObject * obj0 = 0 ;
33112 PyObject * obj1 = 0 ;
33113 PyObject * obj2 = 0 ;
33114 PyObject * obj3 = 0 ;
33115 char * kwnames[] = {
33116 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33117 };
33118
33119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33121 if (!SWIG_IsOK(res1)) {
33122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33123 }
33124 arg1 = reinterpret_cast< wxEffects * >(argp1);
33125 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33126 if (!SWIG_IsOK(res2)) {
33127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33128 }
33129 if (!argp2) {
33130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33131 }
33132 arg2 = reinterpret_cast< wxDC * >(argp2);
33133 {
33134 arg3 = &temp3;
33135 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33136 }
33137 if (obj3) {
33138 ecode4 = SWIG_AsVal_int(obj3, &val4);
33139 if (!SWIG_IsOK(ecode4)) {
33140 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33141 }
33142 arg4 = static_cast< int >(val4);
33143 }
33144 {
33145 PyThreadState* __tstate = wxPyBeginAllowThreads();
33146 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33147 wxPyEndAllowThreads(__tstate);
33148 if (PyErr_Occurred()) SWIG_fail;
33149 }
33150 resultobj = SWIG_Py_Void();
33151 return resultobj;
33152 fail:
33153 return NULL;
33154 }
33155
33156
33157 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33158 PyObject *resultobj = 0;
33159 wxEffects *arg1 = (wxEffects *) 0 ;
33160 wxRect *arg2 = 0 ;
33161 wxDC *arg3 = 0 ;
33162 wxBitmap *arg4 = 0 ;
33163 bool result;
33164 void *argp1 = 0 ;
33165 int res1 = 0 ;
33166 wxRect temp2 ;
33167 void *argp3 = 0 ;
33168 int res3 = 0 ;
33169 void *argp4 = 0 ;
33170 int res4 = 0 ;
33171 PyObject * obj0 = 0 ;
33172 PyObject * obj1 = 0 ;
33173 PyObject * obj2 = 0 ;
33174 PyObject * obj3 = 0 ;
33175 char * kwnames[] = {
33176 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33177 };
33178
33179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33181 if (!SWIG_IsOK(res1)) {
33182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33183 }
33184 arg1 = reinterpret_cast< wxEffects * >(argp1);
33185 {
33186 arg2 = &temp2;
33187 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33188 }
33189 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33190 if (!SWIG_IsOK(res3)) {
33191 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33192 }
33193 if (!argp3) {
33194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33195 }
33196 arg3 = reinterpret_cast< wxDC * >(argp3);
33197 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33198 if (!SWIG_IsOK(res4)) {
33199 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33200 }
33201 if (!argp4) {
33202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33203 }
33204 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33205 {
33206 PyThreadState* __tstate = wxPyBeginAllowThreads();
33207 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33208 wxPyEndAllowThreads(__tstate);
33209 if (PyErr_Occurred()) SWIG_fail;
33210 }
33211 {
33212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33213 }
33214 return resultobj;
33215 fail:
33216 return NULL;
33217 }
33218
33219
33220 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33221 PyObject *obj;
33222 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33223 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33224 return SWIG_Py_Void();
33225 }
33226
33227 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33228 return SWIG_Python_InitShadowInstance(args);
33229 }
33230
33231 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33232 PyObject *resultobj = 0;
33233 int arg1 ;
33234 int arg2 ;
33235 bool arg3 ;
33236 wxSplitterRenderParams *result = 0 ;
33237 int val1 ;
33238 int ecode1 = 0 ;
33239 int val2 ;
33240 int ecode2 = 0 ;
33241 bool val3 ;
33242 int ecode3 = 0 ;
33243 PyObject * obj0 = 0 ;
33244 PyObject * obj1 = 0 ;
33245 PyObject * obj2 = 0 ;
33246 char * kwnames[] = {
33247 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33248 };
33249
33250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33251 ecode1 = SWIG_AsVal_int(obj0, &val1);
33252 if (!SWIG_IsOK(ecode1)) {
33253 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33254 }
33255 arg1 = static_cast< int >(val1);
33256 ecode2 = SWIG_AsVal_int(obj1, &val2);
33257 if (!SWIG_IsOK(ecode2)) {
33258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33259 }
33260 arg2 = static_cast< int >(val2);
33261 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33262 if (!SWIG_IsOK(ecode3)) {
33263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33264 }
33265 arg3 = static_cast< bool >(val3);
33266 {
33267 PyThreadState* __tstate = wxPyBeginAllowThreads();
33268 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33269 wxPyEndAllowThreads(__tstate);
33270 if (PyErr_Occurred()) SWIG_fail;
33271 }
33272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33273 return resultobj;
33274 fail:
33275 return NULL;
33276 }
33277
33278
33279 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33280 PyObject *resultobj = 0;
33281 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33282 void *argp1 = 0 ;
33283 int res1 = 0 ;
33284 PyObject *swig_obj[1] ;
33285
33286 if (!args) SWIG_fail;
33287 swig_obj[0] = args;
33288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33289 if (!SWIG_IsOK(res1)) {
33290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33291 }
33292 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33293 {
33294 PyThreadState* __tstate = wxPyBeginAllowThreads();
33295 delete arg1;
33296
33297 wxPyEndAllowThreads(__tstate);
33298 if (PyErr_Occurred()) SWIG_fail;
33299 }
33300 resultobj = SWIG_Py_Void();
33301 return resultobj;
33302 fail:
33303 return NULL;
33304 }
33305
33306
33307 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33308 PyObject *resultobj = 0;
33309 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33310 int result;
33311 void *argp1 = 0 ;
33312 int res1 = 0 ;
33313 PyObject *swig_obj[1] ;
33314
33315 if (!args) SWIG_fail;
33316 swig_obj[0] = args;
33317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33318 if (!SWIG_IsOK(res1)) {
33319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33320 }
33321 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33322 result = (int)(int) ((arg1)->widthSash);
33323 resultobj = SWIG_From_int(static_cast< int >(result));
33324 return resultobj;
33325 fail:
33326 return NULL;
33327 }
33328
33329
33330 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33331 PyObject *resultobj = 0;
33332 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33333 int result;
33334 void *argp1 = 0 ;
33335 int res1 = 0 ;
33336 PyObject *swig_obj[1] ;
33337
33338 if (!args) SWIG_fail;
33339 swig_obj[0] = args;
33340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33341 if (!SWIG_IsOK(res1)) {
33342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33343 }
33344 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33345 result = (int)(int) ((arg1)->border);
33346 resultobj = SWIG_From_int(static_cast< int >(result));
33347 return resultobj;
33348 fail:
33349 return NULL;
33350 }
33351
33352
33353 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33354 PyObject *resultobj = 0;
33355 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33356 bool result;
33357 void *argp1 = 0 ;
33358 int res1 = 0 ;
33359 PyObject *swig_obj[1] ;
33360
33361 if (!args) SWIG_fail;
33362 swig_obj[0] = args;
33363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33364 if (!SWIG_IsOK(res1)) {
33365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33366 }
33367 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33368 result = (bool)(bool) ((arg1)->isHotSensitive);
33369 resultobj = SWIG_From_bool(static_cast< bool >(result));
33370 return resultobj;
33371 fail:
33372 return NULL;
33373 }
33374
33375
33376 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33377 PyObject *obj;
33378 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33379 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33380 return SWIG_Py_Void();
33381 }
33382
33383 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33384 return SWIG_Python_InitShadowInstance(args);
33385 }
33386
33387 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33388 PyObject *resultobj = 0;
33389 wxHeaderButtonParams *result = 0 ;
33390
33391 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33392 {
33393 PyThreadState* __tstate = wxPyBeginAllowThreads();
33394 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33395 wxPyEndAllowThreads(__tstate);
33396 if (PyErr_Occurred()) SWIG_fail;
33397 }
33398 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33399 return resultobj;
33400 fail:
33401 return NULL;
33402 }
33403
33404
33405 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33406 PyObject *resultobj = 0;
33407 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33408 void *argp1 = 0 ;
33409 int res1 = 0 ;
33410 PyObject *swig_obj[1] ;
33411
33412 if (!args) SWIG_fail;
33413 swig_obj[0] = args;
33414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33415 if (!SWIG_IsOK(res1)) {
33416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33417 }
33418 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33419 {
33420 PyThreadState* __tstate = wxPyBeginAllowThreads();
33421 delete arg1;
33422
33423 wxPyEndAllowThreads(__tstate);
33424 if (PyErr_Occurred()) SWIG_fail;
33425 }
33426 resultobj = SWIG_Py_Void();
33427 return resultobj;
33428 fail:
33429 return NULL;
33430 }
33431
33432
33433 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33434 PyObject *resultobj = 0;
33435 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33436 wxColour *arg2 = (wxColour *) 0 ;
33437 void *argp1 = 0 ;
33438 int res1 = 0 ;
33439 wxColour temp2 ;
33440 PyObject *swig_obj[2] ;
33441
33442 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33444 if (!SWIG_IsOK(res1)) {
33445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33446 }
33447 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33448 {
33449 arg2 = &temp2;
33450 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33451 }
33452 if (arg1) (arg1)->m_arrowColour = *arg2;
33453
33454 resultobj = SWIG_Py_Void();
33455 return resultobj;
33456 fail:
33457 return NULL;
33458 }
33459
33460
33461 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33462 PyObject *resultobj = 0;
33463 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33464 wxColour *result = 0 ;
33465 void *argp1 = 0 ;
33466 int res1 = 0 ;
33467 PyObject *swig_obj[1] ;
33468
33469 if (!args) SWIG_fail;
33470 swig_obj[0] = args;
33471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33472 if (!SWIG_IsOK(res1)) {
33473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33474 }
33475 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33476 result = (wxColour *)& ((arg1)->m_arrowColour);
33477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33478 return resultobj;
33479 fail:
33480 return NULL;
33481 }
33482
33483
33484 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33485 PyObject *resultobj = 0;
33486 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33487 wxColour *arg2 = (wxColour *) 0 ;
33488 void *argp1 = 0 ;
33489 int res1 = 0 ;
33490 wxColour temp2 ;
33491 PyObject *swig_obj[2] ;
33492
33493 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33495 if (!SWIG_IsOK(res1)) {
33496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33497 }
33498 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33499 {
33500 arg2 = &temp2;
33501 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33502 }
33503 if (arg1) (arg1)->m_selectionColour = *arg2;
33504
33505 resultobj = SWIG_Py_Void();
33506 return resultobj;
33507 fail:
33508 return NULL;
33509 }
33510
33511
33512 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33513 PyObject *resultobj = 0;
33514 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33515 wxColour *result = 0 ;
33516 void *argp1 = 0 ;
33517 int res1 = 0 ;
33518 PyObject *swig_obj[1] ;
33519
33520 if (!args) SWIG_fail;
33521 swig_obj[0] = args;
33522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33523 if (!SWIG_IsOK(res1)) {
33524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33525 }
33526 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33527 result = (wxColour *)& ((arg1)->m_selectionColour);
33528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33529 return resultobj;
33530 fail:
33531 return NULL;
33532 }
33533
33534
33535 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33536 PyObject *resultobj = 0;
33537 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33538 wxString *arg2 = (wxString *) 0 ;
33539 void *argp1 = 0 ;
33540 int res1 = 0 ;
33541 bool temp2 = false ;
33542 PyObject *swig_obj[2] ;
33543
33544 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33546 if (!SWIG_IsOK(res1)) {
33547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33548 }
33549 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33550 {
33551 arg2 = wxString_in_helper(swig_obj[1]);
33552 if (arg2 == NULL) SWIG_fail;
33553 temp2 = true;
33554 }
33555 if (arg1) (arg1)->m_labelText = *arg2;
33556
33557 resultobj = SWIG_Py_Void();
33558 {
33559 if (temp2)
33560 delete arg2;
33561 }
33562 return resultobj;
33563 fail:
33564 {
33565 if (temp2)
33566 delete arg2;
33567 }
33568 return NULL;
33569 }
33570
33571
33572 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33573 PyObject *resultobj = 0;
33574 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33575 wxString *result = 0 ;
33576 void *argp1 = 0 ;
33577 int res1 = 0 ;
33578 PyObject *swig_obj[1] ;
33579
33580 if (!args) SWIG_fail;
33581 swig_obj[0] = args;
33582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33583 if (!SWIG_IsOK(res1)) {
33584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33585 }
33586 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33587 result = (wxString *)& ((arg1)->m_labelText);
33588 {
33589 #if wxUSE_UNICODE
33590 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33591 #else
33592 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33593 #endif
33594 }
33595 return resultobj;
33596 fail:
33597 return NULL;
33598 }
33599
33600
33601 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33602 PyObject *resultobj = 0;
33603 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33604 wxFont *arg2 = (wxFont *) 0 ;
33605 void *argp1 = 0 ;
33606 int res1 = 0 ;
33607 void *argp2 = 0 ;
33608 int res2 = 0 ;
33609 PyObject *swig_obj[2] ;
33610
33611 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33613 if (!SWIG_IsOK(res1)) {
33614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33615 }
33616 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33617 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33618 if (!SWIG_IsOK(res2)) {
33619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33620 }
33621 arg2 = reinterpret_cast< wxFont * >(argp2);
33622 if (arg1) (arg1)->m_labelFont = *arg2;
33623
33624 resultobj = SWIG_Py_Void();
33625 return resultobj;
33626 fail:
33627 return NULL;
33628 }
33629
33630
33631 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33632 PyObject *resultobj = 0;
33633 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33634 wxFont *result = 0 ;
33635 void *argp1 = 0 ;
33636 int res1 = 0 ;
33637 PyObject *swig_obj[1] ;
33638
33639 if (!args) SWIG_fail;
33640 swig_obj[0] = args;
33641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33642 if (!SWIG_IsOK(res1)) {
33643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33644 }
33645 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33646 result = (wxFont *)& ((arg1)->m_labelFont);
33647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33648 return resultobj;
33649 fail:
33650 return NULL;
33651 }
33652
33653
33654 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33655 PyObject *resultobj = 0;
33656 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33657 wxColour *arg2 = (wxColour *) 0 ;
33658 void *argp1 = 0 ;
33659 int res1 = 0 ;
33660 wxColour temp2 ;
33661 PyObject *swig_obj[2] ;
33662
33663 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33665 if (!SWIG_IsOK(res1)) {
33666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33667 }
33668 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33669 {
33670 arg2 = &temp2;
33671 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33672 }
33673 if (arg1) (arg1)->m_labelColour = *arg2;
33674
33675 resultobj = SWIG_Py_Void();
33676 return resultobj;
33677 fail:
33678 return NULL;
33679 }
33680
33681
33682 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33683 PyObject *resultobj = 0;
33684 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33685 wxColour *result = 0 ;
33686 void *argp1 = 0 ;
33687 int res1 = 0 ;
33688 PyObject *swig_obj[1] ;
33689
33690 if (!args) SWIG_fail;
33691 swig_obj[0] = args;
33692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33693 if (!SWIG_IsOK(res1)) {
33694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33695 }
33696 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33697 result = (wxColour *)& ((arg1)->m_labelColour);
33698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33699 return resultobj;
33700 fail:
33701 return NULL;
33702 }
33703
33704
33705 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33706 PyObject *resultobj = 0;
33707 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33708 wxBitmap *arg2 = (wxBitmap *) 0 ;
33709 void *argp1 = 0 ;
33710 int res1 = 0 ;
33711 void *argp2 = 0 ;
33712 int res2 = 0 ;
33713 PyObject *swig_obj[2] ;
33714
33715 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33717 if (!SWIG_IsOK(res1)) {
33718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33719 }
33720 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33721 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33722 if (!SWIG_IsOK(res2)) {
33723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33724 }
33725 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33726 if (arg1) (arg1)->m_labelBitmap = *arg2;
33727
33728 resultobj = SWIG_Py_Void();
33729 return resultobj;
33730 fail:
33731 return NULL;
33732 }
33733
33734
33735 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33736 PyObject *resultobj = 0;
33737 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33738 wxBitmap *result = 0 ;
33739 void *argp1 = 0 ;
33740 int res1 = 0 ;
33741 PyObject *swig_obj[1] ;
33742
33743 if (!args) SWIG_fail;
33744 swig_obj[0] = args;
33745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33746 if (!SWIG_IsOK(res1)) {
33747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33748 }
33749 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33750 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33752 return resultobj;
33753 fail:
33754 return NULL;
33755 }
33756
33757
33758 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33759 PyObject *resultobj = 0;
33760 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33761 int arg2 ;
33762 void *argp1 = 0 ;
33763 int res1 = 0 ;
33764 int val2 ;
33765 int ecode2 = 0 ;
33766 PyObject *swig_obj[2] ;
33767
33768 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33770 if (!SWIG_IsOK(res1)) {
33771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33772 }
33773 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33774 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33775 if (!SWIG_IsOK(ecode2)) {
33776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33777 }
33778 arg2 = static_cast< int >(val2);
33779 if (arg1) (arg1)->m_labelAlignment = arg2;
33780
33781 resultobj = SWIG_Py_Void();
33782 return resultobj;
33783 fail:
33784 return NULL;
33785 }
33786
33787
33788 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33789 PyObject *resultobj = 0;
33790 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33791 int result;
33792 void *argp1 = 0 ;
33793 int res1 = 0 ;
33794 PyObject *swig_obj[1] ;
33795
33796 if (!args) SWIG_fail;
33797 swig_obj[0] = args;
33798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33799 if (!SWIG_IsOK(res1)) {
33800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33801 }
33802 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33803 result = (int) ((arg1)->m_labelAlignment);
33804 resultobj = SWIG_From_int(static_cast< int >(result));
33805 return resultobj;
33806 fail:
33807 return NULL;
33808 }
33809
33810
33811 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33812 PyObject *obj;
33813 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33814 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
33815 return SWIG_Py_Void();
33816 }
33817
33818 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33819 return SWIG_Python_InitShadowInstance(args);
33820 }
33821
33822 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33823 PyObject *resultobj = 0;
33824 int arg1 ;
33825 int arg2 ;
33826 wxRendererVersion *result = 0 ;
33827 int val1 ;
33828 int ecode1 = 0 ;
33829 int val2 ;
33830 int ecode2 = 0 ;
33831 PyObject * obj0 = 0 ;
33832 PyObject * obj1 = 0 ;
33833 char * kwnames[] = {
33834 (char *) "version_",(char *) "age_", NULL
33835 };
33836
33837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
33838 ecode1 = SWIG_AsVal_int(obj0, &val1);
33839 if (!SWIG_IsOK(ecode1)) {
33840 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
33841 }
33842 arg1 = static_cast< int >(val1);
33843 ecode2 = SWIG_AsVal_int(obj1, &val2);
33844 if (!SWIG_IsOK(ecode2)) {
33845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
33846 }
33847 arg2 = static_cast< int >(val2);
33848 {
33849 PyThreadState* __tstate = wxPyBeginAllowThreads();
33850 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
33851 wxPyEndAllowThreads(__tstate);
33852 if (PyErr_Occurred()) SWIG_fail;
33853 }
33854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
33855 return resultobj;
33856 fail:
33857 return NULL;
33858 }
33859
33860
33861 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33862 PyObject *resultobj = 0;
33863 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33864 void *argp1 = 0 ;
33865 int res1 = 0 ;
33866 PyObject *swig_obj[1] ;
33867
33868 if (!args) SWIG_fail;
33869 swig_obj[0] = args;
33870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
33871 if (!SWIG_IsOK(res1)) {
33872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33873 }
33874 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33875 {
33876 PyThreadState* __tstate = wxPyBeginAllowThreads();
33877 delete arg1;
33878
33879 wxPyEndAllowThreads(__tstate);
33880 if (PyErr_Occurred()) SWIG_fail;
33881 }
33882 resultobj = SWIG_Py_Void();
33883 return resultobj;
33884 fail:
33885 return NULL;
33886 }
33887
33888
33889 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33890 PyObject *resultobj = 0;
33891 wxRendererVersion *arg1 = 0 ;
33892 bool result;
33893 void *argp1 = 0 ;
33894 int res1 = 0 ;
33895 PyObject * obj0 = 0 ;
33896 char * kwnames[] = {
33897 (char *) "ver", NULL
33898 };
33899
33900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
33901 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
33902 if (!SWIG_IsOK(res1)) {
33903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33904 }
33905 if (!argp1) {
33906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33907 }
33908 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33909 {
33910 PyThreadState* __tstate = wxPyBeginAllowThreads();
33911 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
33912 wxPyEndAllowThreads(__tstate);
33913 if (PyErr_Occurred()) SWIG_fail;
33914 }
33915 {
33916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33917 }
33918 return resultobj;
33919 fail:
33920 return NULL;
33921 }
33922
33923
33924 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33925 PyObject *resultobj = 0;
33926 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33927 int result;
33928 void *argp1 = 0 ;
33929 int res1 = 0 ;
33930 PyObject *swig_obj[1] ;
33931
33932 if (!args) SWIG_fail;
33933 swig_obj[0] = args;
33934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33935 if (!SWIG_IsOK(res1)) {
33936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33937 }
33938 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33939 result = (int)(int) ((arg1)->version);
33940 resultobj = SWIG_From_int(static_cast< int >(result));
33941 return resultobj;
33942 fail:
33943 return NULL;
33944 }
33945
33946
33947 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33948 PyObject *resultobj = 0;
33949 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33950 int result;
33951 void *argp1 = 0 ;
33952 int res1 = 0 ;
33953 PyObject *swig_obj[1] ;
33954
33955 if (!args) SWIG_fail;
33956 swig_obj[0] = args;
33957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33958 if (!SWIG_IsOK(res1)) {
33959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33960 }
33961 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33962 result = (int)(int) ((arg1)->age);
33963 resultobj = SWIG_From_int(static_cast< int >(result));
33964 return resultobj;
33965 fail:
33966 return NULL;
33967 }
33968
33969
33970 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33971 PyObject *obj;
33972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33973 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
33974 return SWIG_Py_Void();
33975 }
33976
33977 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33978 return SWIG_Python_InitShadowInstance(args);
33979 }
33980
33981 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33982 PyObject *resultobj = 0;
33983 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33984 wxWindow *arg2 = (wxWindow *) 0 ;
33985 wxDC *arg3 = 0 ;
33986 wxRect *arg4 = 0 ;
33987 int arg5 = (int) 0 ;
33988 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
33989 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
33990 void *argp1 = 0 ;
33991 int res1 = 0 ;
33992 void *argp2 = 0 ;
33993 int res2 = 0 ;
33994 void *argp3 = 0 ;
33995 int res3 = 0 ;
33996 wxRect temp4 ;
33997 int val5 ;
33998 int ecode5 = 0 ;
33999 int val6 ;
34000 int ecode6 = 0 ;
34001 void *argp7 = 0 ;
34002 int res7 = 0 ;
34003 PyObject * obj0 = 0 ;
34004 PyObject * obj1 = 0 ;
34005 PyObject * obj2 = 0 ;
34006 PyObject * obj3 = 0 ;
34007 PyObject * obj4 = 0 ;
34008 PyObject * obj5 = 0 ;
34009 PyObject * obj6 = 0 ;
34010 char * kwnames[] = {
34011 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34012 };
34013
34014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34016 if (!SWIG_IsOK(res1)) {
34017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34018 }
34019 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34020 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34021 if (!SWIG_IsOK(res2)) {
34022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34023 }
34024 arg2 = reinterpret_cast< wxWindow * >(argp2);
34025 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34026 if (!SWIG_IsOK(res3)) {
34027 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34028 }
34029 if (!argp3) {
34030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34031 }
34032 arg3 = reinterpret_cast< wxDC * >(argp3);
34033 {
34034 arg4 = &temp4;
34035 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34036 }
34037 if (obj4) {
34038 ecode5 = SWIG_AsVal_int(obj4, &val5);
34039 if (!SWIG_IsOK(ecode5)) {
34040 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34041 }
34042 arg5 = static_cast< int >(val5);
34043 }
34044 if (obj5) {
34045 ecode6 = SWIG_AsVal_int(obj5, &val6);
34046 if (!SWIG_IsOK(ecode6)) {
34047 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34048 }
34049 arg6 = static_cast< wxHeaderSortIconType >(val6);
34050 }
34051 if (obj6) {
34052 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34053 if (!SWIG_IsOK(res7)) {
34054 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34055 }
34056 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34057 }
34058 {
34059 PyThreadState* __tstate = wxPyBeginAllowThreads();
34060 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34061 wxPyEndAllowThreads(__tstate);
34062 if (PyErr_Occurred()) SWIG_fail;
34063 }
34064 resultobj = SWIG_Py_Void();
34065 return resultobj;
34066 fail:
34067 return NULL;
34068 }
34069
34070
34071 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34072 PyObject *resultobj = 0;
34073 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34074 wxWindow *arg2 = (wxWindow *) 0 ;
34075 wxDC *arg3 = 0 ;
34076 wxRect *arg4 = 0 ;
34077 int arg5 = (int) 0 ;
34078 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34079 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34080 void *argp1 = 0 ;
34081 int res1 = 0 ;
34082 void *argp2 = 0 ;
34083 int res2 = 0 ;
34084 void *argp3 = 0 ;
34085 int res3 = 0 ;
34086 wxRect temp4 ;
34087 int val5 ;
34088 int ecode5 = 0 ;
34089 int val6 ;
34090 int ecode6 = 0 ;
34091 void *argp7 = 0 ;
34092 int res7 = 0 ;
34093 PyObject * obj0 = 0 ;
34094 PyObject * obj1 = 0 ;
34095 PyObject * obj2 = 0 ;
34096 PyObject * obj3 = 0 ;
34097 PyObject * obj4 = 0 ;
34098 PyObject * obj5 = 0 ;
34099 PyObject * obj6 = 0 ;
34100 char * kwnames[] = {
34101 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34102 };
34103
34104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34106 if (!SWIG_IsOK(res1)) {
34107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34108 }
34109 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34110 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34111 if (!SWIG_IsOK(res2)) {
34112 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34113 }
34114 arg2 = reinterpret_cast< wxWindow * >(argp2);
34115 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34116 if (!SWIG_IsOK(res3)) {
34117 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34118 }
34119 if (!argp3) {
34120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34121 }
34122 arg3 = reinterpret_cast< wxDC * >(argp3);
34123 {
34124 arg4 = &temp4;
34125 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34126 }
34127 if (obj4) {
34128 ecode5 = SWIG_AsVal_int(obj4, &val5);
34129 if (!SWIG_IsOK(ecode5)) {
34130 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34131 }
34132 arg5 = static_cast< int >(val5);
34133 }
34134 if (obj5) {
34135 ecode6 = SWIG_AsVal_int(obj5, &val6);
34136 if (!SWIG_IsOK(ecode6)) {
34137 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34138 }
34139 arg6 = static_cast< wxHeaderSortIconType >(val6);
34140 }
34141 if (obj6) {
34142 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34143 if (!SWIG_IsOK(res7)) {
34144 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34145 }
34146 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34147 }
34148 {
34149 PyThreadState* __tstate = wxPyBeginAllowThreads();
34150 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34151 wxPyEndAllowThreads(__tstate);
34152 if (PyErr_Occurred()) SWIG_fail;
34153 }
34154 resultobj = SWIG_Py_Void();
34155 return resultobj;
34156 fail:
34157 return NULL;
34158 }
34159
34160
34161 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34162 PyObject *resultobj = 0;
34163 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34164 wxWindow *arg2 = (wxWindow *) 0 ;
34165 int result;
34166 void *argp1 = 0 ;
34167 int res1 = 0 ;
34168 void *argp2 = 0 ;
34169 int res2 = 0 ;
34170 PyObject * obj0 = 0 ;
34171 PyObject * obj1 = 0 ;
34172 char * kwnames[] = {
34173 (char *) "self",(char *) "win", NULL
34174 };
34175
34176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34178 if (!SWIG_IsOK(res1)) {
34179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34180 }
34181 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34182 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34183 if (!SWIG_IsOK(res2)) {
34184 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34185 }
34186 arg2 = reinterpret_cast< wxWindow * >(argp2);
34187 {
34188 PyThreadState* __tstate = wxPyBeginAllowThreads();
34189 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34190 wxPyEndAllowThreads(__tstate);
34191 if (PyErr_Occurred()) SWIG_fail;
34192 }
34193 resultobj = SWIG_From_int(static_cast< int >(result));
34194 return resultobj;
34195 fail:
34196 return NULL;
34197 }
34198
34199
34200 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34201 PyObject *resultobj = 0;
34202 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34203 wxWindow *arg2 = (wxWindow *) 0 ;
34204 wxDC *arg3 = 0 ;
34205 wxRect *arg4 = 0 ;
34206 int arg5 = (int) 0 ;
34207 void *argp1 = 0 ;
34208 int res1 = 0 ;
34209 void *argp2 = 0 ;
34210 int res2 = 0 ;
34211 void *argp3 = 0 ;
34212 int res3 = 0 ;
34213 wxRect temp4 ;
34214 int val5 ;
34215 int ecode5 = 0 ;
34216 PyObject * obj0 = 0 ;
34217 PyObject * obj1 = 0 ;
34218 PyObject * obj2 = 0 ;
34219 PyObject * obj3 = 0 ;
34220 PyObject * obj4 = 0 ;
34221 char * kwnames[] = {
34222 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34223 };
34224
34225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34227 if (!SWIG_IsOK(res1)) {
34228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34229 }
34230 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34231 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34232 if (!SWIG_IsOK(res2)) {
34233 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34234 }
34235 arg2 = reinterpret_cast< wxWindow * >(argp2);
34236 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34237 if (!SWIG_IsOK(res3)) {
34238 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34239 }
34240 if (!argp3) {
34241 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34242 }
34243 arg3 = reinterpret_cast< wxDC * >(argp3);
34244 {
34245 arg4 = &temp4;
34246 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34247 }
34248 if (obj4) {
34249 ecode5 = SWIG_AsVal_int(obj4, &val5);
34250 if (!SWIG_IsOK(ecode5)) {
34251 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34252 }
34253 arg5 = static_cast< int >(val5);
34254 }
34255 {
34256 PyThreadState* __tstate = wxPyBeginAllowThreads();
34257 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34258 wxPyEndAllowThreads(__tstate);
34259 if (PyErr_Occurred()) SWIG_fail;
34260 }
34261 resultobj = SWIG_Py_Void();
34262 return resultobj;
34263 fail:
34264 return NULL;
34265 }
34266
34267
34268 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34269 PyObject *resultobj = 0;
34270 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34271 wxWindow *arg2 = (wxWindow *) 0 ;
34272 wxDC *arg3 = 0 ;
34273 wxRect *arg4 = 0 ;
34274 int arg5 = (int) 0 ;
34275 void *argp1 = 0 ;
34276 int res1 = 0 ;
34277 void *argp2 = 0 ;
34278 int res2 = 0 ;
34279 void *argp3 = 0 ;
34280 int res3 = 0 ;
34281 wxRect temp4 ;
34282 int val5 ;
34283 int ecode5 = 0 ;
34284 PyObject * obj0 = 0 ;
34285 PyObject * obj1 = 0 ;
34286 PyObject * obj2 = 0 ;
34287 PyObject * obj3 = 0 ;
34288 PyObject * obj4 = 0 ;
34289 char * kwnames[] = {
34290 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34291 };
34292
34293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34295 if (!SWIG_IsOK(res1)) {
34296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34297 }
34298 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34299 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34300 if (!SWIG_IsOK(res2)) {
34301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34302 }
34303 arg2 = reinterpret_cast< wxWindow * >(argp2);
34304 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34305 if (!SWIG_IsOK(res3)) {
34306 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34307 }
34308 if (!argp3) {
34309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34310 }
34311 arg3 = reinterpret_cast< wxDC * >(argp3);
34312 {
34313 arg4 = &temp4;
34314 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34315 }
34316 if (obj4) {
34317 ecode5 = SWIG_AsVal_int(obj4, &val5);
34318 if (!SWIG_IsOK(ecode5)) {
34319 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34320 }
34321 arg5 = static_cast< int >(val5);
34322 }
34323 {
34324 PyThreadState* __tstate = wxPyBeginAllowThreads();
34325 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34326 wxPyEndAllowThreads(__tstate);
34327 if (PyErr_Occurred()) SWIG_fail;
34328 }
34329 resultobj = SWIG_Py_Void();
34330 return resultobj;
34331 fail:
34332 return NULL;
34333 }
34334
34335
34336 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34337 PyObject *resultobj = 0;
34338 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34339 wxWindow *arg2 = (wxWindow *) 0 ;
34340 wxDC *arg3 = 0 ;
34341 wxSize *arg4 = 0 ;
34342 int arg5 ;
34343 wxOrientation arg6 ;
34344 int arg7 = (int) 0 ;
34345 void *argp1 = 0 ;
34346 int res1 = 0 ;
34347 void *argp2 = 0 ;
34348 int res2 = 0 ;
34349 void *argp3 = 0 ;
34350 int res3 = 0 ;
34351 wxSize temp4 ;
34352 int val5 ;
34353 int ecode5 = 0 ;
34354 int val6 ;
34355 int ecode6 = 0 ;
34356 int val7 ;
34357 int ecode7 = 0 ;
34358 PyObject * obj0 = 0 ;
34359 PyObject * obj1 = 0 ;
34360 PyObject * obj2 = 0 ;
34361 PyObject * obj3 = 0 ;
34362 PyObject * obj4 = 0 ;
34363 PyObject * obj5 = 0 ;
34364 PyObject * obj6 = 0 ;
34365 char * kwnames[] = {
34366 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34367 };
34368
34369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34371 if (!SWIG_IsOK(res1)) {
34372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34373 }
34374 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34375 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34376 if (!SWIG_IsOK(res2)) {
34377 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34378 }
34379 arg2 = reinterpret_cast< wxWindow * >(argp2);
34380 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34381 if (!SWIG_IsOK(res3)) {
34382 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34383 }
34384 if (!argp3) {
34385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34386 }
34387 arg3 = reinterpret_cast< wxDC * >(argp3);
34388 {
34389 arg4 = &temp4;
34390 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34391 }
34392 ecode5 = SWIG_AsVal_int(obj4, &val5);
34393 if (!SWIG_IsOK(ecode5)) {
34394 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34395 }
34396 arg5 = static_cast< int >(val5);
34397 ecode6 = SWIG_AsVal_int(obj5, &val6);
34398 if (!SWIG_IsOK(ecode6)) {
34399 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34400 }
34401 arg6 = static_cast< wxOrientation >(val6);
34402 if (obj6) {
34403 ecode7 = SWIG_AsVal_int(obj6, &val7);
34404 if (!SWIG_IsOK(ecode7)) {
34405 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34406 }
34407 arg7 = static_cast< int >(val7);
34408 }
34409 {
34410 PyThreadState* __tstate = wxPyBeginAllowThreads();
34411 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34412 wxPyEndAllowThreads(__tstate);
34413 if (PyErr_Occurred()) SWIG_fail;
34414 }
34415 resultobj = SWIG_Py_Void();
34416 return resultobj;
34417 fail:
34418 return NULL;
34419 }
34420
34421
34422 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34423 PyObject *resultobj = 0;
34424 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34425 wxWindow *arg2 = (wxWindow *) 0 ;
34426 wxDC *arg3 = 0 ;
34427 wxRect *arg4 = 0 ;
34428 int arg5 = (int) 0 ;
34429 void *argp1 = 0 ;
34430 int res1 = 0 ;
34431 void *argp2 = 0 ;
34432 int res2 = 0 ;
34433 void *argp3 = 0 ;
34434 int res3 = 0 ;
34435 wxRect temp4 ;
34436 int val5 ;
34437 int ecode5 = 0 ;
34438 PyObject * obj0 = 0 ;
34439 PyObject * obj1 = 0 ;
34440 PyObject * obj2 = 0 ;
34441 PyObject * obj3 = 0 ;
34442 PyObject * obj4 = 0 ;
34443 char * kwnames[] = {
34444 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34445 };
34446
34447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34449 if (!SWIG_IsOK(res1)) {
34450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34451 }
34452 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34453 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34454 if (!SWIG_IsOK(res2)) {
34455 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34456 }
34457 arg2 = reinterpret_cast< wxWindow * >(argp2);
34458 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34459 if (!SWIG_IsOK(res3)) {
34460 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34461 }
34462 if (!argp3) {
34463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34464 }
34465 arg3 = reinterpret_cast< wxDC * >(argp3);
34466 {
34467 arg4 = &temp4;
34468 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34469 }
34470 if (obj4) {
34471 ecode5 = SWIG_AsVal_int(obj4, &val5);
34472 if (!SWIG_IsOK(ecode5)) {
34473 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34474 }
34475 arg5 = static_cast< int >(val5);
34476 }
34477 {
34478 PyThreadState* __tstate = wxPyBeginAllowThreads();
34479 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34480 wxPyEndAllowThreads(__tstate);
34481 if (PyErr_Occurred()) SWIG_fail;
34482 }
34483 resultobj = SWIG_Py_Void();
34484 return resultobj;
34485 fail:
34486 return NULL;
34487 }
34488
34489
34490 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34491 PyObject *resultobj = 0;
34492 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34493 wxWindow *arg2 = (wxWindow *) 0 ;
34494 wxDC *arg3 = 0 ;
34495 wxRect *arg4 = 0 ;
34496 int arg5 = (int) 0 ;
34497 void *argp1 = 0 ;
34498 int res1 = 0 ;
34499 void *argp2 = 0 ;
34500 int res2 = 0 ;
34501 void *argp3 = 0 ;
34502 int res3 = 0 ;
34503 wxRect temp4 ;
34504 int val5 ;
34505 int ecode5 = 0 ;
34506 PyObject * obj0 = 0 ;
34507 PyObject * obj1 = 0 ;
34508 PyObject * obj2 = 0 ;
34509 PyObject * obj3 = 0 ;
34510 PyObject * obj4 = 0 ;
34511 char * kwnames[] = {
34512 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34513 };
34514
34515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34517 if (!SWIG_IsOK(res1)) {
34518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34519 }
34520 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34521 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34522 if (!SWIG_IsOK(res2)) {
34523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34524 }
34525 arg2 = reinterpret_cast< wxWindow * >(argp2);
34526 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34527 if (!SWIG_IsOK(res3)) {
34528 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34529 }
34530 if (!argp3) {
34531 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34532 }
34533 arg3 = reinterpret_cast< wxDC * >(argp3);
34534 {
34535 arg4 = &temp4;
34536 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34537 }
34538 if (obj4) {
34539 ecode5 = SWIG_AsVal_int(obj4, &val5);
34540 if (!SWIG_IsOK(ecode5)) {
34541 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34542 }
34543 arg5 = static_cast< int >(val5);
34544 }
34545 {
34546 PyThreadState* __tstate = wxPyBeginAllowThreads();
34547 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34548 wxPyEndAllowThreads(__tstate);
34549 if (PyErr_Occurred()) SWIG_fail;
34550 }
34551 resultobj = SWIG_Py_Void();
34552 return resultobj;
34553 fail:
34554 return NULL;
34555 }
34556
34557
34558 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34559 PyObject *resultobj = 0;
34560 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34561 wxWindow *arg2 = (wxWindow *) 0 ;
34562 wxDC *arg3 = 0 ;
34563 wxRect *arg4 = 0 ;
34564 int arg5 = (int) 0 ;
34565 void *argp1 = 0 ;
34566 int res1 = 0 ;
34567 void *argp2 = 0 ;
34568 int res2 = 0 ;
34569 void *argp3 = 0 ;
34570 int res3 = 0 ;
34571 wxRect temp4 ;
34572 int val5 ;
34573 int ecode5 = 0 ;
34574 PyObject * obj0 = 0 ;
34575 PyObject * obj1 = 0 ;
34576 PyObject * obj2 = 0 ;
34577 PyObject * obj3 = 0 ;
34578 PyObject * obj4 = 0 ;
34579 char * kwnames[] = {
34580 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34581 };
34582
34583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34585 if (!SWIG_IsOK(res1)) {
34586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34587 }
34588 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34590 if (!SWIG_IsOK(res2)) {
34591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
34592 }
34593 arg2 = reinterpret_cast< wxWindow * >(argp2);
34594 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34595 if (!SWIG_IsOK(res3)) {
34596 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34597 }
34598 if (!argp3) {
34599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34600 }
34601 arg3 = reinterpret_cast< wxDC * >(argp3);
34602 {
34603 arg4 = &temp4;
34604 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34605 }
34606 if (obj4) {
34607 ecode5 = SWIG_AsVal_int(obj4, &val5);
34608 if (!SWIG_IsOK(ecode5)) {
34609 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
34610 }
34611 arg5 = static_cast< int >(val5);
34612 }
34613 {
34614 PyThreadState* __tstate = wxPyBeginAllowThreads();
34615 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34616 wxPyEndAllowThreads(__tstate);
34617 if (PyErr_Occurred()) SWIG_fail;
34618 }
34619 resultobj = SWIG_Py_Void();
34620 return resultobj;
34621 fail:
34622 return NULL;
34623 }
34624
34625
34626 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34627 PyObject *resultobj = 0;
34628 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34629 wxWindow *arg2 = (wxWindow *) 0 ;
34630 wxDC *arg3 = 0 ;
34631 wxRect *arg4 = 0 ;
34632 int arg5 = (int) 0 ;
34633 void *argp1 = 0 ;
34634 int res1 = 0 ;
34635 void *argp2 = 0 ;
34636 int res2 = 0 ;
34637 void *argp3 = 0 ;
34638 int res3 = 0 ;
34639 wxRect temp4 ;
34640 int val5 ;
34641 int ecode5 = 0 ;
34642 PyObject * obj0 = 0 ;
34643 PyObject * obj1 = 0 ;
34644 PyObject * obj2 = 0 ;
34645 PyObject * obj3 = 0 ;
34646 PyObject * obj4 = 0 ;
34647 char * kwnames[] = {
34648 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34649 };
34650
34651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34653 if (!SWIG_IsOK(res1)) {
34654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34655 }
34656 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34657 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34658 if (!SWIG_IsOK(res2)) {
34659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34660 }
34661 arg2 = reinterpret_cast< wxWindow * >(argp2);
34662 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34663 if (!SWIG_IsOK(res3)) {
34664 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34665 }
34666 if (!argp3) {
34667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34668 }
34669 arg3 = reinterpret_cast< wxDC * >(argp3);
34670 {
34671 arg4 = &temp4;
34672 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34673 }
34674 if (obj4) {
34675 ecode5 = SWIG_AsVal_int(obj4, &val5);
34676 if (!SWIG_IsOK(ecode5)) {
34677 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34678 }
34679 arg5 = static_cast< int >(val5);
34680 }
34681 {
34682 PyThreadState* __tstate = wxPyBeginAllowThreads();
34683 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34684 wxPyEndAllowThreads(__tstate);
34685 if (PyErr_Occurred()) SWIG_fail;
34686 }
34687 resultobj = SWIG_Py_Void();
34688 return resultobj;
34689 fail:
34690 return NULL;
34691 }
34692
34693
34694 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34695 PyObject *resultobj = 0;
34696 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34697 wxWindow *arg2 = (wxWindow *) 0 ;
34698 wxDC *arg3 = 0 ;
34699 wxRect *arg4 = 0 ;
34700 int arg5 = (int) 0 ;
34701 void *argp1 = 0 ;
34702 int res1 = 0 ;
34703 void *argp2 = 0 ;
34704 int res2 = 0 ;
34705 void *argp3 = 0 ;
34706 int res3 = 0 ;
34707 wxRect temp4 ;
34708 int val5 ;
34709 int ecode5 = 0 ;
34710 PyObject * obj0 = 0 ;
34711 PyObject * obj1 = 0 ;
34712 PyObject * obj2 = 0 ;
34713 PyObject * obj3 = 0 ;
34714 PyObject * obj4 = 0 ;
34715 char * kwnames[] = {
34716 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34717 };
34718
34719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34721 if (!SWIG_IsOK(res1)) {
34722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34723 }
34724 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34725 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34726 if (!SWIG_IsOK(res2)) {
34727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
34728 }
34729 arg2 = reinterpret_cast< wxWindow * >(argp2);
34730 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34731 if (!SWIG_IsOK(res3)) {
34732 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34733 }
34734 if (!argp3) {
34735 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34736 }
34737 arg3 = reinterpret_cast< wxDC * >(argp3);
34738 {
34739 arg4 = &temp4;
34740 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34741 }
34742 if (obj4) {
34743 ecode5 = SWIG_AsVal_int(obj4, &val5);
34744 if (!SWIG_IsOK(ecode5)) {
34745 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
34746 }
34747 arg5 = static_cast< int >(val5);
34748 }
34749 {
34750 PyThreadState* __tstate = wxPyBeginAllowThreads();
34751 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
34752 wxPyEndAllowThreads(__tstate);
34753 if (PyErr_Occurred()) SWIG_fail;
34754 }
34755 resultobj = SWIG_Py_Void();
34756 return resultobj;
34757 fail:
34758 return NULL;
34759 }
34760
34761
34762 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34763 PyObject *resultobj = 0;
34764 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34765 wxWindow *arg2 = (wxWindow *) 0 ;
34766 SwigValueWrapper<wxSplitterRenderParams > result;
34767 void *argp1 = 0 ;
34768 int res1 = 0 ;
34769 void *argp2 = 0 ;
34770 int res2 = 0 ;
34771 PyObject * obj0 = 0 ;
34772 PyObject * obj1 = 0 ;
34773 char * kwnames[] = {
34774 (char *) "self",(char *) "win", NULL
34775 };
34776
34777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34779 if (!SWIG_IsOK(res1)) {
34780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34781 }
34782 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34783 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34784 if (!SWIG_IsOK(res2)) {
34785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34786 }
34787 arg2 = reinterpret_cast< wxWindow * >(argp2);
34788 {
34789 PyThreadState* __tstate = wxPyBeginAllowThreads();
34790 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34791 wxPyEndAllowThreads(__tstate);
34792 if (PyErr_Occurred()) SWIG_fail;
34793 }
34794 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
34795 return resultobj;
34796 fail:
34797 return NULL;
34798 }
34799
34800
34801 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34802 PyObject *resultobj = 0;
34803 wxRendererNative *result = 0 ;
34804
34805 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
34806 {
34807 if (!wxPyCheckForApp()) SWIG_fail;
34808 PyThreadState* __tstate = wxPyBeginAllowThreads();
34809 {
34810 wxRendererNative &_result_ref = wxRendererNative::Get();
34811 result = (wxRendererNative *) &_result_ref;
34812 }
34813 wxPyEndAllowThreads(__tstate);
34814 if (PyErr_Occurred()) SWIG_fail;
34815 }
34816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34817 return resultobj;
34818 fail:
34819 return NULL;
34820 }
34821
34822
34823 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34824 PyObject *resultobj = 0;
34825 wxRendererNative *result = 0 ;
34826
34827 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
34828 {
34829 if (!wxPyCheckForApp()) SWIG_fail;
34830 PyThreadState* __tstate = wxPyBeginAllowThreads();
34831 {
34832 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
34833 result = (wxRendererNative *) &_result_ref;
34834 }
34835 wxPyEndAllowThreads(__tstate);
34836 if (PyErr_Occurred()) SWIG_fail;
34837 }
34838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34839 return resultobj;
34840 fail:
34841 return NULL;
34842 }
34843
34844
34845 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34846 PyObject *resultobj = 0;
34847 wxRendererNative *result = 0 ;
34848
34849 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
34850 {
34851 if (!wxPyCheckForApp()) SWIG_fail;
34852 PyThreadState* __tstate = wxPyBeginAllowThreads();
34853 {
34854 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
34855 result = (wxRendererNative *) &_result_ref;
34856 }
34857 wxPyEndAllowThreads(__tstate);
34858 if (PyErr_Occurred()) SWIG_fail;
34859 }
34860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34861 return resultobj;
34862 fail:
34863 return NULL;
34864 }
34865
34866
34867 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34868 PyObject *resultobj = 0;
34869 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34870 wxRendererNative *result = 0 ;
34871 void *argp1 = 0 ;
34872 int res1 = 0 ;
34873 PyObject * obj0 = 0 ;
34874 char * kwnames[] = {
34875 (char *) "renderer", NULL
34876 };
34877
34878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
34879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34880 if (!SWIG_IsOK(res1)) {
34881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34882 }
34883 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34884 {
34885 if (!wxPyCheckForApp()) SWIG_fail;
34886 PyThreadState* __tstate = wxPyBeginAllowThreads();
34887 result = (wxRendererNative *)wxRendererNative::Set(arg1);
34888 wxPyEndAllowThreads(__tstate);
34889 if (PyErr_Occurred()) SWIG_fail;
34890 }
34891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34892 return resultobj;
34893 fail:
34894 return NULL;
34895 }
34896
34897
34898 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34899 PyObject *resultobj = 0;
34900 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34901 SwigValueWrapper<wxRendererVersion > result;
34902 void *argp1 = 0 ;
34903 int res1 = 0 ;
34904 PyObject *swig_obj[1] ;
34905
34906 if (!args) SWIG_fail;
34907 swig_obj[0] = args;
34908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34909 if (!SWIG_IsOK(res1)) {
34910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
34911 }
34912 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34913 {
34914 PyThreadState* __tstate = wxPyBeginAllowThreads();
34915 result = ((wxRendererNative const *)arg1)->GetVersion();
34916 wxPyEndAllowThreads(__tstate);
34917 if (PyErr_Occurred()) SWIG_fail;
34918 }
34919 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
34920 return resultobj;
34921 fail:
34922 return NULL;
34923 }
34924
34925
34926 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34927 PyObject *obj;
34928 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34929 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
34930 return SWIG_Py_Void();
34931 }
34932
34933 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34934 PyObject *resultobj = 0;
34935 wxPseudoDC *result = 0 ;
34936
34937 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
34938 {
34939 PyThreadState* __tstate = wxPyBeginAllowThreads();
34940 result = (wxPseudoDC *)new wxPseudoDC();
34941 wxPyEndAllowThreads(__tstate);
34942 if (PyErr_Occurred()) SWIG_fail;
34943 }
34944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
34945 return resultobj;
34946 fail:
34947 return NULL;
34948 }
34949
34950
34951 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34952 PyObject *resultobj = 0;
34953 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34954 void *argp1 = 0 ;
34955 int res1 = 0 ;
34956 PyObject *swig_obj[1] ;
34957
34958 if (!args) SWIG_fail;
34959 swig_obj[0] = args;
34960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34961 if (!SWIG_IsOK(res1)) {
34962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34963 }
34964 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34965 {
34966 PyThreadState* __tstate = wxPyBeginAllowThreads();
34967 (arg1)->BeginDrawing();
34968 wxPyEndAllowThreads(__tstate);
34969 if (PyErr_Occurred()) SWIG_fail;
34970 }
34971 resultobj = SWIG_Py_Void();
34972 return resultobj;
34973 fail:
34974 return NULL;
34975 }
34976
34977
34978 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34979 PyObject *resultobj = 0;
34980 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34981 void *argp1 = 0 ;
34982 int res1 = 0 ;
34983 PyObject *swig_obj[1] ;
34984
34985 if (!args) SWIG_fail;
34986 swig_obj[0] = args;
34987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34988 if (!SWIG_IsOK(res1)) {
34989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34990 }
34991 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34992 {
34993 PyThreadState* __tstate = wxPyBeginAllowThreads();
34994 (arg1)->EndDrawing();
34995 wxPyEndAllowThreads(__tstate);
34996 if (PyErr_Occurred()) SWIG_fail;
34997 }
34998 resultobj = SWIG_Py_Void();
34999 return resultobj;
35000 fail:
35001 return NULL;
35002 }
35003
35004
35005 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35006 PyObject *resultobj = 0;
35007 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35008 void *argp1 = 0 ;
35009 int res1 = 0 ;
35010 PyObject *swig_obj[1] ;
35011
35012 if (!args) SWIG_fail;
35013 swig_obj[0] = args;
35014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35015 if (!SWIG_IsOK(res1)) {
35016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35017 }
35018 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35019 {
35020 PyThreadState* __tstate = wxPyBeginAllowThreads();
35021 delete arg1;
35022
35023 wxPyEndAllowThreads(__tstate);
35024 if (PyErr_Occurred()) SWIG_fail;
35025 }
35026 resultobj = SWIG_Py_Void();
35027 return resultobj;
35028 fail:
35029 return NULL;
35030 }
35031
35032
35033 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35034 PyObject *resultobj = 0;
35035 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35036 void *argp1 = 0 ;
35037 int res1 = 0 ;
35038 PyObject *swig_obj[1] ;
35039
35040 if (!args) SWIG_fail;
35041 swig_obj[0] = args;
35042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35043 if (!SWIG_IsOK(res1)) {
35044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35045 }
35046 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35047 {
35048 PyThreadState* __tstate = wxPyBeginAllowThreads();
35049 (arg1)->RemoveAll();
35050 wxPyEndAllowThreads(__tstate);
35051 if (PyErr_Occurred()) SWIG_fail;
35052 }
35053 resultobj = SWIG_Py_Void();
35054 return resultobj;
35055 fail:
35056 return NULL;
35057 }
35058
35059
35060 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35061 PyObject *resultobj = 0;
35062 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35063 int result;
35064 void *argp1 = 0 ;
35065 int res1 = 0 ;
35066 PyObject *swig_obj[1] ;
35067
35068 if (!args) SWIG_fail;
35069 swig_obj[0] = args;
35070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35071 if (!SWIG_IsOK(res1)) {
35072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35073 }
35074 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35075 {
35076 PyThreadState* __tstate = wxPyBeginAllowThreads();
35077 result = (int)(arg1)->GetLen();
35078 wxPyEndAllowThreads(__tstate);
35079 if (PyErr_Occurred()) SWIG_fail;
35080 }
35081 resultobj = SWIG_From_int(static_cast< int >(result));
35082 return resultobj;
35083 fail:
35084 return NULL;
35085 }
35086
35087
35088 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35089 PyObject *resultobj = 0;
35090 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35091 int arg2 ;
35092 void *argp1 = 0 ;
35093 int res1 = 0 ;
35094 int val2 ;
35095 int ecode2 = 0 ;
35096 PyObject * obj0 = 0 ;
35097 PyObject * obj1 = 0 ;
35098 char * kwnames[] = {
35099 (char *) "self",(char *) "id", NULL
35100 };
35101
35102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35104 if (!SWIG_IsOK(res1)) {
35105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35106 }
35107 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35108 ecode2 = SWIG_AsVal_int(obj1, &val2);
35109 if (!SWIG_IsOK(ecode2)) {
35110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35111 }
35112 arg2 = static_cast< int >(val2);
35113 {
35114 PyThreadState* __tstate = wxPyBeginAllowThreads();
35115 (arg1)->SetId(arg2);
35116 wxPyEndAllowThreads(__tstate);
35117 if (PyErr_Occurred()) SWIG_fail;
35118 }
35119 resultobj = SWIG_Py_Void();
35120 return resultobj;
35121 fail:
35122 return NULL;
35123 }
35124
35125
35126 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35127 PyObject *resultobj = 0;
35128 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35129 int arg2 ;
35130 void *argp1 = 0 ;
35131 int res1 = 0 ;
35132 int val2 ;
35133 int ecode2 = 0 ;
35134 PyObject * obj0 = 0 ;
35135 PyObject * obj1 = 0 ;
35136 char * kwnames[] = {
35137 (char *) "self",(char *) "id", NULL
35138 };
35139
35140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35142 if (!SWIG_IsOK(res1)) {
35143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35144 }
35145 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35146 ecode2 = SWIG_AsVal_int(obj1, &val2);
35147 if (!SWIG_IsOK(ecode2)) {
35148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35149 }
35150 arg2 = static_cast< int >(val2);
35151 {
35152 PyThreadState* __tstate = wxPyBeginAllowThreads();
35153 (arg1)->ClearId(arg2);
35154 wxPyEndAllowThreads(__tstate);
35155 if (PyErr_Occurred()) SWIG_fail;
35156 }
35157 resultobj = SWIG_Py_Void();
35158 return resultobj;
35159 fail:
35160 return NULL;
35161 }
35162
35163
35164 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35165 PyObject *resultobj = 0;
35166 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35167 int arg2 ;
35168 void *argp1 = 0 ;
35169 int res1 = 0 ;
35170 int val2 ;
35171 int ecode2 = 0 ;
35172 PyObject * obj0 = 0 ;
35173 PyObject * obj1 = 0 ;
35174 char * kwnames[] = {
35175 (char *) "self",(char *) "id", NULL
35176 };
35177
35178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35180 if (!SWIG_IsOK(res1)) {
35181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35182 }
35183 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35184 ecode2 = SWIG_AsVal_int(obj1, &val2);
35185 if (!SWIG_IsOK(ecode2)) {
35186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35187 }
35188 arg2 = static_cast< int >(val2);
35189 {
35190 PyThreadState* __tstate = wxPyBeginAllowThreads();
35191 (arg1)->RemoveId(arg2);
35192 wxPyEndAllowThreads(__tstate);
35193 if (PyErr_Occurred()) SWIG_fail;
35194 }
35195 resultobj = SWIG_Py_Void();
35196 return resultobj;
35197 fail:
35198 return NULL;
35199 }
35200
35201
35202 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35203 PyObject *resultobj = 0;
35204 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35205 int arg2 ;
35206 int arg3 ;
35207 int arg4 ;
35208 void *argp1 = 0 ;
35209 int res1 = 0 ;
35210 int val2 ;
35211 int ecode2 = 0 ;
35212 int val3 ;
35213 int ecode3 = 0 ;
35214 int val4 ;
35215 int ecode4 = 0 ;
35216 PyObject * obj0 = 0 ;
35217 PyObject * obj1 = 0 ;
35218 PyObject * obj2 = 0 ;
35219 PyObject * obj3 = 0 ;
35220 char * kwnames[] = {
35221 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35222 };
35223
35224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35226 if (!SWIG_IsOK(res1)) {
35227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35228 }
35229 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35230 ecode2 = SWIG_AsVal_int(obj1, &val2);
35231 if (!SWIG_IsOK(ecode2)) {
35232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35233 }
35234 arg2 = static_cast< int >(val2);
35235 ecode3 = SWIG_AsVal_int(obj2, &val3);
35236 if (!SWIG_IsOK(ecode3)) {
35237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35238 }
35239 arg3 = static_cast< int >(val3);
35240 ecode4 = SWIG_AsVal_int(obj3, &val4);
35241 if (!SWIG_IsOK(ecode4)) {
35242 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35243 }
35244 arg4 = static_cast< int >(val4);
35245 {
35246 PyThreadState* __tstate = wxPyBeginAllowThreads();
35247 (arg1)->TranslateId(arg2,arg3,arg4);
35248 wxPyEndAllowThreads(__tstate);
35249 if (PyErr_Occurred()) SWIG_fail;
35250 }
35251 resultobj = SWIG_Py_Void();
35252 return resultobj;
35253 fail:
35254 return NULL;
35255 }
35256
35257
35258 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35259 PyObject *resultobj = 0;
35260 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35261 int arg2 ;
35262 bool arg3 = (bool) true ;
35263 void *argp1 = 0 ;
35264 int res1 = 0 ;
35265 int val2 ;
35266 int ecode2 = 0 ;
35267 bool val3 ;
35268 int ecode3 = 0 ;
35269 PyObject * obj0 = 0 ;
35270 PyObject * obj1 = 0 ;
35271 PyObject * obj2 = 0 ;
35272 char * kwnames[] = {
35273 (char *) "self",(char *) "id",(char *) "greyout", NULL
35274 };
35275
35276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35278 if (!SWIG_IsOK(res1)) {
35279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35280 }
35281 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35282 ecode2 = SWIG_AsVal_int(obj1, &val2);
35283 if (!SWIG_IsOK(ecode2)) {
35284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35285 }
35286 arg2 = static_cast< int >(val2);
35287 if (obj2) {
35288 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35289 if (!SWIG_IsOK(ecode3)) {
35290 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35291 }
35292 arg3 = static_cast< bool >(val3);
35293 }
35294 {
35295 PyThreadState* __tstate = wxPyBeginAllowThreads();
35296 (arg1)->SetIdGreyedOut(arg2,arg3);
35297 wxPyEndAllowThreads(__tstate);
35298 if (PyErr_Occurred()) SWIG_fail;
35299 }
35300 resultobj = SWIG_Py_Void();
35301 return resultobj;
35302 fail:
35303 return NULL;
35304 }
35305
35306
35307 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35308 PyObject *resultobj = 0;
35309 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35310 int arg2 ;
35311 bool result;
35312 void *argp1 = 0 ;
35313 int res1 = 0 ;
35314 int val2 ;
35315 int ecode2 = 0 ;
35316 PyObject * obj0 = 0 ;
35317 PyObject * obj1 = 0 ;
35318 char * kwnames[] = {
35319 (char *) "self",(char *) "id", NULL
35320 };
35321
35322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35324 if (!SWIG_IsOK(res1)) {
35325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35326 }
35327 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35328 ecode2 = SWIG_AsVal_int(obj1, &val2);
35329 if (!SWIG_IsOK(ecode2)) {
35330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35331 }
35332 arg2 = static_cast< int >(val2);
35333 {
35334 PyThreadState* __tstate = wxPyBeginAllowThreads();
35335 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35336 wxPyEndAllowThreads(__tstate);
35337 if (PyErr_Occurred()) SWIG_fail;
35338 }
35339 {
35340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35341 }
35342 return resultobj;
35343 fail:
35344 return NULL;
35345 }
35346
35347
35348 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35349 PyObject *resultobj = 0;
35350 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35351 int arg2 ;
35352 int arg3 ;
35353 int arg4 = (int) 1 ;
35354 wxColor const &arg5_defvalue = *wxWHITE ;
35355 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35356 PyObject *result = 0 ;
35357 void *argp1 = 0 ;
35358 int res1 = 0 ;
35359 int val2 ;
35360 int ecode2 = 0 ;
35361 int val3 ;
35362 int ecode3 = 0 ;
35363 int val4 ;
35364 int ecode4 = 0 ;
35365 void *argp5 = 0 ;
35366 int res5 = 0 ;
35367 PyObject * obj0 = 0 ;
35368 PyObject * obj1 = 0 ;
35369 PyObject * obj2 = 0 ;
35370 PyObject * obj3 = 0 ;
35371 PyObject * obj4 = 0 ;
35372 char * kwnames[] = {
35373 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35374 };
35375
35376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35378 if (!SWIG_IsOK(res1)) {
35379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35380 }
35381 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35382 ecode2 = SWIG_AsVal_int(obj1, &val2);
35383 if (!SWIG_IsOK(ecode2)) {
35384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35385 }
35386 arg2 = static_cast< int >(val2);
35387 ecode3 = SWIG_AsVal_int(obj2, &val3);
35388 if (!SWIG_IsOK(ecode3)) {
35389 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35390 }
35391 arg3 = static_cast< int >(val3);
35392 if (obj3) {
35393 ecode4 = SWIG_AsVal_int(obj3, &val4);
35394 if (!SWIG_IsOK(ecode4)) {
35395 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35396 }
35397 arg4 = static_cast< int >(val4);
35398 }
35399 if (obj4) {
35400 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35401 if (!SWIG_IsOK(res5)) {
35402 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35403 }
35404 if (!argp5) {
35405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35406 }
35407 arg5 = reinterpret_cast< wxColor * >(argp5);
35408 }
35409 {
35410 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35411 if (PyErr_Occurred()) SWIG_fail;
35412 }
35413 resultobj = result;
35414 return resultobj;
35415 fail:
35416 return NULL;
35417 }
35418
35419
35420 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35421 PyObject *resultobj = 0;
35422 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35423 int arg2 ;
35424 int arg3 ;
35425 PyObject *result = 0 ;
35426 void *argp1 = 0 ;
35427 int res1 = 0 ;
35428 int val2 ;
35429 int ecode2 = 0 ;
35430 int val3 ;
35431 int ecode3 = 0 ;
35432 PyObject * obj0 = 0 ;
35433 PyObject * obj1 = 0 ;
35434 PyObject * obj2 = 0 ;
35435 char * kwnames[] = {
35436 (char *) "self",(char *) "x",(char *) "y", NULL
35437 };
35438
35439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35441 if (!SWIG_IsOK(res1)) {
35442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35443 }
35444 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35445 ecode2 = SWIG_AsVal_int(obj1, &val2);
35446 if (!SWIG_IsOK(ecode2)) {
35447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35448 }
35449 arg2 = static_cast< int >(val2);
35450 ecode3 = SWIG_AsVal_int(obj2, &val3);
35451 if (!SWIG_IsOK(ecode3)) {
35452 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35453 }
35454 arg3 = static_cast< int >(val3);
35455 {
35456 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35457 if (PyErr_Occurred()) SWIG_fail;
35458 }
35459 resultobj = result;
35460 return resultobj;
35461 fail:
35462 return NULL;
35463 }
35464
35465
35466 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35467 PyObject *resultobj = 0;
35468 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35469 int arg2 ;
35470 wxDC *arg3 = (wxDC *) 0 ;
35471 void *argp1 = 0 ;
35472 int res1 = 0 ;
35473 int val2 ;
35474 int ecode2 = 0 ;
35475 void *argp3 = 0 ;
35476 int res3 = 0 ;
35477 PyObject * obj0 = 0 ;
35478 PyObject * obj1 = 0 ;
35479 PyObject * obj2 = 0 ;
35480 char * kwnames[] = {
35481 (char *) "self",(char *) "id",(char *) "dc", NULL
35482 };
35483
35484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35486 if (!SWIG_IsOK(res1)) {
35487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35488 }
35489 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35490 ecode2 = SWIG_AsVal_int(obj1, &val2);
35491 if (!SWIG_IsOK(ecode2)) {
35492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35493 }
35494 arg2 = static_cast< int >(val2);
35495 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35496 if (!SWIG_IsOK(res3)) {
35497 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35498 }
35499 arg3 = reinterpret_cast< wxDC * >(argp3);
35500 {
35501 PyThreadState* __tstate = wxPyBeginAllowThreads();
35502 (arg1)->DrawIdToDC(arg2,arg3);
35503 wxPyEndAllowThreads(__tstate);
35504 if (PyErr_Occurred()) SWIG_fail;
35505 }
35506 resultobj = SWIG_Py_Void();
35507 return resultobj;
35508 fail:
35509 return NULL;
35510 }
35511
35512
35513 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35514 PyObject *resultobj = 0;
35515 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35516 int arg2 ;
35517 wxRect *arg3 = 0 ;
35518 void *argp1 = 0 ;
35519 int res1 = 0 ;
35520 int val2 ;
35521 int ecode2 = 0 ;
35522 wxRect temp3 ;
35523 PyObject * obj0 = 0 ;
35524 PyObject * obj1 = 0 ;
35525 PyObject * obj2 = 0 ;
35526 char * kwnames[] = {
35527 (char *) "self",(char *) "id",(char *) "rect", NULL
35528 };
35529
35530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35532 if (!SWIG_IsOK(res1)) {
35533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35534 }
35535 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35536 ecode2 = SWIG_AsVal_int(obj1, &val2);
35537 if (!SWIG_IsOK(ecode2)) {
35538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35539 }
35540 arg2 = static_cast< int >(val2);
35541 {
35542 arg3 = &temp3;
35543 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35544 }
35545 {
35546 PyThreadState* __tstate = wxPyBeginAllowThreads();
35547 (arg1)->SetIdBounds(arg2,*arg3);
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_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35559 PyObject *resultobj = 0;
35560 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35561 int arg2 ;
35562 wxRect result;
35563 void *argp1 = 0 ;
35564 int res1 = 0 ;
35565 int val2 ;
35566 int ecode2 = 0 ;
35567 PyObject * obj0 = 0 ;
35568 PyObject * obj1 = 0 ;
35569 char * kwnames[] = {
35570 (char *) "self",(char *) "id", NULL
35571 };
35572
35573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35575 if (!SWIG_IsOK(res1)) {
35576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35577 }
35578 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35579 ecode2 = SWIG_AsVal_int(obj1, &val2);
35580 if (!SWIG_IsOK(ecode2)) {
35581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35582 }
35583 arg2 = static_cast< int >(val2);
35584 {
35585 PyThreadState* __tstate = wxPyBeginAllowThreads();
35586 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35587 wxPyEndAllowThreads(__tstate);
35588 if (PyErr_Occurred()) SWIG_fail;
35589 }
35590 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35591 return resultobj;
35592 fail:
35593 return NULL;
35594 }
35595
35596
35597 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35598 PyObject *resultobj = 0;
35599 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35600 wxDC *arg2 = (wxDC *) 0 ;
35601 wxRect *arg3 = 0 ;
35602 void *argp1 = 0 ;
35603 int res1 = 0 ;
35604 void *argp2 = 0 ;
35605 int res2 = 0 ;
35606 wxRect temp3 ;
35607 PyObject * obj0 = 0 ;
35608 PyObject * obj1 = 0 ;
35609 PyObject * obj2 = 0 ;
35610 char * kwnames[] = {
35611 (char *) "self",(char *) "dc",(char *) "rect", NULL
35612 };
35613
35614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35616 if (!SWIG_IsOK(res1)) {
35617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35618 }
35619 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35620 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35621 if (!SWIG_IsOK(res2)) {
35622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35623 }
35624 arg2 = reinterpret_cast< wxDC * >(argp2);
35625 {
35626 arg3 = &temp3;
35627 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35628 }
35629 {
35630 PyThreadState* __tstate = wxPyBeginAllowThreads();
35631 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35632 wxPyEndAllowThreads(__tstate);
35633 if (PyErr_Occurred()) SWIG_fail;
35634 }
35635 resultobj = SWIG_Py_Void();
35636 return resultobj;
35637 fail:
35638 return NULL;
35639 }
35640
35641
35642 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35643 PyObject *resultobj = 0;
35644 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35645 wxDC *arg2 = (wxDC *) 0 ;
35646 wxRegion *arg3 = 0 ;
35647 void *argp1 = 0 ;
35648 int res1 = 0 ;
35649 void *argp2 = 0 ;
35650 int res2 = 0 ;
35651 void *argp3 = 0 ;
35652 int res3 = 0 ;
35653 PyObject * obj0 = 0 ;
35654 PyObject * obj1 = 0 ;
35655 PyObject * obj2 = 0 ;
35656 char * kwnames[] = {
35657 (char *) "self",(char *) "dc",(char *) "region", NULL
35658 };
35659
35660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35662 if (!SWIG_IsOK(res1)) {
35663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35664 }
35665 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35666 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35667 if (!SWIG_IsOK(res2)) {
35668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35669 }
35670 arg2 = reinterpret_cast< wxDC * >(argp2);
35671 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35672 if (!SWIG_IsOK(res3)) {
35673 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35674 }
35675 if (!argp3) {
35676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35677 }
35678 arg3 = reinterpret_cast< wxRegion * >(argp3);
35679 {
35680 PyThreadState* __tstate = wxPyBeginAllowThreads();
35681 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35682 wxPyEndAllowThreads(__tstate);
35683 if (PyErr_Occurred()) SWIG_fail;
35684 }
35685 resultobj = SWIG_Py_Void();
35686 return resultobj;
35687 fail:
35688 return NULL;
35689 }
35690
35691
35692 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35693 PyObject *resultobj = 0;
35694 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35695 wxDC *arg2 = (wxDC *) 0 ;
35696 void *argp1 = 0 ;
35697 int res1 = 0 ;
35698 void *argp2 = 0 ;
35699 int res2 = 0 ;
35700 PyObject * obj0 = 0 ;
35701 PyObject * obj1 = 0 ;
35702 char * kwnames[] = {
35703 (char *) "self",(char *) "dc", NULL
35704 };
35705
35706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35708 if (!SWIG_IsOK(res1)) {
35709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35710 }
35711 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35712 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35713 if (!SWIG_IsOK(res2)) {
35714 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35715 }
35716 arg2 = reinterpret_cast< wxDC * >(argp2);
35717 {
35718 PyThreadState* __tstate = wxPyBeginAllowThreads();
35719 (arg1)->DrawToDC(arg2);
35720 wxPyEndAllowThreads(__tstate);
35721 if (PyErr_Occurred()) SWIG_fail;
35722 }
35723 resultobj = SWIG_Py_Void();
35724 return resultobj;
35725 fail:
35726 return NULL;
35727 }
35728
35729
35730 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35731 PyObject *resultobj = 0;
35732 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35733 int arg2 ;
35734 int arg3 ;
35735 wxColour *arg4 = 0 ;
35736 int arg5 = (int) wxFLOOD_SURFACE ;
35737 void *argp1 = 0 ;
35738 int res1 = 0 ;
35739 int val2 ;
35740 int ecode2 = 0 ;
35741 int val3 ;
35742 int ecode3 = 0 ;
35743 wxColour temp4 ;
35744 int val5 ;
35745 int ecode5 = 0 ;
35746 PyObject * obj0 = 0 ;
35747 PyObject * obj1 = 0 ;
35748 PyObject * obj2 = 0 ;
35749 PyObject * obj3 = 0 ;
35750 PyObject * obj4 = 0 ;
35751 char * kwnames[] = {
35752 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35753 };
35754
35755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35757 if (!SWIG_IsOK(res1)) {
35758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35759 }
35760 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35761 ecode2 = SWIG_AsVal_int(obj1, &val2);
35762 if (!SWIG_IsOK(ecode2)) {
35763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35764 }
35765 arg2 = static_cast< int >(val2);
35766 ecode3 = SWIG_AsVal_int(obj2, &val3);
35767 if (!SWIG_IsOK(ecode3)) {
35768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35769 }
35770 arg3 = static_cast< int >(val3);
35771 {
35772 arg4 = &temp4;
35773 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35774 }
35775 if (obj4) {
35776 ecode5 = SWIG_AsVal_int(obj4, &val5);
35777 if (!SWIG_IsOK(ecode5)) {
35778 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35779 }
35780 arg5 = static_cast< int >(val5);
35781 }
35782 {
35783 PyThreadState* __tstate = wxPyBeginAllowThreads();
35784 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35785 wxPyEndAllowThreads(__tstate);
35786 if (PyErr_Occurred()) SWIG_fail;
35787 }
35788 resultobj = SWIG_Py_Void();
35789 return resultobj;
35790 fail:
35791 return NULL;
35792 }
35793
35794
35795 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35796 PyObject *resultobj = 0;
35797 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35798 wxPoint *arg2 = 0 ;
35799 wxColour *arg3 = 0 ;
35800 int arg4 = (int) wxFLOOD_SURFACE ;
35801 void *argp1 = 0 ;
35802 int res1 = 0 ;
35803 wxPoint temp2 ;
35804 wxColour temp3 ;
35805 int val4 ;
35806 int ecode4 = 0 ;
35807 PyObject * obj0 = 0 ;
35808 PyObject * obj1 = 0 ;
35809 PyObject * obj2 = 0 ;
35810 PyObject * obj3 = 0 ;
35811 char * kwnames[] = {
35812 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
35813 };
35814
35815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35817 if (!SWIG_IsOK(res1)) {
35818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35819 }
35820 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35821 {
35822 arg2 = &temp2;
35823 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35824 }
35825 {
35826 arg3 = &temp3;
35827 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35828 }
35829 if (obj3) {
35830 ecode4 = SWIG_AsVal_int(obj3, &val4);
35831 if (!SWIG_IsOK(ecode4)) {
35832 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
35833 }
35834 arg4 = static_cast< int >(val4);
35835 }
35836 {
35837 PyThreadState* __tstate = wxPyBeginAllowThreads();
35838 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
35839 wxPyEndAllowThreads(__tstate);
35840 if (PyErr_Occurred()) SWIG_fail;
35841 }
35842 resultobj = SWIG_Py_Void();
35843 return resultobj;
35844 fail:
35845 return NULL;
35846 }
35847
35848
35849 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35850 PyObject *resultobj = 0;
35851 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35852 int arg2 ;
35853 int arg3 ;
35854 int arg4 ;
35855 int arg5 ;
35856 void *argp1 = 0 ;
35857 int res1 = 0 ;
35858 int val2 ;
35859 int ecode2 = 0 ;
35860 int val3 ;
35861 int ecode3 = 0 ;
35862 int val4 ;
35863 int ecode4 = 0 ;
35864 int val5 ;
35865 int ecode5 = 0 ;
35866 PyObject * obj0 = 0 ;
35867 PyObject * obj1 = 0 ;
35868 PyObject * obj2 = 0 ;
35869 PyObject * obj3 = 0 ;
35870 PyObject * obj4 = 0 ;
35871 char * kwnames[] = {
35872 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
35873 };
35874
35875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35877 if (!SWIG_IsOK(res1)) {
35878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35879 }
35880 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35881 ecode2 = SWIG_AsVal_int(obj1, &val2);
35882 if (!SWIG_IsOK(ecode2)) {
35883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
35884 }
35885 arg2 = static_cast< int >(val2);
35886 ecode3 = SWIG_AsVal_int(obj2, &val3);
35887 if (!SWIG_IsOK(ecode3)) {
35888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
35889 }
35890 arg3 = static_cast< int >(val3);
35891 ecode4 = SWIG_AsVal_int(obj3, &val4);
35892 if (!SWIG_IsOK(ecode4)) {
35893 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
35894 }
35895 arg4 = static_cast< int >(val4);
35896 ecode5 = SWIG_AsVal_int(obj4, &val5);
35897 if (!SWIG_IsOK(ecode5)) {
35898 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
35899 }
35900 arg5 = static_cast< int >(val5);
35901 {
35902 PyThreadState* __tstate = wxPyBeginAllowThreads();
35903 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
35904 wxPyEndAllowThreads(__tstate);
35905 if (PyErr_Occurred()) SWIG_fail;
35906 }
35907 resultobj = SWIG_Py_Void();
35908 return resultobj;
35909 fail:
35910 return NULL;
35911 }
35912
35913
35914 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35915 PyObject *resultobj = 0;
35916 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35917 wxPoint *arg2 = 0 ;
35918 wxPoint *arg3 = 0 ;
35919 void *argp1 = 0 ;
35920 int res1 = 0 ;
35921 wxPoint temp2 ;
35922 wxPoint temp3 ;
35923 PyObject * obj0 = 0 ;
35924 PyObject * obj1 = 0 ;
35925 PyObject * obj2 = 0 ;
35926 char * kwnames[] = {
35927 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
35928 };
35929
35930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35932 if (!SWIG_IsOK(res1)) {
35933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35934 }
35935 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35936 {
35937 arg2 = &temp2;
35938 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35939 }
35940 {
35941 arg3 = &temp3;
35942 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35943 }
35944 {
35945 PyThreadState* __tstate = wxPyBeginAllowThreads();
35946 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
35947 wxPyEndAllowThreads(__tstate);
35948 if (PyErr_Occurred()) SWIG_fail;
35949 }
35950 resultobj = SWIG_Py_Void();
35951 return resultobj;
35952 fail:
35953 return NULL;
35954 }
35955
35956
35957 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35958 PyObject *resultobj = 0;
35959 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35960 int arg2 ;
35961 int arg3 ;
35962 void *argp1 = 0 ;
35963 int res1 = 0 ;
35964 int val2 ;
35965 int ecode2 = 0 ;
35966 int val3 ;
35967 int ecode3 = 0 ;
35968 PyObject * obj0 = 0 ;
35969 PyObject * obj1 = 0 ;
35970 PyObject * obj2 = 0 ;
35971 char * kwnames[] = {
35972 (char *) "self",(char *) "x",(char *) "y", NULL
35973 };
35974
35975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35977 if (!SWIG_IsOK(res1)) {
35978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35979 }
35980 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35981 ecode2 = SWIG_AsVal_int(obj1, &val2);
35982 if (!SWIG_IsOK(ecode2)) {
35983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
35984 }
35985 arg2 = static_cast< int >(val2);
35986 ecode3 = SWIG_AsVal_int(obj2, &val3);
35987 if (!SWIG_IsOK(ecode3)) {
35988 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
35989 }
35990 arg3 = static_cast< int >(val3);
35991 {
35992 PyThreadState* __tstate = wxPyBeginAllowThreads();
35993 (arg1)->CrossHair(arg2,arg3);
35994 wxPyEndAllowThreads(__tstate);
35995 if (PyErr_Occurred()) SWIG_fail;
35996 }
35997 resultobj = SWIG_Py_Void();
35998 return resultobj;
35999 fail:
36000 return NULL;
36001 }
36002
36003
36004 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36005 PyObject *resultobj = 0;
36006 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36007 wxPoint *arg2 = 0 ;
36008 void *argp1 = 0 ;
36009 int res1 = 0 ;
36010 wxPoint temp2 ;
36011 PyObject * obj0 = 0 ;
36012 PyObject * obj1 = 0 ;
36013 char * kwnames[] = {
36014 (char *) "self",(char *) "pt", NULL
36015 };
36016
36017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36019 if (!SWIG_IsOK(res1)) {
36020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36021 }
36022 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36023 {
36024 arg2 = &temp2;
36025 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36026 }
36027 {
36028 PyThreadState* __tstate = wxPyBeginAllowThreads();
36029 (arg1)->CrossHair((wxPoint const &)*arg2);
36030 wxPyEndAllowThreads(__tstate);
36031 if (PyErr_Occurred()) SWIG_fail;
36032 }
36033 resultobj = SWIG_Py_Void();
36034 return resultobj;
36035 fail:
36036 return NULL;
36037 }
36038
36039
36040 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36041 PyObject *resultobj = 0;
36042 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36043 int arg2 ;
36044 int arg3 ;
36045 int arg4 ;
36046 int arg5 ;
36047 int arg6 ;
36048 int arg7 ;
36049 void *argp1 = 0 ;
36050 int res1 = 0 ;
36051 int val2 ;
36052 int ecode2 = 0 ;
36053 int val3 ;
36054 int ecode3 = 0 ;
36055 int val4 ;
36056 int ecode4 = 0 ;
36057 int val5 ;
36058 int ecode5 = 0 ;
36059 int val6 ;
36060 int ecode6 = 0 ;
36061 int val7 ;
36062 int ecode7 = 0 ;
36063 PyObject * obj0 = 0 ;
36064 PyObject * obj1 = 0 ;
36065 PyObject * obj2 = 0 ;
36066 PyObject * obj3 = 0 ;
36067 PyObject * obj4 = 0 ;
36068 PyObject * obj5 = 0 ;
36069 PyObject * obj6 = 0 ;
36070 char * kwnames[] = {
36071 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36072 };
36073
36074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36076 if (!SWIG_IsOK(res1)) {
36077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36078 }
36079 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36080 ecode2 = SWIG_AsVal_int(obj1, &val2);
36081 if (!SWIG_IsOK(ecode2)) {
36082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36083 }
36084 arg2 = static_cast< int >(val2);
36085 ecode3 = SWIG_AsVal_int(obj2, &val3);
36086 if (!SWIG_IsOK(ecode3)) {
36087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36088 }
36089 arg3 = static_cast< int >(val3);
36090 ecode4 = SWIG_AsVal_int(obj3, &val4);
36091 if (!SWIG_IsOK(ecode4)) {
36092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36093 }
36094 arg4 = static_cast< int >(val4);
36095 ecode5 = SWIG_AsVal_int(obj4, &val5);
36096 if (!SWIG_IsOK(ecode5)) {
36097 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36098 }
36099 arg5 = static_cast< int >(val5);
36100 ecode6 = SWIG_AsVal_int(obj5, &val6);
36101 if (!SWIG_IsOK(ecode6)) {
36102 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36103 }
36104 arg6 = static_cast< int >(val6);
36105 ecode7 = SWIG_AsVal_int(obj6, &val7);
36106 if (!SWIG_IsOK(ecode7)) {
36107 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36108 }
36109 arg7 = static_cast< int >(val7);
36110 {
36111 PyThreadState* __tstate = wxPyBeginAllowThreads();
36112 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36113 wxPyEndAllowThreads(__tstate);
36114 if (PyErr_Occurred()) SWIG_fail;
36115 }
36116 resultobj = SWIG_Py_Void();
36117 return resultobj;
36118 fail:
36119 return NULL;
36120 }
36121
36122
36123 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36124 PyObject *resultobj = 0;
36125 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36126 wxPoint *arg2 = 0 ;
36127 wxPoint *arg3 = 0 ;
36128 wxPoint *arg4 = 0 ;
36129 void *argp1 = 0 ;
36130 int res1 = 0 ;
36131 wxPoint temp2 ;
36132 wxPoint temp3 ;
36133 wxPoint temp4 ;
36134 PyObject * obj0 = 0 ;
36135 PyObject * obj1 = 0 ;
36136 PyObject * obj2 = 0 ;
36137 PyObject * obj3 = 0 ;
36138 char * kwnames[] = {
36139 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36140 };
36141
36142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36144 if (!SWIG_IsOK(res1)) {
36145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36146 }
36147 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36148 {
36149 arg2 = &temp2;
36150 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36151 }
36152 {
36153 arg3 = &temp3;
36154 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36155 }
36156 {
36157 arg4 = &temp4;
36158 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36159 }
36160 {
36161 PyThreadState* __tstate = wxPyBeginAllowThreads();
36162 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36163 wxPyEndAllowThreads(__tstate);
36164 if (PyErr_Occurred()) SWIG_fail;
36165 }
36166 resultobj = SWIG_Py_Void();
36167 return resultobj;
36168 fail:
36169 return NULL;
36170 }
36171
36172
36173 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36174 PyObject *resultobj = 0;
36175 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36176 int arg2 ;
36177 int arg3 ;
36178 int arg4 ;
36179 int arg5 ;
36180 void *argp1 = 0 ;
36181 int res1 = 0 ;
36182 int val2 ;
36183 int ecode2 = 0 ;
36184 int val3 ;
36185 int ecode3 = 0 ;
36186 int val4 ;
36187 int ecode4 = 0 ;
36188 int val5 ;
36189 int ecode5 = 0 ;
36190 PyObject * obj0 = 0 ;
36191 PyObject * obj1 = 0 ;
36192 PyObject * obj2 = 0 ;
36193 PyObject * obj3 = 0 ;
36194 PyObject * obj4 = 0 ;
36195 char * kwnames[] = {
36196 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36197 };
36198
36199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36201 if (!SWIG_IsOK(res1)) {
36202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36203 }
36204 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36205 ecode2 = SWIG_AsVal_int(obj1, &val2);
36206 if (!SWIG_IsOK(ecode2)) {
36207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36208 }
36209 arg2 = static_cast< int >(val2);
36210 ecode3 = SWIG_AsVal_int(obj2, &val3);
36211 if (!SWIG_IsOK(ecode3)) {
36212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36213 }
36214 arg3 = static_cast< int >(val3);
36215 ecode4 = SWIG_AsVal_int(obj3, &val4);
36216 if (!SWIG_IsOK(ecode4)) {
36217 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36218 }
36219 arg4 = static_cast< int >(val4);
36220 ecode5 = SWIG_AsVal_int(obj4, &val5);
36221 if (!SWIG_IsOK(ecode5)) {
36222 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36223 }
36224 arg5 = static_cast< int >(val5);
36225 {
36226 PyThreadState* __tstate = wxPyBeginAllowThreads();
36227 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
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_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36239 PyObject *resultobj = 0;
36240 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36241 wxRect *arg2 = 0 ;
36242 void *argp1 = 0 ;
36243 int res1 = 0 ;
36244 wxRect temp2 ;
36245 PyObject * obj0 = 0 ;
36246 PyObject * obj1 = 0 ;
36247 char * kwnames[] = {
36248 (char *) "self",(char *) "rect", NULL
36249 };
36250
36251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36253 if (!SWIG_IsOK(res1)) {
36254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36255 }
36256 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36257 {
36258 arg2 = &temp2;
36259 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36260 }
36261 {
36262 PyThreadState* __tstate = wxPyBeginAllowThreads();
36263 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36264 wxPyEndAllowThreads(__tstate);
36265 if (PyErr_Occurred()) SWIG_fail;
36266 }
36267 resultobj = SWIG_Py_Void();
36268 return resultobj;
36269 fail:
36270 return NULL;
36271 }
36272
36273
36274 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36275 PyObject *resultobj = 0;
36276 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36277 int arg2 ;
36278 int arg3 ;
36279 int arg4 ;
36280 int arg5 ;
36281 double arg6 ;
36282 double arg7 ;
36283 void *argp1 = 0 ;
36284 int res1 = 0 ;
36285 int val2 ;
36286 int ecode2 = 0 ;
36287 int val3 ;
36288 int ecode3 = 0 ;
36289 int val4 ;
36290 int ecode4 = 0 ;
36291 int val5 ;
36292 int ecode5 = 0 ;
36293 double val6 ;
36294 int ecode6 = 0 ;
36295 double val7 ;
36296 int ecode7 = 0 ;
36297 PyObject * obj0 = 0 ;
36298 PyObject * obj1 = 0 ;
36299 PyObject * obj2 = 0 ;
36300 PyObject * obj3 = 0 ;
36301 PyObject * obj4 = 0 ;
36302 PyObject * obj5 = 0 ;
36303 PyObject * obj6 = 0 ;
36304 char * kwnames[] = {
36305 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36306 };
36307
36308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36310 if (!SWIG_IsOK(res1)) {
36311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36312 }
36313 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36314 ecode2 = SWIG_AsVal_int(obj1, &val2);
36315 if (!SWIG_IsOK(ecode2)) {
36316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36317 }
36318 arg2 = static_cast< int >(val2);
36319 ecode3 = SWIG_AsVal_int(obj2, &val3);
36320 if (!SWIG_IsOK(ecode3)) {
36321 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36322 }
36323 arg3 = static_cast< int >(val3);
36324 ecode4 = SWIG_AsVal_int(obj3, &val4);
36325 if (!SWIG_IsOK(ecode4)) {
36326 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36327 }
36328 arg4 = static_cast< int >(val4);
36329 ecode5 = SWIG_AsVal_int(obj4, &val5);
36330 if (!SWIG_IsOK(ecode5)) {
36331 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36332 }
36333 arg5 = static_cast< int >(val5);
36334 ecode6 = SWIG_AsVal_double(obj5, &val6);
36335 if (!SWIG_IsOK(ecode6)) {
36336 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36337 }
36338 arg6 = static_cast< double >(val6);
36339 ecode7 = SWIG_AsVal_double(obj6, &val7);
36340 if (!SWIG_IsOK(ecode7)) {
36341 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36342 }
36343 arg7 = static_cast< double >(val7);
36344 {
36345 PyThreadState* __tstate = wxPyBeginAllowThreads();
36346 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36347 wxPyEndAllowThreads(__tstate);
36348 if (PyErr_Occurred()) SWIG_fail;
36349 }
36350 resultobj = SWIG_Py_Void();
36351 return resultobj;
36352 fail:
36353 return NULL;
36354 }
36355
36356
36357 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36358 PyObject *resultobj = 0;
36359 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36360 wxPoint *arg2 = 0 ;
36361 wxSize *arg3 = 0 ;
36362 double arg4 ;
36363 double arg5 ;
36364 void *argp1 = 0 ;
36365 int res1 = 0 ;
36366 wxPoint temp2 ;
36367 wxSize temp3 ;
36368 double val4 ;
36369 int ecode4 = 0 ;
36370 double val5 ;
36371 int ecode5 = 0 ;
36372 PyObject * obj0 = 0 ;
36373 PyObject * obj1 = 0 ;
36374 PyObject * obj2 = 0 ;
36375 PyObject * obj3 = 0 ;
36376 PyObject * obj4 = 0 ;
36377 char * kwnames[] = {
36378 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36379 };
36380
36381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36383 if (!SWIG_IsOK(res1)) {
36384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36385 }
36386 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36387 {
36388 arg2 = &temp2;
36389 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36390 }
36391 {
36392 arg3 = &temp3;
36393 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36394 }
36395 ecode4 = SWIG_AsVal_double(obj3, &val4);
36396 if (!SWIG_IsOK(ecode4)) {
36397 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36398 }
36399 arg4 = static_cast< double >(val4);
36400 ecode5 = SWIG_AsVal_double(obj4, &val5);
36401 if (!SWIG_IsOK(ecode5)) {
36402 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36403 }
36404 arg5 = static_cast< double >(val5);
36405 {
36406 PyThreadState* __tstate = wxPyBeginAllowThreads();
36407 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36408 wxPyEndAllowThreads(__tstate);
36409 if (PyErr_Occurred()) SWIG_fail;
36410 }
36411 resultobj = SWIG_Py_Void();
36412 return resultobj;
36413 fail:
36414 return NULL;
36415 }
36416
36417
36418 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36419 PyObject *resultobj = 0;
36420 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36421 int arg2 ;
36422 int arg3 ;
36423 void *argp1 = 0 ;
36424 int res1 = 0 ;
36425 int val2 ;
36426 int ecode2 = 0 ;
36427 int val3 ;
36428 int ecode3 = 0 ;
36429 PyObject * obj0 = 0 ;
36430 PyObject * obj1 = 0 ;
36431 PyObject * obj2 = 0 ;
36432 char * kwnames[] = {
36433 (char *) "self",(char *) "x",(char *) "y", NULL
36434 };
36435
36436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36438 if (!SWIG_IsOK(res1)) {
36439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36440 }
36441 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36442 ecode2 = SWIG_AsVal_int(obj1, &val2);
36443 if (!SWIG_IsOK(ecode2)) {
36444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36445 }
36446 arg2 = static_cast< int >(val2);
36447 ecode3 = SWIG_AsVal_int(obj2, &val3);
36448 if (!SWIG_IsOK(ecode3)) {
36449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36450 }
36451 arg3 = static_cast< int >(val3);
36452 {
36453 PyThreadState* __tstate = wxPyBeginAllowThreads();
36454 (arg1)->DrawPoint(arg2,arg3);
36455 wxPyEndAllowThreads(__tstate);
36456 if (PyErr_Occurred()) SWIG_fail;
36457 }
36458 resultobj = SWIG_Py_Void();
36459 return resultobj;
36460 fail:
36461 return NULL;
36462 }
36463
36464
36465 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36466 PyObject *resultobj = 0;
36467 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36468 wxPoint *arg2 = 0 ;
36469 void *argp1 = 0 ;
36470 int res1 = 0 ;
36471 wxPoint temp2 ;
36472 PyObject * obj0 = 0 ;
36473 PyObject * obj1 = 0 ;
36474 char * kwnames[] = {
36475 (char *) "self",(char *) "pt", NULL
36476 };
36477
36478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36480 if (!SWIG_IsOK(res1)) {
36481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36482 }
36483 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36484 {
36485 arg2 = &temp2;
36486 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36487 }
36488 {
36489 PyThreadState* __tstate = wxPyBeginAllowThreads();
36490 (arg1)->DrawPoint((wxPoint const &)*arg2);
36491 wxPyEndAllowThreads(__tstate);
36492 if (PyErr_Occurred()) SWIG_fail;
36493 }
36494 resultobj = SWIG_Py_Void();
36495 return resultobj;
36496 fail:
36497 return NULL;
36498 }
36499
36500
36501 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36502 PyObject *resultobj = 0;
36503 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36504 int arg2 ;
36505 int arg3 ;
36506 int arg4 ;
36507 int arg5 ;
36508 void *argp1 = 0 ;
36509 int res1 = 0 ;
36510 int val2 ;
36511 int ecode2 = 0 ;
36512 int val3 ;
36513 int ecode3 = 0 ;
36514 int val4 ;
36515 int ecode4 = 0 ;
36516 int val5 ;
36517 int ecode5 = 0 ;
36518 PyObject * obj0 = 0 ;
36519 PyObject * obj1 = 0 ;
36520 PyObject * obj2 = 0 ;
36521 PyObject * obj3 = 0 ;
36522 PyObject * obj4 = 0 ;
36523 char * kwnames[] = {
36524 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36525 };
36526
36527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36529 if (!SWIG_IsOK(res1)) {
36530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36531 }
36532 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36533 ecode2 = SWIG_AsVal_int(obj1, &val2);
36534 if (!SWIG_IsOK(ecode2)) {
36535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36536 }
36537 arg2 = static_cast< int >(val2);
36538 ecode3 = SWIG_AsVal_int(obj2, &val3);
36539 if (!SWIG_IsOK(ecode3)) {
36540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36541 }
36542 arg3 = static_cast< int >(val3);
36543 ecode4 = SWIG_AsVal_int(obj3, &val4);
36544 if (!SWIG_IsOK(ecode4)) {
36545 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36546 }
36547 arg4 = static_cast< int >(val4);
36548 ecode5 = SWIG_AsVal_int(obj4, &val5);
36549 if (!SWIG_IsOK(ecode5)) {
36550 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36551 }
36552 arg5 = static_cast< int >(val5);
36553 {
36554 PyThreadState* __tstate = wxPyBeginAllowThreads();
36555 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36556 wxPyEndAllowThreads(__tstate);
36557 if (PyErr_Occurred()) SWIG_fail;
36558 }
36559 resultobj = SWIG_Py_Void();
36560 return resultobj;
36561 fail:
36562 return NULL;
36563 }
36564
36565
36566 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36567 PyObject *resultobj = 0;
36568 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36569 wxRect *arg2 = 0 ;
36570 void *argp1 = 0 ;
36571 int res1 = 0 ;
36572 wxRect temp2 ;
36573 PyObject * obj0 = 0 ;
36574 PyObject * obj1 = 0 ;
36575 char * kwnames[] = {
36576 (char *) "self",(char *) "rect", NULL
36577 };
36578
36579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36581 if (!SWIG_IsOK(res1)) {
36582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36583 }
36584 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36585 {
36586 arg2 = &temp2;
36587 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36588 }
36589 {
36590 PyThreadState* __tstate = wxPyBeginAllowThreads();
36591 (arg1)->DrawRectangle((wxRect const &)*arg2);
36592 wxPyEndAllowThreads(__tstate);
36593 if (PyErr_Occurred()) SWIG_fail;
36594 }
36595 resultobj = SWIG_Py_Void();
36596 return resultobj;
36597 fail:
36598 return NULL;
36599 }
36600
36601
36602 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36603 PyObject *resultobj = 0;
36604 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36605 wxPoint *arg2 = 0 ;
36606 wxSize *arg3 = 0 ;
36607 void *argp1 = 0 ;
36608 int res1 = 0 ;
36609 wxPoint temp2 ;
36610 wxSize temp3 ;
36611 PyObject * obj0 = 0 ;
36612 PyObject * obj1 = 0 ;
36613 PyObject * obj2 = 0 ;
36614 char * kwnames[] = {
36615 (char *) "self",(char *) "pt",(char *) "sz", NULL
36616 };
36617
36618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36620 if (!SWIG_IsOK(res1)) {
36621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36622 }
36623 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36624 {
36625 arg2 = &temp2;
36626 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36627 }
36628 {
36629 arg3 = &temp3;
36630 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36631 }
36632 {
36633 PyThreadState* __tstate = wxPyBeginAllowThreads();
36634 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36635 wxPyEndAllowThreads(__tstate);
36636 if (PyErr_Occurred()) SWIG_fail;
36637 }
36638 resultobj = SWIG_Py_Void();
36639 return resultobj;
36640 fail:
36641 return NULL;
36642 }
36643
36644
36645 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36646 PyObject *resultobj = 0;
36647 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36648 int arg2 ;
36649 int arg3 ;
36650 int arg4 ;
36651 int arg5 ;
36652 double arg6 ;
36653 void *argp1 = 0 ;
36654 int res1 = 0 ;
36655 int val2 ;
36656 int ecode2 = 0 ;
36657 int val3 ;
36658 int ecode3 = 0 ;
36659 int val4 ;
36660 int ecode4 = 0 ;
36661 int val5 ;
36662 int ecode5 = 0 ;
36663 double val6 ;
36664 int ecode6 = 0 ;
36665 PyObject * obj0 = 0 ;
36666 PyObject * obj1 = 0 ;
36667 PyObject * obj2 = 0 ;
36668 PyObject * obj3 = 0 ;
36669 PyObject * obj4 = 0 ;
36670 PyObject * obj5 = 0 ;
36671 char * kwnames[] = {
36672 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36673 };
36674
36675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36677 if (!SWIG_IsOK(res1)) {
36678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36679 }
36680 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36681 ecode2 = SWIG_AsVal_int(obj1, &val2);
36682 if (!SWIG_IsOK(ecode2)) {
36683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36684 }
36685 arg2 = static_cast< int >(val2);
36686 ecode3 = SWIG_AsVal_int(obj2, &val3);
36687 if (!SWIG_IsOK(ecode3)) {
36688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36689 }
36690 arg3 = static_cast< int >(val3);
36691 ecode4 = SWIG_AsVal_int(obj3, &val4);
36692 if (!SWIG_IsOK(ecode4)) {
36693 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36694 }
36695 arg4 = static_cast< int >(val4);
36696 ecode5 = SWIG_AsVal_int(obj4, &val5);
36697 if (!SWIG_IsOK(ecode5)) {
36698 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36699 }
36700 arg5 = static_cast< int >(val5);
36701 ecode6 = SWIG_AsVal_double(obj5, &val6);
36702 if (!SWIG_IsOK(ecode6)) {
36703 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36704 }
36705 arg6 = static_cast< double >(val6);
36706 {
36707 PyThreadState* __tstate = wxPyBeginAllowThreads();
36708 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36709 wxPyEndAllowThreads(__tstate);
36710 if (PyErr_Occurred()) SWIG_fail;
36711 }
36712 resultobj = SWIG_Py_Void();
36713 return resultobj;
36714 fail:
36715 return NULL;
36716 }
36717
36718
36719 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36720 PyObject *resultobj = 0;
36721 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36722 wxRect *arg2 = 0 ;
36723 double arg3 ;
36724 void *argp1 = 0 ;
36725 int res1 = 0 ;
36726 wxRect temp2 ;
36727 double val3 ;
36728 int ecode3 = 0 ;
36729 PyObject * obj0 = 0 ;
36730 PyObject * obj1 = 0 ;
36731 PyObject * obj2 = 0 ;
36732 char * kwnames[] = {
36733 (char *) "self",(char *) "r",(char *) "radius", NULL
36734 };
36735
36736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36738 if (!SWIG_IsOK(res1)) {
36739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36740 }
36741 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36742 {
36743 arg2 = &temp2;
36744 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36745 }
36746 ecode3 = SWIG_AsVal_double(obj2, &val3);
36747 if (!SWIG_IsOK(ecode3)) {
36748 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36749 }
36750 arg3 = static_cast< double >(val3);
36751 {
36752 PyThreadState* __tstate = wxPyBeginAllowThreads();
36753 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36754 wxPyEndAllowThreads(__tstate);
36755 if (PyErr_Occurred()) SWIG_fail;
36756 }
36757 resultobj = SWIG_Py_Void();
36758 return resultobj;
36759 fail:
36760 return NULL;
36761 }
36762
36763
36764 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36765 PyObject *resultobj = 0;
36766 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36767 wxPoint *arg2 = 0 ;
36768 wxSize *arg3 = 0 ;
36769 double arg4 ;
36770 void *argp1 = 0 ;
36771 int res1 = 0 ;
36772 wxPoint temp2 ;
36773 wxSize temp3 ;
36774 double val4 ;
36775 int ecode4 = 0 ;
36776 PyObject * obj0 = 0 ;
36777 PyObject * obj1 = 0 ;
36778 PyObject * obj2 = 0 ;
36779 PyObject * obj3 = 0 ;
36780 char * kwnames[] = {
36781 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36782 };
36783
36784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36786 if (!SWIG_IsOK(res1)) {
36787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36788 }
36789 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36790 {
36791 arg2 = &temp2;
36792 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36793 }
36794 {
36795 arg3 = &temp3;
36796 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36797 }
36798 ecode4 = SWIG_AsVal_double(obj3, &val4);
36799 if (!SWIG_IsOK(ecode4)) {
36800 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
36801 }
36802 arg4 = static_cast< double >(val4);
36803 {
36804 PyThreadState* __tstate = wxPyBeginAllowThreads();
36805 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
36806 wxPyEndAllowThreads(__tstate);
36807 if (PyErr_Occurred()) SWIG_fail;
36808 }
36809 resultobj = SWIG_Py_Void();
36810 return resultobj;
36811 fail:
36812 return NULL;
36813 }
36814
36815
36816 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36817 PyObject *resultobj = 0;
36818 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36819 int arg2 ;
36820 int arg3 ;
36821 int arg4 ;
36822 void *argp1 = 0 ;
36823 int res1 = 0 ;
36824 int val2 ;
36825 int ecode2 = 0 ;
36826 int val3 ;
36827 int ecode3 = 0 ;
36828 int val4 ;
36829 int ecode4 = 0 ;
36830 PyObject * obj0 = 0 ;
36831 PyObject * obj1 = 0 ;
36832 PyObject * obj2 = 0 ;
36833 PyObject * obj3 = 0 ;
36834 char * kwnames[] = {
36835 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
36836 };
36837
36838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36840 if (!SWIG_IsOK(res1)) {
36841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36842 }
36843 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36844 ecode2 = SWIG_AsVal_int(obj1, &val2);
36845 if (!SWIG_IsOK(ecode2)) {
36846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
36847 }
36848 arg2 = static_cast< int >(val2);
36849 ecode3 = SWIG_AsVal_int(obj2, &val3);
36850 if (!SWIG_IsOK(ecode3)) {
36851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
36852 }
36853 arg3 = static_cast< int >(val3);
36854 ecode4 = SWIG_AsVal_int(obj3, &val4);
36855 if (!SWIG_IsOK(ecode4)) {
36856 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
36857 }
36858 arg4 = static_cast< int >(val4);
36859 {
36860 PyThreadState* __tstate = wxPyBeginAllowThreads();
36861 (arg1)->DrawCircle(arg2,arg3,arg4);
36862 wxPyEndAllowThreads(__tstate);
36863 if (PyErr_Occurred()) SWIG_fail;
36864 }
36865 resultobj = SWIG_Py_Void();
36866 return resultobj;
36867 fail:
36868 return NULL;
36869 }
36870
36871
36872 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36873 PyObject *resultobj = 0;
36874 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36875 wxPoint *arg2 = 0 ;
36876 int arg3 ;
36877 void *argp1 = 0 ;
36878 int res1 = 0 ;
36879 wxPoint temp2 ;
36880 int val3 ;
36881 int ecode3 = 0 ;
36882 PyObject * obj0 = 0 ;
36883 PyObject * obj1 = 0 ;
36884 PyObject * obj2 = 0 ;
36885 char * kwnames[] = {
36886 (char *) "self",(char *) "pt",(char *) "radius", NULL
36887 };
36888
36889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36891 if (!SWIG_IsOK(res1)) {
36892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36893 }
36894 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36895 {
36896 arg2 = &temp2;
36897 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36898 }
36899 ecode3 = SWIG_AsVal_int(obj2, &val3);
36900 if (!SWIG_IsOK(ecode3)) {
36901 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
36902 }
36903 arg3 = static_cast< int >(val3);
36904 {
36905 PyThreadState* __tstate = wxPyBeginAllowThreads();
36906 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
36907 wxPyEndAllowThreads(__tstate);
36908 if (PyErr_Occurred()) SWIG_fail;
36909 }
36910 resultobj = SWIG_Py_Void();
36911 return resultobj;
36912 fail:
36913 return NULL;
36914 }
36915
36916
36917 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36918 PyObject *resultobj = 0;
36919 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36920 int arg2 ;
36921 int arg3 ;
36922 int arg4 ;
36923 int arg5 ;
36924 void *argp1 = 0 ;
36925 int res1 = 0 ;
36926 int val2 ;
36927 int ecode2 = 0 ;
36928 int val3 ;
36929 int ecode3 = 0 ;
36930 int val4 ;
36931 int ecode4 = 0 ;
36932 int val5 ;
36933 int ecode5 = 0 ;
36934 PyObject * obj0 = 0 ;
36935 PyObject * obj1 = 0 ;
36936 PyObject * obj2 = 0 ;
36937 PyObject * obj3 = 0 ;
36938 PyObject * obj4 = 0 ;
36939 char * kwnames[] = {
36940 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36941 };
36942
36943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36945 if (!SWIG_IsOK(res1)) {
36946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36947 }
36948 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36949 ecode2 = SWIG_AsVal_int(obj1, &val2);
36950 if (!SWIG_IsOK(ecode2)) {
36951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
36952 }
36953 arg2 = static_cast< int >(val2);
36954 ecode3 = SWIG_AsVal_int(obj2, &val3);
36955 if (!SWIG_IsOK(ecode3)) {
36956 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
36957 }
36958 arg3 = static_cast< int >(val3);
36959 ecode4 = SWIG_AsVal_int(obj3, &val4);
36960 if (!SWIG_IsOK(ecode4)) {
36961 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
36962 }
36963 arg4 = static_cast< int >(val4);
36964 ecode5 = SWIG_AsVal_int(obj4, &val5);
36965 if (!SWIG_IsOK(ecode5)) {
36966 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
36967 }
36968 arg5 = static_cast< int >(val5);
36969 {
36970 PyThreadState* __tstate = wxPyBeginAllowThreads();
36971 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
36972 wxPyEndAllowThreads(__tstate);
36973 if (PyErr_Occurred()) SWIG_fail;
36974 }
36975 resultobj = SWIG_Py_Void();
36976 return resultobj;
36977 fail:
36978 return NULL;
36979 }
36980
36981
36982 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36983 PyObject *resultobj = 0;
36984 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36985 wxRect *arg2 = 0 ;
36986 void *argp1 = 0 ;
36987 int res1 = 0 ;
36988 wxRect temp2 ;
36989 PyObject * obj0 = 0 ;
36990 PyObject * obj1 = 0 ;
36991 char * kwnames[] = {
36992 (char *) "self",(char *) "rect", NULL
36993 };
36994
36995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
36996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36997 if (!SWIG_IsOK(res1)) {
36998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36999 }
37000 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37001 {
37002 arg2 = &temp2;
37003 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37004 }
37005 {
37006 PyThreadState* __tstate = wxPyBeginAllowThreads();
37007 (arg1)->DrawEllipse((wxRect const &)*arg2);
37008 wxPyEndAllowThreads(__tstate);
37009 if (PyErr_Occurred()) SWIG_fail;
37010 }
37011 resultobj = SWIG_Py_Void();
37012 return resultobj;
37013 fail:
37014 return NULL;
37015 }
37016
37017
37018 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37019 PyObject *resultobj = 0;
37020 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37021 wxPoint *arg2 = 0 ;
37022 wxSize *arg3 = 0 ;
37023 void *argp1 = 0 ;
37024 int res1 = 0 ;
37025 wxPoint temp2 ;
37026 wxSize temp3 ;
37027 PyObject * obj0 = 0 ;
37028 PyObject * obj1 = 0 ;
37029 PyObject * obj2 = 0 ;
37030 char * kwnames[] = {
37031 (char *) "self",(char *) "pt",(char *) "sz", NULL
37032 };
37033
37034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37036 if (!SWIG_IsOK(res1)) {
37037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37038 }
37039 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37040 {
37041 arg2 = &temp2;
37042 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37043 }
37044 {
37045 arg3 = &temp3;
37046 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37047 }
37048 {
37049 PyThreadState* __tstate = wxPyBeginAllowThreads();
37050 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37051 wxPyEndAllowThreads(__tstate);
37052 if (PyErr_Occurred()) SWIG_fail;
37053 }
37054 resultobj = SWIG_Py_Void();
37055 return resultobj;
37056 fail:
37057 return NULL;
37058 }
37059
37060
37061 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37062 PyObject *resultobj = 0;
37063 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37064 wxIcon *arg2 = 0 ;
37065 int arg3 ;
37066 int arg4 ;
37067 void *argp1 = 0 ;
37068 int res1 = 0 ;
37069 void *argp2 = 0 ;
37070 int res2 = 0 ;
37071 int val3 ;
37072 int ecode3 = 0 ;
37073 int val4 ;
37074 int ecode4 = 0 ;
37075 PyObject * obj0 = 0 ;
37076 PyObject * obj1 = 0 ;
37077 PyObject * obj2 = 0 ;
37078 PyObject * obj3 = 0 ;
37079 char * kwnames[] = {
37080 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37081 };
37082
37083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37085 if (!SWIG_IsOK(res1)) {
37086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37087 }
37088 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37089 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37090 if (!SWIG_IsOK(res2)) {
37091 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37092 }
37093 if (!argp2) {
37094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37095 }
37096 arg2 = reinterpret_cast< wxIcon * >(argp2);
37097 ecode3 = SWIG_AsVal_int(obj2, &val3);
37098 if (!SWIG_IsOK(ecode3)) {
37099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37100 }
37101 arg3 = static_cast< int >(val3);
37102 ecode4 = SWIG_AsVal_int(obj3, &val4);
37103 if (!SWIG_IsOK(ecode4)) {
37104 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37105 }
37106 arg4 = static_cast< int >(val4);
37107 {
37108 PyThreadState* __tstate = wxPyBeginAllowThreads();
37109 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37110 wxPyEndAllowThreads(__tstate);
37111 if (PyErr_Occurred()) SWIG_fail;
37112 }
37113 resultobj = SWIG_Py_Void();
37114 return resultobj;
37115 fail:
37116 return NULL;
37117 }
37118
37119
37120 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37121 PyObject *resultobj = 0;
37122 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37123 wxIcon *arg2 = 0 ;
37124 wxPoint *arg3 = 0 ;
37125 void *argp1 = 0 ;
37126 int res1 = 0 ;
37127 void *argp2 = 0 ;
37128 int res2 = 0 ;
37129 wxPoint temp3 ;
37130 PyObject * obj0 = 0 ;
37131 PyObject * obj1 = 0 ;
37132 PyObject * obj2 = 0 ;
37133 char * kwnames[] = {
37134 (char *) "self",(char *) "icon",(char *) "pt", NULL
37135 };
37136
37137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37139 if (!SWIG_IsOK(res1)) {
37140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37141 }
37142 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37143 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37144 if (!SWIG_IsOK(res2)) {
37145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37146 }
37147 if (!argp2) {
37148 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37149 }
37150 arg2 = reinterpret_cast< wxIcon * >(argp2);
37151 {
37152 arg3 = &temp3;
37153 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37154 }
37155 {
37156 PyThreadState* __tstate = wxPyBeginAllowThreads();
37157 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37158 wxPyEndAllowThreads(__tstate);
37159 if (PyErr_Occurred()) SWIG_fail;
37160 }
37161 resultobj = SWIG_Py_Void();
37162 return resultobj;
37163 fail:
37164 return NULL;
37165 }
37166
37167
37168 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37169 PyObject *resultobj = 0;
37170 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37171 wxBitmap *arg2 = 0 ;
37172 int arg3 ;
37173 int arg4 ;
37174 bool arg5 = (bool) false ;
37175 void *argp1 = 0 ;
37176 int res1 = 0 ;
37177 void *argp2 = 0 ;
37178 int res2 = 0 ;
37179 int val3 ;
37180 int ecode3 = 0 ;
37181 int val4 ;
37182 int ecode4 = 0 ;
37183 bool val5 ;
37184 int ecode5 = 0 ;
37185 PyObject * obj0 = 0 ;
37186 PyObject * obj1 = 0 ;
37187 PyObject * obj2 = 0 ;
37188 PyObject * obj3 = 0 ;
37189 PyObject * obj4 = 0 ;
37190 char * kwnames[] = {
37191 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37192 };
37193
37194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37196 if (!SWIG_IsOK(res1)) {
37197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37198 }
37199 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37200 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37201 if (!SWIG_IsOK(res2)) {
37202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37203 }
37204 if (!argp2) {
37205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37206 }
37207 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37208 ecode3 = SWIG_AsVal_int(obj2, &val3);
37209 if (!SWIG_IsOK(ecode3)) {
37210 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37211 }
37212 arg3 = static_cast< int >(val3);
37213 ecode4 = SWIG_AsVal_int(obj3, &val4);
37214 if (!SWIG_IsOK(ecode4)) {
37215 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37216 }
37217 arg4 = static_cast< int >(val4);
37218 if (obj4) {
37219 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37220 if (!SWIG_IsOK(ecode5)) {
37221 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37222 }
37223 arg5 = static_cast< bool >(val5);
37224 }
37225 {
37226 PyThreadState* __tstate = wxPyBeginAllowThreads();
37227 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37228 wxPyEndAllowThreads(__tstate);
37229 if (PyErr_Occurred()) SWIG_fail;
37230 }
37231 resultobj = SWIG_Py_Void();
37232 return resultobj;
37233 fail:
37234 return NULL;
37235 }
37236
37237
37238 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37239 PyObject *resultobj = 0;
37240 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37241 wxBitmap *arg2 = 0 ;
37242 wxPoint *arg3 = 0 ;
37243 bool arg4 = (bool) false ;
37244 void *argp1 = 0 ;
37245 int res1 = 0 ;
37246 void *argp2 = 0 ;
37247 int res2 = 0 ;
37248 wxPoint temp3 ;
37249 bool val4 ;
37250 int ecode4 = 0 ;
37251 PyObject * obj0 = 0 ;
37252 PyObject * obj1 = 0 ;
37253 PyObject * obj2 = 0 ;
37254 PyObject * obj3 = 0 ;
37255 char * kwnames[] = {
37256 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37257 };
37258
37259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37261 if (!SWIG_IsOK(res1)) {
37262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37263 }
37264 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37265 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37266 if (!SWIG_IsOK(res2)) {
37267 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37268 }
37269 if (!argp2) {
37270 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37271 }
37272 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37273 {
37274 arg3 = &temp3;
37275 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37276 }
37277 if (obj3) {
37278 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37279 if (!SWIG_IsOK(ecode4)) {
37280 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37281 }
37282 arg4 = static_cast< bool >(val4);
37283 }
37284 {
37285 PyThreadState* __tstate = wxPyBeginAllowThreads();
37286 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37287 wxPyEndAllowThreads(__tstate);
37288 if (PyErr_Occurred()) SWIG_fail;
37289 }
37290 resultobj = SWIG_Py_Void();
37291 return resultobj;
37292 fail:
37293 return NULL;
37294 }
37295
37296
37297 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37298 PyObject *resultobj = 0;
37299 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37300 wxString *arg2 = 0 ;
37301 int arg3 ;
37302 int arg4 ;
37303 void *argp1 = 0 ;
37304 int res1 = 0 ;
37305 bool temp2 = false ;
37306 int val3 ;
37307 int ecode3 = 0 ;
37308 int val4 ;
37309 int ecode4 = 0 ;
37310 PyObject * obj0 = 0 ;
37311 PyObject * obj1 = 0 ;
37312 PyObject * obj2 = 0 ;
37313 PyObject * obj3 = 0 ;
37314 char * kwnames[] = {
37315 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37316 };
37317
37318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37320 if (!SWIG_IsOK(res1)) {
37321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37322 }
37323 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37324 {
37325 arg2 = wxString_in_helper(obj1);
37326 if (arg2 == NULL) SWIG_fail;
37327 temp2 = true;
37328 }
37329 ecode3 = SWIG_AsVal_int(obj2, &val3);
37330 if (!SWIG_IsOK(ecode3)) {
37331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37332 }
37333 arg3 = static_cast< int >(val3);
37334 ecode4 = SWIG_AsVal_int(obj3, &val4);
37335 if (!SWIG_IsOK(ecode4)) {
37336 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37337 }
37338 arg4 = static_cast< int >(val4);
37339 {
37340 PyThreadState* __tstate = wxPyBeginAllowThreads();
37341 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37342 wxPyEndAllowThreads(__tstate);
37343 if (PyErr_Occurred()) SWIG_fail;
37344 }
37345 resultobj = SWIG_Py_Void();
37346 {
37347 if (temp2)
37348 delete arg2;
37349 }
37350 return resultobj;
37351 fail:
37352 {
37353 if (temp2)
37354 delete arg2;
37355 }
37356 return NULL;
37357 }
37358
37359
37360 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37361 PyObject *resultobj = 0;
37362 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37363 wxString *arg2 = 0 ;
37364 wxPoint *arg3 = 0 ;
37365 void *argp1 = 0 ;
37366 int res1 = 0 ;
37367 bool temp2 = false ;
37368 wxPoint temp3 ;
37369 PyObject * obj0 = 0 ;
37370 PyObject * obj1 = 0 ;
37371 PyObject * obj2 = 0 ;
37372 char * kwnames[] = {
37373 (char *) "self",(char *) "text",(char *) "pt", NULL
37374 };
37375
37376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37378 if (!SWIG_IsOK(res1)) {
37379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37380 }
37381 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37382 {
37383 arg2 = wxString_in_helper(obj1);
37384 if (arg2 == NULL) SWIG_fail;
37385 temp2 = true;
37386 }
37387 {
37388 arg3 = &temp3;
37389 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37390 }
37391 {
37392 PyThreadState* __tstate = wxPyBeginAllowThreads();
37393 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37394 wxPyEndAllowThreads(__tstate);
37395 if (PyErr_Occurred()) SWIG_fail;
37396 }
37397 resultobj = SWIG_Py_Void();
37398 {
37399 if (temp2)
37400 delete arg2;
37401 }
37402 return resultobj;
37403 fail:
37404 {
37405 if (temp2)
37406 delete arg2;
37407 }
37408 return NULL;
37409 }
37410
37411
37412 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37413 PyObject *resultobj = 0;
37414 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37415 wxString *arg2 = 0 ;
37416 int arg3 ;
37417 int arg4 ;
37418 double arg5 ;
37419 void *argp1 = 0 ;
37420 int res1 = 0 ;
37421 bool temp2 = false ;
37422 int val3 ;
37423 int ecode3 = 0 ;
37424 int val4 ;
37425 int ecode4 = 0 ;
37426 double val5 ;
37427 int ecode5 = 0 ;
37428 PyObject * obj0 = 0 ;
37429 PyObject * obj1 = 0 ;
37430 PyObject * obj2 = 0 ;
37431 PyObject * obj3 = 0 ;
37432 PyObject * obj4 = 0 ;
37433 char * kwnames[] = {
37434 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37435 };
37436
37437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37439 if (!SWIG_IsOK(res1)) {
37440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37441 }
37442 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37443 {
37444 arg2 = wxString_in_helper(obj1);
37445 if (arg2 == NULL) SWIG_fail;
37446 temp2 = true;
37447 }
37448 ecode3 = SWIG_AsVal_int(obj2, &val3);
37449 if (!SWIG_IsOK(ecode3)) {
37450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37451 }
37452 arg3 = static_cast< int >(val3);
37453 ecode4 = SWIG_AsVal_int(obj3, &val4);
37454 if (!SWIG_IsOK(ecode4)) {
37455 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37456 }
37457 arg4 = static_cast< int >(val4);
37458 ecode5 = SWIG_AsVal_double(obj4, &val5);
37459 if (!SWIG_IsOK(ecode5)) {
37460 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37461 }
37462 arg5 = static_cast< double >(val5);
37463 {
37464 PyThreadState* __tstate = wxPyBeginAllowThreads();
37465 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37466 wxPyEndAllowThreads(__tstate);
37467 if (PyErr_Occurred()) SWIG_fail;
37468 }
37469 resultobj = SWIG_Py_Void();
37470 {
37471 if (temp2)
37472 delete arg2;
37473 }
37474 return resultobj;
37475 fail:
37476 {
37477 if (temp2)
37478 delete arg2;
37479 }
37480 return NULL;
37481 }
37482
37483
37484 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37485 PyObject *resultobj = 0;
37486 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37487 wxString *arg2 = 0 ;
37488 wxPoint *arg3 = 0 ;
37489 double arg4 ;
37490 void *argp1 = 0 ;
37491 int res1 = 0 ;
37492 bool temp2 = false ;
37493 wxPoint temp3 ;
37494 double val4 ;
37495 int ecode4 = 0 ;
37496 PyObject * obj0 = 0 ;
37497 PyObject * obj1 = 0 ;
37498 PyObject * obj2 = 0 ;
37499 PyObject * obj3 = 0 ;
37500 char * kwnames[] = {
37501 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37502 };
37503
37504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37506 if (!SWIG_IsOK(res1)) {
37507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37508 }
37509 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37510 {
37511 arg2 = wxString_in_helper(obj1);
37512 if (arg2 == NULL) SWIG_fail;
37513 temp2 = true;
37514 }
37515 {
37516 arg3 = &temp3;
37517 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37518 }
37519 ecode4 = SWIG_AsVal_double(obj3, &val4);
37520 if (!SWIG_IsOK(ecode4)) {
37521 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37522 }
37523 arg4 = static_cast< double >(val4);
37524 {
37525 PyThreadState* __tstate = wxPyBeginAllowThreads();
37526 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37527 wxPyEndAllowThreads(__tstate);
37528 if (PyErr_Occurred()) SWIG_fail;
37529 }
37530 resultobj = SWIG_Py_Void();
37531 {
37532 if (temp2)
37533 delete arg2;
37534 }
37535 return resultobj;
37536 fail:
37537 {
37538 if (temp2)
37539 delete arg2;
37540 }
37541 return NULL;
37542 }
37543
37544
37545 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37546 PyObject *resultobj = 0;
37547 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37548 int arg2 ;
37549 wxPoint *arg3 = (wxPoint *) 0 ;
37550 int arg4 = (int) 0 ;
37551 int arg5 = (int) 0 ;
37552 void *argp1 = 0 ;
37553 int res1 = 0 ;
37554 int val4 ;
37555 int ecode4 = 0 ;
37556 int val5 ;
37557 int ecode5 = 0 ;
37558 PyObject * obj0 = 0 ;
37559 PyObject * obj1 = 0 ;
37560 PyObject * obj2 = 0 ;
37561 PyObject * obj3 = 0 ;
37562 char * kwnames[] = {
37563 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37564 };
37565
37566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37568 if (!SWIG_IsOK(res1)) {
37569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37570 }
37571 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37572 {
37573 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37574 if (arg3 == NULL) SWIG_fail;
37575 }
37576 if (obj2) {
37577 ecode4 = SWIG_AsVal_int(obj2, &val4);
37578 if (!SWIG_IsOK(ecode4)) {
37579 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37580 }
37581 arg4 = static_cast< int >(val4);
37582 }
37583 if (obj3) {
37584 ecode5 = SWIG_AsVal_int(obj3, &val5);
37585 if (!SWIG_IsOK(ecode5)) {
37586 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37587 }
37588 arg5 = static_cast< int >(val5);
37589 }
37590 {
37591 PyThreadState* __tstate = wxPyBeginAllowThreads();
37592 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37593 wxPyEndAllowThreads(__tstate);
37594 if (PyErr_Occurred()) SWIG_fail;
37595 }
37596 resultobj = SWIG_Py_Void();
37597 {
37598 if (arg3) delete [] arg3;
37599 }
37600 return resultobj;
37601 fail:
37602 {
37603 if (arg3) delete [] arg3;
37604 }
37605 return NULL;
37606 }
37607
37608
37609 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37610 PyObject *resultobj = 0;
37611 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37612 int arg2 ;
37613 wxPoint *arg3 = (wxPoint *) 0 ;
37614 int arg4 = (int) 0 ;
37615 int arg5 = (int) 0 ;
37616 int arg6 = (int) wxODDEVEN_RULE ;
37617 void *argp1 = 0 ;
37618 int res1 = 0 ;
37619 int val4 ;
37620 int ecode4 = 0 ;
37621 int val5 ;
37622 int ecode5 = 0 ;
37623 int val6 ;
37624 int ecode6 = 0 ;
37625 PyObject * obj0 = 0 ;
37626 PyObject * obj1 = 0 ;
37627 PyObject * obj2 = 0 ;
37628 PyObject * obj3 = 0 ;
37629 PyObject * obj4 = 0 ;
37630 char * kwnames[] = {
37631 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37632 };
37633
37634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37636 if (!SWIG_IsOK(res1)) {
37637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37638 }
37639 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37640 {
37641 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37642 if (arg3 == NULL) SWIG_fail;
37643 }
37644 if (obj2) {
37645 ecode4 = SWIG_AsVal_int(obj2, &val4);
37646 if (!SWIG_IsOK(ecode4)) {
37647 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37648 }
37649 arg4 = static_cast< int >(val4);
37650 }
37651 if (obj3) {
37652 ecode5 = SWIG_AsVal_int(obj3, &val5);
37653 if (!SWIG_IsOK(ecode5)) {
37654 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37655 }
37656 arg5 = static_cast< int >(val5);
37657 }
37658 if (obj4) {
37659 ecode6 = SWIG_AsVal_int(obj4, &val6);
37660 if (!SWIG_IsOK(ecode6)) {
37661 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37662 }
37663 arg6 = static_cast< int >(val6);
37664 }
37665 {
37666 PyThreadState* __tstate = wxPyBeginAllowThreads();
37667 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37668 wxPyEndAllowThreads(__tstate);
37669 if (PyErr_Occurred()) SWIG_fail;
37670 }
37671 resultobj = SWIG_Py_Void();
37672 {
37673 if (arg3) delete [] arg3;
37674 }
37675 return resultobj;
37676 fail:
37677 {
37678 if (arg3) delete [] arg3;
37679 }
37680 return NULL;
37681 }
37682
37683
37684 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37685 PyObject *resultobj = 0;
37686 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37687 wxString *arg2 = 0 ;
37688 wxRect *arg3 = 0 ;
37689 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37690 int arg5 = (int) -1 ;
37691 void *argp1 = 0 ;
37692 int res1 = 0 ;
37693 bool temp2 = false ;
37694 wxRect temp3 ;
37695 int val4 ;
37696 int ecode4 = 0 ;
37697 int val5 ;
37698 int ecode5 = 0 ;
37699 PyObject * obj0 = 0 ;
37700 PyObject * obj1 = 0 ;
37701 PyObject * obj2 = 0 ;
37702 PyObject * obj3 = 0 ;
37703 PyObject * obj4 = 0 ;
37704 char * kwnames[] = {
37705 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37706 };
37707
37708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37710 if (!SWIG_IsOK(res1)) {
37711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37712 }
37713 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37714 {
37715 arg2 = wxString_in_helper(obj1);
37716 if (arg2 == NULL) SWIG_fail;
37717 temp2 = true;
37718 }
37719 {
37720 arg3 = &temp3;
37721 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37722 }
37723 if (obj3) {
37724 ecode4 = SWIG_AsVal_int(obj3, &val4);
37725 if (!SWIG_IsOK(ecode4)) {
37726 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37727 }
37728 arg4 = static_cast< int >(val4);
37729 }
37730 if (obj4) {
37731 ecode5 = SWIG_AsVal_int(obj4, &val5);
37732 if (!SWIG_IsOK(ecode5)) {
37733 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37734 }
37735 arg5 = static_cast< int >(val5);
37736 }
37737 {
37738 PyThreadState* __tstate = wxPyBeginAllowThreads();
37739 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37740 wxPyEndAllowThreads(__tstate);
37741 if (PyErr_Occurred()) SWIG_fail;
37742 }
37743 resultobj = SWIG_Py_Void();
37744 {
37745 if (temp2)
37746 delete arg2;
37747 }
37748 return resultobj;
37749 fail:
37750 {
37751 if (temp2)
37752 delete arg2;
37753 }
37754 return NULL;
37755 }
37756
37757
37758 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37759 PyObject *resultobj = 0;
37760 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37761 wxString *arg2 = 0 ;
37762 wxBitmap *arg3 = 0 ;
37763 wxRect *arg4 = 0 ;
37764 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37765 int arg6 = (int) -1 ;
37766 void *argp1 = 0 ;
37767 int res1 = 0 ;
37768 bool temp2 = false ;
37769 void *argp3 = 0 ;
37770 int res3 = 0 ;
37771 wxRect temp4 ;
37772 int val5 ;
37773 int ecode5 = 0 ;
37774 int val6 ;
37775 int ecode6 = 0 ;
37776 PyObject * obj0 = 0 ;
37777 PyObject * obj1 = 0 ;
37778 PyObject * obj2 = 0 ;
37779 PyObject * obj3 = 0 ;
37780 PyObject * obj4 = 0 ;
37781 PyObject * obj5 = 0 ;
37782 char * kwnames[] = {
37783 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37784 };
37785
37786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37788 if (!SWIG_IsOK(res1)) {
37789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37790 }
37791 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37792 {
37793 arg2 = wxString_in_helper(obj1);
37794 if (arg2 == NULL) SWIG_fail;
37795 temp2 = true;
37796 }
37797 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
37798 if (!SWIG_IsOK(res3)) {
37799 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37800 }
37801 if (!argp3) {
37802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37803 }
37804 arg3 = reinterpret_cast< wxBitmap * >(argp3);
37805 {
37806 arg4 = &temp4;
37807 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
37808 }
37809 if (obj4) {
37810 ecode5 = SWIG_AsVal_int(obj4, &val5);
37811 if (!SWIG_IsOK(ecode5)) {
37812 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
37813 }
37814 arg5 = static_cast< int >(val5);
37815 }
37816 if (obj5) {
37817 ecode6 = SWIG_AsVal_int(obj5, &val6);
37818 if (!SWIG_IsOK(ecode6)) {
37819 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
37820 }
37821 arg6 = static_cast< int >(val6);
37822 }
37823 {
37824 PyThreadState* __tstate = wxPyBeginAllowThreads();
37825 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
37826 wxPyEndAllowThreads(__tstate);
37827 if (PyErr_Occurred()) SWIG_fail;
37828 }
37829 resultobj = SWIG_Py_Void();
37830 {
37831 if (temp2)
37832 delete arg2;
37833 }
37834 return resultobj;
37835 fail:
37836 {
37837 if (temp2)
37838 delete arg2;
37839 }
37840 return NULL;
37841 }
37842
37843
37844 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37845 PyObject *resultobj = 0;
37846 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37847 int arg2 ;
37848 wxPoint *arg3 = (wxPoint *) 0 ;
37849 void *argp1 = 0 ;
37850 int res1 = 0 ;
37851 PyObject * obj0 = 0 ;
37852 PyObject * obj1 = 0 ;
37853 char * kwnames[] = {
37854 (char *) "self",(char *) "points", NULL
37855 };
37856
37857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
37858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37859 if (!SWIG_IsOK(res1)) {
37860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37861 }
37862 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37863 {
37864 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37865 if (arg3 == NULL) SWIG_fail;
37866 }
37867 {
37868 PyThreadState* __tstate = wxPyBeginAllowThreads();
37869 (arg1)->DrawSpline(arg2,arg3);
37870 wxPyEndAllowThreads(__tstate);
37871 if (PyErr_Occurred()) SWIG_fail;
37872 }
37873 resultobj = SWIG_Py_Void();
37874 {
37875 if (arg3) delete [] arg3;
37876 }
37877 return resultobj;
37878 fail:
37879 {
37880 if (arg3) delete [] arg3;
37881 }
37882 return NULL;
37883 }
37884
37885
37886 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37887 PyObject *resultobj = 0;
37888 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37889 void *argp1 = 0 ;
37890 int res1 = 0 ;
37891 PyObject *swig_obj[1] ;
37892
37893 if (!args) SWIG_fail;
37894 swig_obj[0] = args;
37895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37896 if (!SWIG_IsOK(res1)) {
37897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37898 }
37899 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37900 {
37901 PyThreadState* __tstate = wxPyBeginAllowThreads();
37902 (arg1)->Clear();
37903 wxPyEndAllowThreads(__tstate);
37904 if (PyErr_Occurred()) SWIG_fail;
37905 }
37906 resultobj = SWIG_Py_Void();
37907 return resultobj;
37908 fail:
37909 return NULL;
37910 }
37911
37912
37913 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37914 PyObject *resultobj = 0;
37915 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37916 wxFont *arg2 = 0 ;
37917 void *argp1 = 0 ;
37918 int res1 = 0 ;
37919 void *argp2 = 0 ;
37920 int res2 = 0 ;
37921 PyObject * obj0 = 0 ;
37922 PyObject * obj1 = 0 ;
37923 char * kwnames[] = {
37924 (char *) "self",(char *) "font", NULL
37925 };
37926
37927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
37928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37929 if (!SWIG_IsOK(res1)) {
37930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37931 }
37932 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37933 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
37934 if (!SWIG_IsOK(res2)) {
37935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37936 }
37937 if (!argp2) {
37938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37939 }
37940 arg2 = reinterpret_cast< wxFont * >(argp2);
37941 {
37942 PyThreadState* __tstate = wxPyBeginAllowThreads();
37943 (arg1)->SetFont((wxFont const &)*arg2);
37944 wxPyEndAllowThreads(__tstate);
37945 if (PyErr_Occurred()) SWIG_fail;
37946 }
37947 resultobj = SWIG_Py_Void();
37948 return resultobj;
37949 fail:
37950 return NULL;
37951 }
37952
37953
37954 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37955 PyObject *resultobj = 0;
37956 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37957 wxPen *arg2 = 0 ;
37958 void *argp1 = 0 ;
37959 int res1 = 0 ;
37960 void *argp2 = 0 ;
37961 int res2 = 0 ;
37962 PyObject * obj0 = 0 ;
37963 PyObject * obj1 = 0 ;
37964 char * kwnames[] = {
37965 (char *) "self",(char *) "pen", NULL
37966 };
37967
37968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
37969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37970 if (!SWIG_IsOK(res1)) {
37971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37972 }
37973 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37974 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
37975 if (!SWIG_IsOK(res2)) {
37976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37977 }
37978 if (!argp2) {
37979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37980 }
37981 arg2 = reinterpret_cast< wxPen * >(argp2);
37982 {
37983 PyThreadState* __tstate = wxPyBeginAllowThreads();
37984 (arg1)->SetPen((wxPen const &)*arg2);
37985 wxPyEndAllowThreads(__tstate);
37986 if (PyErr_Occurred()) SWIG_fail;
37987 }
37988 resultobj = SWIG_Py_Void();
37989 return resultobj;
37990 fail:
37991 return NULL;
37992 }
37993
37994
37995 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37996 PyObject *resultobj = 0;
37997 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37998 wxBrush *arg2 = 0 ;
37999 void *argp1 = 0 ;
38000 int res1 = 0 ;
38001 void *argp2 = 0 ;
38002 int res2 = 0 ;
38003 PyObject * obj0 = 0 ;
38004 PyObject * obj1 = 0 ;
38005 char * kwnames[] = {
38006 (char *) "self",(char *) "brush", NULL
38007 };
38008
38009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38011 if (!SWIG_IsOK(res1)) {
38012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38013 }
38014 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38015 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38016 if (!SWIG_IsOK(res2)) {
38017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38018 }
38019 if (!argp2) {
38020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38021 }
38022 arg2 = reinterpret_cast< wxBrush * >(argp2);
38023 {
38024 PyThreadState* __tstate = wxPyBeginAllowThreads();
38025 (arg1)->SetBrush((wxBrush const &)*arg2);
38026 wxPyEndAllowThreads(__tstate);
38027 if (PyErr_Occurred()) SWIG_fail;
38028 }
38029 resultobj = SWIG_Py_Void();
38030 return resultobj;
38031 fail:
38032 return NULL;
38033 }
38034
38035
38036 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38037 PyObject *resultobj = 0;
38038 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38039 wxBrush *arg2 = 0 ;
38040 void *argp1 = 0 ;
38041 int res1 = 0 ;
38042 void *argp2 = 0 ;
38043 int res2 = 0 ;
38044 PyObject * obj0 = 0 ;
38045 PyObject * obj1 = 0 ;
38046 char * kwnames[] = {
38047 (char *) "self",(char *) "brush", NULL
38048 };
38049
38050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38052 if (!SWIG_IsOK(res1)) {
38053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38054 }
38055 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38056 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38057 if (!SWIG_IsOK(res2)) {
38058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38059 }
38060 if (!argp2) {
38061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38062 }
38063 arg2 = reinterpret_cast< wxBrush * >(argp2);
38064 {
38065 PyThreadState* __tstate = wxPyBeginAllowThreads();
38066 (arg1)->SetBackground((wxBrush const &)*arg2);
38067 wxPyEndAllowThreads(__tstate);
38068 if (PyErr_Occurred()) SWIG_fail;
38069 }
38070 resultobj = SWIG_Py_Void();
38071 return resultobj;
38072 fail:
38073 return NULL;
38074 }
38075
38076
38077 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38078 PyObject *resultobj = 0;
38079 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38080 int arg2 ;
38081 void *argp1 = 0 ;
38082 int res1 = 0 ;
38083 int val2 ;
38084 int ecode2 = 0 ;
38085 PyObject * obj0 = 0 ;
38086 PyObject * obj1 = 0 ;
38087 char * kwnames[] = {
38088 (char *) "self",(char *) "mode", NULL
38089 };
38090
38091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38093 if (!SWIG_IsOK(res1)) {
38094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38095 }
38096 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38097 ecode2 = SWIG_AsVal_int(obj1, &val2);
38098 if (!SWIG_IsOK(ecode2)) {
38099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38100 }
38101 arg2 = static_cast< int >(val2);
38102 {
38103 PyThreadState* __tstate = wxPyBeginAllowThreads();
38104 (arg1)->SetBackgroundMode(arg2);
38105 wxPyEndAllowThreads(__tstate);
38106 if (PyErr_Occurred()) SWIG_fail;
38107 }
38108 resultobj = SWIG_Py_Void();
38109 return resultobj;
38110 fail:
38111 return NULL;
38112 }
38113
38114
38115 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38116 PyObject *resultobj = 0;
38117 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38118 wxPalette *arg2 = 0 ;
38119 void *argp1 = 0 ;
38120 int res1 = 0 ;
38121 void *argp2 = 0 ;
38122 int res2 = 0 ;
38123 PyObject * obj0 = 0 ;
38124 PyObject * obj1 = 0 ;
38125 char * kwnames[] = {
38126 (char *) "self",(char *) "palette", NULL
38127 };
38128
38129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38131 if (!SWIG_IsOK(res1)) {
38132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38133 }
38134 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38135 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38136 if (!SWIG_IsOK(res2)) {
38137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38138 }
38139 if (!argp2) {
38140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38141 }
38142 arg2 = reinterpret_cast< wxPalette * >(argp2);
38143 {
38144 PyThreadState* __tstate = wxPyBeginAllowThreads();
38145 (arg1)->SetPalette((wxPalette const &)*arg2);
38146 wxPyEndAllowThreads(__tstate);
38147 if (PyErr_Occurred()) SWIG_fail;
38148 }
38149 resultobj = SWIG_Py_Void();
38150 return resultobj;
38151 fail:
38152 return NULL;
38153 }
38154
38155
38156 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38157 PyObject *resultobj = 0;
38158 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38159 wxColour *arg2 = 0 ;
38160 void *argp1 = 0 ;
38161 int res1 = 0 ;
38162 wxColour temp2 ;
38163 PyObject * obj0 = 0 ;
38164 PyObject * obj1 = 0 ;
38165 char * kwnames[] = {
38166 (char *) "self",(char *) "colour", NULL
38167 };
38168
38169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38171 if (!SWIG_IsOK(res1)) {
38172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38173 }
38174 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38175 {
38176 arg2 = &temp2;
38177 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38178 }
38179 {
38180 PyThreadState* __tstate = wxPyBeginAllowThreads();
38181 (arg1)->SetTextForeground((wxColour const &)*arg2);
38182 wxPyEndAllowThreads(__tstate);
38183 if (PyErr_Occurred()) SWIG_fail;
38184 }
38185 resultobj = SWIG_Py_Void();
38186 return resultobj;
38187 fail:
38188 return NULL;
38189 }
38190
38191
38192 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38193 PyObject *resultobj = 0;
38194 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38195 wxColour *arg2 = 0 ;
38196 void *argp1 = 0 ;
38197 int res1 = 0 ;
38198 wxColour temp2 ;
38199 PyObject * obj0 = 0 ;
38200 PyObject * obj1 = 0 ;
38201 char * kwnames[] = {
38202 (char *) "self",(char *) "colour", NULL
38203 };
38204
38205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38207 if (!SWIG_IsOK(res1)) {
38208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38209 }
38210 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38211 {
38212 arg2 = &temp2;
38213 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38214 }
38215 {
38216 PyThreadState* __tstate = wxPyBeginAllowThreads();
38217 (arg1)->SetTextBackground((wxColour const &)*arg2);
38218 wxPyEndAllowThreads(__tstate);
38219 if (PyErr_Occurred()) SWIG_fail;
38220 }
38221 resultobj = SWIG_Py_Void();
38222 return resultobj;
38223 fail:
38224 return NULL;
38225 }
38226
38227
38228 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38229 PyObject *resultobj = 0;
38230 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38231 int arg2 ;
38232 void *argp1 = 0 ;
38233 int res1 = 0 ;
38234 int val2 ;
38235 int ecode2 = 0 ;
38236 PyObject * obj0 = 0 ;
38237 PyObject * obj1 = 0 ;
38238 char * kwnames[] = {
38239 (char *) "self",(char *) "function", NULL
38240 };
38241
38242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38244 if (!SWIG_IsOK(res1)) {
38245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38246 }
38247 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38248 ecode2 = SWIG_AsVal_int(obj1, &val2);
38249 if (!SWIG_IsOK(ecode2)) {
38250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38251 }
38252 arg2 = static_cast< int >(val2);
38253 {
38254 PyThreadState* __tstate = wxPyBeginAllowThreads();
38255 (arg1)->SetLogicalFunction(arg2);
38256 wxPyEndAllowThreads(__tstate);
38257 if (PyErr_Occurred()) SWIG_fail;
38258 }
38259 resultobj = SWIG_Py_Void();
38260 return resultobj;
38261 fail:
38262 return NULL;
38263 }
38264
38265
38266 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38267 PyObject *obj;
38268 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38269 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38270 return SWIG_Py_Void();
38271 }
38272
38273 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38274 return SWIG_Python_InitShadowInstance(args);
38275 }
38276
38277 static PyMethodDef SwigMethods[] = {
38278 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38279 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38280 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38281 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38282 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38283 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38284 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38285 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38286 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38287 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38288 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38289 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
38290 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
38291 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
38292 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38293 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38294 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38295 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38296 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38297 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38298 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38299 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
38300 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38301 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38302 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38303 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38304 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38305 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38306 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38307 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
38308 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
38309 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38310 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38311 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38312 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38313 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38314 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38315 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38316 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38317 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
38318 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
38319 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38320 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38321 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38322 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38323 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38324 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38325 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38326 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38327 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
38328 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38329 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38330 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38331 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38332 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38333 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38334 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38335 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38336 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38337 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38338 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38339 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38340 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38341 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
38342 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
38343 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38344 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38345 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38346 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38347 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38348 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38349 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38350 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38351 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
38352 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
38353 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38354 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38355 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38356 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38357 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38358 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38359 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38360 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38361 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38362 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38363 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38364 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38365 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38366 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38367 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38368 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38369 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38370 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38371 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38372 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38373 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38374 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38375 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
38376 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38377 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38378 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38379 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38380 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38381 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38382 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38383 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38384 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38385 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38386 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38387 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38388 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38389 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38390 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38391 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38392 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38393 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38394 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38395 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38396 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38397 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38398 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38399 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38400 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38401 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38402 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38403 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38404 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38405 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38406 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38407 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38408 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38409 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38410 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38411 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38412 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38413 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38414 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38415 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38416 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38417 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38418 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38419 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38420 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38421 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38422 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38423 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38424 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
38425 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38426 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38427 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38428 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38429 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38430 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38431 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38432 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38433 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38434 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38435 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38436 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
38437 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38438 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38439 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38440 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38441 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38442 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38443 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38444 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38445 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38446 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38447 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38448 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38449 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38450 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38451 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38452 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38453 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38454 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38455 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38456 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38457 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38458 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38459 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38460 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38461 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38462 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38463 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38464 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38465 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38466 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38467 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38468 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
38469 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38470 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38471 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38472 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38473 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38474 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38475 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38476 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38477 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38478 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38479 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38480 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38481 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38482 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38483 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38484 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38485 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38486 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
38487 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38488 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38489 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38490 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38491 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38492 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38493 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38494 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38495 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38496 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38497 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38498 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38499 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38500 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38501 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38502 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38503 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38504 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38505 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38506 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38507 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38508 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38509 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38510 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38511 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38512 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38513 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38514 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38515 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38516 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38517 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38518 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38519 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38520 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38521 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38522 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38523 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38524 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38525 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38526 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38527 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38528 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38529 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38530 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38531 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38532 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38533 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38534 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38535 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38536 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38537 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38538 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38539 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38540 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38541 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38542 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38543 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38544 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38545 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38546 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38547 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38548 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38549 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38550 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38551 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38552 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38553 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38554 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38555 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38556 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38557 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38558 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38559 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38560 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38561 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38562 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38563 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38564 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38565 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38566 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38567 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38568 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38569 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38570 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38571 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38572 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38573 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38574 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38575 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38576 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38577 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38578 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38579 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
38580 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38581 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38582 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38583 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38584 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38585 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38586 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38587 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38588 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38589 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38590 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38591 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38592 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38593 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38594 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38595 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38596 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38597 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38598 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38599 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38600 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38601 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38602 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38603 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38604 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38605 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38606 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38607 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38608 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38609 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38610 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38611 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38612 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38613 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38614 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38615 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38616 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38617 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38618 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38619 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
38620 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38621 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38622 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
38623 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38624 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38625 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38626 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38627 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38628 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38629 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38630 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38631 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38632 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38633 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38634 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38635 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38636 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38637 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38638 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38639 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38640 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38641 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38642 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38643 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38644 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38645 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
38646 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38647 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38648 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38649 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38650 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38651 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38652 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38653 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38654 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38655 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
38656 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38657 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38658 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38659 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38660 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38661 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38662 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
38663 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38664 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38665 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38666 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38667 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38668 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38669 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38670 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38671 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38672 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38673 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38674 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38675 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38676 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38677 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38678 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38679 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38680 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38681 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38682 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38683 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38684 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38685 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38686 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38687 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38688 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38689 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38690 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38691 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38692 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38693 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38694 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38695 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38696 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38697 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38698 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38699 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38700 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38701 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38702 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38703 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38704 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38705 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38706 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38707 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38708 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38709 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38710 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38711 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38712 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38713 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38714 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38715 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38716 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38717 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38718 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38719 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38720 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38721 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38722 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38723 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38724 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38725 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38726 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38727 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38728 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38729 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38730 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38731 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38732 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38733 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38734 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38735 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38736 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38737 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38738 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38739 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38740 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38741 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38742 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38743 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38744 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38745 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38746 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38747 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38748 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38749 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38750 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38751 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38752 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38753 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38754 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38755 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38756 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38757 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38758 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38759 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
38760 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
38761 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38762 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38763 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38764 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38765 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38766 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38767 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38768 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38769 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38770 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38771 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38772 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38773 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38774 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38775 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38777 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38778 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38779 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38780 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38781 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38782 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38783 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38784 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38785 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38786 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38787 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38788 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38789 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38790 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38791 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38792 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
38793 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
38794 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
38795 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
38796 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
38797 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
38798 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
38800 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
38801 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
38802 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
38803 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
38804 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
38805 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38806 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
38807 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
38808 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
38809 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38810 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
38811 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
38812 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
38813 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38814 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
38815 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
38816 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
38817 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
38818 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
38819 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
38820 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
38821 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
38822 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
38823 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
38824 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
38825 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
38826 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
38827 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
38828 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
38829 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
38830 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
38831 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
38832 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
38833 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38834 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
38835 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
38836 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
38837 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
38838 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
38839 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
38840 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
38841 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
38842 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
38843 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
38844 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
38845 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38846 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
38847 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
38848 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
38849 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38850 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
38851 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
38852 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38853 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
38854 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
38855 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
38856 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
38857 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
38858 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
38859 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
38860 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
38861 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
38862 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
38863 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
38864 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
38865 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
38866 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
38867 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
38868 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
38869 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
38870 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
38871 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
38872 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
38873 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
38874 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
38875 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
38876 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
38877 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
38878 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
38879 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
38880 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
38881 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
38882 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
38883 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
38884 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
38885 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
38886 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
38887 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
38888 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
38889 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
38890 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
38891 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
38892 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
38893 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
38894 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
38895 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
38896 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38897 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
38898 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38899 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
38900 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38901 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38902 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38903 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38904 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
38906 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
38907 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
38908 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
38909 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
38910 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
38911 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
38912 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
38913 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
38914 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
38915 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
38916 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
38917 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38918 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38919 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38920 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38921 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38922 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38923 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
38924 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
38925 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
38926 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
38927 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
38928 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
38929 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
38930 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
38931 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
38932 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
38933 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
38934 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
38935 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
38936 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38937 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38938 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38939 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38940 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38941 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
38942 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
38943 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
38944 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38945 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
38946 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
38947 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
38948 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38949 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38950 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38951 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38952 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38953 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
38954 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
38955 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
38956 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
38957 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
38958 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
38959 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
38960 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38961 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38962 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38963 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38964 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38965 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38966 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38967 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
38968 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
38969 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
38970 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38971 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38972 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38973 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38974 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
38975 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
38976 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
38977 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
38978 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
38979 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
38980 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
38981 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
38982 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
38983 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
38984 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38985 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38986 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38987 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38988 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
38990 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
38991 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
38992 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
38993 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
38994 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
38995 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
38996 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
38997 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
38998 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
38999 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39000 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39001 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39002 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39003 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39004 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39005 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
39006 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39007 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39008 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39009 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39010 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39011 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39012 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39013 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39014 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39015 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39016 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39017 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39018 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39019 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39020 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
39021 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39022 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39023 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39024 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39025 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39026 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39027 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39028 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39029 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39030 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39031 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39032 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39033 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39034 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39035 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
39036 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39037 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
39038 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
39039 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
39040 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39041 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39042 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39043 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
39044 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39045 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39046 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39047 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
39048 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39049 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39050 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39051 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39052 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39055 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
39056 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39057 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39058 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39059 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
39060 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39061 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39062 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39063 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39064 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39065 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39066 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39067 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39068 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39072 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39073 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39074 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39075 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39076 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39078 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39079 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39080 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39081 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39082 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
39083 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39084 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39085 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39086 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39087 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39088 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39089 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39090 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39091 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39092 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39093 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39094 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39095 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39096 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39097 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39098 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39099 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39100 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
39101 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39102 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39103 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39104 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39105 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39106 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39107 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39108 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
39109 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39110 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39111 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39112 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39113 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39114 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39115 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
39116 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39117 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39118 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39119 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39120 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39121 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39122 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39123 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39124 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39125 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
39126 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39127 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39128 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39129 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39130 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39131 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39132 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39133 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39134 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39135 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39137 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39138 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
39140 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39141 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39142 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39143 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39144 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39145 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39146 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39147 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39148 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39149 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39150 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39151 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39152 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39153 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39154 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39155 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39156 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39157 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39158 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39159 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39160 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39161 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39162 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39167 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39168 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39169 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39170 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39171 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39172 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39173 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39174 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39176 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39177 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39178 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39179 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39180 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39181 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39182 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39183 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39184 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39185 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39186 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39187 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39188 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39189 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39190 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39191 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39192 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39193 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39194 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39195 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
39196 { NULL, NULL, 0, NULL }
39197 };
39198
39199
39200 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39201
39202 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39203 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39204 }
39205 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39206 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39207 }
39208 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39209 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39210 }
39211 static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39212 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39213 }
39214 static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39215 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39216 }
39217 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39218 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39219 }
39220 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39221 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39222 }
39223 static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39224 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39225 }
39226 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39227 return (void *)((wxLocale *) ((wxPyLocale *) x));
39228 }
39229 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39230 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39231 }
39232 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39233 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39234 }
39235 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39236 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39237 }
39238 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39239 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39240 }
39241 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39242 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39243 }
39244 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39245 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39246 }
39247 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39248 return (void *)((wxGDIObject *) ((wxIcon *) x));
39249 }
39250 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39251 return (void *)((wxGDIObject *) ((wxPalette *) x));
39252 }
39253 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39254 return (void *)((wxGDIObject *) ((wxPen *) x));
39255 }
39256 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39257 return (void *)((wxGDIObject *) ((wxFont *) x));
39258 }
39259 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39260 return (void *)((wxGDIObject *) ((wxCursor *) x));
39261 }
39262 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39263 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39264 }
39265 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39266 return (void *)((wxGDIObject *) ((wxRegion *) x));
39267 }
39268 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39269 return (void *)((wxGDIObject *) ((wxBrush *) x));
39270 }
39271 static void *_p_wxGCDCTo_p_wxDC(void *x) {
39272 return (void *)((wxDC *) ((wxGCDC *) x));
39273 }
39274 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39275 return (void *)((wxDC *) ((wxScreenDC *) x));
39276 }
39277 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
39278 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39279 }
39280 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39281 return (void *)((wxDC *) ((wxMirrorDC *) x));
39282 }
39283 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39284 return (void *)((wxDC *) ((wxWindowDC *) x));
39285 }
39286 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39287 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39288 }
39289 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39290 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39291 }
39292 static void *_p_wxClientDCTo_p_wxDC(void *x) {
39293 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
39294 }
39295 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
39296 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39297 }
39298 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
39299 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39300 }
39301 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39302 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39303 }
39304 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39305 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39306 }
39307 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39308 return (void *)((wxDC *) ((wxPrinterDC *) x));
39309 }
39310 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39311 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39312 }
39313 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39314 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39315 }
39316 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39317 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39318 }
39319 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39320 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39321 }
39322 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39323 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39324 }
39325 static void *_p_wxPenTo_p_wxObject(void *x) {
39326 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39327 }
39328 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39329 return (void *)((wxObject *) ((wxRegionIterator *) x));
39330 }
39331 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39332 return (void *)((wxObject *) ((wxSizerItem *) x));
39333 }
39334 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39335 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39336 }
39337 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39338 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39339 }
39340 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39341 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39342 }
39343 static void *_p_wxIconTo_p_wxObject(void *x) {
39344 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39345 }
39346 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39347 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39348 }
39349 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39350 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39351 }
39352 static void *_p_wxSizerTo_p_wxObject(void *x) {
39353 return (void *)((wxObject *) ((wxSizer *) x));
39354 }
39355 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39356 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39357 }
39358 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39359 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39360 }
39361 static void *_p_wxEventTo_p_wxObject(void *x) {
39362 return (void *)((wxObject *) ((wxEvent *) x));
39363 }
39364 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39365 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39366 }
39367 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39368 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39369 }
39370 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39371 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39372 }
39373 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39374 return (void *)((wxObject *) ((wxPseudoDC *) x));
39375 }
39376 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39377 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39378 }
39379 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39380 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39381 }
39382 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39383 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39384 }
39385 static void *_p_wxDCTo_p_wxObject(void *x) {
39386 return (void *)((wxObject *) ((wxDC *) x));
39387 }
39388 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39389 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39390 }
39391 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39392 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39393 }
39394 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39395 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39396 }
39397 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39398 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39399 }
39400 static void *_p_wxControlTo_p_wxObject(void *x) {
39401 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39402 }
39403 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39404 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39405 }
39406 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39407 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39408 }
39409 static void *_p_wxClientDCTo_p_wxObject(void *x) {
39410 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
39411 }
39412 static void *_p_wxFSFileTo_p_wxObject(void *x) {
39413 return (void *)((wxObject *) ((wxFSFile *) x));
39414 }
39415 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
39416 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
39417 }
39418 static void *_p_wxRegionTo_p_wxObject(void *x) {
39419 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39420 }
39421 static void *_p_wxPySizerTo_p_wxObject(void *x) {
39422 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39423 }
39424 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39425 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39426 }
39427 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39428 return (void *)((wxObject *) ((wxGDIObject *) x));
39429 }
39430 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39431 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39432 }
39433 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39434 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39435 }
39436 static void *_p_wxEffectsTo_p_wxObject(void *x) {
39437 return (void *)((wxObject *) ((wxEffects *) x));
39438 }
39439 static void *_p_wxPyEventTo_p_wxObject(void *x) {
39440 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39441 }
39442 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39443 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39444 }
39445 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39446 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39447 }
39448 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39449 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39450 }
39451 static void *_p_wxShowEventTo_p_wxObject(void *x) {
39452 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39453 }
39454 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39455 return (void *)((wxObject *) ((wxMenuItem *) x));
39456 }
39457 static void *_p_wxDateEventTo_p_wxObject(void *x) {
39458 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39459 }
39460 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39461 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39462 }
39463 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39464 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39465 }
39466 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39467 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39468 }
39469 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39470 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39471 }
39472 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39473 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39474 }
39475 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39476 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39477 }
39478 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39479 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39480 }
39481 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39482 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39483 }
39484 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39485 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39486 }
39487 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39488 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39489 }
39490 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39491 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39492 }
39493 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39494 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39495 }
39496 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39497 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39498 }
39499 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39500 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39501 }
39502 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39503 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39504 }
39505 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39506 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39507 }
39508 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39509 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39510 }
39511 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39512 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39513 }
39514 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39515 return (void *)((wxObject *) ((wxImageHandler *) x));
39516 }
39517 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39518 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39519 }
39520 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39521 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39522 }
39523 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39524 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39525 }
39526 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39527 return (void *)((wxObject *) ((wxEvtHandler *) x));
39528 }
39529 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39530 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39531 }
39532 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39533 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39534 }
39535 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
39536 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39537 }
39538 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39539 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
39540 }
39541 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39542 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39543 }
39544 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39545 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39546 }
39547 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39548 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39549 }
39550 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39551 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39552 }
39553 static void *_p_wxImageTo_p_wxObject(void *x) {
39554 return (void *)((wxObject *) ((wxImage *) x));
39555 }
39556 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39557 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39558 }
39559 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39560 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39561 }
39562 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39563 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39564 }
39565 static void *_p_wxPaletteTo_p_wxObject(void *x) {
39566 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39567 }
39568 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
39569 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39570 }
39571 static void *_p_wxImageListTo_p_wxObject(void *x) {
39572 return (void *)((wxObject *) ((wxImageList *) x));
39573 }
39574 static void *_p_wxGCDCTo_p_wxObject(void *x) {
39575 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39576 }
39577 static void *_p_wxCursorTo_p_wxObject(void *x) {
39578 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39579 }
39580 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39581 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39582 }
39583 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39584 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39585 }
39586 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39587 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39588 }
39589 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39590 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39591 }
39592 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39593 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39594 }
39595 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39596 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39597 }
39598 static void *_p_wxWindowTo_p_wxObject(void *x) {
39599 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39600 }
39601 static void *_p_wxMenuTo_p_wxObject(void *x) {
39602 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39603 }
39604 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39605 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39606 }
39607 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39608 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39609 }
39610 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39611 return (void *)((wxObject *) ((wxFileSystem *) x));
39612 }
39613 static void *_p_wxBitmapTo_p_wxObject(void *x) {
39614 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39615 }
39616 static void *_p_wxMaskTo_p_wxObject(void *x) {
39617 return (void *)((wxObject *) ((wxMask *) x));
39618 }
39619 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39620 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39621 }
39622 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39623 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39624 }
39625 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39626 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39627 }
39628 static void *_p_wxPyAppTo_p_wxObject(void *x) {
39629 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39630 }
39631 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39632 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39633 }
39634 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39635 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39636 }
39637 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39638 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39639 }
39640 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39641 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39642 }
39643 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39644 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39645 }
39646 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39647 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39648 }
39649 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39650 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39651 }
39652 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39653 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39654 }
39655 static void *_p_wxFontTo_p_wxObject(void *x) {
39656 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39657 }
39658 static void *_p_wxBrushTo_p_wxObject(void *x) {
39659 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39660 }
39661 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39662 return (void *)((wxObject *) ((wxMetaFile *) x));
39663 }
39664 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39665 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39666 }
39667 static void *_p_wxColourTo_p_wxObject(void *x) {
39668 return (void *)((wxObject *) ((wxColour *) x));
39669 }
39670 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39671 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39672 }
39673 static void *_p_wxValidatorTo_p_wxObject(void *x) {
39674 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39675 }
39676 static void *_p_wxControlTo_p_wxWindow(void *x) {
39677 return (void *)((wxWindow *) ((wxControl *) x));
39678 }
39679 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39680 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39681 }
39682 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39683 return (void *)((wxWindow *) ((wxMenuBar *) x));
39684 }
39685 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39686 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39687 }
39688 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39689 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39690 }
39691 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
39692 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
39693 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
39694 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};
39695 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39696 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39697 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39698 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
39699 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
39700 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39701 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
39702 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
39703 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39704 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39705 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39706 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39707 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
39708 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
39709 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
39710 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
39711 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39712 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39713 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39714 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
39715 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39716 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
39717 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
39718 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39719 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
39720 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39721 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39722 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39723 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39724 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39725 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39726 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
39727 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
39728 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
39729 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
39730 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
39731 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
39732 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39733 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39734 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
39735 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
39736 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39737 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
39738 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
39739 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39740 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39741 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39742 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39743 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39744 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39745 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39746 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39747 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39748 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39749 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39750 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39751 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39752 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
39753 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39754 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
39755 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39756 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
39757 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
39758 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
39759 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39760 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39761 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39762 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39763 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39764 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39765 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39766 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39767 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39768 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39769 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39770 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
39771 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
39772 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39773 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39774 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39775 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39776 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39777 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39778 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39779 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39780 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39781 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39782 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39783 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39784 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39785 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39786 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
39787 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39788 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39789 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39790 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39791 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39792 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
39793 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
39794 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
39795 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
39796 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
39797 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
39798 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
39799 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
39800 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
39801 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
39802 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
39803 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
39804 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
39805 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
39806 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
39807 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
39808 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
39809 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
39810 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
39811 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
39812 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
39813 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
39814 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
39815 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
39816 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
39817 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
39818 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
39819 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
39820 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
39821 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
39822 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
39823 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
39824 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
39825 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
39826 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
39827 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
39828 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
39829 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
39830 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
39831 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
39832 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
39833 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
39834 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
39835 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
39836 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
39837 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
39838 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
39839 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
39840 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
39841 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
39842 static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
39843 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
39844 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
39845 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
39846 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
39847 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
39848 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
39849 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
39850 static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
39851 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
39852 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
39853 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
39854 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
39855 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
39856 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
39857 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
39858 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
39859 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
39860 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
39861 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
39862
39863 static swig_type_info *swig_type_initial[] = {
39864 &_swigt__p_buffer,
39865 &_swigt__p_char,
39866 &_swigt__p_double,
39867 &_swigt__p_form_ops_t,
39868 &_swigt__p_int,
39869 &_swigt__p_unsigned_char,
39870 &_swigt__p_unsigned_int,
39871 &_swigt__p_unsigned_long,
39872 &_swigt__p_void,
39873 &_swigt__p_wxANIHandler,
39874 &_swigt__p_wxAcceleratorTable,
39875 &_swigt__p_wxActivateEvent,
39876 &_swigt__p_wxAlphaPixelData,
39877 &_swigt__p_wxAlphaPixelData_Accessor,
39878 &_swigt__p_wxAutoBufferedPaintDC,
39879 &_swigt__p_wxBMPHandler,
39880 &_swigt__p_wxBitmap,
39881 &_swigt__p_wxBoxSizer,
39882 &_swigt__p_wxBrush,
39883 &_swigt__p_wxBrushList,
39884 &_swigt__p_wxBufferedDC,
39885 &_swigt__p_wxBufferedPaintDC,
39886 &_swigt__p_wxCURHandler,
39887 &_swigt__p_wxChar,
39888 &_swigt__p_wxChildFocusEvent,
39889 &_swigt__p_wxClientDC,
39890 &_swigt__p_wxClipboardTextEvent,
39891 &_swigt__p_wxCloseEvent,
39892 &_swigt__p_wxColor,
39893 &_swigt__p_wxColour,
39894 &_swigt__p_wxColourDatabase,
39895 &_swigt__p_wxCommandEvent,
39896 &_swigt__p_wxContextMenuEvent,
39897 &_swigt__p_wxControl,
39898 &_swigt__p_wxControlWithItems,
39899 &_swigt__p_wxCursor,
39900 &_swigt__p_wxDC,
39901 &_swigt__p_wxDCBrushChanger,
39902 &_swigt__p_wxDCClipper,
39903 &_swigt__p_wxDCOverlay,
39904 &_swigt__p_wxDCPenChanger,
39905 &_swigt__p_wxDCTextColourChanger,
39906 &_swigt__p_wxDash,
39907 &_swigt__p_wxDateEvent,
39908 &_swigt__p_wxDisplayChangedEvent,
39909 &_swigt__p_wxDropFilesEvent,
39910 &_swigt__p_wxDuplexMode,
39911 &_swigt__p_wxEffects,
39912 &_swigt__p_wxEncodingConverter,
39913 &_swigt__p_wxEraseEvent,
39914 &_swigt__p_wxEvent,
39915 &_swigt__p_wxEvtHandler,
39916 &_swigt__p_wxFSFile,
39917 &_swigt__p_wxFileSystem,
39918 &_swigt__p_wxFlexGridSizer,
39919 &_swigt__p_wxFocusEvent,
39920 &_swigt__p_wxFont,
39921 &_swigt__p_wxFontList,
39922 &_swigt__p_wxFontMapper,
39923 &_swigt__p_wxGBSizerItem,
39924 &_swigt__p_wxGCDC,
39925 &_swigt__p_wxGDIObjListBase,
39926 &_swigt__p_wxGDIObject,
39927 &_swigt__p_wxGIFHandler,
39928 &_swigt__p_wxGraphicsBrush,
39929 &_swigt__p_wxGraphicsContext,
39930 &_swigt__p_wxGraphicsFont,
39931 &_swigt__p_wxGraphicsMatrix,
39932 &_swigt__p_wxGraphicsObject,
39933 &_swigt__p_wxGraphicsPath,
39934 &_swigt__p_wxGraphicsPen,
39935 &_swigt__p_wxGraphicsRenderer,
39936 &_swigt__p_wxGridBagSizer,
39937 &_swigt__p_wxGridSizer,
39938 &_swigt__p_wxHeaderButtonParams,
39939 &_swigt__p_wxICOHandler,
39940 &_swigt__p_wxIcon,
39941 &_swigt__p_wxIconBundle,
39942 &_swigt__p_wxIconLocation,
39943 &_swigt__p_wxIconizeEvent,
39944 &_swigt__p_wxIdleEvent,
39945 &_swigt__p_wxImage,
39946 &_swigt__p_wxImageHandler,
39947 &_swigt__p_wxImageList,
39948 &_swigt__p_wxIndividualLayoutConstraint,
39949 &_swigt__p_wxInitDialogEvent,
39950 &_swigt__p_wxJPEGHandler,
39951 &_swigt__p_wxKeyEvent,
39952 &_swigt__p_wxLanguageInfo,
39953 &_swigt__p_wxLayoutConstraints,
39954 &_swigt__p_wxLocale,
39955 &_swigt__p_wxMask,
39956 &_swigt__p_wxMaximizeEvent,
39957 &_swigt__p_wxMemoryDC,
39958 &_swigt__p_wxMenu,
39959 &_swigt__p_wxMenuBar,
39960 &_swigt__p_wxMenuEvent,
39961 &_swigt__p_wxMenuItem,
39962 &_swigt__p_wxMetaFile,
39963 &_swigt__p_wxMetaFileDC,
39964 &_swigt__p_wxMirrorDC,
39965 &_swigt__p_wxMouseCaptureChangedEvent,
39966 &_swigt__p_wxMouseCaptureLostEvent,
39967 &_swigt__p_wxMouseEvent,
39968 &_swigt__p_wxMoveEvent,
39969 &_swigt__p_wxNativeEncodingInfo,
39970 &_swigt__p_wxNativeFontInfo,
39971 &_swigt__p_wxNativePixelData,
39972 &_swigt__p_wxNativePixelData_Accessor,
39973 &_swigt__p_wxNavigationKeyEvent,
39974 &_swigt__p_wxNcPaintEvent,
39975 &_swigt__p_wxNotifyEvent,
39976 &_swigt__p_wxObject,
39977 &_swigt__p_wxOverlay,
39978 &_swigt__p_wxPCXHandler,
39979 &_swigt__p_wxPNGHandler,
39980 &_swigt__p_wxPNMHandler,
39981 &_swigt__p_wxPaintDC,
39982 &_swigt__p_wxPaintEvent,
39983 &_swigt__p_wxPalette,
39984 &_swigt__p_wxPaletteChangedEvent,
39985 &_swigt__p_wxPaperSize,
39986 &_swigt__p_wxPen,
39987 &_swigt__p_wxPenList,
39988 &_swigt__p_wxPixelDataBase,
39989 &_swigt__p_wxPoint,
39990 &_swigt__p_wxPoint2D,
39991 &_swigt__p_wxPoint2DDouble,
39992 &_swigt__p_wxPostScriptDC,
39993 &_swigt__p_wxPrintData,
39994 &_swigt__p_wxPrinterDC,
39995 &_swigt__p_wxPseudoDC,
39996 &_swigt__p_wxPyApp,
39997 &_swigt__p_wxPyCommandEvent,
39998 &_swigt__p_wxPyEvent,
39999 &_swigt__p_wxPyFontEnumerator,
40000 &_swigt__p_wxPyImageHandler,
40001 &_swigt__p_wxPyLocale,
40002 &_swigt__p_wxPySizer,
40003 &_swigt__p_wxPyValidator,
40004 &_swigt__p_wxQueryNewPaletteEvent,
40005 &_swigt__p_wxRect,
40006 &_swigt__p_wxRect2DDouble,
40007 &_swigt__p_wxRegion,
40008 &_swigt__p_wxRegionIterator,
40009 &_swigt__p_wxRendererNative,
40010 &_swigt__p_wxRendererVersion,
40011 &_swigt__p_wxScreenDC,
40012 &_swigt__p_wxScrollEvent,
40013 &_swigt__p_wxScrollWinEvent,
40014 &_swigt__p_wxSetCursorEvent,
40015 &_swigt__p_wxShowEvent,
40016 &_swigt__p_wxSize,
40017 &_swigt__p_wxSizeEvent,
40018 &_swigt__p_wxSizer,
40019 &_swigt__p_wxSizerItem,
40020 &_swigt__p_wxSplitterRenderParams,
40021 &_swigt__p_wxStaticBoxSizer,
40022 &_swigt__p_wxStdDialogButtonSizer,
40023 &_swigt__p_wxStockGDI,
40024 &_swigt__p_wxString,
40025 &_swigt__p_wxSysColourChangedEvent,
40026 &_swigt__p_wxTGAHandler,
40027 &_swigt__p_wxTIFFHandler,
40028 &_swigt__p_wxUpdateUIEvent,
40029 &_swigt__p_wxValidator,
40030 &_swigt__p_wxWindow,
40031 &_swigt__p_wxWindowCreateEvent,
40032 &_swigt__p_wxWindowDC,
40033 &_swigt__p_wxWindowDestroyEvent,
40034 &_swigt__p_wxXPMHandler,
40035 };
40036
40037 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
40038 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40039 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40040 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40041 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40042 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40043 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40044 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
40045 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
40046 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40047 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40048 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40049 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40050 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40051 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40052 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}};
40053 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40054 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
40055 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}};
40056 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
40057 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40058 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40059 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
40060 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}};
40061 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40062 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
40063 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
40064 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40065 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
40066 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40067 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40068 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40069 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40070 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40071 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40072 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
40073 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
40074 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}};
40075 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}};
40076 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
40077 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
40078 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40079 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40080 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}};
40081 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
40082 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40083 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
40084 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
40085 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40086 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40087 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40088 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40089 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40090 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
40091 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}};
40092 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
40093 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}};
40094 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40095 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40096 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40097 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40098 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
40099 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40100 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40101 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
40102 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40103 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40104 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40105 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40106 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40107 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40108 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40109 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40110 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40111 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40112 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40113 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40114 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40115 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
40116 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
40117 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40118 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40119 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40120 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40121 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40122 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40123 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40124 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40125 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40126 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40127 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40128 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40129 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40130 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40131 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40132 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40133 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40134 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40135 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40136 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40137 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40138 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40139 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
40140 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
40141 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
40142 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40143 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40144 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40145 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40146 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40147 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
40148 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
40149 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
40150 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
40151 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
40152 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40153 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40154 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
40155 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
40156 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
40157 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
40158 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40159 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40160 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40161 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40162 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40163 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40164 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40165 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40166 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40167 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40168 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40169 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40170 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40171 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40172 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40173 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40174 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40175 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40176 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40177 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
40178 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
40179 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
40180 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40181 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40182 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40183 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40184 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
40185 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}};
40186 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
40187 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
40188 static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
40189 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40190 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40191 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
40192 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
40193 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
40194 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
40195 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
40196 static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
40197 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40198 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40199 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40200 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40201 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40202 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40203 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
40204 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
40205 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40206 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}};
40207 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}};
40208
40209 static swig_cast_info *swig_cast_initial[] = {
40210 _swigc__p_buffer,
40211 _swigc__p_char,
40212 _swigc__p_double,
40213 _swigc__p_form_ops_t,
40214 _swigc__p_int,
40215 _swigc__p_unsigned_char,
40216 _swigc__p_unsigned_int,
40217 _swigc__p_unsigned_long,
40218 _swigc__p_void,
40219 _swigc__p_wxANIHandler,
40220 _swigc__p_wxAcceleratorTable,
40221 _swigc__p_wxActivateEvent,
40222 _swigc__p_wxAlphaPixelData,
40223 _swigc__p_wxAlphaPixelData_Accessor,
40224 _swigc__p_wxAutoBufferedPaintDC,
40225 _swigc__p_wxBMPHandler,
40226 _swigc__p_wxBitmap,
40227 _swigc__p_wxBoxSizer,
40228 _swigc__p_wxBrush,
40229 _swigc__p_wxBrushList,
40230 _swigc__p_wxBufferedDC,
40231 _swigc__p_wxBufferedPaintDC,
40232 _swigc__p_wxCURHandler,
40233 _swigc__p_wxChar,
40234 _swigc__p_wxChildFocusEvent,
40235 _swigc__p_wxClientDC,
40236 _swigc__p_wxClipboardTextEvent,
40237 _swigc__p_wxCloseEvent,
40238 _swigc__p_wxColor,
40239 _swigc__p_wxColour,
40240 _swigc__p_wxColourDatabase,
40241 _swigc__p_wxCommandEvent,
40242 _swigc__p_wxContextMenuEvent,
40243 _swigc__p_wxControl,
40244 _swigc__p_wxControlWithItems,
40245 _swigc__p_wxCursor,
40246 _swigc__p_wxDC,
40247 _swigc__p_wxDCBrushChanger,
40248 _swigc__p_wxDCClipper,
40249 _swigc__p_wxDCOverlay,
40250 _swigc__p_wxDCPenChanger,
40251 _swigc__p_wxDCTextColourChanger,
40252 _swigc__p_wxDash,
40253 _swigc__p_wxDateEvent,
40254 _swigc__p_wxDisplayChangedEvent,
40255 _swigc__p_wxDropFilesEvent,
40256 _swigc__p_wxDuplexMode,
40257 _swigc__p_wxEffects,
40258 _swigc__p_wxEncodingConverter,
40259 _swigc__p_wxEraseEvent,
40260 _swigc__p_wxEvent,
40261 _swigc__p_wxEvtHandler,
40262 _swigc__p_wxFSFile,
40263 _swigc__p_wxFileSystem,
40264 _swigc__p_wxFlexGridSizer,
40265 _swigc__p_wxFocusEvent,
40266 _swigc__p_wxFont,
40267 _swigc__p_wxFontList,
40268 _swigc__p_wxFontMapper,
40269 _swigc__p_wxGBSizerItem,
40270 _swigc__p_wxGCDC,
40271 _swigc__p_wxGDIObjListBase,
40272 _swigc__p_wxGDIObject,
40273 _swigc__p_wxGIFHandler,
40274 _swigc__p_wxGraphicsBrush,
40275 _swigc__p_wxGraphicsContext,
40276 _swigc__p_wxGraphicsFont,
40277 _swigc__p_wxGraphicsMatrix,
40278 _swigc__p_wxGraphicsObject,
40279 _swigc__p_wxGraphicsPath,
40280 _swigc__p_wxGraphicsPen,
40281 _swigc__p_wxGraphicsRenderer,
40282 _swigc__p_wxGridBagSizer,
40283 _swigc__p_wxGridSizer,
40284 _swigc__p_wxHeaderButtonParams,
40285 _swigc__p_wxICOHandler,
40286 _swigc__p_wxIcon,
40287 _swigc__p_wxIconBundle,
40288 _swigc__p_wxIconLocation,
40289 _swigc__p_wxIconizeEvent,
40290 _swigc__p_wxIdleEvent,
40291 _swigc__p_wxImage,
40292 _swigc__p_wxImageHandler,
40293 _swigc__p_wxImageList,
40294 _swigc__p_wxIndividualLayoutConstraint,
40295 _swigc__p_wxInitDialogEvent,
40296 _swigc__p_wxJPEGHandler,
40297 _swigc__p_wxKeyEvent,
40298 _swigc__p_wxLanguageInfo,
40299 _swigc__p_wxLayoutConstraints,
40300 _swigc__p_wxLocale,
40301 _swigc__p_wxMask,
40302 _swigc__p_wxMaximizeEvent,
40303 _swigc__p_wxMemoryDC,
40304 _swigc__p_wxMenu,
40305 _swigc__p_wxMenuBar,
40306 _swigc__p_wxMenuEvent,
40307 _swigc__p_wxMenuItem,
40308 _swigc__p_wxMetaFile,
40309 _swigc__p_wxMetaFileDC,
40310 _swigc__p_wxMirrorDC,
40311 _swigc__p_wxMouseCaptureChangedEvent,
40312 _swigc__p_wxMouseCaptureLostEvent,
40313 _swigc__p_wxMouseEvent,
40314 _swigc__p_wxMoveEvent,
40315 _swigc__p_wxNativeEncodingInfo,
40316 _swigc__p_wxNativeFontInfo,
40317 _swigc__p_wxNativePixelData,
40318 _swigc__p_wxNativePixelData_Accessor,
40319 _swigc__p_wxNavigationKeyEvent,
40320 _swigc__p_wxNcPaintEvent,
40321 _swigc__p_wxNotifyEvent,
40322 _swigc__p_wxObject,
40323 _swigc__p_wxOverlay,
40324 _swigc__p_wxPCXHandler,
40325 _swigc__p_wxPNGHandler,
40326 _swigc__p_wxPNMHandler,
40327 _swigc__p_wxPaintDC,
40328 _swigc__p_wxPaintEvent,
40329 _swigc__p_wxPalette,
40330 _swigc__p_wxPaletteChangedEvent,
40331 _swigc__p_wxPaperSize,
40332 _swigc__p_wxPen,
40333 _swigc__p_wxPenList,
40334 _swigc__p_wxPixelDataBase,
40335 _swigc__p_wxPoint,
40336 _swigc__p_wxPoint2D,
40337 _swigc__p_wxPoint2DDouble,
40338 _swigc__p_wxPostScriptDC,
40339 _swigc__p_wxPrintData,
40340 _swigc__p_wxPrinterDC,
40341 _swigc__p_wxPseudoDC,
40342 _swigc__p_wxPyApp,
40343 _swigc__p_wxPyCommandEvent,
40344 _swigc__p_wxPyEvent,
40345 _swigc__p_wxPyFontEnumerator,
40346 _swigc__p_wxPyImageHandler,
40347 _swigc__p_wxPyLocale,
40348 _swigc__p_wxPySizer,
40349 _swigc__p_wxPyValidator,
40350 _swigc__p_wxQueryNewPaletteEvent,
40351 _swigc__p_wxRect,
40352 _swigc__p_wxRect2DDouble,
40353 _swigc__p_wxRegion,
40354 _swigc__p_wxRegionIterator,
40355 _swigc__p_wxRendererNative,
40356 _swigc__p_wxRendererVersion,
40357 _swigc__p_wxScreenDC,
40358 _swigc__p_wxScrollEvent,
40359 _swigc__p_wxScrollWinEvent,
40360 _swigc__p_wxSetCursorEvent,
40361 _swigc__p_wxShowEvent,
40362 _swigc__p_wxSize,
40363 _swigc__p_wxSizeEvent,
40364 _swigc__p_wxSizer,
40365 _swigc__p_wxSizerItem,
40366 _swigc__p_wxSplitterRenderParams,
40367 _swigc__p_wxStaticBoxSizer,
40368 _swigc__p_wxStdDialogButtonSizer,
40369 _swigc__p_wxStockGDI,
40370 _swigc__p_wxString,
40371 _swigc__p_wxSysColourChangedEvent,
40372 _swigc__p_wxTGAHandler,
40373 _swigc__p_wxTIFFHandler,
40374 _swigc__p_wxUpdateUIEvent,
40375 _swigc__p_wxValidator,
40376 _swigc__p_wxWindow,
40377 _swigc__p_wxWindowCreateEvent,
40378 _swigc__p_wxWindowDC,
40379 _swigc__p_wxWindowDestroyEvent,
40380 _swigc__p_wxXPMHandler,
40381 };
40382
40383
40384 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40385
40386 static swig_const_info swig_const_table[] = {
40387 {0, 0, 0, 0.0, 0, 0}};
40388
40389 #ifdef __cplusplus
40390 }
40391 #endif
40392 /* -----------------------------------------------------------------------------
40393 * Type initialization:
40394 * This problem is tough by the requirement that no dynamic
40395 * memory is used. Also, since swig_type_info structures store pointers to
40396 * swig_cast_info structures and swig_cast_info structures store pointers back
40397 * to swig_type_info structures, we need some lookup code at initialization.
40398 * The idea is that swig generates all the structures that are needed.
40399 * The runtime then collects these partially filled structures.
40400 * The SWIG_InitializeModule function takes these initial arrays out of
40401 * swig_module, and does all the lookup, filling in the swig_module.types
40402 * array with the correct data and linking the correct swig_cast_info
40403 * structures together.
40404 *
40405 * The generated swig_type_info structures are assigned staticly to an initial
40406 * array. We just loop though that array, and handle each type individually.
40407 * First we lookup if this type has been already loaded, and if so, use the
40408 * loaded structure instead of the generated one. Then we have to fill in the
40409 * cast linked list. The cast data is initially stored in something like a
40410 * two-dimensional array. Each row corresponds to a type (there are the same
40411 * number of rows as there are in the swig_type_initial array). Each entry in
40412 * a column is one of the swig_cast_info structures for that type.
40413 * The cast_initial array is actually an array of arrays, because each row has
40414 * a variable number of columns. So to actually build the cast linked list,
40415 * we find the array of casts associated with the type, and loop through it
40416 * adding the casts to the list. The one last trick we need to do is making
40417 * sure the type pointer in the swig_cast_info struct is correct.
40418 *
40419 * First off, we lookup the cast->type name to see if it is already loaded.
40420 * There are three cases to handle:
40421 * 1) If the cast->type has already been loaded AND the type we are adding
40422 * casting info to has not been loaded (it is in this module), THEN we
40423 * replace the cast->type pointer with the type pointer that has already
40424 * been loaded.
40425 * 2) If BOTH types (the one we are adding casting info to, and the
40426 * cast->type) are loaded, THEN the cast info has already been loaded by
40427 * the previous module so we just ignore it.
40428 * 3) Finally, if cast->type has not already been loaded, then we add that
40429 * swig_cast_info to the linked list (because the cast->type) pointer will
40430 * be correct.
40431 * ----------------------------------------------------------------------------- */
40432
40433 #ifdef __cplusplus
40434 extern "C" {
40435 #if 0
40436 } /* c-mode */
40437 #endif
40438 #endif
40439
40440 #if 0
40441 #define SWIGRUNTIME_DEBUG
40442 #endif
40443
40444 SWIGRUNTIME void
40445 SWIG_InitializeModule(void *clientdata) {
40446 size_t i;
40447 swig_module_info *module_head;
40448 static int init_run = 0;
40449
40450 clientdata = clientdata;
40451
40452 if (init_run) return;
40453 init_run = 1;
40454
40455 /* Initialize the swig_module */
40456 swig_module.type_initial = swig_type_initial;
40457 swig_module.cast_initial = swig_cast_initial;
40458
40459 /* Try and load any already created modules */
40460 module_head = SWIG_GetModule(clientdata);
40461 if (module_head) {
40462 swig_module.next = module_head->next;
40463 module_head->next = &swig_module;
40464 } else {
40465 /* This is the first module loaded */
40466 swig_module.next = &swig_module;
40467 SWIG_SetModule(clientdata, &swig_module);
40468 }
40469
40470 /* Now work on filling in swig_module.types */
40471 #ifdef SWIGRUNTIME_DEBUG
40472 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40473 #endif
40474 for (i = 0; i < swig_module.size; ++i) {
40475 swig_type_info *type = 0;
40476 swig_type_info *ret;
40477 swig_cast_info *cast;
40478
40479 #ifdef SWIGRUNTIME_DEBUG
40480 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40481 #endif
40482
40483 /* if there is another module already loaded */
40484 if (swig_module.next != &swig_module) {
40485 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
40486 }
40487 if (type) {
40488 /* Overwrite clientdata field */
40489 #ifdef SWIGRUNTIME_DEBUG
40490 printf("SWIG_InitializeModule: found type %s\n", type->name);
40491 #endif
40492 if (swig_module.type_initial[i]->clientdata) {
40493 type->clientdata = swig_module.type_initial[i]->clientdata;
40494 #ifdef SWIGRUNTIME_DEBUG
40495 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40496 #endif
40497 }
40498 } else {
40499 type = swig_module.type_initial[i];
40500 }
40501
40502 /* Insert casting types */
40503 cast = swig_module.cast_initial[i];
40504 while (cast->type) {
40505 /* Don't need to add information already in the list */
40506 ret = 0;
40507 #ifdef SWIGRUNTIME_DEBUG
40508 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40509 #endif
40510 if (swig_module.next != &swig_module) {
40511 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40512 #ifdef SWIGRUNTIME_DEBUG
40513 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40514 #endif
40515 }
40516 if (ret) {
40517 if (type == swig_module.type_initial[i]) {
40518 #ifdef SWIGRUNTIME_DEBUG
40519 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40520 #endif
40521 cast->type = ret;
40522 ret = 0;
40523 } else {
40524 /* Check for casting already in the list */
40525 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40526 #ifdef SWIGRUNTIME_DEBUG
40527 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40528 #endif
40529 if (!ocast) ret = 0;
40530 }
40531 }
40532
40533 if (!ret) {
40534 #ifdef SWIGRUNTIME_DEBUG
40535 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40536 #endif
40537 if (type->cast) {
40538 type->cast->prev = cast;
40539 cast->next = type->cast;
40540 }
40541 type->cast = cast;
40542 }
40543 cast++;
40544 }
40545 /* Set entry in modules->types array equal to the type */
40546 swig_module.types[i] = type;
40547 }
40548 swig_module.types[i] = 0;
40549
40550 #ifdef SWIGRUNTIME_DEBUG
40551 printf("**** SWIG_InitializeModule: Cast List ******\n");
40552 for (i = 0; i < swig_module.size; ++i) {
40553 int j = 0;
40554 swig_cast_info *cast = swig_module.cast_initial[i];
40555 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40556 while (cast->type) {
40557 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40558 cast++;
40559 ++j;
40560 }
40561 printf("---- Total casts: %d\n",j);
40562 }
40563 printf("**** SWIG_InitializeModule: Cast List ******\n");
40564 #endif
40565 }
40566
40567 /* This function will propagate the clientdata field of type to
40568 * any new swig_type_info structures that have been added into the list
40569 * of equivalent types. It is like calling
40570 * SWIG_TypeClientData(type, clientdata) a second time.
40571 */
40572 SWIGRUNTIME void
40573 SWIG_PropagateClientData(void) {
40574 size_t i;
40575 swig_cast_info *equiv;
40576 static int init_run = 0;
40577
40578 if (init_run) return;
40579 init_run = 1;
40580
40581 for (i = 0; i < swig_module.size; i++) {
40582 if (swig_module.types[i]->clientdata) {
40583 equiv = swig_module.types[i]->cast;
40584 while (equiv) {
40585 if (!equiv->converter) {
40586 if (equiv->type && !equiv->type->clientdata)
40587 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40588 }
40589 equiv = equiv->next;
40590 }
40591 }
40592 }
40593 }
40594
40595 #ifdef __cplusplus
40596 #if 0
40597 {
40598 /* c-mode */
40599 #endif
40600 }
40601 #endif
40602
40603
40604
40605 #ifdef __cplusplus
40606 extern "C" {
40607 #endif
40608
40609 /* Python-specific SWIG API */
40610 #define SWIG_newvarlink() SWIG_Python_newvarlink()
40611 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40612 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40613
40614 /* -----------------------------------------------------------------------------
40615 * global variable support code.
40616 * ----------------------------------------------------------------------------- */
40617
40618 typedef struct swig_globalvar {
40619 char *name; /* Name of global variable */
40620 PyObject *(*get_attr)(void); /* Return the current value */
40621 int (*set_attr)(PyObject *); /* Set the value */
40622 struct swig_globalvar *next;
40623 } swig_globalvar;
40624
40625 typedef struct swig_varlinkobject {
40626 PyObject_HEAD
40627 swig_globalvar *vars;
40628 } swig_varlinkobject;
40629
40630 SWIGINTERN PyObject *
40631 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40632 return PyString_FromString("<Swig global variables>");
40633 }
40634
40635 SWIGINTERN PyObject *
40636 swig_varlink_str(swig_varlinkobject *v) {
40637 PyObject *str = PyString_FromString("(");
40638 swig_globalvar *var;
40639 for (var = v->vars; var; var=var->next) {
40640 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40641 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40642 }
40643 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40644 return str;
40645 }
40646
40647 SWIGINTERN int
40648 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40649 PyObject *str = swig_varlink_str(v);
40650 fprintf(fp,"Swig global variables ");
40651 fprintf(fp,"%s\n", PyString_AsString(str));
40652 Py_DECREF(str);
40653 return 0;
40654 }
40655
40656 SWIGINTERN void
40657 swig_varlink_dealloc(swig_varlinkobject *v) {
40658 swig_globalvar *var = v->vars;
40659 while (var) {
40660 swig_globalvar *n = var->next;
40661 free(var->name);
40662 free(var);
40663 var = n;
40664 }
40665 }
40666
40667 SWIGINTERN PyObject *
40668 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40669 PyObject *res = NULL;
40670 swig_globalvar *var = v->vars;
40671 while (var) {
40672 if (strcmp(var->name,n) == 0) {
40673 res = (*var->get_attr)();
40674 break;
40675 }
40676 var = var->next;
40677 }
40678 if (res == NULL && !PyErr_Occurred()) {
40679 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
40680 }
40681 return res;
40682 }
40683
40684 SWIGINTERN int
40685 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40686 int res = 1;
40687 swig_globalvar *var = v->vars;
40688 while (var) {
40689 if (strcmp(var->name,n) == 0) {
40690 res = (*var->set_attr)(p);
40691 break;
40692 }
40693 var = var->next;
40694 }
40695 if (res == 1 && !PyErr_Occurred()) {
40696 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
40697 }
40698 return res;
40699 }
40700
40701 SWIGINTERN PyTypeObject*
40702 swig_varlink_type(void) {
40703 static char varlink__doc__[] = "Swig var link object";
40704 static PyTypeObject varlink_type;
40705 static int type_init = 0;
40706 if (!type_init) {
40707 const PyTypeObject tmp
40708 = {
40709 PyObject_HEAD_INIT(NULL)
40710 0, /* Number of items in variable part (ob_size) */
40711 (char *)"swigvarlink", /* Type name (tp_name) */
40712 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40713 0, /* Itemsize (tp_itemsize) */
40714 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40715 (printfunc) swig_varlink_print, /* Print (tp_print) */
40716 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40717 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40718 0, /* tp_compare */
40719 (reprfunc) swig_varlink_repr, /* tp_repr */
40720 0, /* tp_as_number */
40721 0, /* tp_as_sequence */
40722 0, /* tp_as_mapping */
40723 0, /* tp_hash */
40724 0, /* tp_call */
40725 (reprfunc)swig_varlink_str, /* tp_str */
40726 0, /* tp_getattro */
40727 0, /* tp_setattro */
40728 0, /* tp_as_buffer */
40729 0, /* tp_flags */
40730 varlink__doc__, /* tp_doc */
40731 0, /* tp_traverse */
40732 0, /* tp_clear */
40733 0, /* tp_richcompare */
40734 0, /* tp_weaklistoffset */
40735 #if PY_VERSION_HEX >= 0x02020000
40736 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40737 #endif
40738 #if PY_VERSION_HEX >= 0x02030000
40739 0, /* tp_del */
40740 #endif
40741 #ifdef COUNT_ALLOCS
40742 0,0,0,0 /* tp_alloc -> tp_next */
40743 #endif
40744 };
40745 varlink_type = tmp;
40746 varlink_type.ob_type = &PyType_Type;
40747 type_init = 1;
40748 }
40749 return &varlink_type;
40750 }
40751
40752 /* Create a variable linking object for use later */
40753 SWIGINTERN PyObject *
40754 SWIG_Python_newvarlink(void) {
40755 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40756 if (result) {
40757 result->vars = 0;
40758 }
40759 return ((PyObject*) result);
40760 }
40761
40762 SWIGINTERN void
40763 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40764 swig_varlinkobject *v = (swig_varlinkobject *) p;
40765 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40766 if (gv) {
40767 size_t size = strlen(name)+1;
40768 gv->name = (char *)malloc(size);
40769 if (gv->name) {
40770 strncpy(gv->name,name,size);
40771 gv->get_attr = get_attr;
40772 gv->set_attr = set_attr;
40773 gv->next = v->vars;
40774 }
40775 }
40776 v->vars = gv;
40777 }
40778
40779 SWIGINTERN PyObject *
40780 SWIG_globals() {
40781 static PyObject *_SWIG_globals = 0;
40782 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40783 return _SWIG_globals;
40784 }
40785
40786 /* -----------------------------------------------------------------------------
40787 * constants/methods manipulation
40788 * ----------------------------------------------------------------------------- */
40789
40790 /* Install Constants */
40791 SWIGINTERN void
40792 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40793 PyObject *obj = 0;
40794 size_t i;
40795 for (i = 0; constants[i].type; ++i) {
40796 switch(constants[i].type) {
40797 case SWIG_PY_POINTER:
40798 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
40799 break;
40800 case SWIG_PY_BINARY:
40801 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
40802 break;
40803 default:
40804 obj = 0;
40805 break;
40806 }
40807 if (obj) {
40808 PyDict_SetItemString(d, constants[i].name, obj);
40809 Py_DECREF(obj);
40810 }
40811 }
40812 }
40813
40814 /* -----------------------------------------------------------------------------*/
40815 /* Fix SwigMethods to carry the callback ptrs when needed */
40816 /* -----------------------------------------------------------------------------*/
40817
40818 SWIGINTERN void
40819 SWIG_Python_FixMethods(PyMethodDef *methods,
40820 swig_const_info *const_table,
40821 swig_type_info **types,
40822 swig_type_info **types_initial) {
40823 size_t i;
40824 for (i = 0; methods[i].ml_name; ++i) {
40825 const char *c = methods[i].ml_doc;
40826 if (c && (c = strstr(c, "swig_ptr: "))) {
40827 int j;
40828 swig_const_info *ci = 0;
40829 const char *name = c + 10;
40830 for (j = 0; const_table[j].type; ++j) {
40831 if (strncmp(const_table[j].name, name,
40832 strlen(const_table[j].name)) == 0) {
40833 ci = &(const_table[j]);
40834 break;
40835 }
40836 }
40837 if (ci) {
40838 size_t shift = (ci->ptype) - types;
40839 swig_type_info *ty = types_initial[shift];
40840 size_t ldoc = (c - methods[i].ml_doc);
40841 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
40842 char *ndoc = (char*)malloc(ldoc + lptr + 10);
40843 if (ndoc) {
40844 char *buff = ndoc;
40845 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
40846 if (ptr) {
40847 strncpy(buff, methods[i].ml_doc, ldoc);
40848 buff += ldoc;
40849 strncpy(buff, "swig_ptr: ", 10);
40850 buff += 10;
40851 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
40852 methods[i].ml_doc = ndoc;
40853 }
40854 }
40855 }
40856 }
40857 }
40858 }
40859
40860 #ifdef __cplusplus
40861 }
40862 #endif
40863
40864 /* -----------------------------------------------------------------------------*
40865 * Partial Init method
40866 * -----------------------------------------------------------------------------*/
40867
40868 #ifdef __cplusplus
40869 extern "C"
40870 #endif
40871 SWIGEXPORT void SWIG_init(void) {
40872 PyObject *m, *d;
40873
40874 /* Fix SwigMethods to carry the callback ptrs when needed */
40875 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
40876
40877 m = Py_InitModule((char *) SWIG_name, SwigMethods);
40878 d = PyModule_GetDict(m);
40879
40880 SWIG_InitializeModule(0);
40881 SWIG_InstallConstants(d,swig_const_table);
40882
40883
40884 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
40885 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
40886 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
40887 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
40888 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
40889 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
40890 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
40891 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
40892 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
40893 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
40894 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
40895 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
40896 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
40897 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
40898 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
40899 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
40900 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
40901 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
40902 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
40903 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
40904 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
40905 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
40906 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
40907 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
40908 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
40909 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
40910 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
40911 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
40912 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
40913 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
40914 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
40915 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
40916 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
40917 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
40918 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
40919 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
40920 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
40921 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
40922 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
40923 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
40924 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
40925 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
40926 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
40927 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
40928 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
40929 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
40930 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
40931 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
40932 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
40933 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
40934 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
40935 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
40936 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
40937 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
40938 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
40939 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
40940 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
40941 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
40942 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
40943 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
40944 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
40945 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
40946 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
40947 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
40948 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
40949 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
40950 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
40951 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
40952 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
40953 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
40954 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
40955 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
40956 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
40957 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
40958 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
40959 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
40960 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
40961 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
40962 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
40963 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
40964 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
40965 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
40966 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
40967 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
40968 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
40969 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
40970 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
40971 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
40972 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
40973 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
40974 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
40975 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
40976 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
40977 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
40978 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
40979 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
40980 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
40981 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
40982 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
40983 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
40984 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
40985 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
40986 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
40987 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
40988 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
40989 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
40990 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
40991 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
40992 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
40993 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
40994 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
40995 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
40996 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
40997 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
40998 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
40999 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41000 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41001 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41002 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41003 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41004 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41005 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41006 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41007 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41008 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41009 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41010 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41011 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41012 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41013 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41014 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41015 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41016
41017 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41018
41019 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41020 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41021 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41022 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41023 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41024 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41025 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41026 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41027 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41028 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41029 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41030 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41031 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41032 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41033 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41034 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41035 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41036 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41037 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41038 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41039 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41040 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41041 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41042 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41043 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41044 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41045 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41046 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41047 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41048 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41049 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41050 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41051 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41052 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41053 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41054 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41055 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41056 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41057 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41058 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41059 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41060 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41061 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41062 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41063 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41064 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41065 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41066 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41067 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41068 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41069 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41070 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41071 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41072 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41073 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41074 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41075 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41076 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41077 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41078 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41079 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41080 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41081 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41082 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41083 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41084 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41085 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41086 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41087 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41088 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41089 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41090 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41091 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41092 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41093 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41094 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41095 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41096 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41097 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41098 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41099 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41100 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41101 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41102 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41103 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41104 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41105 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41106 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41107 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41108 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41109 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41110 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41111 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41112 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41113 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41114 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41115 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41116 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41117 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41118 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41119 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41120 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41121 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41122 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41123 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41124 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41125 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41126 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41127 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41128 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41129 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41130 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41131 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41132 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41133 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41134 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41135 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41136 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41137 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41138 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41139 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41140 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41141 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41142 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41143 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41144 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41145 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41146 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41147 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41148 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41149 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41150 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41151 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41152 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41153 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41154 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41155 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41156 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41157 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41158 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41159 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41160 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41161 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41162 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41163 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41164 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41165 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41166 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41167 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41168 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41169 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41170 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41171 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41172 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41173 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41174 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41175 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41176 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41177 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41178 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41179 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41180 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41181 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41182 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41183 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41184 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41185 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41186 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41187 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41188 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41189 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41190 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41191 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41192 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41193 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41194 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41195 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41196 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41197 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41198 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41199 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41200 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41201 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41202 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41203 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41204 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41205 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41206 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41207 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41208 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41209 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41210 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41211 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41212 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41213 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41214 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41215 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41216 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41217 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41218 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41219 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41220 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41221 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41222 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41223 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41224 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41225 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41226 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41227 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41228 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41229 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41230 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41231 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41232 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41233 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41234 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41235 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41236 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41237 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41238 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41239 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41240 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41241 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41242 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41243 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41244 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41245 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41246 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41247 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41248 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41249 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41250 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41251 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41252 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41253 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41254 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41255 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41256 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41257 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41258 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41259 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41260 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41261 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41262 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41263 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41264 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41265 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41266 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
41267 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41268 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41269 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41270 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
41271 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41272 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
41273 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41274 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41275 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41276 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41277 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41278 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41279 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
41280 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41281 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41282 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41283 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41284 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41285 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41286 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41287 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41288 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41289 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41290 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41291 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41292 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41293 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41294 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41295 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41296 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41297 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41298 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41299 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41300 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41301 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41302 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41303 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41304 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41305 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41306 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41307 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41308 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41309 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41310 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41311 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41312 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41313 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41314 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
41315 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41316 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41317 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41318 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41319 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41320 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41321 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41322 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
41323 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41324 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41325 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
41326 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
41327 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41328 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41329 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
41330 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
41331 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41332 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41333 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41334 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41335 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41336 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41337 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
41338 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41339 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41340 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
41341 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41342 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41343
41344 // Work around a chicken/egg problem in drawlist.cpp
41345 wxPyDrawList_SetAPIPtr();
41346
41347 }
41348