]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
undid signed/unsigned warning fix of rev 1.73 as the type of wxString::iterator:...
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_wxChildFocusEvent swig_types[23]
2490 #define SWIGTYPE_p_wxClientDC swig_types[24]
2491 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[25]
2492 #define SWIGTYPE_p_wxCloseEvent swig_types[26]
2493 #define SWIGTYPE_p_wxColour swig_types[27]
2494 #define SWIGTYPE_p_wxColourDatabase swig_types[28]
2495 #define SWIGTYPE_p_wxCommandEvent swig_types[29]
2496 #define SWIGTYPE_p_wxContextMenuEvent swig_types[30]
2497 #define SWIGTYPE_p_wxControl swig_types[31]
2498 #define SWIGTYPE_p_wxControlWithItems swig_types[32]
2499 #define SWIGTYPE_p_wxCursor swig_types[33]
2500 #define SWIGTYPE_p_wxDC swig_types[34]
2501 #define SWIGTYPE_p_wxDCBrushChanger swig_types[35]
2502 #define SWIGTYPE_p_wxDCClipper swig_types[36]
2503 #define SWIGTYPE_p_wxDCOverlay swig_types[37]
2504 #define SWIGTYPE_p_wxDCPenChanger swig_types[38]
2505 #define SWIGTYPE_p_wxDCTextColourChanger swig_types[39]
2506 #define SWIGTYPE_p_wxDash swig_types[40]
2507 #define SWIGTYPE_p_wxDateEvent swig_types[41]
2508 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[42]
2509 #define SWIGTYPE_p_wxDropFilesEvent swig_types[43]
2510 #define SWIGTYPE_p_wxDuplexMode swig_types[44]
2511 #define SWIGTYPE_p_wxEffects swig_types[45]
2512 #define SWIGTYPE_p_wxEncodingConverter swig_types[46]
2513 #define SWIGTYPE_p_wxEraseEvent swig_types[47]
2514 #define SWIGTYPE_p_wxEvent swig_types[48]
2515 #define SWIGTYPE_p_wxEventBlocker swig_types[49]
2516 #define SWIGTYPE_p_wxEvtHandler swig_types[50]
2517 #define SWIGTYPE_p_wxFSFile swig_types[51]
2518 #define SWIGTYPE_p_wxFileSystem swig_types[52]
2519 #define SWIGTYPE_p_wxFlexGridSizer swig_types[53]
2520 #define SWIGTYPE_p_wxFocusEvent swig_types[54]
2521 #define SWIGTYPE_p_wxFont swig_types[55]
2522 #define SWIGTYPE_p_wxFontList swig_types[56]
2523 #define SWIGTYPE_p_wxFontMapper swig_types[57]
2524 #define SWIGTYPE_p_wxGBSizerItem swig_types[58]
2525 #define SWIGTYPE_p_wxGCDC swig_types[59]
2526 #define SWIGTYPE_p_wxGDIObjListBase swig_types[60]
2527 #define SWIGTYPE_p_wxGDIObject swig_types[61]
2528 #define SWIGTYPE_p_wxGIFHandler swig_types[62]
2529 #define SWIGTYPE_p_wxGraphicsBrush swig_types[63]
2530 #define SWIGTYPE_p_wxGraphicsContext swig_types[64]
2531 #define SWIGTYPE_p_wxGraphicsFont swig_types[65]
2532 #define SWIGTYPE_p_wxGraphicsMatrix swig_types[66]
2533 #define SWIGTYPE_p_wxGraphicsObject swig_types[67]
2534 #define SWIGTYPE_p_wxGraphicsPath swig_types[68]
2535 #define SWIGTYPE_p_wxGraphicsPen swig_types[69]
2536 #define SWIGTYPE_p_wxGraphicsRenderer swig_types[70]
2537 #define SWIGTYPE_p_wxGridBagSizer swig_types[71]
2538 #define SWIGTYPE_p_wxGridSizer swig_types[72]
2539 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[73]
2540 #define SWIGTYPE_p_wxICOHandler swig_types[74]
2541 #define SWIGTYPE_p_wxIcon swig_types[75]
2542 #define SWIGTYPE_p_wxIconBundle swig_types[76]
2543 #define SWIGTYPE_p_wxIconLocation swig_types[77]
2544 #define SWIGTYPE_p_wxIconizeEvent swig_types[78]
2545 #define SWIGTYPE_p_wxIdleEvent swig_types[79]
2546 #define SWIGTYPE_p_wxImage swig_types[80]
2547 #define SWIGTYPE_p_wxImageHandler swig_types[81]
2548 #define SWIGTYPE_p_wxImageList swig_types[82]
2549 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83]
2550 #define SWIGTYPE_p_wxInitDialogEvent swig_types[84]
2551 #define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552 #define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553 #define SWIGTYPE_p_wxLanguageInfo swig_types[87]
2554 #define SWIGTYPE_p_wxLayoutConstraints swig_types[88]
2555 #define SWIGTYPE_p_wxLocale swig_types[89]
2556 #define SWIGTYPE_p_wxMask swig_types[90]
2557 #define SWIGTYPE_p_wxMaximizeEvent swig_types[91]
2558 #define SWIGTYPE_p_wxMemoryDC swig_types[92]
2559 #define SWIGTYPE_p_wxMenu swig_types[93]
2560 #define SWIGTYPE_p_wxMenuBar swig_types[94]
2561 #define SWIGTYPE_p_wxMenuEvent swig_types[95]
2562 #define SWIGTYPE_p_wxMenuItem swig_types[96]
2563 #define SWIGTYPE_p_wxMetaFile swig_types[97]
2564 #define SWIGTYPE_p_wxMetaFileDC swig_types[98]
2565 #define SWIGTYPE_p_wxMirrorDC swig_types[99]
2566 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMoveEvent swig_types[103]
2570 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[104]
2571 #define SWIGTYPE_p_wxNativeFontInfo swig_types[105]
2572 #define SWIGTYPE_p_wxNativePixelData swig_types[106]
2573 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[107]
2574 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[108]
2575 #define SWIGTYPE_p_wxNcPaintEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNotifyEvent swig_types[110]
2577 #define SWIGTYPE_p_wxObject swig_types[111]
2578 #define SWIGTYPE_p_wxOverlay swig_types[112]
2579 #define SWIGTYPE_p_wxPCXHandler swig_types[113]
2580 #define SWIGTYPE_p_wxPNGHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPNMHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPaintDC swig_types[116]
2583 #define SWIGTYPE_p_wxPaintEvent swig_types[117]
2584 #define SWIGTYPE_p_wxPalette swig_types[118]
2585 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[119]
2586 #define SWIGTYPE_p_wxPaperSize swig_types[120]
2587 #define SWIGTYPE_p_wxPen swig_types[121]
2588 #define SWIGTYPE_p_wxPenList swig_types[122]
2589 #define SWIGTYPE_p_wxPixelDataBase swig_types[123]
2590 #define SWIGTYPE_p_wxPoint swig_types[124]
2591 #define SWIGTYPE_p_wxPoint2D swig_types[125]
2592 #define SWIGTYPE_p_wxPostScriptDC swig_types[126]
2593 #define SWIGTYPE_p_wxPrintData swig_types[127]
2594 #define SWIGTYPE_p_wxPrinterDC swig_types[128]
2595 #define SWIGTYPE_p_wxPseudoDC swig_types[129]
2596 #define SWIGTYPE_p_wxPyApp swig_types[130]
2597 #define SWIGTYPE_p_wxPyCommandEvent swig_types[131]
2598 #define SWIGTYPE_p_wxPyEvent swig_types[132]
2599 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[133]
2600 #define SWIGTYPE_p_wxPyImageHandler swig_types[134]
2601 #define SWIGTYPE_p_wxPyLocale swig_types[135]
2602 #define SWIGTYPE_p_wxPySizer swig_types[136]
2603 #define SWIGTYPE_p_wxPyValidator swig_types[137]
2604 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[138]
2605 #define SWIGTYPE_p_wxRect swig_types[139]
2606 #define SWIGTYPE_p_wxRect2D swig_types[140]
2607 #define SWIGTYPE_p_wxRegion swig_types[141]
2608 #define SWIGTYPE_p_wxRegionIterator swig_types[142]
2609 #define SWIGTYPE_p_wxRendererNative swig_types[143]
2610 #define SWIGTYPE_p_wxRendererVersion swig_types[144]
2611 #define SWIGTYPE_p_wxScreenDC swig_types[145]
2612 #define SWIGTYPE_p_wxScrollEvent swig_types[146]
2613 #define SWIGTYPE_p_wxScrollWinEvent swig_types[147]
2614 #define SWIGTYPE_p_wxSetCursorEvent swig_types[148]
2615 #define SWIGTYPE_p_wxShowEvent swig_types[149]
2616 #define SWIGTYPE_p_wxSize swig_types[150]
2617 #define SWIGTYPE_p_wxSizeEvent swig_types[151]
2618 #define SWIGTYPE_p_wxSizer swig_types[152]
2619 #define SWIGTYPE_p_wxSizerItem swig_types[153]
2620 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[154]
2621 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[155]
2622 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[156]
2623 #define SWIGTYPE_p_wxStockGDI swig_types[157]
2624 #define SWIGTYPE_p_wxString swig_types[158]
2625 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[159]
2626 #define SWIGTYPE_p_wxTGAHandler swig_types[160]
2627 #define SWIGTYPE_p_wxTIFFHandler swig_types[161]
2628 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[162]
2629 #define SWIGTYPE_p_wxValidator swig_types[163]
2630 #define SWIGTYPE_p_wxWindow swig_types[164]
2631 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[165]
2632 #define SWIGTYPE_p_wxWindowDC swig_types[166]
2633 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[167]
2634 #define SWIGTYPE_p_wxXPMHandler swig_types[168]
2635 static swig_type_info *swig_types[170];
2636 static swig_module_info swig_module = {swig_types, 169, 0, 0, 0, 0};
2637 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2638 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2639
2640 /* -------- TYPES TABLE (END) -------- */
2641
2642 #if (PY_VERSION_HEX <= 0x02000000)
2643 # if !defined(SWIG_PYTHON_CLASSIC)
2644 # error "This python version requires to use swig with the '-classic' option"
2645 # endif
2646 #endif
2647 #if (PY_VERSION_HEX <= 0x02020000)
2648 # error "This python version requires to use swig with the '-nomodern' option"
2649 #endif
2650 #if (PY_VERSION_HEX <= 0x02020000)
2651 # error "This python version requires to use swig with the '-nomodernargs' option"
2652 #endif
2653 #ifndef METH_O
2654 # error "This python version requires to use swig with the '-nofastunpack' option"
2655 #endif
2656
2657 /*-----------------------------------------------
2658 @(target):= _gdi_.so
2659 ------------------------------------------------*/
2660 #define SWIG_init init_gdi_
2661
2662 #define SWIG_name "_gdi_"
2663
2664 #define SWIGVERSION 0x010329
2665
2666
2667 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2668 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2669
2670
2671 #include <stdexcept>
2672
2673
2674 namespace swig {
2675 class PyObject_ptr {
2676 protected:
2677 PyObject *_obj;
2678
2679 public:
2680 PyObject_ptr() :_obj(0)
2681 {
2682 }
2683
2684 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2685 {
2686 Py_XINCREF(_obj);
2687 }
2688
2689 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2690 {
2691 if (initial_ref) Py_XINCREF(_obj);
2692 }
2693
2694 PyObject_ptr & operator=(const PyObject_ptr& item)
2695 {
2696 Py_XINCREF(item._obj);
2697 Py_XDECREF(_obj);
2698 _obj = item._obj;
2699 return *this;
2700 }
2701
2702 ~PyObject_ptr()
2703 {
2704 Py_XDECREF(_obj);
2705 }
2706
2707 operator PyObject *() const
2708 {
2709 return _obj;
2710 }
2711
2712 PyObject *operator->() const
2713 {
2714 return _obj;
2715 }
2716 };
2717 }
2718
2719
2720 namespace swig {
2721 struct PyObject_var : PyObject_ptr {
2722 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2723
2724 PyObject_var & operator = (PyObject* obj)
2725 {
2726 Py_XDECREF(_obj);
2727 _obj = obj;
2728 return *this;
2729 }
2730 };
2731 }
2732
2733
2734 #include "wx/wxPython/wxPython.h"
2735 #include "wx/wxPython/pyclasses.h"
2736
2737
2738 static const wxString wxPyEmptyString(wxEmptyString);
2739
2740 #define SWIG_From_long PyInt_FromLong
2741
2742
2743 SWIGINTERNINLINE PyObject *
2744 SWIG_From_int (int value)
2745 {
2746 return SWIG_From_long (value);
2747 }
2748
2749
2750 #include <limits.h>
2751 #ifndef LLONG_MIN
2752 # define LLONG_MIN LONG_LONG_MIN
2753 #endif
2754 #ifndef LLONG_MAX
2755 # define LLONG_MAX LONG_LONG_MAX
2756 #endif
2757 #ifndef ULLONG_MAX
2758 # define ULLONG_MAX ULONG_LONG_MAX
2759 #endif
2760
2761
2762 SWIGINTERN int
2763 SWIG_AsVal_long (PyObject* obj, long* val)
2764 {
2765 if (PyNumber_Check(obj)) {
2766 if (val) *val = PyInt_AsLong(obj);
2767 return SWIG_OK;
2768 }
2769 return SWIG_TypeError;
2770 }
2771
2772
2773 SWIGINTERN int
2774 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2775 {
2776 long v = 0;
2777 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2778 return SWIG_TypeError;
2779 }
2780 else if (val)
2781 *val = (unsigned long)v;
2782 return SWIG_OK;
2783 }
2784
2785
2786 SWIGINTERN int
2787 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2788 {
2789 unsigned long v;
2790 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2791 if (SWIG_IsOK(res)) {
2792 if ((v > UCHAR_MAX)) {
2793 return SWIG_OverflowError;
2794 } else {
2795 if (val) *val = static_cast< unsigned char >(v);
2796 }
2797 }
2798 return res;
2799 }
2800
2801
2802 SWIGINTERNINLINE PyObject*
2803 SWIG_From_unsigned_SS_long (unsigned long value)
2804 {
2805 return (value > LONG_MAX) ?
2806 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2807 }
2808
2809
2810 SWIGINTERNINLINE PyObject *
2811 SWIG_From_unsigned_SS_char (unsigned char value)
2812 {
2813 return SWIG_From_unsigned_SS_long (value);
2814 }
2815
2816 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2817 wxColour temp, *obj = &temp;
2818 if ( other == Py_None ) return false;
2819 if ( ! wxColour_helper(other, &obj) ) {
2820 PyErr_Clear();
2821 return false;
2822 }
2823 return self->operator==(*obj);
2824 }
2825 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2826 wxColour temp, *obj = &temp;
2827 if ( other == Py_None ) return true;
2828 if ( ! wxColour_helper(other, &obj)) {
2829 PyErr_Clear();
2830 return true;
2831 }
2832 return self->operator!=(*obj);
2833 }
2834
2835 SWIGINTERN int
2836 SWIG_AsVal_bool (PyObject *obj, bool *val)
2837 {
2838 if (obj == Py_True) {
2839 if (val) *val = true;
2840 return SWIG_OK;
2841 } else if (obj == Py_False) {
2842 if (val) *val = false;
2843 return SWIG_OK;
2844 } else {
2845 long v = 0;
2846 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2847 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2848 return res;
2849 }
2850 }
2851
2852 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2853 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2854 int red = -1;
2855 int green = -1;
2856 int blue = -1;
2857 int alpha = wxALPHA_OPAQUE;
2858 if (self->IsOk()) {
2859 red = self->Red();
2860 green = self->Green();
2861 blue = self->Blue();
2862 alpha = self->Alpha();
2863 }
2864 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2865 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2866 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2867 if (includeAlpha)
2868 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2869 return rv;
2870 }
2871 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2872 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2873 }
2874
2875 SWIGINTERN int
2876 SWIG_AsVal_int (PyObject * obj, int *val)
2877 {
2878 long v;
2879 int res = SWIG_AsVal_long (obj, &v);
2880 if (SWIG_IsOK(res)) {
2881 if ((v < INT_MIN || v > INT_MAX)) {
2882 return SWIG_OverflowError;
2883 } else {
2884 if (val) *val = static_cast< int >(v);
2885 }
2886 }
2887 return res;
2888 }
2889
2890 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2891 wxDash* dashes;
2892 int count = self->GetDashes(&dashes);
2893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2894 PyObject* retval = PyList_New(0);
2895 for (int x=0; x<count; x++) {
2896 PyObject* pyint = PyInt_FromLong(dashes[x]);
2897 PyList_Append(retval, pyint);
2898 Py_DECREF(pyint);
2899 }
2900 wxPyEndBlockThreads(blocked);
2901 return retval;
2902 }
2903 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2904 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2905 int size = PyList_Size(pyDashes);
2906 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2907
2908 // black magic warning! The array of wxDashes needs to exist as
2909 // long as the pen does because wxPen does not copy the array. So
2910 // stick a copy in a Python string object and attach it to _self,
2911 // and then call SetDashes with a pointer to that array. Then
2912 // when the Python pen object is destroyed the array will be
2913 // cleaned up too.
2914 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2915 PyObject_SetAttrString(_self, "_dashes", strDashes);
2916
2917 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2918 delete [] dashes;
2919 Py_DECREF(strDashes);
2920 wxPyEndBlockThreads(blocked);
2921 }
2922 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2923 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2924
2925 #include <wx/rawbmp.h>
2926
2927
2928 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2929 // appears to me that the other platforms are already doing it, so I'll just
2930 // automatically do it for wxMSW here.
2931 #ifdef __WXMSW__
2932 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2933 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2934 #else
2935 #define wxPy_premultiply(p, a) (p)
2936 #define wxPy_unpremultiply(p, a) (p)
2937 #endif
2938
2939
2940 #include <wx/image.h>
2941
2942 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2943 char** cArray = NULL;
2944 int count;
2945
2946 if (!PyList_Check(listOfStrings)) {
2947 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2948 return NULL;
2949 }
2950 count = PyList_Size(listOfStrings);
2951 cArray = new char*[count];
2952
2953 for(int x=0; x<count; x++) {
2954 // TODO: Need some validation and error checking here
2955 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2956 }
2957 return cArray;
2958 }
2959
2960
2961 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2962 char** cArray = NULL;
2963 wxBitmap* bmp;
2964
2965 cArray = ConvertListOfStrings(listOfStrings);
2966 if (! cArray)
2967 return NULL;
2968 bmp = new wxBitmap(cArray);
2969 delete [] cArray;
2970 return bmp;
2971 }
2972 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2973 char* buf;
2974 Py_ssize_t length;
2975 PyString_AsStringAndSize(bits, &buf, &length);
2976 return new wxBitmap(buf, width, height, depth);
2977 }
2978 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2979 wxSize size(self->GetWidth(), self->GetHeight());
2980 return size;
2981 }
2982 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2983 wxMask *mask = new wxMask(*self, colour);
2984 self->SetMask(mask);
2985 }
2986 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2987 self->SetWidth(size.x);
2988 self->SetHeight(size.y);
2989 }
2990 SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2991 int height=self->GetHeight();
2992 int width=self->GetWidth();
2993
2994 if (DATASIZE != width * height * 3) {
2995 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2996 }
2997 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
2998 if (! pixData) {
2999 // raise an exception...
3000 wxPyErr_SetString(PyExc_RuntimeError,
3001 "Failed to gain raw access to bitmap data.");
3002 return;
3003 }
3004
3005 wxNativePixelData::Iterator p(pixData);
3006 for (int y=0; y<height; y++) {
3007 wxNativePixelData::Iterator rowStart = p;
3008 for (int x=0; x<width; x++) {
3009 p.Red() = *(data++);
3010 p.Green() = *(data++);
3011 p.Blue() = *(data++);
3012 ++p;
3013 }
3014 p = rowStart;
3015 p.OffsetY(pixData, 1);
3016 }
3017 }
3018 SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3019 int height=self->GetHeight();
3020 int width=self->GetWidth();
3021
3022 if (DATASIZE != width * height * 4) {
3023 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3024 }
3025 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3026 if (! pixData) {
3027 // raise an exception...
3028 wxPyErr_SetString(PyExc_RuntimeError,
3029 "Failed to gain raw access to bitmap data.");
3030 return;
3031 }
3032
3033 pixData.UseAlpha();
3034 wxAlphaPixelData::Iterator p(pixData);
3035 for (int y=0; y<height; y++) {
3036 wxAlphaPixelData::Iterator rowStart = p;
3037 for (int x=0; x<width; x++) {
3038 byte a = data[3];
3039 p.Red() = wxPy_premultiply(*(data++), a);
3040 p.Green() = wxPy_premultiply(*(data++), a);
3041 p.Blue() = wxPy_premultiply(*(data++), a);
3042 p.Alpha() = a; data++;
3043 ++p;
3044 }
3045 p = rowStart;
3046 p.OffsetY(pixData, 1);
3047 }
3048 }
3049 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3050 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
3051
3052 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3053 buffer data, int DATASIZE,
3054 buffer alpha, int ALPHASIZE)
3055 {
3056 if (DATASIZE != width*height*3) {
3057 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3058 return NULL;
3059 }
3060
3061 if (ALPHASIZE != width*height) {
3062 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3063 return NULL;
3064 }
3065
3066 wxBitmap* bmp = new wxBitmap(width, height, 32);
3067 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3068 if (! pixData) {
3069 // raise an exception...
3070 wxPyErr_SetString(PyExc_RuntimeError,
3071 "Failed to gain raw access to bitmap data.");
3072 return NULL;
3073 }
3074
3075 pixData.UseAlpha();
3076 wxAlphaPixelData::Iterator p(pixData);
3077 for (int y=0; y<height; y++) {
3078 wxAlphaPixelData::Iterator rowStart = p;
3079 for (int x=0; x<width; x++) {
3080 byte a = *(alpha++);
3081 p.Red() = wxPy_premultiply(*(data++), a);
3082 p.Green() = wxPy_premultiply(*(data++), a);
3083 p.Blue() = wxPy_premultiply(*(data++), a);
3084 p.Alpha() = a;
3085 ++p;
3086 }
3087 p = rowStart;
3088 p.OffsetY(pixData, 1);
3089 }
3090 return bmp;
3091 }
3092
3093 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3094 {
3095 if (DATASIZE != width*height*3) {
3096 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3097 return NULL;
3098 }
3099
3100 wxBitmap* bmp = new wxBitmap(width, height, 24);
3101 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3102 if (! pixData) {
3103 // raise an exception...
3104 wxPyErr_SetString(PyExc_RuntimeError,
3105 "Failed to gain raw access to bitmap data.");
3106 return NULL;
3107 }
3108
3109 wxNativePixelData::Iterator p(pixData);
3110 for (int y=0; y<height; y++) {
3111 wxNativePixelData::Iterator rowStart = p;
3112 for (int x=0; x<width; x++) {
3113 p.Red() = *(data++);
3114 p.Green() = *(data++);
3115 p.Blue() = *(data++);
3116 ++p;
3117 }
3118 p = rowStart;
3119 p.OffsetY(pixData, 1);
3120 }
3121 return bmp;
3122 }
3123
3124
3125 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3126 {
3127 if (DATASIZE != width*height*4) {
3128 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3129 return NULL;
3130 }
3131
3132 wxBitmap* bmp = new wxBitmap(width, height, 32);
3133 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3134 if (! pixData) {
3135 // raise an exception...
3136 wxPyErr_SetString(PyExc_RuntimeError,
3137 "Failed to gain raw access to bitmap data.");
3138 return NULL;
3139 }
3140
3141 pixData.UseAlpha();
3142 wxAlphaPixelData::Iterator p(pixData);
3143 for (int y=0; y<height; y++) {
3144 wxAlphaPixelData::Iterator rowStart = p;
3145 for (int x=0; x<width; x++) {
3146 byte a = data[3];
3147 p.Red() = wxPy_premultiply(*(data++), a);
3148 p.Green() = wxPy_premultiply(*(data++), a);
3149 p.Blue() = wxPy_premultiply(*(data++), a);
3150 p.Alpha() = a; data++;
3151 ++p;
3152 }
3153 p = rowStart;
3154 p.OffsetY(pixData, 1);
3155 }
3156 return bmp;
3157 }
3158
3159
3160 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3161
3162 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3163 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3164 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3165 self->Red() = red;
3166 self->Green() = green;
3167 self->Blue() = blue;
3168 }
3169 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3170 PyObject* rv = PyTuple_New(3);
3171 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3172 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3173 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3174 return rv;
3175 }
3176
3177 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3178
3179 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3180 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3181 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3182 self->Red() = wxPy_premultiply(red, alpha);
3183 self->Green() = wxPy_premultiply(green, alpha);
3184 self->Blue() = wxPy_premultiply(blue, alpha);
3185 self->Alpha() = alpha;
3186 }
3187 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3188 PyObject* rv = PyTuple_New(4);
3189 int red = self->Red();
3190 int green = self->Green();
3191 int blue = self->Blue();
3192 int alpha = self->Alpha();
3193
3194 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3195 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3196 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3197 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3198 return rv;
3199 }
3200 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3201 if ( !colour.IsOk() )
3202 return new wxMask(bitmap, *wxBLACK);
3203 else
3204 return new wxMask(bitmap, colour);
3205 }
3206
3207 #include <wx/iconbndl.h>
3208
3209 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3210 wxIcon* icon = new wxIcon();
3211 icon->CopyFromBitmap(bmp);
3212 return icon;
3213 }
3214 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3215 char** cArray = NULL;
3216 wxIcon* icon;
3217
3218 cArray = ConvertListOfStrings(listOfStrings);
3219 if (! cArray)
3220 return NULL;
3221 icon = new wxIcon(cArray);
3222 delete [] cArray;
3223 return icon;
3224 }
3225 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3226
3227
3228
3229 return new wxIconLocation(*filename);
3230
3231 }
3232 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3233
3234
3235
3236 // do nothing
3237
3238 }
3239 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3240
3241
3242
3243 return -1;
3244
3245 }
3246 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3247 #ifdef __WXGTK__
3248 wxImage img(cursorName, type);
3249 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3250 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3251 return new wxCursor(img);
3252 #else
3253 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3254 #endif
3255 }
3256
3257
3258 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3259 (*self) ++;
3260 }
3261 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3262 return self->operator bool();
3263 }
3264
3265 #include <wx/fontutil.h>
3266 #include <wx/fontmap.h>
3267 #include <wx/fontenum.h>
3268
3269 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3270 return self->ToString();
3271 }
3272
3273 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3274 static wxNativeEncodingInfo info;
3275 if ( wxGetNativeFontEncoding(encoding, &info) )
3276 return &info;
3277 else
3278 return NULL;
3279 }
3280
3281
3282 SWIGINTERNINLINE PyObject *
3283 SWIG_From_size_t (size_t value)
3284 {
3285 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3286 }
3287
3288
3289 SWIGINTERNINLINE int
3290 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3291 {
3292 unsigned long v;
3293 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3294 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3295 return res;
3296 }
3297
3298 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3299 wxFontEncoding alt_enc;
3300 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3301 return PyInt_FromLong(alt_enc);
3302 else {
3303 Py_INCREF(Py_None);
3304 return Py_None;
3305 }
3306 }
3307 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3308 wxNativeFontInfo nfi;
3309 nfi.FromString(info);
3310 return new wxFont(nfi);
3311 }
3312 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3313 return wxFont::New(pointSize, family, flags, face, encoding);
3314 }
3315 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3316 return wxFontBase::New(pixelSize, family,
3317 style, weight, underlined,
3318 face, encoding);
3319 }
3320 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3321 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3322 }
3323 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3324 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3325
3326 class wxPyFontEnumerator : public wxFontEnumerator {
3327 public:
3328 wxPyFontEnumerator() {}
3329 ~wxPyFontEnumerator() {}
3330
3331 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3332 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3333
3334 PYPRIVATE;
3335 };
3336
3337 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3338 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3339
3340
3341 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3342 PyObject* ret;
3343 wxArrayString arr = wxFontEnumerator::GetEncodings();
3344 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3345 ret = wxArrayString2PyList_helper(arr);
3346 wxPyEndBlockThreads(blocked);
3347 return ret;
3348 }
3349 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3350 PyObject* ret;
3351 wxArrayString arr = wxFontEnumerator::GetFacenames();
3352 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3353 ret = wxArrayString2PyList_helper(arr);
3354 wxPyEndBlockThreads(blocked);
3355 return ret;
3356 }
3357
3358 #include <locale.h>
3359
3360 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3361 wxLocale* loc;
3362 if (language == -1)
3363 loc = new wxLocale();
3364 else
3365 loc = new wxLocale(language, flags);
3366 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3367 // for the floating point conversions and such to work right.
3368 #if PY_VERSION_HEX < 0x02040000
3369 setlocale(LC_NUMERIC, "C");
3370 #endif
3371 return loc;
3372 }
3373 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &name,wxString const &shortName=wxPyEmptyString,wxString const &locale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3374 bool rc = self->Init(name, shortName, locale, bLoadDefault, bConvertEncoding);
3375 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3376 // for the floating point conversions and such to work right.
3377 #if PY_VERSION_HEX < 0x02040000
3378 setlocale(LC_NUMERIC, "C");
3379 #endif
3380 return rc;
3381 }
3382 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3383 bool rc = self->Init(language, flags);
3384 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3385 // for the floating point conversions and such to work right.
3386 #if PY_VERSION_HEX < 0x02040000
3387 setlocale(LC_NUMERIC, "C");
3388 #endif
3389 return rc;
3390 }
3391
3392 class wxPyLocale : public wxLocale
3393 {
3394 public:
3395 wxPyLocale();
3396
3397 wxPyLocale(const wxString& name, // name (for messages)
3398 const wxString& shortName = wxPyEmptyString, // dir prefix (for msg files)
3399 const wxString& locale = wxPyEmptyString, // locale (for setlocale)
3400 bool bLoadDefault = true, // preload wxstd.mo?
3401 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3402
3403 wxPyLocale(int language, // wxLanguage id or custom language
3404 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3405
3406 ~wxPyLocale();
3407
3408 virtual const wxString& GetString(const wxString& origString,
3409 const wxString& domain = wxPyEmptyString) const;
3410 virtual const wxString& GetString(const wxString& origString,
3411 const wxString& origString2,
3412 size_t n,
3413 const wxString& domain = wxPyEmptyString) const;
3414
3415 virtual const wxString& GetSingularString(const wxString& origString,
3416 const wxString& domain = wxPyEmptyString) const;
3417 virtual const wxString& GetPluralString(const wxString& origString,
3418 const wxString& origString2,
3419 size_t n,
3420 const wxString& domain = wxPyEmptyString) const;
3421
3422
3423 PYPRIVATE;
3424 private:
3425 DECLARE_NO_COPY_CLASS(wxPyLocale)
3426 };
3427
3428 wxPyLocale::wxPyLocale() : wxLocale()
3429 {
3430 }
3431
3432 wxPyLocale::wxPyLocale(const wxString& name, // name (for messages)
3433 const wxString& shortName, // dir prefix (for msg files)
3434 const wxString& locale, // locale (for setlocale)
3435 bool bLoadDefault, // preload wxstd.mo?
3436 bool bConvertEncoding) // convert Win<->Unix if necessary?
3437 : wxLocale(name, shortName, locale, bLoadDefault, bConvertEncoding)
3438 {
3439 }
3440
3441 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3442 int flags) : wxLocale(language, flags)
3443 {
3444 }
3445
3446 wxPyLocale::~wxPyLocale()
3447 {
3448 }
3449
3450 const wxString& wxPyLocale::GetString(const wxString& origString,
3451 const wxString& domain) const
3452 {
3453 return GetSingularString(origString, domain);
3454 }
3455
3456 const wxString& wxPyLocale::GetString(const wxString& origString,
3457 const wxString& origString2,
3458 size_t n,
3459 const wxString& domain) const
3460 {
3461 return GetPluralString(origString, origString2, n, domain);
3462 }
3463
3464 const wxString& wxPyLocale::GetSingularString(const wxString& origString,
3465 const wxString& domain) const
3466 {
3467 bool found;
3468 wxString str( _T("error in translation"));
3469 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3470 if ((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3471 PyObject* param1 = wx2PyString(origString);
3472 PyObject* param2 = wx2PyString(domain);
3473 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3474 Py_DECREF(param1);
3475 Py_DECREF(param2);
3476 if (ret) {
3477 str = Py2wxString(ret);
3478 Py_DECREF(ret);
3479 }
3480 }
3481 wxPyEndBlockThreads(blocked);
3482 return (found ? str : wxLocale::GetString(origString, domain));
3483 }
3484
3485 const wxString& wxPyLocale::GetPluralString(const wxString& origString,
3486 const wxString& origString2, size_t n,
3487 const wxString& domain) const
3488 {
3489 bool found;
3490 wxString str( _T("error in translation"));
3491 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3492 if ((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3493 PyObject* param1 = wx2PyString(origString);
3494 PyObject* param2 = wx2PyString(origString2);
3495 PyObject* param4 = wx2PyString(domain);
3496 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst,
3497 Py_BuildValue("(OOiO)",
3498 param1, param2,
3499 (int)n, param4));
3500 Py_DECREF(param1);
3501 Py_DECREF(param2);
3502 Py_DECREF(param4);
3503 if( ret) {
3504 str = Py2wxString(ret);
3505 Py_DECREF(ret);
3506 }
3507 }
3508 wxPyEndBlockThreads(blocked);
3509 return (found ? str : wxLocale::GetString(origString, origString2, n, domain) );
3510 }
3511
3512 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3513 wxPyLocale* loc;
3514 if (language == -1)
3515 loc = new wxPyLocale();
3516 else
3517 loc = new wxPyLocale(language, flags);
3518 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3519 // for the floating point conversions and such to work right.
3520 #if PY_VERSION_HEX < 0x02040000
3521 setlocale(LC_NUMERIC, "C");
3522 #endif
3523 return loc;
3524 }
3525
3526 #include "wx/wxPython/pydrawxxx.h"
3527
3528 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3529 wxColour col;
3530 self->GetPixel(x, y, &col);
3531 return col;
3532 }
3533 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3534 wxColour col;
3535 self->GetPixel(pt, &col);
3536 return col;
3537 }
3538
3539 SWIGINTERN int
3540 SWIG_AsVal_double (PyObject *obj, double* val)
3541 {
3542 if (PyNumber_Check(obj)) {
3543 if (val) *val = PyFloat_AsDouble(obj);
3544 return SWIG_OK;
3545 }
3546 return SWIG_TypeError;
3547 }
3548
3549 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3550 wxRect rv;
3551 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3552 return rv;
3553 }
3554 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3555 wxRect rect;
3556 self->GetClippingBox(rect);
3557 return rect;
3558 }
3559 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3560 wxArrayInt widths;
3561 self->GetPartialTextExtents(text, widths);
3562 return widths;
3563 }
3564
3565 #define SWIG_From_double PyFloat_FromDouble
3566
3567 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3568 self->SetLogicalOrigin(point.x, point.y);
3569 }
3570 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3571 self->SetDeviceOrigin(point.x, point.y);
3572 }
3573 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3574 self->CalcBoundingBox(point.x, point.y);
3575 }
3576 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3577 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3578 }
3579 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3580 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3581 }
3582 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3583 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3584 }
3585 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3586 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3587 }
3588 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3589 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3590 }
3591 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3592 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3593 }
3594
3595 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3596 *x1 = dc->MinX();
3597 *y1 = dc->MinY();
3598 *x2 = dc->MaxX();
3599 *y2 = dc->MaxY();
3600 }
3601
3602
3603 #include <wx/dcbuffer.h>
3604
3605
3606 #include <wx/dcps.h>
3607
3608
3609 class wxMetaFile : public wxObject {
3610 public:
3611 wxMetaFile(const wxString&)
3612 { wxPyRaiseNotImplemented(); }
3613 };
3614
3615 class wxMetaFileDC : public wxClientDC {
3616 public:
3617 wxMetaFileDC(const wxString&, int, int, const wxString&)
3618 { wxPyRaiseNotImplemented(); }
3619 };
3620
3621
3622
3623 class wxPrinterDC : public wxClientDC {
3624 public:
3625 wxPrinterDC(const wxPrintData&)
3626 { wxPyRaiseNotImplemented(); }
3627
3628 };
3629
3630
3631 #include <wx/graphics.h>
3632
3633
3634 #if !wxUSE_GRAPHICS_CONTEXT
3635 // C++ stub classes for platforms or build configurations that don't have
3636 // wxGraphicsContext yet.
3637
3638 class wxGraphicsRenderer;
3639 class wxGraphicsMatrix;
3640
3641
3642 class wxGraphicsObject : public wxObject
3643 {
3644 public :
3645 wxGraphicsObject() {}
3646 wxGraphicsObject( wxGraphicsRenderer* ) {
3647 PyErr_SetString(PyExc_NotImplementedError,
3648 "wx.GraphicsObject is not available on this platform.");
3649 }
3650 wxGraphicsObject( const wxGraphicsObject& ) {}
3651 virtual ~wxGraphicsObject() {}
3652 bool IsNull() const { return false; }
3653 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3654 } ;
3655
3656
3657
3658 class wxGraphicsPen : public wxGraphicsObject
3659 {
3660 public:
3661 wxGraphicsPen() {}
3662 virtual ~wxGraphicsPen() {}
3663 } ;
3664 wxGraphicsPen wxNullGraphicsPen;
3665
3666
3667
3668 class wxGraphicsBrush : public wxGraphicsObject
3669 {
3670 public :
3671 wxGraphicsBrush() {}
3672 virtual ~wxGraphicsBrush() {}
3673 } ;
3674 wxGraphicsBrush wxNullGraphicsBrush;
3675
3676
3677
3678 class wxGraphicsFont : public wxGraphicsObject
3679 {
3680 public :
3681 wxGraphicsFont() {}
3682 virtual ~wxGraphicsFont() {}
3683 } ;
3684 wxGraphicsFont wxNullGraphicsFont;
3685
3686
3687
3688 class wxGraphicsPath : public wxGraphicsObject
3689 {
3690 public :
3691 wxGraphicsPath() { }
3692 wxGraphicsPath(wxGraphicsRenderer* ) {
3693 PyErr_SetString(PyExc_NotImplementedError,
3694 "wx.GraphicsPath is not available on this platform.");
3695 }
3696 virtual ~wxGraphicsPath() {}
3697
3698 void MoveToPoint( wxDouble, wxDouble ) {}
3699 void MoveToPoint( const wxPoint2DDouble& ) {}
3700 void AddLineToPoint( wxDouble, wxDouble ) {}
3701 void AddLineToPoint( const wxPoint2DDouble& ) {}
3702 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3703 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3704 void AddPath( const wxGraphicsPath& ) {}
3705 void CloseSubpath() {}
3706 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3707 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
3708 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3709 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3710
3711 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3712 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3713 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3714 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3715
3716 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3717 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3718 void * GetNativePath() const { return NULL; }
3719 void UnGetNativePath(void *) const {}
3720 void Transform( const wxGraphicsMatrix& ) {}
3721 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3722 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
3723
3724 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3725 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
3726 };
3727 wxGraphicsPath wxNullGraphicsPath;
3728
3729
3730 class wxGraphicsMatrix : public wxGraphicsObject
3731 {
3732 public :
3733 wxGraphicsMatrix() { }
3734 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3735 PyErr_SetString(PyExc_NotImplementedError,
3736 "wx.GraphicsMatrix is not available on this platform.");
3737 }
3738 virtual ~wxGraphicsMatrix() {}
3739 virtual void Concat( const wxGraphicsMatrix & ) {}
3740 virtual void Copy( const wxGraphicsMatrix & ) {}
3741 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3742 wxDouble , wxDouble ) {}
3743 virtual void Get(wxDouble*, wxDouble*, wxDouble*,
3744 wxDouble*, wxDouble*, wxDouble*) {}
3745 virtual void Invert() {}
3746 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3747 virtual bool IsIdentity() const { return false; }
3748 virtual void Translate( wxDouble , wxDouble ) {}
3749 virtual void Scale( wxDouble , wxDouble ) {}
3750 virtual void Rotate( wxDouble ) {}
3751 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3752 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
3753 virtual void * GetNativeMatrix() const { return NULL; }
3754 };
3755 wxGraphicsMatrix wxNullGraphicsMatrix;
3756
3757
3758 class wxGraphicsContext : public wxGraphicsObject
3759 {
3760 public:
3761
3762 wxGraphicsContext(wxGraphicsRenderer* ) {
3763 PyErr_SetString(PyExc_NotImplementedError,
3764 "wx.GraphicsContext is not available on this platform.");
3765 }
3766
3767 virtual ~wxGraphicsContext() {}
3768
3769 static wxGraphicsContext* Create() {
3770 PyErr_SetString(PyExc_NotImplementedError,
3771 "wx.GraphicsContext is not available on this platform.");
3772 return NULL;
3773 }
3774 static wxGraphicsContext* Create( const wxWindowDC& ) {
3775 PyErr_SetString(PyExc_NotImplementedError,
3776 "wx.GraphicsContext is not available on this platform.");
3777 return NULL;
3778 }
3779
3780 static wxGraphicsContext* CreateFromNative( void * ) {
3781 PyErr_SetString(PyExc_NotImplementedError,
3782 "wx.GraphicsContext is not available on this platform.");
3783 return NULL;
3784 }
3785
3786 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3787 PyErr_SetString(PyExc_NotImplementedError,
3788 "wx.GraphicsContext is not available on this platform.");
3789 return NULL;
3790 }
3791
3792 static wxGraphicsContext* Create( wxWindow* ) {
3793 PyErr_SetString(PyExc_NotImplementedError,
3794 "wx.GraphicsContext is not available on this platform.");
3795 return NULL;
3796 }
3797
3798 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3799
3800 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3801
3802 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3803
3804 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3805 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3806
3807 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3808 wxDouble xc, wxDouble yc, wxDouble radius,
3809 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
3810
3811 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
3812
3813 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3814 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
3815
3816 virtual void PushState() {}
3817 virtual void PopState() {}
3818 virtual void Clip( const wxRegion & ) {}
3819 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3820 virtual void ResetClip() {}
3821 virtual void * GetNativeContext() { return NULL; }
3822 virtual int GetLogicalFunction() const { return 0; }
3823 virtual bool SetLogicalFunction(int ) {}
3824 virtual void Translate( wxDouble , wxDouble ) {}
3825 virtual void Scale( wxDouble , wxDouble ) {}
3826 virtual void Rotate( wxDouble ) {}
3827 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3828 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3829 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
3830
3831 virtual void SetPen( const wxGraphicsPen& ) {}
3832 void SetPen( const wxPen& ) {}
3833
3834 virtual void SetBrush( const wxGraphicsBrush& ) {}
3835 void SetBrush( const wxBrush& ) {}
3836
3837 virtual void SetFont( const wxGraphicsFont& ) {}
3838 void SetFont( const wxFont&, const wxColour& ) {}
3839
3840 virtual void StrokePath( const wxGraphicsPath & ) {}
3841 virtual void FillPath( const wxGraphicsPath &, int ) {}
3842 virtual void DrawPath( const wxGraphicsPath &, int ) {}
3843
3844 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3845 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3846 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3847 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
3848 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3849 wxDouble *, wxDouble * ) const {}
3850 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3851
3852 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3853 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3854
3855 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3856 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3857 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3858 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3859 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3860 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3861 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3862 virtual bool ShouldOffset() const { return false; }
3863 };
3864
3865
3866 class wxGraphicsRenderer : public wxObject
3867 {
3868 public :
3869 wxGraphicsRenderer() {
3870 PyErr_SetString(PyExc_NotImplementedError,
3871 "wx.GraphicsRenderer is not available on this platform.");
3872 }
3873
3874 virtual ~wxGraphicsRenderer() {}
3875
3876 static wxGraphicsRenderer* GetDefaultRenderer() {
3877 PyErr_SetString(PyExc_NotImplementedError,
3878 "wx.GraphicsRenderer is not available on this platform.");
3879 return NULL;
3880 }
3881
3882 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3883 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3884 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3885 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3886 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
3887
3888 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3889
3890 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3891 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
3892
3893 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3894 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3895 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3896 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3897 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3898 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3899 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
3900 };
3901
3902
3903
3904 class wxGCDC: public wxWindowDC
3905 {
3906 public:
3907 wxGCDC(const wxWindowDC&) {
3908 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3909 PyErr_SetString(PyExc_NotImplementedError,
3910 "wxGCDC is not available on this platform.");
3911 wxPyEndBlockThreads(blocked);
3912 }
3913
3914 wxGCDC(const wxWindow*) {
3915 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3916 PyErr_SetString(PyExc_NotImplementedError,
3917 "wxGCDC is not available on this platform.");
3918 wxPyEndBlockThreads(blocked);
3919 }
3920
3921 wxGCDC() {
3922 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3923 PyErr_SetString(PyExc_NotImplementedError,
3924 "wxGCDC is not available on this platform.");
3925 wxPyEndBlockThreads(blocked);
3926 }
3927
3928 virtual ~wxGCDC() {}
3929
3930 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3931 void SetGraphicsContext( wxGraphicsContext* ) {}
3932 };
3933
3934 #endif
3935
3936 SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3937 if ( !backgroundBrush.IsNull() )
3938 self->DrawText(str, x, y, backgroundBrush);
3939 else
3940 self->DrawText(str, x, y);
3941 }
3942 SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3943 if ( !backgroundBrush.IsNull() )
3944 self->DrawText(str, x, y, angle, backgroundBrush);
3945 else
3946 self->DrawText(str, x, y, angle);
3947 }
3948 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3949 wxDouble width = 0.0,
3950 height = 0.0;
3951 self->GetTextExtent(text, &width, &height, NULL, NULL);
3952 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3953 PyObject* rv = PyTuple_New(2);
3954 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3955 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3956 return rv;
3957 }
3958 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3959 wxArrayDouble widths;
3960 self->GetPartialTextExtents(text, widths);
3961 return widths;
3962 }
3963 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3964 size_t c1, c2, count;
3965 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3966 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3967
3968 if ( beginP != NULL && endP != NULL )
3969 {
3970 count = wxMin(c1, c2);
3971 self->StrokeLines(count, beginP, endP);
3972 }
3973 delete [] beginP;
3974 delete [] endP;
3975 }
3976
3977 #include "wx/dcgraph.h"
3978
3979
3980 #include <wx/overlay.h>
3981
3982
3983
3984 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3985 self->AddColour(name, wxColour(red, green, blue));
3986 }
3987
3988 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3989 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3990 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3991 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3992
3993
3994 #include <wx/effects.h>
3995
3996
3997 #include "wx/renderer.h"
3998
3999
4000 SWIGINTERNINLINE PyObject*
4001 SWIG_From_bool (bool value)
4002 {
4003 return PyBool_FromLong(value ? 1 : 0);
4004 }
4005
4006
4007 #include "wx/wxPython/pseudodc.h"
4008
4009 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
4010 wxRect rect;
4011 self->GetIdBounds(id, rect);
4012 return rect;
4013 }
4014 #ifdef __cplusplus
4015 extern "C" {
4016 #endif
4017 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4018 PyObject *resultobj = 0;
4019 wxGDIObject *result = 0 ;
4020
4021 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4022 {
4023 if (!wxPyCheckForApp()) SWIG_fail;
4024 PyThreadState* __tstate = wxPyBeginAllowThreads();
4025 result = (wxGDIObject *)new wxGDIObject();
4026 wxPyEndAllowThreads(__tstate);
4027 if (PyErr_Occurred()) SWIG_fail;
4028 }
4029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4030 return resultobj;
4031 fail:
4032 return NULL;
4033 }
4034
4035
4036 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4037 PyObject *resultobj = 0;
4038 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4039 void *argp1 = 0 ;
4040 int res1 = 0 ;
4041 PyObject *swig_obj[1] ;
4042
4043 if (!args) SWIG_fail;
4044 swig_obj[0] = args;
4045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4046 if (!SWIG_IsOK(res1)) {
4047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4048 }
4049 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4050 {
4051 PyThreadState* __tstate = wxPyBeginAllowThreads();
4052 delete arg1;
4053
4054 wxPyEndAllowThreads(__tstate);
4055 if (PyErr_Occurred()) SWIG_fail;
4056 }
4057 resultobj = SWIG_Py_Void();
4058 return resultobj;
4059 fail:
4060 return NULL;
4061 }
4062
4063
4064 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4065 PyObject *resultobj = 0;
4066 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4067 bool result;
4068 void *argp1 = 0 ;
4069 int res1 = 0 ;
4070 PyObject *swig_obj[1] ;
4071
4072 if (!args) SWIG_fail;
4073 swig_obj[0] = args;
4074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4075 if (!SWIG_IsOK(res1)) {
4076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4077 }
4078 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4079 {
4080 PyThreadState* __tstate = wxPyBeginAllowThreads();
4081 result = (bool)(arg1)->IsNull();
4082 wxPyEndAllowThreads(__tstate);
4083 if (PyErr_Occurred()) SWIG_fail;
4084 }
4085 {
4086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4087 }
4088 return resultobj;
4089 fail:
4090 return NULL;
4091 }
4092
4093
4094 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4095 PyObject *obj;
4096 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4097 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4098 return SWIG_Py_Void();
4099 }
4100
4101 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4102 return SWIG_Python_InitShadowInstance(args);
4103 }
4104
4105 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4106 PyObject *resultobj = 0;
4107 byte arg1 = (byte) 0 ;
4108 byte arg2 = (byte) 0 ;
4109 byte arg3 = (byte) 0 ;
4110 byte arg4 = (byte) wxALPHA_OPAQUE ;
4111 wxColour *result = 0 ;
4112 unsigned char val1 ;
4113 int ecode1 = 0 ;
4114 unsigned char val2 ;
4115 int ecode2 = 0 ;
4116 unsigned char val3 ;
4117 int ecode3 = 0 ;
4118 unsigned char val4 ;
4119 int ecode4 = 0 ;
4120 PyObject * obj0 = 0 ;
4121 PyObject * obj1 = 0 ;
4122 PyObject * obj2 = 0 ;
4123 PyObject * obj3 = 0 ;
4124 char * kwnames[] = {
4125 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4126 };
4127
4128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4129 if (obj0) {
4130 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4131 if (!SWIG_IsOK(ecode1)) {
4132 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4133 }
4134 arg1 = static_cast< byte >(val1);
4135 }
4136 if (obj1) {
4137 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4138 if (!SWIG_IsOK(ecode2)) {
4139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4140 }
4141 arg2 = static_cast< byte >(val2);
4142 }
4143 if (obj2) {
4144 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4145 if (!SWIG_IsOK(ecode3)) {
4146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4147 }
4148 arg3 = static_cast< byte >(val3);
4149 }
4150 if (obj3) {
4151 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4152 if (!SWIG_IsOK(ecode4)) {
4153 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4154 }
4155 arg4 = static_cast< byte >(val4);
4156 }
4157 {
4158 PyThreadState* __tstate = wxPyBeginAllowThreads();
4159 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4160 wxPyEndAllowThreads(__tstate);
4161 if (PyErr_Occurred()) SWIG_fail;
4162 }
4163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4164 return resultobj;
4165 fail:
4166 return NULL;
4167 }
4168
4169
4170 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4171 PyObject *resultobj = 0;
4172 wxString *arg1 = 0 ;
4173 wxColour *result = 0 ;
4174 bool temp1 = false ;
4175 PyObject * obj0 = 0 ;
4176 char * kwnames[] = {
4177 (char *) "colorName", NULL
4178 };
4179
4180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4181 {
4182 arg1 = wxString_in_helper(obj0);
4183 if (arg1 == NULL) SWIG_fail;
4184 temp1 = true;
4185 }
4186 {
4187 if (!wxPyCheckForApp()) SWIG_fail;
4188 PyThreadState* __tstate = wxPyBeginAllowThreads();
4189 result = (wxColour *)new wxColour((wxString const &)*arg1);
4190 wxPyEndAllowThreads(__tstate);
4191 if (PyErr_Occurred()) SWIG_fail;
4192 }
4193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4194 {
4195 if (temp1)
4196 delete arg1;
4197 }
4198 return resultobj;
4199 fail:
4200 {
4201 if (temp1)
4202 delete arg1;
4203 }
4204 return NULL;
4205 }
4206
4207
4208 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4209 PyObject *resultobj = 0;
4210 unsigned long arg1 ;
4211 wxColour *result = 0 ;
4212 unsigned long val1 ;
4213 int ecode1 = 0 ;
4214 PyObject * obj0 = 0 ;
4215 char * kwnames[] = {
4216 (char *) "colRGB", NULL
4217 };
4218
4219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4220 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4221 if (!SWIG_IsOK(ecode1)) {
4222 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4223 }
4224 arg1 = static_cast< unsigned long >(val1);
4225 {
4226 PyThreadState* __tstate = wxPyBeginAllowThreads();
4227 result = (wxColour *)new wxColour(arg1);
4228 wxPyEndAllowThreads(__tstate);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4232 return resultobj;
4233 fail:
4234 return NULL;
4235 }
4236
4237
4238 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4239 PyObject *resultobj = 0;
4240 wxColour *arg1 = (wxColour *) 0 ;
4241 void *argp1 = 0 ;
4242 int res1 = 0 ;
4243 PyObject *swig_obj[1] ;
4244
4245 if (!args) SWIG_fail;
4246 swig_obj[0] = args;
4247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4248 if (!SWIG_IsOK(res1)) {
4249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4250 }
4251 arg1 = reinterpret_cast< wxColour * >(argp1);
4252 {
4253 PyThreadState* __tstate = wxPyBeginAllowThreads();
4254 delete arg1;
4255
4256 wxPyEndAllowThreads(__tstate);
4257 if (PyErr_Occurred()) SWIG_fail;
4258 }
4259 resultobj = SWIG_Py_Void();
4260 return resultobj;
4261 fail:
4262 return NULL;
4263 }
4264
4265
4266 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4267 PyObject *resultobj = 0;
4268 wxColour *arg1 = (wxColour *) 0 ;
4269 byte result;
4270 void *argp1 = 0 ;
4271 int res1 = 0 ;
4272 PyObject *swig_obj[1] ;
4273
4274 if (!args) SWIG_fail;
4275 swig_obj[0] = args;
4276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4277 if (!SWIG_IsOK(res1)) {
4278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4279 }
4280 arg1 = reinterpret_cast< wxColour * >(argp1);
4281 {
4282 PyThreadState* __tstate = wxPyBeginAllowThreads();
4283 result = (byte)(arg1)->Red();
4284 wxPyEndAllowThreads(__tstate);
4285 if (PyErr_Occurred()) SWIG_fail;
4286 }
4287 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4288 return resultobj;
4289 fail:
4290 return NULL;
4291 }
4292
4293
4294 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4295 PyObject *resultobj = 0;
4296 wxColour *arg1 = (wxColour *) 0 ;
4297 byte result;
4298 void *argp1 = 0 ;
4299 int res1 = 0 ;
4300 PyObject *swig_obj[1] ;
4301
4302 if (!args) SWIG_fail;
4303 swig_obj[0] = args;
4304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4305 if (!SWIG_IsOK(res1)) {
4306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4307 }
4308 arg1 = reinterpret_cast< wxColour * >(argp1);
4309 {
4310 PyThreadState* __tstate = wxPyBeginAllowThreads();
4311 result = (byte)(arg1)->Green();
4312 wxPyEndAllowThreads(__tstate);
4313 if (PyErr_Occurred()) SWIG_fail;
4314 }
4315 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4316 return resultobj;
4317 fail:
4318 return NULL;
4319 }
4320
4321
4322 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4323 PyObject *resultobj = 0;
4324 wxColour *arg1 = (wxColour *) 0 ;
4325 byte result;
4326 void *argp1 = 0 ;
4327 int res1 = 0 ;
4328 PyObject *swig_obj[1] ;
4329
4330 if (!args) SWIG_fail;
4331 swig_obj[0] = args;
4332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4333 if (!SWIG_IsOK(res1)) {
4334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4335 }
4336 arg1 = reinterpret_cast< wxColour * >(argp1);
4337 {
4338 PyThreadState* __tstate = wxPyBeginAllowThreads();
4339 result = (byte)(arg1)->Blue();
4340 wxPyEndAllowThreads(__tstate);
4341 if (PyErr_Occurred()) SWIG_fail;
4342 }
4343 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4344 return resultobj;
4345 fail:
4346 return NULL;
4347 }
4348
4349
4350 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4351 PyObject *resultobj = 0;
4352 wxColour *arg1 = (wxColour *) 0 ;
4353 byte result;
4354 void *argp1 = 0 ;
4355 int res1 = 0 ;
4356 PyObject *swig_obj[1] ;
4357
4358 if (!args) SWIG_fail;
4359 swig_obj[0] = args;
4360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4361 if (!SWIG_IsOK(res1)) {
4362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4363 }
4364 arg1 = reinterpret_cast< wxColour * >(argp1);
4365 {
4366 PyThreadState* __tstate = wxPyBeginAllowThreads();
4367 result = (byte)(arg1)->Alpha();
4368 wxPyEndAllowThreads(__tstate);
4369 if (PyErr_Occurred()) SWIG_fail;
4370 }
4371 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4372 return resultobj;
4373 fail:
4374 return NULL;
4375 }
4376
4377
4378 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4379 PyObject *resultobj = 0;
4380 wxColour *arg1 = (wxColour *) 0 ;
4381 bool result;
4382 void *argp1 = 0 ;
4383 int res1 = 0 ;
4384 PyObject *swig_obj[1] ;
4385
4386 if (!args) SWIG_fail;
4387 swig_obj[0] = args;
4388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4389 if (!SWIG_IsOK(res1)) {
4390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4391 }
4392 arg1 = reinterpret_cast< wxColour * >(argp1);
4393 {
4394 PyThreadState* __tstate = wxPyBeginAllowThreads();
4395 result = (bool)(arg1)->IsOk();
4396 wxPyEndAllowThreads(__tstate);
4397 if (PyErr_Occurred()) SWIG_fail;
4398 }
4399 {
4400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4401 }
4402 return resultobj;
4403 fail:
4404 return NULL;
4405 }
4406
4407
4408 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4409 PyObject *resultobj = 0;
4410 wxColour *arg1 = (wxColour *) 0 ;
4411 byte arg2 ;
4412 byte arg3 ;
4413 byte arg4 ;
4414 byte arg5 = (byte) wxALPHA_OPAQUE ;
4415 void *argp1 = 0 ;
4416 int res1 = 0 ;
4417 unsigned char val2 ;
4418 int ecode2 = 0 ;
4419 unsigned char val3 ;
4420 int ecode3 = 0 ;
4421 unsigned char val4 ;
4422 int ecode4 = 0 ;
4423 unsigned char val5 ;
4424 int ecode5 = 0 ;
4425 PyObject * obj0 = 0 ;
4426 PyObject * obj1 = 0 ;
4427 PyObject * obj2 = 0 ;
4428 PyObject * obj3 = 0 ;
4429 PyObject * obj4 = 0 ;
4430 char * kwnames[] = {
4431 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4432 };
4433
4434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4436 if (!SWIG_IsOK(res1)) {
4437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4438 }
4439 arg1 = reinterpret_cast< wxColour * >(argp1);
4440 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4441 if (!SWIG_IsOK(ecode2)) {
4442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4443 }
4444 arg2 = static_cast< byte >(val2);
4445 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4446 if (!SWIG_IsOK(ecode3)) {
4447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4448 }
4449 arg3 = static_cast< byte >(val3);
4450 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4451 if (!SWIG_IsOK(ecode4)) {
4452 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4453 }
4454 arg4 = static_cast< byte >(val4);
4455 if (obj4) {
4456 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4457 if (!SWIG_IsOK(ecode5)) {
4458 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4459 }
4460 arg5 = static_cast< byte >(val5);
4461 }
4462 {
4463 PyThreadState* __tstate = wxPyBeginAllowThreads();
4464 (arg1)->Set(arg2,arg3,arg4,arg5);
4465 wxPyEndAllowThreads(__tstate);
4466 if (PyErr_Occurred()) SWIG_fail;
4467 }
4468 resultobj = SWIG_Py_Void();
4469 return resultobj;
4470 fail:
4471 return NULL;
4472 }
4473
4474
4475 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4476 PyObject *resultobj = 0;
4477 wxColour *arg1 = (wxColour *) 0 ;
4478 unsigned long arg2 ;
4479 void *argp1 = 0 ;
4480 int res1 = 0 ;
4481 unsigned long val2 ;
4482 int ecode2 = 0 ;
4483 PyObject * obj0 = 0 ;
4484 PyObject * obj1 = 0 ;
4485 char * kwnames[] = {
4486 (char *) "self",(char *) "colRGB", NULL
4487 };
4488
4489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4491 if (!SWIG_IsOK(res1)) {
4492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4493 }
4494 arg1 = reinterpret_cast< wxColour * >(argp1);
4495 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4496 if (!SWIG_IsOK(ecode2)) {
4497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4498 }
4499 arg2 = static_cast< unsigned long >(val2);
4500 {
4501 PyThreadState* __tstate = wxPyBeginAllowThreads();
4502 (arg1)->Set(arg2);
4503 wxPyEndAllowThreads(__tstate);
4504 if (PyErr_Occurred()) SWIG_fail;
4505 }
4506 resultobj = SWIG_Py_Void();
4507 return resultobj;
4508 fail:
4509 return NULL;
4510 }
4511
4512
4513 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4514 PyObject *resultobj = 0;
4515 wxColour *arg1 = (wxColour *) 0 ;
4516 wxString *arg2 = 0 ;
4517 void *argp1 = 0 ;
4518 int res1 = 0 ;
4519 bool temp2 = false ;
4520 PyObject * obj0 = 0 ;
4521 PyObject * obj1 = 0 ;
4522 char * kwnames[] = {
4523 (char *) "self",(char *) "colourName", NULL
4524 };
4525
4526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4528 if (!SWIG_IsOK(res1)) {
4529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4530 }
4531 arg1 = reinterpret_cast< wxColour * >(argp1);
4532 {
4533 arg2 = wxString_in_helper(obj1);
4534 if (arg2 == NULL) SWIG_fail;
4535 temp2 = true;
4536 }
4537 {
4538 PyThreadState* __tstate = wxPyBeginAllowThreads();
4539 (arg1)->Set((wxString const &)*arg2);
4540 wxPyEndAllowThreads(__tstate);
4541 if (PyErr_Occurred()) SWIG_fail;
4542 }
4543 resultobj = SWIG_Py_Void();
4544 {
4545 if (temp2)
4546 delete arg2;
4547 }
4548 return resultobj;
4549 fail:
4550 {
4551 if (temp2)
4552 delete arg2;
4553 }
4554 return NULL;
4555 }
4556
4557
4558 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4559 PyObject *resultobj = 0;
4560 wxColour *arg1 = (wxColour *) 0 ;
4561 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4562 wxString result;
4563 void *argp1 = 0 ;
4564 int res1 = 0 ;
4565 long val2 ;
4566 int ecode2 = 0 ;
4567 PyObject * obj0 = 0 ;
4568 PyObject * obj1 = 0 ;
4569 char * kwnames[] = {
4570 (char *) "self",(char *) "flags", NULL
4571 };
4572
4573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4575 if (!SWIG_IsOK(res1)) {
4576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4577 }
4578 arg1 = reinterpret_cast< wxColour * >(argp1);
4579 if (obj1) {
4580 ecode2 = SWIG_AsVal_long(obj1, &val2);
4581 if (!SWIG_IsOK(ecode2)) {
4582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4583 }
4584 arg2 = static_cast< long >(val2);
4585 }
4586 {
4587 PyThreadState* __tstate = wxPyBeginAllowThreads();
4588 result = ((wxColour const *)arg1)->GetAsString(arg2);
4589 wxPyEndAllowThreads(__tstate);
4590 if (PyErr_Occurred()) SWIG_fail;
4591 }
4592 {
4593 #if wxUSE_UNICODE
4594 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4595 #else
4596 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4597 #endif
4598 }
4599 return resultobj;
4600 fail:
4601 return NULL;
4602 }
4603
4604
4605 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4606 PyObject *resultobj = 0;
4607 wxColour *arg1 = (wxColour *) 0 ;
4608 long result;
4609 void *argp1 = 0 ;
4610 int res1 = 0 ;
4611 PyObject *swig_obj[1] ;
4612
4613 if (!args) SWIG_fail;
4614 swig_obj[0] = args;
4615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4616 if (!SWIG_IsOK(res1)) {
4617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4618 }
4619 arg1 = reinterpret_cast< wxColour * >(argp1);
4620 {
4621 PyThreadState* __tstate = wxPyBeginAllowThreads();
4622 result = (long)((wxColour const *)arg1)->GetPixel();
4623 wxPyEndAllowThreads(__tstate);
4624 if (PyErr_Occurred()) SWIG_fail;
4625 }
4626 resultobj = SWIG_From_long(static_cast< long >(result));
4627 return resultobj;
4628 fail:
4629 return NULL;
4630 }
4631
4632
4633 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4634 PyObject *resultobj = 0;
4635 wxColour *arg1 = (wxColour *) 0 ;
4636 PyObject *arg2 = (PyObject *) 0 ;
4637 bool result;
4638 void *argp1 = 0 ;
4639 int res1 = 0 ;
4640 PyObject * obj0 = 0 ;
4641 PyObject * obj1 = 0 ;
4642 char * kwnames[] = {
4643 (char *) "self",(char *) "other", NULL
4644 };
4645
4646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4648 if (!SWIG_IsOK(res1)) {
4649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4650 }
4651 arg1 = reinterpret_cast< wxColour * >(argp1);
4652 arg2 = obj1;
4653 {
4654 result = (bool)wxColour___eq__(arg1,arg2);
4655 if (PyErr_Occurred()) SWIG_fail;
4656 }
4657 {
4658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4659 }
4660 return resultobj;
4661 fail:
4662 return NULL;
4663 }
4664
4665
4666 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4667 PyObject *resultobj = 0;
4668 wxColour *arg1 = (wxColour *) 0 ;
4669 PyObject *arg2 = (PyObject *) 0 ;
4670 bool result;
4671 void *argp1 = 0 ;
4672 int res1 = 0 ;
4673 PyObject * obj0 = 0 ;
4674 PyObject * obj1 = 0 ;
4675 char * kwnames[] = {
4676 (char *) "self",(char *) "other", NULL
4677 };
4678
4679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4681 if (!SWIG_IsOK(res1)) {
4682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4683 }
4684 arg1 = reinterpret_cast< wxColour * >(argp1);
4685 arg2 = obj1;
4686 {
4687 result = (bool)wxColour___ne__(arg1,arg2);
4688 if (PyErr_Occurred()) SWIG_fail;
4689 }
4690 {
4691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4692 }
4693 return resultobj;
4694 fail:
4695 return NULL;
4696 }
4697
4698
4699 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4700 PyObject *resultobj = 0;
4701 wxColour *arg1 = (wxColour *) 0 ;
4702 bool arg2 = (bool) false ;
4703 PyObject *result = 0 ;
4704 void *argp1 = 0 ;
4705 int res1 = 0 ;
4706 bool val2 ;
4707 int ecode2 = 0 ;
4708 PyObject * obj0 = 0 ;
4709 PyObject * obj1 = 0 ;
4710 char * kwnames[] = {
4711 (char *) "self",(char *) "includeAlpha", NULL
4712 };
4713
4714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4716 if (!SWIG_IsOK(res1)) {
4717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4718 }
4719 arg1 = reinterpret_cast< wxColour * >(argp1);
4720 if (obj1) {
4721 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4722 if (!SWIG_IsOK(ecode2)) {
4723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4724 }
4725 arg2 = static_cast< bool >(val2);
4726 }
4727 {
4728 result = (PyObject *)wxColour_Get(arg1,arg2);
4729 if (PyErr_Occurred()) SWIG_fail;
4730 }
4731 resultobj = result;
4732 return resultobj;
4733 fail:
4734 return NULL;
4735 }
4736
4737
4738 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4739 PyObject *resultobj = 0;
4740 wxColour *arg1 = (wxColour *) 0 ;
4741 unsigned long result;
4742 void *argp1 = 0 ;
4743 int res1 = 0 ;
4744 PyObject *swig_obj[1] ;
4745
4746 if (!args) SWIG_fail;
4747 swig_obj[0] = args;
4748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4749 if (!SWIG_IsOK(res1)) {
4750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4751 }
4752 arg1 = reinterpret_cast< wxColour * >(argp1);
4753 {
4754 result = (unsigned long)wxColour_GetRGB(arg1);
4755 if (PyErr_Occurred()) SWIG_fail;
4756 }
4757 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4758 return resultobj;
4759 fail:
4760 return NULL;
4761 }
4762
4763
4764 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4765 PyObject *obj;
4766 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4767 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4768 return SWIG_Py_Void();
4769 }
4770
4771 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4772 return SWIG_Python_InitShadowInstance(args);
4773 }
4774
4775 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4776 PyObject *resultobj = 0;
4777 int arg1 ;
4778 unsigned char *arg2 = (unsigned char *) 0 ;
4779 unsigned char *arg3 = (unsigned char *) 0 ;
4780 unsigned char *arg4 = (unsigned char *) 0 ;
4781 wxPalette *result = 0 ;
4782 int val1 ;
4783 int ecode1 = 0 ;
4784 void *argp2 = 0 ;
4785 int res2 = 0 ;
4786 void *argp3 = 0 ;
4787 int res3 = 0 ;
4788 void *argp4 = 0 ;
4789 int res4 = 0 ;
4790 PyObject * obj0 = 0 ;
4791 PyObject * obj1 = 0 ;
4792 PyObject * obj2 = 0 ;
4793 PyObject * obj3 = 0 ;
4794 char * kwnames[] = {
4795 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4796 };
4797
4798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4799 ecode1 = SWIG_AsVal_int(obj0, &val1);
4800 if (!SWIG_IsOK(ecode1)) {
4801 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4802 }
4803 arg1 = static_cast< int >(val1);
4804 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4805 if (!SWIG_IsOK(res2)) {
4806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4807 }
4808 arg2 = reinterpret_cast< unsigned char * >(argp2);
4809 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4810 if (!SWIG_IsOK(res3)) {
4811 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4812 }
4813 arg3 = reinterpret_cast< unsigned char * >(argp3);
4814 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4815 if (!SWIG_IsOK(res4)) {
4816 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4817 }
4818 arg4 = reinterpret_cast< unsigned char * >(argp4);
4819 {
4820 if (!wxPyCheckForApp()) SWIG_fail;
4821 PyThreadState* __tstate = wxPyBeginAllowThreads();
4822 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4823 wxPyEndAllowThreads(__tstate);
4824 if (PyErr_Occurred()) SWIG_fail;
4825 }
4826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4827 return resultobj;
4828 fail:
4829 return NULL;
4830 }
4831
4832
4833 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4834 PyObject *resultobj = 0;
4835 wxPalette *arg1 = (wxPalette *) 0 ;
4836 void *argp1 = 0 ;
4837 int res1 = 0 ;
4838 PyObject *swig_obj[1] ;
4839
4840 if (!args) SWIG_fail;
4841 swig_obj[0] = args;
4842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4843 if (!SWIG_IsOK(res1)) {
4844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4845 }
4846 arg1 = reinterpret_cast< wxPalette * >(argp1);
4847 {
4848 PyThreadState* __tstate = wxPyBeginAllowThreads();
4849 delete arg1;
4850
4851 wxPyEndAllowThreads(__tstate);
4852 if (PyErr_Occurred()) SWIG_fail;
4853 }
4854 resultobj = SWIG_Py_Void();
4855 return resultobj;
4856 fail:
4857 return NULL;
4858 }
4859
4860
4861 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj = 0;
4863 wxPalette *arg1 = (wxPalette *) 0 ;
4864 byte arg2 ;
4865 byte arg3 ;
4866 byte arg4 ;
4867 int result;
4868 void *argp1 = 0 ;
4869 int res1 = 0 ;
4870 unsigned char val2 ;
4871 int ecode2 = 0 ;
4872 unsigned char val3 ;
4873 int ecode3 = 0 ;
4874 unsigned char val4 ;
4875 int ecode4 = 0 ;
4876 PyObject * obj0 = 0 ;
4877 PyObject * obj1 = 0 ;
4878 PyObject * obj2 = 0 ;
4879 PyObject * obj3 = 0 ;
4880 char * kwnames[] = {
4881 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4882 };
4883
4884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4886 if (!SWIG_IsOK(res1)) {
4887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4888 }
4889 arg1 = reinterpret_cast< wxPalette * >(argp1);
4890 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4891 if (!SWIG_IsOK(ecode2)) {
4892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4893 }
4894 arg2 = static_cast< byte >(val2);
4895 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4896 if (!SWIG_IsOK(ecode3)) {
4897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4898 }
4899 arg3 = static_cast< byte >(val3);
4900 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4901 if (!SWIG_IsOK(ecode4)) {
4902 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4903 }
4904 arg4 = static_cast< byte >(val4);
4905 {
4906 PyThreadState* __tstate = wxPyBeginAllowThreads();
4907 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4908 wxPyEndAllowThreads(__tstate);
4909 if (PyErr_Occurred()) SWIG_fail;
4910 }
4911 resultobj = SWIG_From_int(static_cast< int >(result));
4912 return resultobj;
4913 fail:
4914 return NULL;
4915 }
4916
4917
4918 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4919 PyObject *resultobj = 0;
4920 wxPalette *arg1 = (wxPalette *) 0 ;
4921 int arg2 ;
4922 byte *arg3 = (byte *) 0 ;
4923 byte *arg4 = (byte *) 0 ;
4924 byte *arg5 = (byte *) 0 ;
4925 bool result;
4926 void *argp1 = 0 ;
4927 int res1 = 0 ;
4928 int val2 ;
4929 int ecode2 = 0 ;
4930 byte temp3 ;
4931 int res3 = SWIG_TMPOBJ ;
4932 byte temp4 ;
4933 int res4 = SWIG_TMPOBJ ;
4934 byte temp5 ;
4935 int res5 = SWIG_TMPOBJ ;
4936 PyObject * obj0 = 0 ;
4937 PyObject * obj1 = 0 ;
4938 char * kwnames[] = {
4939 (char *) "self",(char *) "pixel", NULL
4940 };
4941
4942 arg3 = &temp3;
4943 arg4 = &temp4;
4944 arg5 = &temp5;
4945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4947 if (!SWIG_IsOK(res1)) {
4948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4949 }
4950 arg1 = reinterpret_cast< wxPalette * >(argp1);
4951 ecode2 = SWIG_AsVal_int(obj1, &val2);
4952 if (!SWIG_IsOK(ecode2)) {
4953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4954 }
4955 arg2 = static_cast< int >(val2);
4956 {
4957 PyThreadState* __tstate = wxPyBeginAllowThreads();
4958 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4959 wxPyEndAllowThreads(__tstate);
4960 if (PyErr_Occurred()) SWIG_fail;
4961 }
4962 {
4963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4964 }
4965 if (SWIG_IsTmpObj(res3)) {
4966 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4967 } else {
4968 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4969 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4970 }
4971 if (SWIG_IsTmpObj(res4)) {
4972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4973 } else {
4974 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4975 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4976 }
4977 if (SWIG_IsTmpObj(res5)) {
4978 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4979 } else {
4980 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4981 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4982 }
4983 return resultobj;
4984 fail:
4985 return NULL;
4986 }
4987
4988
4989 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4990 PyObject *resultobj = 0;
4991 wxPalette *arg1 = (wxPalette *) 0 ;
4992 int result;
4993 void *argp1 = 0 ;
4994 int res1 = 0 ;
4995 PyObject *swig_obj[1] ;
4996
4997 if (!args) SWIG_fail;
4998 swig_obj[0] = args;
4999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5000 if (!SWIG_IsOK(res1)) {
5001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
5002 }
5003 arg1 = reinterpret_cast< wxPalette * >(argp1);
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 result = (int)((wxPalette const *)arg1)->GetColoursCount();
5007 wxPyEndAllowThreads(__tstate);
5008 if (PyErr_Occurred()) SWIG_fail;
5009 }
5010 resultobj = SWIG_From_int(static_cast< int >(result));
5011 return resultobj;
5012 fail:
5013 return NULL;
5014 }
5015
5016
5017 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5018 PyObject *resultobj = 0;
5019 wxPalette *arg1 = (wxPalette *) 0 ;
5020 bool result;
5021 void *argp1 = 0 ;
5022 int res1 = 0 ;
5023 PyObject *swig_obj[1] ;
5024
5025 if (!args) SWIG_fail;
5026 swig_obj[0] = args;
5027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5028 if (!SWIG_IsOK(res1)) {
5029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
5030 }
5031 arg1 = reinterpret_cast< wxPalette * >(argp1);
5032 {
5033 PyThreadState* __tstate = wxPyBeginAllowThreads();
5034 result = (bool)(arg1)->IsOk();
5035 wxPyEndAllowThreads(__tstate);
5036 if (PyErr_Occurred()) SWIG_fail;
5037 }
5038 {
5039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5040 }
5041 return resultobj;
5042 fail:
5043 return NULL;
5044 }
5045
5046
5047 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5048 PyObject *obj;
5049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5050 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5051 return SWIG_Py_Void();
5052 }
5053
5054 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5055 return SWIG_Python_InitShadowInstance(args);
5056 }
5057
5058 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5059 PyObject *resultobj = 0;
5060 wxColour *arg1 = 0 ;
5061 int arg2 = (int) 1 ;
5062 int arg3 = (int) wxSOLID ;
5063 wxPen *result = 0 ;
5064 wxColour temp1 ;
5065 int val2 ;
5066 int ecode2 = 0 ;
5067 int val3 ;
5068 int ecode3 = 0 ;
5069 PyObject * obj0 = 0 ;
5070 PyObject * obj1 = 0 ;
5071 PyObject * obj2 = 0 ;
5072 char * kwnames[] = {
5073 (char *) "colour",(char *) "width",(char *) "style", NULL
5074 };
5075
5076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5077 {
5078 arg1 = &temp1;
5079 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5080 }
5081 if (obj1) {
5082 ecode2 = SWIG_AsVal_int(obj1, &val2);
5083 if (!SWIG_IsOK(ecode2)) {
5084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5085 }
5086 arg2 = static_cast< int >(val2);
5087 }
5088 if (obj2) {
5089 ecode3 = SWIG_AsVal_int(obj2, &val3);
5090 if (!SWIG_IsOK(ecode3)) {
5091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5092 }
5093 arg3 = static_cast< int >(val3);
5094 }
5095 {
5096 if (!wxPyCheckForApp()) SWIG_fail;
5097 PyThreadState* __tstate = wxPyBeginAllowThreads();
5098 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5099 wxPyEndAllowThreads(__tstate);
5100 if (PyErr_Occurred()) SWIG_fail;
5101 }
5102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5103 return resultobj;
5104 fail:
5105 return NULL;
5106 }
5107
5108
5109 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5110 PyObject *resultobj = 0;
5111 wxPen *arg1 = (wxPen *) 0 ;
5112 void *argp1 = 0 ;
5113 int res1 = 0 ;
5114 PyObject *swig_obj[1] ;
5115
5116 if (!args) SWIG_fail;
5117 swig_obj[0] = args;
5118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5119 if (!SWIG_IsOK(res1)) {
5120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5121 }
5122 arg1 = reinterpret_cast< wxPen * >(argp1);
5123 {
5124 PyThreadState* __tstate = wxPyBeginAllowThreads();
5125 delete arg1;
5126
5127 wxPyEndAllowThreads(__tstate);
5128 if (PyErr_Occurred()) SWIG_fail;
5129 }
5130 resultobj = SWIG_Py_Void();
5131 return resultobj;
5132 fail:
5133 return NULL;
5134 }
5135
5136
5137 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5138 PyObject *resultobj = 0;
5139 wxPen *arg1 = (wxPen *) 0 ;
5140 int result;
5141 void *argp1 = 0 ;
5142 int res1 = 0 ;
5143 PyObject *swig_obj[1] ;
5144
5145 if (!args) SWIG_fail;
5146 swig_obj[0] = args;
5147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5148 if (!SWIG_IsOK(res1)) {
5149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5150 }
5151 arg1 = reinterpret_cast< wxPen * >(argp1);
5152 {
5153 PyThreadState* __tstate = wxPyBeginAllowThreads();
5154 result = (int)(arg1)->GetCap();
5155 wxPyEndAllowThreads(__tstate);
5156 if (PyErr_Occurred()) SWIG_fail;
5157 }
5158 resultobj = SWIG_From_int(static_cast< int >(result));
5159 return resultobj;
5160 fail:
5161 return NULL;
5162 }
5163
5164
5165 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5166 PyObject *resultobj = 0;
5167 wxPen *arg1 = (wxPen *) 0 ;
5168 wxColour result;
5169 void *argp1 = 0 ;
5170 int res1 = 0 ;
5171 PyObject *swig_obj[1] ;
5172
5173 if (!args) SWIG_fail;
5174 swig_obj[0] = args;
5175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5176 if (!SWIG_IsOK(res1)) {
5177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5178 }
5179 arg1 = reinterpret_cast< wxPen * >(argp1);
5180 {
5181 PyThreadState* __tstate = wxPyBeginAllowThreads();
5182 result = (arg1)->GetColour();
5183 wxPyEndAllowThreads(__tstate);
5184 if (PyErr_Occurred()) SWIG_fail;
5185 }
5186 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5187 return resultobj;
5188 fail:
5189 return NULL;
5190 }
5191
5192
5193 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5194 PyObject *resultobj = 0;
5195 wxPen *arg1 = (wxPen *) 0 ;
5196 int result;
5197 void *argp1 = 0 ;
5198 int res1 = 0 ;
5199 PyObject *swig_obj[1] ;
5200
5201 if (!args) SWIG_fail;
5202 swig_obj[0] = args;
5203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5204 if (!SWIG_IsOK(res1)) {
5205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5206 }
5207 arg1 = reinterpret_cast< wxPen * >(argp1);
5208 {
5209 PyThreadState* __tstate = wxPyBeginAllowThreads();
5210 result = (int)(arg1)->GetJoin();
5211 wxPyEndAllowThreads(__tstate);
5212 if (PyErr_Occurred()) SWIG_fail;
5213 }
5214 resultobj = SWIG_From_int(static_cast< int >(result));
5215 return resultobj;
5216 fail:
5217 return NULL;
5218 }
5219
5220
5221 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5222 PyObject *resultobj = 0;
5223 wxPen *arg1 = (wxPen *) 0 ;
5224 int result;
5225 void *argp1 = 0 ;
5226 int res1 = 0 ;
5227 PyObject *swig_obj[1] ;
5228
5229 if (!args) SWIG_fail;
5230 swig_obj[0] = args;
5231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5232 if (!SWIG_IsOK(res1)) {
5233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5234 }
5235 arg1 = reinterpret_cast< wxPen * >(argp1);
5236 {
5237 PyThreadState* __tstate = wxPyBeginAllowThreads();
5238 result = (int)(arg1)->GetStyle();
5239 wxPyEndAllowThreads(__tstate);
5240 if (PyErr_Occurred()) SWIG_fail;
5241 }
5242 resultobj = SWIG_From_int(static_cast< int >(result));
5243 return resultobj;
5244 fail:
5245 return NULL;
5246 }
5247
5248
5249 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5250 PyObject *resultobj = 0;
5251 wxPen *arg1 = (wxPen *) 0 ;
5252 int result;
5253 void *argp1 = 0 ;
5254 int res1 = 0 ;
5255 PyObject *swig_obj[1] ;
5256
5257 if (!args) SWIG_fail;
5258 swig_obj[0] = args;
5259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5260 if (!SWIG_IsOK(res1)) {
5261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5262 }
5263 arg1 = reinterpret_cast< wxPen * >(argp1);
5264 {
5265 PyThreadState* __tstate = wxPyBeginAllowThreads();
5266 result = (int)(arg1)->GetWidth();
5267 wxPyEndAllowThreads(__tstate);
5268 if (PyErr_Occurred()) SWIG_fail;
5269 }
5270 resultobj = SWIG_From_int(static_cast< int >(result));
5271 return resultobj;
5272 fail:
5273 return NULL;
5274 }
5275
5276
5277 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5278 PyObject *resultobj = 0;
5279 wxPen *arg1 = (wxPen *) 0 ;
5280 bool result;
5281 void *argp1 = 0 ;
5282 int res1 = 0 ;
5283 PyObject *swig_obj[1] ;
5284
5285 if (!args) SWIG_fail;
5286 swig_obj[0] = args;
5287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5288 if (!SWIG_IsOK(res1)) {
5289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5290 }
5291 arg1 = reinterpret_cast< wxPen * >(argp1);
5292 {
5293 PyThreadState* __tstate = wxPyBeginAllowThreads();
5294 result = (bool)(arg1)->IsOk();
5295 wxPyEndAllowThreads(__tstate);
5296 if (PyErr_Occurred()) SWIG_fail;
5297 }
5298 {
5299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5300 }
5301 return resultobj;
5302 fail:
5303 return NULL;
5304 }
5305
5306
5307 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5308 PyObject *resultobj = 0;
5309 wxPen *arg1 = (wxPen *) 0 ;
5310 int arg2 ;
5311 void *argp1 = 0 ;
5312 int res1 = 0 ;
5313 int val2 ;
5314 int ecode2 = 0 ;
5315 PyObject * obj0 = 0 ;
5316 PyObject * obj1 = 0 ;
5317 char * kwnames[] = {
5318 (char *) "self",(char *) "cap_style", NULL
5319 };
5320
5321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5323 if (!SWIG_IsOK(res1)) {
5324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5325 }
5326 arg1 = reinterpret_cast< wxPen * >(argp1);
5327 ecode2 = SWIG_AsVal_int(obj1, &val2);
5328 if (!SWIG_IsOK(ecode2)) {
5329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5330 }
5331 arg2 = static_cast< int >(val2);
5332 {
5333 PyThreadState* __tstate = wxPyBeginAllowThreads();
5334 (arg1)->SetCap(arg2);
5335 wxPyEndAllowThreads(__tstate);
5336 if (PyErr_Occurred()) SWIG_fail;
5337 }
5338 resultobj = SWIG_Py_Void();
5339 return resultobj;
5340 fail:
5341 return NULL;
5342 }
5343
5344
5345 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5346 PyObject *resultobj = 0;
5347 wxPen *arg1 = (wxPen *) 0 ;
5348 wxColour *arg2 = 0 ;
5349 void *argp1 = 0 ;
5350 int res1 = 0 ;
5351 wxColour temp2 ;
5352 PyObject * obj0 = 0 ;
5353 PyObject * obj1 = 0 ;
5354 char * kwnames[] = {
5355 (char *) "self",(char *) "colour", NULL
5356 };
5357
5358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5360 if (!SWIG_IsOK(res1)) {
5361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5362 }
5363 arg1 = reinterpret_cast< wxPen * >(argp1);
5364 {
5365 arg2 = &temp2;
5366 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5367 }
5368 {
5369 PyThreadState* __tstate = wxPyBeginAllowThreads();
5370 (arg1)->SetColour(*arg2);
5371 wxPyEndAllowThreads(__tstate);
5372 if (PyErr_Occurred()) SWIG_fail;
5373 }
5374 resultobj = SWIG_Py_Void();
5375 return resultobj;
5376 fail:
5377 return NULL;
5378 }
5379
5380
5381 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5382 PyObject *resultobj = 0;
5383 wxPen *arg1 = (wxPen *) 0 ;
5384 int arg2 ;
5385 void *argp1 = 0 ;
5386 int res1 = 0 ;
5387 int val2 ;
5388 int ecode2 = 0 ;
5389 PyObject * obj0 = 0 ;
5390 PyObject * obj1 = 0 ;
5391 char * kwnames[] = {
5392 (char *) "self",(char *) "join_style", NULL
5393 };
5394
5395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5397 if (!SWIG_IsOK(res1)) {
5398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5399 }
5400 arg1 = reinterpret_cast< wxPen * >(argp1);
5401 ecode2 = SWIG_AsVal_int(obj1, &val2);
5402 if (!SWIG_IsOK(ecode2)) {
5403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5404 }
5405 arg2 = static_cast< int >(val2);
5406 {
5407 PyThreadState* __tstate = wxPyBeginAllowThreads();
5408 (arg1)->SetJoin(arg2);
5409 wxPyEndAllowThreads(__tstate);
5410 if (PyErr_Occurred()) SWIG_fail;
5411 }
5412 resultobj = SWIG_Py_Void();
5413 return resultobj;
5414 fail:
5415 return NULL;
5416 }
5417
5418
5419 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5420 PyObject *resultobj = 0;
5421 wxPen *arg1 = (wxPen *) 0 ;
5422 int arg2 ;
5423 void *argp1 = 0 ;
5424 int res1 = 0 ;
5425 int val2 ;
5426 int ecode2 = 0 ;
5427 PyObject * obj0 = 0 ;
5428 PyObject * obj1 = 0 ;
5429 char * kwnames[] = {
5430 (char *) "self",(char *) "style", NULL
5431 };
5432
5433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5435 if (!SWIG_IsOK(res1)) {
5436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5437 }
5438 arg1 = reinterpret_cast< wxPen * >(argp1);
5439 ecode2 = SWIG_AsVal_int(obj1, &val2);
5440 if (!SWIG_IsOK(ecode2)) {
5441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5442 }
5443 arg2 = static_cast< int >(val2);
5444 {
5445 PyThreadState* __tstate = wxPyBeginAllowThreads();
5446 (arg1)->SetStyle(arg2);
5447 wxPyEndAllowThreads(__tstate);
5448 if (PyErr_Occurred()) SWIG_fail;
5449 }
5450 resultobj = SWIG_Py_Void();
5451 return resultobj;
5452 fail:
5453 return NULL;
5454 }
5455
5456
5457 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5458 PyObject *resultobj = 0;
5459 wxPen *arg1 = (wxPen *) 0 ;
5460 int arg2 ;
5461 void *argp1 = 0 ;
5462 int res1 = 0 ;
5463 int val2 ;
5464 int ecode2 = 0 ;
5465 PyObject * obj0 = 0 ;
5466 PyObject * obj1 = 0 ;
5467 char * kwnames[] = {
5468 (char *) "self",(char *) "width", NULL
5469 };
5470
5471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5473 if (!SWIG_IsOK(res1)) {
5474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5475 }
5476 arg1 = reinterpret_cast< wxPen * >(argp1);
5477 ecode2 = SWIG_AsVal_int(obj1, &val2);
5478 if (!SWIG_IsOK(ecode2)) {
5479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5480 }
5481 arg2 = static_cast< int >(val2);
5482 {
5483 PyThreadState* __tstate = wxPyBeginAllowThreads();
5484 (arg1)->SetWidth(arg2);
5485 wxPyEndAllowThreads(__tstate);
5486 if (PyErr_Occurred()) SWIG_fail;
5487 }
5488 resultobj = SWIG_Py_Void();
5489 return resultobj;
5490 fail:
5491 return NULL;
5492 }
5493
5494
5495 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5496 PyObject *resultobj = 0;
5497 wxPen *arg1 = (wxPen *) 0 ;
5498 int arg2 ;
5499 wxDash *arg3 = (wxDash *) 0 ;
5500 void *argp1 = 0 ;
5501 int res1 = 0 ;
5502 PyObject * obj0 = 0 ;
5503 PyObject * obj1 = 0 ;
5504 char * kwnames[] = {
5505 (char *) "self",(char *) "dashes", NULL
5506 };
5507
5508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5510 if (!SWIG_IsOK(res1)) {
5511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5512 }
5513 arg1 = reinterpret_cast< wxPen * >(argp1);
5514 {
5515 arg2 = PyList_Size(obj1);
5516 arg3 = (wxDash*)byte_LIST_helper(obj1);
5517 if (arg3 == NULL) SWIG_fail;
5518 }
5519 {
5520 PyThreadState* __tstate = wxPyBeginAllowThreads();
5521 (arg1)->SetDashes(arg2,arg3);
5522 wxPyEndAllowThreads(__tstate);
5523 if (PyErr_Occurred()) SWIG_fail;
5524 }
5525 resultobj = SWIG_Py_Void();
5526 {
5527 if (arg3) delete [] arg3;
5528 }
5529 return resultobj;
5530 fail:
5531 {
5532 if (arg3) delete [] arg3;
5533 }
5534 return NULL;
5535 }
5536
5537
5538 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5539 PyObject *resultobj = 0;
5540 wxPen *arg1 = (wxPen *) 0 ;
5541 PyObject *result = 0 ;
5542 void *argp1 = 0 ;
5543 int res1 = 0 ;
5544 PyObject *swig_obj[1] ;
5545
5546 if (!args) SWIG_fail;
5547 swig_obj[0] = args;
5548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5549 if (!SWIG_IsOK(res1)) {
5550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5551 }
5552 arg1 = reinterpret_cast< wxPen * >(argp1);
5553 {
5554 PyThreadState* __tstate = wxPyBeginAllowThreads();
5555 result = (PyObject *)wxPen_GetDashes(arg1);
5556 wxPyEndAllowThreads(__tstate);
5557 if (PyErr_Occurred()) SWIG_fail;
5558 }
5559 resultobj = result;
5560 return resultobj;
5561 fail:
5562 return NULL;
5563 }
5564
5565
5566 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5567 PyObject *resultobj = 0;
5568 wxPen *arg1 = (wxPen *) 0 ;
5569 PyObject *arg2 = (PyObject *) 0 ;
5570 PyObject *arg3 = (PyObject *) 0 ;
5571 void *argp1 = 0 ;
5572 int res1 = 0 ;
5573 PyObject * obj0 = 0 ;
5574 PyObject * obj1 = 0 ;
5575 PyObject * obj2 = 0 ;
5576 char * kwnames[] = {
5577 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5578 };
5579
5580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5582 if (!SWIG_IsOK(res1)) {
5583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5584 }
5585 arg1 = reinterpret_cast< wxPen * >(argp1);
5586 arg2 = obj1;
5587 arg3 = obj2;
5588 {
5589 PyThreadState* __tstate = wxPyBeginAllowThreads();
5590 wxPen__SetDashes(arg1,arg2,arg3);
5591 wxPyEndAllowThreads(__tstate);
5592 if (PyErr_Occurred()) SWIG_fail;
5593 }
5594 resultobj = SWIG_Py_Void();
5595 return resultobj;
5596 fail:
5597 return NULL;
5598 }
5599
5600
5601 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5602 PyObject *resultobj = 0;
5603 wxPen *arg1 = (wxPen *) 0 ;
5604 int result;
5605 void *argp1 = 0 ;
5606 int res1 = 0 ;
5607 PyObject *swig_obj[1] ;
5608
5609 if (!args) SWIG_fail;
5610 swig_obj[0] = args;
5611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5612 if (!SWIG_IsOK(res1)) {
5613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5614 }
5615 arg1 = reinterpret_cast< wxPen * >(argp1);
5616 {
5617 PyThreadState* __tstate = wxPyBeginAllowThreads();
5618 result = (int)((wxPen const *)arg1)->GetDashCount();
5619 wxPyEndAllowThreads(__tstate);
5620 if (PyErr_Occurred()) SWIG_fail;
5621 }
5622 resultobj = SWIG_From_int(static_cast< int >(result));
5623 return resultobj;
5624 fail:
5625 return NULL;
5626 }
5627
5628
5629 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5630 PyObject *resultobj = 0;
5631 wxPen *arg1 = (wxPen *) 0 ;
5632 wxPen *arg2 = (wxPen *) 0 ;
5633 bool result;
5634 void *argp1 = 0 ;
5635 int res1 = 0 ;
5636 void *argp2 = 0 ;
5637 int res2 = 0 ;
5638 PyObject * obj0 = 0 ;
5639 PyObject * obj1 = 0 ;
5640 char * kwnames[] = {
5641 (char *) "self",(char *) "other", NULL
5642 };
5643
5644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5646 if (!SWIG_IsOK(res1)) {
5647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5648 }
5649 arg1 = reinterpret_cast< wxPen * >(argp1);
5650 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5651 if (!SWIG_IsOK(res2)) {
5652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5653 }
5654 arg2 = reinterpret_cast< wxPen * >(argp2);
5655 {
5656 PyThreadState* __tstate = wxPyBeginAllowThreads();
5657 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5658 wxPyEndAllowThreads(__tstate);
5659 if (PyErr_Occurred()) SWIG_fail;
5660 }
5661 {
5662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5663 }
5664 return resultobj;
5665 fail:
5666 return NULL;
5667 }
5668
5669
5670 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5671 PyObject *resultobj = 0;
5672 wxPen *arg1 = (wxPen *) 0 ;
5673 wxPen *arg2 = (wxPen *) 0 ;
5674 bool result;
5675 void *argp1 = 0 ;
5676 int res1 = 0 ;
5677 void *argp2 = 0 ;
5678 int res2 = 0 ;
5679 PyObject * obj0 = 0 ;
5680 PyObject * obj1 = 0 ;
5681 char * kwnames[] = {
5682 (char *) "self",(char *) "other", NULL
5683 };
5684
5685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5687 if (!SWIG_IsOK(res1)) {
5688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5689 }
5690 arg1 = reinterpret_cast< wxPen * >(argp1);
5691 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5692 if (!SWIG_IsOK(res2)) {
5693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5694 }
5695 arg2 = reinterpret_cast< wxPen * >(argp2);
5696 {
5697 PyThreadState* __tstate = wxPyBeginAllowThreads();
5698 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5699 wxPyEndAllowThreads(__tstate);
5700 if (PyErr_Occurred()) SWIG_fail;
5701 }
5702 {
5703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5704 }
5705 return resultobj;
5706 fail:
5707 return NULL;
5708 }
5709
5710
5711 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5712 PyObject *obj;
5713 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5714 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5715 return SWIG_Py_Void();
5716 }
5717
5718 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5719 return SWIG_Python_InitShadowInstance(args);
5720 }
5721
5722 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5723 PyObject *resultobj = 0;
5724 wxColour *arg1 = 0 ;
5725 int arg2 = (int) wxSOLID ;
5726 wxBrush *result = 0 ;
5727 wxColour temp1 ;
5728 int val2 ;
5729 int ecode2 = 0 ;
5730 PyObject * obj0 = 0 ;
5731 PyObject * obj1 = 0 ;
5732 char * kwnames[] = {
5733 (char *) "colour",(char *) "style", NULL
5734 };
5735
5736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5737 {
5738 arg1 = &temp1;
5739 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5740 }
5741 if (obj1) {
5742 ecode2 = SWIG_AsVal_int(obj1, &val2);
5743 if (!SWIG_IsOK(ecode2)) {
5744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5745 }
5746 arg2 = static_cast< int >(val2);
5747 }
5748 {
5749 if (!wxPyCheckForApp()) SWIG_fail;
5750 PyThreadState* __tstate = wxPyBeginAllowThreads();
5751 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5752 wxPyEndAllowThreads(__tstate);
5753 if (PyErr_Occurred()) SWIG_fail;
5754 }
5755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5756 return resultobj;
5757 fail:
5758 return NULL;
5759 }
5760
5761
5762 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5763 PyObject *resultobj = 0;
5764 wxBitmap *arg1 = 0 ;
5765 wxBrush *result = 0 ;
5766 void *argp1 = 0 ;
5767 int res1 = 0 ;
5768 PyObject * obj0 = 0 ;
5769 char * kwnames[] = {
5770 (char *) "stippleBitmap", NULL
5771 };
5772
5773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5774 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5775 if (!SWIG_IsOK(res1)) {
5776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5777 }
5778 if (!argp1) {
5779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5780 }
5781 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5782 {
5783 if (!wxPyCheckForApp()) SWIG_fail;
5784 PyThreadState* __tstate = wxPyBeginAllowThreads();
5785 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5786 wxPyEndAllowThreads(__tstate);
5787 if (PyErr_Occurred()) SWIG_fail;
5788 }
5789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5790 return resultobj;
5791 fail:
5792 return NULL;
5793 }
5794
5795
5796 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5797 PyObject *resultobj = 0;
5798 wxBrush *arg1 = (wxBrush *) 0 ;
5799 void *argp1 = 0 ;
5800 int res1 = 0 ;
5801 PyObject *swig_obj[1] ;
5802
5803 if (!args) SWIG_fail;
5804 swig_obj[0] = args;
5805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5806 if (!SWIG_IsOK(res1)) {
5807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5808 }
5809 arg1 = reinterpret_cast< wxBrush * >(argp1);
5810 {
5811 PyThreadState* __tstate = wxPyBeginAllowThreads();
5812 delete arg1;
5813
5814 wxPyEndAllowThreads(__tstate);
5815 if (PyErr_Occurred()) SWIG_fail;
5816 }
5817 resultobj = SWIG_Py_Void();
5818 return resultobj;
5819 fail:
5820 return NULL;
5821 }
5822
5823
5824 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5825 PyObject *resultobj = 0;
5826 wxBrush *arg1 = (wxBrush *) 0 ;
5827 wxColour *arg2 = 0 ;
5828 void *argp1 = 0 ;
5829 int res1 = 0 ;
5830 wxColour temp2 ;
5831 PyObject * obj0 = 0 ;
5832 PyObject * obj1 = 0 ;
5833 char * kwnames[] = {
5834 (char *) "self",(char *) "col", NULL
5835 };
5836
5837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5839 if (!SWIG_IsOK(res1)) {
5840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5841 }
5842 arg1 = reinterpret_cast< wxBrush * >(argp1);
5843 {
5844 arg2 = &temp2;
5845 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5846 }
5847 {
5848 PyThreadState* __tstate = wxPyBeginAllowThreads();
5849 (arg1)->SetColour((wxColour const &)*arg2);
5850 wxPyEndAllowThreads(__tstate);
5851 if (PyErr_Occurred()) SWIG_fail;
5852 }
5853 resultobj = SWIG_Py_Void();
5854 return resultobj;
5855 fail:
5856 return NULL;
5857 }
5858
5859
5860 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5861 PyObject *resultobj = 0;
5862 wxBrush *arg1 = (wxBrush *) 0 ;
5863 int arg2 ;
5864 void *argp1 = 0 ;
5865 int res1 = 0 ;
5866 int val2 ;
5867 int ecode2 = 0 ;
5868 PyObject * obj0 = 0 ;
5869 PyObject * obj1 = 0 ;
5870 char * kwnames[] = {
5871 (char *) "self",(char *) "style", NULL
5872 };
5873
5874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5876 if (!SWIG_IsOK(res1)) {
5877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5878 }
5879 arg1 = reinterpret_cast< wxBrush * >(argp1);
5880 ecode2 = SWIG_AsVal_int(obj1, &val2);
5881 if (!SWIG_IsOK(ecode2)) {
5882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5883 }
5884 arg2 = static_cast< int >(val2);
5885 {
5886 PyThreadState* __tstate = wxPyBeginAllowThreads();
5887 (arg1)->SetStyle(arg2);
5888 wxPyEndAllowThreads(__tstate);
5889 if (PyErr_Occurred()) SWIG_fail;
5890 }
5891 resultobj = SWIG_Py_Void();
5892 return resultobj;
5893 fail:
5894 return NULL;
5895 }
5896
5897
5898 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5899 PyObject *resultobj = 0;
5900 wxBrush *arg1 = (wxBrush *) 0 ;
5901 wxBitmap *arg2 = 0 ;
5902 void *argp1 = 0 ;
5903 int res1 = 0 ;
5904 void *argp2 = 0 ;
5905 int res2 = 0 ;
5906 PyObject * obj0 = 0 ;
5907 PyObject * obj1 = 0 ;
5908 char * kwnames[] = {
5909 (char *) "self",(char *) "stipple", NULL
5910 };
5911
5912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5914 if (!SWIG_IsOK(res1)) {
5915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5916 }
5917 arg1 = reinterpret_cast< wxBrush * >(argp1);
5918 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5919 if (!SWIG_IsOK(res2)) {
5920 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5921 }
5922 if (!argp2) {
5923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5924 }
5925 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5926 {
5927 PyThreadState* __tstate = wxPyBeginAllowThreads();
5928 (arg1)->SetStipple((wxBitmap const &)*arg2);
5929 wxPyEndAllowThreads(__tstate);
5930 if (PyErr_Occurred()) SWIG_fail;
5931 }
5932 resultobj = SWIG_Py_Void();
5933 return resultobj;
5934 fail:
5935 return NULL;
5936 }
5937
5938
5939 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5940 PyObject *resultobj = 0;
5941 wxBrush *arg1 = (wxBrush *) 0 ;
5942 wxColour result;
5943 void *argp1 = 0 ;
5944 int res1 = 0 ;
5945 PyObject *swig_obj[1] ;
5946
5947 if (!args) SWIG_fail;
5948 swig_obj[0] = args;
5949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5950 if (!SWIG_IsOK(res1)) {
5951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5952 }
5953 arg1 = reinterpret_cast< wxBrush * >(argp1);
5954 {
5955 PyThreadState* __tstate = wxPyBeginAllowThreads();
5956 result = ((wxBrush const *)arg1)->GetColour();
5957 wxPyEndAllowThreads(__tstate);
5958 if (PyErr_Occurred()) SWIG_fail;
5959 }
5960 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5961 return resultobj;
5962 fail:
5963 return NULL;
5964 }
5965
5966
5967 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5968 PyObject *resultobj = 0;
5969 wxBrush *arg1 = (wxBrush *) 0 ;
5970 int result;
5971 void *argp1 = 0 ;
5972 int res1 = 0 ;
5973 PyObject *swig_obj[1] ;
5974
5975 if (!args) SWIG_fail;
5976 swig_obj[0] = args;
5977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5978 if (!SWIG_IsOK(res1)) {
5979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5980 }
5981 arg1 = reinterpret_cast< wxBrush * >(argp1);
5982 {
5983 PyThreadState* __tstate = wxPyBeginAllowThreads();
5984 result = (int)((wxBrush const *)arg1)->GetStyle();
5985 wxPyEndAllowThreads(__tstate);
5986 if (PyErr_Occurred()) SWIG_fail;
5987 }
5988 resultobj = SWIG_From_int(static_cast< int >(result));
5989 return resultobj;
5990 fail:
5991 return NULL;
5992 }
5993
5994
5995 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5996 PyObject *resultobj = 0;
5997 wxBrush *arg1 = (wxBrush *) 0 ;
5998 wxBitmap *result = 0 ;
5999 void *argp1 = 0 ;
6000 int res1 = 0 ;
6001 PyObject *swig_obj[1] ;
6002
6003 if (!args) SWIG_fail;
6004 swig_obj[0] = args;
6005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6006 if (!SWIG_IsOK(res1)) {
6007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
6008 }
6009 arg1 = reinterpret_cast< wxBrush * >(argp1);
6010 {
6011 PyThreadState* __tstate = wxPyBeginAllowThreads();
6012 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
6013 wxPyEndAllowThreads(__tstate);
6014 if (PyErr_Occurred()) SWIG_fail;
6015 }
6016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
6017 return resultobj;
6018 fail:
6019 return NULL;
6020 }
6021
6022
6023 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6024 PyObject *resultobj = 0;
6025 wxBrush *arg1 = (wxBrush *) 0 ;
6026 bool result;
6027 void *argp1 = 0 ;
6028 int res1 = 0 ;
6029 PyObject *swig_obj[1] ;
6030
6031 if (!args) SWIG_fail;
6032 swig_obj[0] = args;
6033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6034 if (!SWIG_IsOK(res1)) {
6035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6036 }
6037 arg1 = reinterpret_cast< wxBrush * >(argp1);
6038 {
6039 PyThreadState* __tstate = wxPyBeginAllowThreads();
6040 result = (bool)((wxBrush const *)arg1)->IsHatch();
6041 wxPyEndAllowThreads(__tstate);
6042 if (PyErr_Occurred()) SWIG_fail;
6043 }
6044 {
6045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6046 }
6047 return resultobj;
6048 fail:
6049 return NULL;
6050 }
6051
6052
6053 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6054 PyObject *resultobj = 0;
6055 wxBrush *arg1 = (wxBrush *) 0 ;
6056 bool result;
6057 void *argp1 = 0 ;
6058 int res1 = 0 ;
6059 PyObject *swig_obj[1] ;
6060
6061 if (!args) SWIG_fail;
6062 swig_obj[0] = args;
6063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6064 if (!SWIG_IsOK(res1)) {
6065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
6066 }
6067 arg1 = reinterpret_cast< wxBrush * >(argp1);
6068 {
6069 PyThreadState* __tstate = wxPyBeginAllowThreads();
6070 result = (bool)(arg1)->IsOk();
6071 wxPyEndAllowThreads(__tstate);
6072 if (PyErr_Occurred()) SWIG_fail;
6073 }
6074 {
6075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6076 }
6077 return resultobj;
6078 fail:
6079 return NULL;
6080 }
6081
6082
6083 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6084 PyObject *obj;
6085 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6086 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6087 return SWIG_Py_Void();
6088 }
6089
6090 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6091 return SWIG_Python_InitShadowInstance(args);
6092 }
6093
6094 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6095 PyObject *resultobj = 0;
6096 wxString *arg1 = 0 ;
6097 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6098 wxBitmap *result = 0 ;
6099 bool temp1 = false ;
6100 int val2 ;
6101 int ecode2 = 0 ;
6102 PyObject * obj0 = 0 ;
6103 PyObject * obj1 = 0 ;
6104 char * kwnames[] = {
6105 (char *) "name",(char *) "type", NULL
6106 };
6107
6108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6109 {
6110 arg1 = wxString_in_helper(obj0);
6111 if (arg1 == NULL) SWIG_fail;
6112 temp1 = true;
6113 }
6114 if (obj1) {
6115 ecode2 = SWIG_AsVal_int(obj1, &val2);
6116 if (!SWIG_IsOK(ecode2)) {
6117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6118 }
6119 arg2 = static_cast< wxBitmapType >(val2);
6120 }
6121 {
6122 if (!wxPyCheckForApp()) SWIG_fail;
6123 PyThreadState* __tstate = wxPyBeginAllowThreads();
6124 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6125 wxPyEndAllowThreads(__tstate);
6126 if (PyErr_Occurred()) SWIG_fail;
6127 }
6128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6129 {
6130 if (temp1)
6131 delete arg1;
6132 }
6133 return resultobj;
6134 fail:
6135 {
6136 if (temp1)
6137 delete arg1;
6138 }
6139 return NULL;
6140 }
6141
6142
6143 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6144 PyObject *resultobj = 0;
6145 wxBitmap *arg1 = (wxBitmap *) 0 ;
6146 void *argp1 = 0 ;
6147 int res1 = 0 ;
6148 PyObject *swig_obj[1] ;
6149
6150 if (!args) SWIG_fail;
6151 swig_obj[0] = args;
6152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6153 if (!SWIG_IsOK(res1)) {
6154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6155 }
6156 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6157 {
6158 delete arg1;
6159
6160 if (PyErr_Occurred()) SWIG_fail;
6161 }
6162 resultobj = SWIG_Py_Void();
6163 return resultobj;
6164 fail:
6165 return NULL;
6166 }
6167
6168
6169 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6170 PyObject *resultobj = 0;
6171 int arg1 ;
6172 int arg2 ;
6173 int arg3 = (int) -1 ;
6174 wxBitmap *result = 0 ;
6175 int val1 ;
6176 int ecode1 = 0 ;
6177 int val2 ;
6178 int ecode2 = 0 ;
6179 int val3 ;
6180 int ecode3 = 0 ;
6181 PyObject * obj0 = 0 ;
6182 PyObject * obj1 = 0 ;
6183 PyObject * obj2 = 0 ;
6184 char * kwnames[] = {
6185 (char *) "width",(char *) "height",(char *) "depth", NULL
6186 };
6187
6188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6189 ecode1 = SWIG_AsVal_int(obj0, &val1);
6190 if (!SWIG_IsOK(ecode1)) {
6191 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6192 }
6193 arg1 = static_cast< int >(val1);
6194 ecode2 = SWIG_AsVal_int(obj1, &val2);
6195 if (!SWIG_IsOK(ecode2)) {
6196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6197 }
6198 arg2 = static_cast< int >(val2);
6199 if (obj2) {
6200 ecode3 = SWIG_AsVal_int(obj2, &val3);
6201 if (!SWIG_IsOK(ecode3)) {
6202 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6203 }
6204 arg3 = static_cast< int >(val3);
6205 }
6206 {
6207 if (!wxPyCheckForApp()) SWIG_fail;
6208 PyThreadState* __tstate = wxPyBeginAllowThreads();
6209 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6210 wxPyEndAllowThreads(__tstate);
6211 if (PyErr_Occurred()) SWIG_fail;
6212 }
6213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6214 return resultobj;
6215 fail:
6216 return NULL;
6217 }
6218
6219
6220 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6221 PyObject *resultobj = 0;
6222 wxIcon *arg1 = 0 ;
6223 wxBitmap *result = 0 ;
6224 void *argp1 = 0 ;
6225 int res1 = 0 ;
6226 PyObject * obj0 = 0 ;
6227 char * kwnames[] = {
6228 (char *) "icon", NULL
6229 };
6230
6231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6232 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6233 if (!SWIG_IsOK(res1)) {
6234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6235 }
6236 if (!argp1) {
6237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6238 }
6239 arg1 = reinterpret_cast< wxIcon * >(argp1);
6240 {
6241 if (!wxPyCheckForApp()) SWIG_fail;
6242 PyThreadState* __tstate = wxPyBeginAllowThreads();
6243 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6244 wxPyEndAllowThreads(__tstate);
6245 if (PyErr_Occurred()) SWIG_fail;
6246 }
6247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6248 return resultobj;
6249 fail:
6250 return NULL;
6251 }
6252
6253
6254 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6255 PyObject *resultobj = 0;
6256 wxImage *arg1 = 0 ;
6257 int arg2 = (int) -1 ;
6258 wxBitmap *result = 0 ;
6259 void *argp1 = 0 ;
6260 int res1 = 0 ;
6261 int val2 ;
6262 int ecode2 = 0 ;
6263 PyObject * obj0 = 0 ;
6264 PyObject * obj1 = 0 ;
6265 char * kwnames[] = {
6266 (char *) "image",(char *) "depth", NULL
6267 };
6268
6269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6270 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6271 if (!SWIG_IsOK(res1)) {
6272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6273 }
6274 if (!argp1) {
6275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6276 }
6277 arg1 = reinterpret_cast< wxImage * >(argp1);
6278 if (obj1) {
6279 ecode2 = SWIG_AsVal_int(obj1, &val2);
6280 if (!SWIG_IsOK(ecode2)) {
6281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6282 }
6283 arg2 = static_cast< int >(val2);
6284 }
6285 {
6286 if (!wxPyCheckForApp()) SWIG_fail;
6287 PyThreadState* __tstate = wxPyBeginAllowThreads();
6288 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6289 wxPyEndAllowThreads(__tstate);
6290 if (PyErr_Occurred()) SWIG_fail;
6291 }
6292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6293 return resultobj;
6294 fail:
6295 return NULL;
6296 }
6297
6298
6299 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6300 PyObject *resultobj = 0;
6301 PyObject *arg1 = (PyObject *) 0 ;
6302 wxBitmap *result = 0 ;
6303 PyObject * obj0 = 0 ;
6304 char * kwnames[] = {
6305 (char *) "listOfStrings", NULL
6306 };
6307
6308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6309 arg1 = obj0;
6310 {
6311 if (!wxPyCheckForApp()) SWIG_fail;
6312 PyThreadState* __tstate = wxPyBeginAllowThreads();
6313 result = (wxBitmap *)new_wxBitmap(arg1);
6314 wxPyEndAllowThreads(__tstate);
6315 if (PyErr_Occurred()) SWIG_fail;
6316 }
6317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6318 return resultobj;
6319 fail:
6320 return NULL;
6321 }
6322
6323
6324 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6325 PyObject *resultobj = 0;
6326 PyObject *arg1 = (PyObject *) 0 ;
6327 int arg2 ;
6328 int arg3 ;
6329 int arg4 = (int) 1 ;
6330 wxBitmap *result = 0 ;
6331 int val2 ;
6332 int ecode2 = 0 ;
6333 int val3 ;
6334 int ecode3 = 0 ;
6335 int val4 ;
6336 int ecode4 = 0 ;
6337 PyObject * obj0 = 0 ;
6338 PyObject * obj1 = 0 ;
6339 PyObject * obj2 = 0 ;
6340 PyObject * obj3 = 0 ;
6341 char * kwnames[] = {
6342 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6343 };
6344
6345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6346 arg1 = obj0;
6347 ecode2 = SWIG_AsVal_int(obj1, &val2);
6348 if (!SWIG_IsOK(ecode2)) {
6349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6350 }
6351 arg2 = static_cast< int >(val2);
6352 ecode3 = SWIG_AsVal_int(obj2, &val3);
6353 if (!SWIG_IsOK(ecode3)) {
6354 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6355 }
6356 arg3 = static_cast< int >(val3);
6357 if (obj3) {
6358 ecode4 = SWIG_AsVal_int(obj3, &val4);
6359 if (!SWIG_IsOK(ecode4)) {
6360 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6361 }
6362 arg4 = static_cast< int >(val4);
6363 }
6364 {
6365 if (!wxPyCheckForApp()) SWIG_fail;
6366 PyThreadState* __tstate = wxPyBeginAllowThreads();
6367 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6368 wxPyEndAllowThreads(__tstate);
6369 if (PyErr_Occurred()) SWIG_fail;
6370 }
6371 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6372 return resultobj;
6373 fail:
6374 return NULL;
6375 }
6376
6377
6378 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6379 PyObject *resultobj = 0;
6380 wxBitmap *arg1 = (wxBitmap *) 0 ;
6381 bool result;
6382 void *argp1 = 0 ;
6383 int res1 = 0 ;
6384 PyObject *swig_obj[1] ;
6385
6386 if (!args) SWIG_fail;
6387 swig_obj[0] = args;
6388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6389 if (!SWIG_IsOK(res1)) {
6390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6391 }
6392 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6393 {
6394 result = (bool)(arg1)->IsOk();
6395 if (PyErr_Occurred()) SWIG_fail;
6396 }
6397 {
6398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6399 }
6400 return resultobj;
6401 fail:
6402 return NULL;
6403 }
6404
6405
6406 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6407 PyObject *resultobj = 0;
6408 wxBitmap *arg1 = (wxBitmap *) 0 ;
6409 int result;
6410 void *argp1 = 0 ;
6411 int res1 = 0 ;
6412 PyObject *swig_obj[1] ;
6413
6414 if (!args) SWIG_fail;
6415 swig_obj[0] = args;
6416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6417 if (!SWIG_IsOK(res1)) {
6418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6419 }
6420 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6421 {
6422 result = (int)(arg1)->GetWidth();
6423 if (PyErr_Occurred()) SWIG_fail;
6424 }
6425 resultobj = SWIG_From_int(static_cast< int >(result));
6426 return resultobj;
6427 fail:
6428 return NULL;
6429 }
6430
6431
6432 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6433 PyObject *resultobj = 0;
6434 wxBitmap *arg1 = (wxBitmap *) 0 ;
6435 int result;
6436 void *argp1 = 0 ;
6437 int res1 = 0 ;
6438 PyObject *swig_obj[1] ;
6439
6440 if (!args) SWIG_fail;
6441 swig_obj[0] = args;
6442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6443 if (!SWIG_IsOK(res1)) {
6444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6445 }
6446 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6447 {
6448 result = (int)(arg1)->GetHeight();
6449 if (PyErr_Occurred()) SWIG_fail;
6450 }
6451 resultobj = SWIG_From_int(static_cast< int >(result));
6452 return resultobj;
6453 fail:
6454 return NULL;
6455 }
6456
6457
6458 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6459 PyObject *resultobj = 0;
6460 wxBitmap *arg1 = (wxBitmap *) 0 ;
6461 int result;
6462 void *argp1 = 0 ;
6463 int res1 = 0 ;
6464 PyObject *swig_obj[1] ;
6465
6466 if (!args) SWIG_fail;
6467 swig_obj[0] = args;
6468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6469 if (!SWIG_IsOK(res1)) {
6470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6471 }
6472 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6473 {
6474 result = (int)(arg1)->GetDepth();
6475 if (PyErr_Occurred()) SWIG_fail;
6476 }
6477 resultobj = SWIG_From_int(static_cast< int >(result));
6478 return resultobj;
6479 fail:
6480 return NULL;
6481 }
6482
6483
6484 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6485 PyObject *resultobj = 0;
6486 wxBitmap *arg1 = (wxBitmap *) 0 ;
6487 wxSize result;
6488 void *argp1 = 0 ;
6489 int res1 = 0 ;
6490 PyObject *swig_obj[1] ;
6491
6492 if (!args) SWIG_fail;
6493 swig_obj[0] = args;
6494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6495 if (!SWIG_IsOK(res1)) {
6496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6497 }
6498 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6499 {
6500 result = wxBitmap_GetSize(arg1);
6501 if (PyErr_Occurred()) SWIG_fail;
6502 }
6503 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6504 return resultobj;
6505 fail:
6506 return NULL;
6507 }
6508
6509
6510 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6511 PyObject *resultobj = 0;
6512 wxBitmap *arg1 = (wxBitmap *) 0 ;
6513 SwigValueWrapper<wxImage > result;
6514 void *argp1 = 0 ;
6515 int res1 = 0 ;
6516 PyObject *swig_obj[1] ;
6517
6518 if (!args) SWIG_fail;
6519 swig_obj[0] = args;
6520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6521 if (!SWIG_IsOK(res1)) {
6522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6523 }
6524 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6525 {
6526 result = ((wxBitmap const *)arg1)->ConvertToImage();
6527 if (PyErr_Occurred()) SWIG_fail;
6528 }
6529 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6530 return resultobj;
6531 fail:
6532 return NULL;
6533 }
6534
6535
6536 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6537 PyObject *resultobj = 0;
6538 wxBitmap *arg1 = (wxBitmap *) 0 ;
6539 wxMask *result = 0 ;
6540 void *argp1 = 0 ;
6541 int res1 = 0 ;
6542 PyObject *swig_obj[1] ;
6543
6544 if (!args) SWIG_fail;
6545 swig_obj[0] = args;
6546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6547 if (!SWIG_IsOK(res1)) {
6548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6549 }
6550 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6551 {
6552 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6553 if (PyErr_Occurred()) SWIG_fail;
6554 }
6555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6556 return resultobj;
6557 fail:
6558 return NULL;
6559 }
6560
6561
6562 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6563 PyObject *resultobj = 0;
6564 wxBitmap *arg1 = (wxBitmap *) 0 ;
6565 wxMask *arg2 = (wxMask *) 0 ;
6566 void *argp1 = 0 ;
6567 int res1 = 0 ;
6568 int res2 = 0 ;
6569 PyObject * obj0 = 0 ;
6570 PyObject * obj1 = 0 ;
6571 char * kwnames[] = {
6572 (char *) "self",(char *) "mask", NULL
6573 };
6574
6575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6577 if (!SWIG_IsOK(res1)) {
6578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6579 }
6580 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6581 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6582 if (!SWIG_IsOK(res2)) {
6583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6584 }
6585 {
6586 (arg1)->SetMask(arg2);
6587 if (PyErr_Occurred()) SWIG_fail;
6588 }
6589 resultobj = SWIG_Py_Void();
6590 return resultobj;
6591 fail:
6592 return NULL;
6593 }
6594
6595
6596 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6597 PyObject *resultobj = 0;
6598 wxBitmap *arg1 = (wxBitmap *) 0 ;
6599 wxColour *arg2 = 0 ;
6600 void *argp1 = 0 ;
6601 int res1 = 0 ;
6602 wxColour temp2 ;
6603 PyObject * obj0 = 0 ;
6604 PyObject * obj1 = 0 ;
6605 char * kwnames[] = {
6606 (char *) "self",(char *) "colour", NULL
6607 };
6608
6609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6611 if (!SWIG_IsOK(res1)) {
6612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6613 }
6614 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6615 {
6616 arg2 = &temp2;
6617 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6618 }
6619 {
6620 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6621 if (PyErr_Occurred()) SWIG_fail;
6622 }
6623 resultobj = SWIG_Py_Void();
6624 return resultobj;
6625 fail:
6626 return NULL;
6627 }
6628
6629
6630 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6631 PyObject *resultobj = 0;
6632 wxBitmap *arg1 = (wxBitmap *) 0 ;
6633 wxRect *arg2 = 0 ;
6634 SwigValueWrapper<wxBitmap > result;
6635 void *argp1 = 0 ;
6636 int res1 = 0 ;
6637 wxRect temp2 ;
6638 PyObject * obj0 = 0 ;
6639 PyObject * obj1 = 0 ;
6640 char * kwnames[] = {
6641 (char *) "self",(char *) "rect", NULL
6642 };
6643
6644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6646 if (!SWIG_IsOK(res1)) {
6647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6648 }
6649 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6650 {
6651 arg2 = &temp2;
6652 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6653 }
6654 {
6655 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6656 if (PyErr_Occurred()) SWIG_fail;
6657 }
6658 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6659 return resultobj;
6660 fail:
6661 return NULL;
6662 }
6663
6664
6665 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6666 PyObject *resultobj = 0;
6667 wxBitmap *arg1 = (wxBitmap *) 0 ;
6668 wxString *arg2 = 0 ;
6669 wxBitmapType arg3 ;
6670 wxPalette *arg4 = (wxPalette *) NULL ;
6671 bool result;
6672 void *argp1 = 0 ;
6673 int res1 = 0 ;
6674 bool temp2 = false ;
6675 int val3 ;
6676 int ecode3 = 0 ;
6677 void *argp4 = 0 ;
6678 int res4 = 0 ;
6679 PyObject * obj0 = 0 ;
6680 PyObject * obj1 = 0 ;
6681 PyObject * obj2 = 0 ;
6682 PyObject * obj3 = 0 ;
6683 char * kwnames[] = {
6684 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6685 };
6686
6687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6689 if (!SWIG_IsOK(res1)) {
6690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6691 }
6692 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6693 {
6694 arg2 = wxString_in_helper(obj1);
6695 if (arg2 == NULL) SWIG_fail;
6696 temp2 = true;
6697 }
6698 ecode3 = SWIG_AsVal_int(obj2, &val3);
6699 if (!SWIG_IsOK(ecode3)) {
6700 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6701 }
6702 arg3 = static_cast< wxBitmapType >(val3);
6703 if (obj3) {
6704 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6705 if (!SWIG_IsOK(res4)) {
6706 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6707 }
6708 arg4 = reinterpret_cast< wxPalette * >(argp4);
6709 }
6710 {
6711 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6712 if (PyErr_Occurred()) SWIG_fail;
6713 }
6714 {
6715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6716 }
6717 {
6718 if (temp2)
6719 delete arg2;
6720 }
6721 return resultobj;
6722 fail:
6723 {
6724 if (temp2)
6725 delete arg2;
6726 }
6727 return NULL;
6728 }
6729
6730
6731 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6732 PyObject *resultobj = 0;
6733 wxBitmap *arg1 = (wxBitmap *) 0 ;
6734 wxString *arg2 = 0 ;
6735 wxBitmapType arg3 ;
6736 bool result;
6737 void *argp1 = 0 ;
6738 int res1 = 0 ;
6739 bool temp2 = false ;
6740 int val3 ;
6741 int ecode3 = 0 ;
6742 PyObject * obj0 = 0 ;
6743 PyObject * obj1 = 0 ;
6744 PyObject * obj2 = 0 ;
6745 char * kwnames[] = {
6746 (char *) "self",(char *) "name",(char *) "type", NULL
6747 };
6748
6749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6751 if (!SWIG_IsOK(res1)) {
6752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6753 }
6754 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6755 {
6756 arg2 = wxString_in_helper(obj1);
6757 if (arg2 == NULL) SWIG_fail;
6758 temp2 = true;
6759 }
6760 ecode3 = SWIG_AsVal_int(obj2, &val3);
6761 if (!SWIG_IsOK(ecode3)) {
6762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6763 }
6764 arg3 = static_cast< wxBitmapType >(val3);
6765 {
6766 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6767 if (PyErr_Occurred()) SWIG_fail;
6768 }
6769 {
6770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6771 }
6772 {
6773 if (temp2)
6774 delete arg2;
6775 }
6776 return resultobj;
6777 fail:
6778 {
6779 if (temp2)
6780 delete arg2;
6781 }
6782 return NULL;
6783 }
6784
6785
6786 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6787 PyObject *resultobj = 0;
6788 wxBitmap *arg1 = (wxBitmap *) 0 ;
6789 wxPalette *result = 0 ;
6790 void *argp1 = 0 ;
6791 int res1 = 0 ;
6792 PyObject *swig_obj[1] ;
6793
6794 if (!args) SWIG_fail;
6795 swig_obj[0] = args;
6796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6797 if (!SWIG_IsOK(res1)) {
6798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6799 }
6800 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6801 {
6802 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6803 if (PyErr_Occurred()) SWIG_fail;
6804 }
6805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6806 return resultobj;
6807 fail:
6808 return NULL;
6809 }
6810
6811
6812 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6813 PyObject *resultobj = 0;
6814 wxBitmap *arg1 = (wxBitmap *) 0 ;
6815 wxIcon *arg2 = 0 ;
6816 bool result;
6817 void *argp1 = 0 ;
6818 int res1 = 0 ;
6819 void *argp2 = 0 ;
6820 int res2 = 0 ;
6821 PyObject * obj0 = 0 ;
6822 PyObject * obj1 = 0 ;
6823 char * kwnames[] = {
6824 (char *) "self",(char *) "icon", NULL
6825 };
6826
6827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6829 if (!SWIG_IsOK(res1)) {
6830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6831 }
6832 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6833 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6834 if (!SWIG_IsOK(res2)) {
6835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6836 }
6837 if (!argp2) {
6838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6839 }
6840 arg2 = reinterpret_cast< wxIcon * >(argp2);
6841 {
6842 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6843 if (PyErr_Occurred()) SWIG_fail;
6844 }
6845 {
6846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6847 }
6848 return resultobj;
6849 fail:
6850 return NULL;
6851 }
6852
6853
6854 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6855 PyObject *resultobj = 0;
6856 wxBitmap *arg1 = (wxBitmap *) 0 ;
6857 int arg2 ;
6858 void *argp1 = 0 ;
6859 int res1 = 0 ;
6860 int val2 ;
6861 int ecode2 = 0 ;
6862 PyObject * obj0 = 0 ;
6863 PyObject * obj1 = 0 ;
6864 char * kwnames[] = {
6865 (char *) "self",(char *) "height", NULL
6866 };
6867
6868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6870 if (!SWIG_IsOK(res1)) {
6871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6872 }
6873 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6874 ecode2 = SWIG_AsVal_int(obj1, &val2);
6875 if (!SWIG_IsOK(ecode2)) {
6876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6877 }
6878 arg2 = static_cast< int >(val2);
6879 {
6880 (arg1)->SetHeight(arg2);
6881 if (PyErr_Occurred()) SWIG_fail;
6882 }
6883 resultobj = SWIG_Py_Void();
6884 return resultobj;
6885 fail:
6886 return NULL;
6887 }
6888
6889
6890 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6891 PyObject *resultobj = 0;
6892 wxBitmap *arg1 = (wxBitmap *) 0 ;
6893 int arg2 ;
6894 void *argp1 = 0 ;
6895 int res1 = 0 ;
6896 int val2 ;
6897 int ecode2 = 0 ;
6898 PyObject * obj0 = 0 ;
6899 PyObject * obj1 = 0 ;
6900 char * kwnames[] = {
6901 (char *) "self",(char *) "width", NULL
6902 };
6903
6904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6906 if (!SWIG_IsOK(res1)) {
6907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6908 }
6909 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6910 ecode2 = SWIG_AsVal_int(obj1, &val2);
6911 if (!SWIG_IsOK(ecode2)) {
6912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6913 }
6914 arg2 = static_cast< int >(val2);
6915 {
6916 (arg1)->SetWidth(arg2);
6917 if (PyErr_Occurred()) SWIG_fail;
6918 }
6919 resultobj = SWIG_Py_Void();
6920 return resultobj;
6921 fail:
6922 return NULL;
6923 }
6924
6925
6926 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6927 PyObject *resultobj = 0;
6928 wxBitmap *arg1 = (wxBitmap *) 0 ;
6929 int arg2 ;
6930 void *argp1 = 0 ;
6931 int res1 = 0 ;
6932 int val2 ;
6933 int ecode2 = 0 ;
6934 PyObject * obj0 = 0 ;
6935 PyObject * obj1 = 0 ;
6936 char * kwnames[] = {
6937 (char *) "self",(char *) "depth", NULL
6938 };
6939
6940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6942 if (!SWIG_IsOK(res1)) {
6943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6944 }
6945 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6946 ecode2 = SWIG_AsVal_int(obj1, &val2);
6947 if (!SWIG_IsOK(ecode2)) {
6948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6949 }
6950 arg2 = static_cast< int >(val2);
6951 {
6952 (arg1)->SetDepth(arg2);
6953 if (PyErr_Occurred()) SWIG_fail;
6954 }
6955 resultobj = SWIG_Py_Void();
6956 return resultobj;
6957 fail:
6958 return NULL;
6959 }
6960
6961
6962 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6963 PyObject *resultobj = 0;
6964 wxBitmap *arg1 = (wxBitmap *) 0 ;
6965 wxSize *arg2 = 0 ;
6966 void *argp1 = 0 ;
6967 int res1 = 0 ;
6968 wxSize temp2 ;
6969 PyObject * obj0 = 0 ;
6970 PyObject * obj1 = 0 ;
6971 char * kwnames[] = {
6972 (char *) "self",(char *) "size", NULL
6973 };
6974
6975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6977 if (!SWIG_IsOK(res1)) {
6978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6979 }
6980 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6981 {
6982 arg2 = &temp2;
6983 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6984 }
6985 {
6986 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6987 if (PyErr_Occurred()) SWIG_fail;
6988 }
6989 resultobj = SWIG_Py_Void();
6990 return resultobj;
6991 fail:
6992 return NULL;
6993 }
6994
6995
6996 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6997 PyObject *resultobj = 0;
6998 wxBitmap *arg1 = (wxBitmap *) 0 ;
6999 buffer arg2 ;
7000 int arg3 ;
7001 void *argp1 = 0 ;
7002 int res1 = 0 ;
7003 Py_ssize_t temp2 ;
7004 PyObject * obj0 = 0 ;
7005 PyObject * obj1 = 0 ;
7006 char * kwnames[] = {
7007 (char *) "self",(char *) "data", NULL
7008 };
7009
7010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7012 if (!SWIG_IsOK(res1)) {
7013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7014 }
7015 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7016 {
7017 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7018 arg3 = (int)temp2;
7019 }
7020 {
7021 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7022 if (PyErr_Occurred()) SWIG_fail;
7023 }
7024 resultobj = SWIG_Py_Void();
7025 return resultobj;
7026 fail:
7027 return NULL;
7028 }
7029
7030
7031 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7032 PyObject *resultobj = 0;
7033 wxBitmap *arg1 = (wxBitmap *) 0 ;
7034 buffer arg2 ;
7035 int arg3 ;
7036 void *argp1 = 0 ;
7037 int res1 = 0 ;
7038 Py_ssize_t temp2 ;
7039 PyObject * obj0 = 0 ;
7040 PyObject * obj1 = 0 ;
7041 char * kwnames[] = {
7042 (char *) "self",(char *) "data", NULL
7043 };
7044
7045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7047 if (!SWIG_IsOK(res1)) {
7048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7049 }
7050 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7051 {
7052 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7053 arg3 = (int)temp2;
7054 }
7055 {
7056 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7057 if (PyErr_Occurred()) SWIG_fail;
7058 }
7059 resultobj = SWIG_Py_Void();
7060 return resultobj;
7061 fail:
7062 return NULL;
7063 }
7064
7065
7066 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7067 PyObject *resultobj = 0;
7068 wxBitmap *arg1 = (wxBitmap *) 0 ;
7069 wxBitmap *arg2 = (wxBitmap *) 0 ;
7070 bool result;
7071 void *argp1 = 0 ;
7072 int res1 = 0 ;
7073 void *argp2 = 0 ;
7074 int res2 = 0 ;
7075 PyObject * obj0 = 0 ;
7076 PyObject * obj1 = 0 ;
7077 char * kwnames[] = {
7078 (char *) "self",(char *) "other", NULL
7079 };
7080
7081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7083 if (!SWIG_IsOK(res1)) {
7084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7085 }
7086 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7087 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7088 if (!SWIG_IsOK(res2)) {
7089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7090 }
7091 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7092 {
7093 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
7094 if (PyErr_Occurred()) SWIG_fail;
7095 }
7096 {
7097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7098 }
7099 return resultobj;
7100 fail:
7101 return NULL;
7102 }
7103
7104
7105 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7106 PyObject *resultobj = 0;
7107 wxBitmap *arg1 = (wxBitmap *) 0 ;
7108 wxBitmap *arg2 = (wxBitmap *) 0 ;
7109 bool result;
7110 void *argp1 = 0 ;
7111 int res1 = 0 ;
7112 void *argp2 = 0 ;
7113 int res2 = 0 ;
7114 PyObject * obj0 = 0 ;
7115 PyObject * obj1 = 0 ;
7116 char * kwnames[] = {
7117 (char *) "self",(char *) "other", NULL
7118 };
7119
7120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7122 if (!SWIG_IsOK(res1)) {
7123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7124 }
7125 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7126 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7127 if (!SWIG_IsOK(res2)) {
7128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7129 }
7130 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7131 {
7132 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7133 if (PyErr_Occurred()) SWIG_fail;
7134 }
7135 {
7136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7137 }
7138 return resultobj;
7139 fail:
7140 return NULL;
7141 }
7142
7143
7144 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7145 PyObject *obj;
7146 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7147 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7148 return SWIG_Py_Void();
7149 }
7150
7151 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7152 return SWIG_Python_InitShadowInstance(args);
7153 }
7154
7155 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7156 PyObject *resultobj = 0;
7157 int arg1 ;
7158 int arg2 ;
7159 buffer arg3 ;
7160 int arg4 ;
7161 buffer arg5 ;
7162 int arg6 ;
7163 wxBitmap *result = 0 ;
7164 int val1 ;
7165 int ecode1 = 0 ;
7166 int val2 ;
7167 int ecode2 = 0 ;
7168 Py_ssize_t temp3 ;
7169 Py_ssize_t temp5 ;
7170 PyObject * obj0 = 0 ;
7171 PyObject * obj1 = 0 ;
7172 PyObject * obj2 = 0 ;
7173 PyObject * obj3 = 0 ;
7174 char * kwnames[] = {
7175 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7176 };
7177
7178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7179 ecode1 = SWIG_AsVal_int(obj0, &val1);
7180 if (!SWIG_IsOK(ecode1)) {
7181 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7182 }
7183 arg1 = static_cast< int >(val1);
7184 ecode2 = SWIG_AsVal_int(obj1, &val2);
7185 if (!SWIG_IsOK(ecode2)) {
7186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7187 }
7188 arg2 = static_cast< int >(val2);
7189 {
7190 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7191 arg4 = (int)temp3;
7192 }
7193 {
7194 if (obj3 != Py_None) {
7195 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7196 arg6 = (int)temp5;
7197 }
7198 }
7199 {
7200 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7201 if (PyErr_Occurred()) SWIG_fail;
7202 }
7203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7204 return resultobj;
7205 fail:
7206 return NULL;
7207 }
7208
7209
7210 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7211 PyObject *resultobj = 0;
7212 int arg1 ;
7213 int arg2 ;
7214 buffer arg3 ;
7215 int arg4 ;
7216 wxBitmap *result = 0 ;
7217 int val1 ;
7218 int ecode1 = 0 ;
7219 int val2 ;
7220 int ecode2 = 0 ;
7221 Py_ssize_t temp3 ;
7222 PyObject * obj0 = 0 ;
7223 PyObject * obj1 = 0 ;
7224 PyObject * obj2 = 0 ;
7225 char * kwnames[] = {
7226 (char *) "width",(char *) "height",(char *) "data", NULL
7227 };
7228
7229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7230 ecode1 = SWIG_AsVal_int(obj0, &val1);
7231 if (!SWIG_IsOK(ecode1)) {
7232 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7233 }
7234 arg1 = static_cast< int >(val1);
7235 ecode2 = SWIG_AsVal_int(obj1, &val2);
7236 if (!SWIG_IsOK(ecode2)) {
7237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7238 }
7239 arg2 = static_cast< int >(val2);
7240 {
7241 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7242 arg4 = (int)temp3;
7243 }
7244 {
7245 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7246 if (PyErr_Occurred()) SWIG_fail;
7247 }
7248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7249 return resultobj;
7250 fail:
7251 return NULL;
7252 }
7253
7254
7255 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7256 PyObject *resultobj = 0;
7257 int arg1 ;
7258 int arg2 ;
7259 buffer arg3 ;
7260 int arg4 ;
7261 wxBitmap *result = 0 ;
7262 int val1 ;
7263 int ecode1 = 0 ;
7264 int val2 ;
7265 int ecode2 = 0 ;
7266 Py_ssize_t temp3 ;
7267 PyObject * obj0 = 0 ;
7268 PyObject * obj1 = 0 ;
7269 PyObject * obj2 = 0 ;
7270 char * kwnames[] = {
7271 (char *) "width",(char *) "height",(char *) "data", NULL
7272 };
7273
7274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7275 ecode1 = SWIG_AsVal_int(obj0, &val1);
7276 if (!SWIG_IsOK(ecode1)) {
7277 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7278 }
7279 arg1 = static_cast< int >(val1);
7280 ecode2 = SWIG_AsVal_int(obj1, &val2);
7281 if (!SWIG_IsOK(ecode2)) {
7282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7283 }
7284 arg2 = static_cast< int >(val2);
7285 {
7286 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7287 arg4 = (int)temp3;
7288 }
7289 {
7290 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7291 if (PyErr_Occurred()) SWIG_fail;
7292 }
7293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7294 return resultobj;
7295 fail:
7296 return NULL;
7297 }
7298
7299
7300 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7301 PyObject *resultobj = 0;
7302 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7303 wxPoint result;
7304 void *argp1 = 0 ;
7305 int res1 = 0 ;
7306 PyObject *swig_obj[1] ;
7307
7308 if (!args) SWIG_fail;
7309 swig_obj[0] = args;
7310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7311 if (!SWIG_IsOK(res1)) {
7312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7313 }
7314 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7315 {
7316 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7317 if (PyErr_Occurred()) SWIG_fail;
7318 }
7319 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7320 return resultobj;
7321 fail:
7322 return NULL;
7323 }
7324
7325
7326 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7327 PyObject *resultobj = 0;
7328 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7329 int result;
7330 void *argp1 = 0 ;
7331 int res1 = 0 ;
7332 PyObject *swig_obj[1] ;
7333
7334 if (!args) SWIG_fail;
7335 swig_obj[0] = args;
7336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7337 if (!SWIG_IsOK(res1)) {
7338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7339 }
7340 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7341 {
7342 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7343 if (PyErr_Occurred()) SWIG_fail;
7344 }
7345 resultobj = SWIG_From_int(static_cast< int >(result));
7346 return resultobj;
7347 fail:
7348 return NULL;
7349 }
7350
7351
7352 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7353 PyObject *resultobj = 0;
7354 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7355 int result;
7356 void *argp1 = 0 ;
7357 int res1 = 0 ;
7358 PyObject *swig_obj[1] ;
7359
7360 if (!args) SWIG_fail;
7361 swig_obj[0] = args;
7362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7363 if (!SWIG_IsOK(res1)) {
7364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7365 }
7366 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7367 {
7368 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7369 if (PyErr_Occurred()) SWIG_fail;
7370 }
7371 resultobj = SWIG_From_int(static_cast< int >(result));
7372 return resultobj;
7373 fail:
7374 return NULL;
7375 }
7376
7377
7378 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7379 PyObject *resultobj = 0;
7380 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7381 wxSize result;
7382 void *argp1 = 0 ;
7383 int res1 = 0 ;
7384 PyObject *swig_obj[1] ;
7385
7386 if (!args) SWIG_fail;
7387 swig_obj[0] = args;
7388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7389 if (!SWIG_IsOK(res1)) {
7390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7391 }
7392 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7393 {
7394 result = ((wxPixelDataBase const *)arg1)->GetSize();
7395 if (PyErr_Occurred()) SWIG_fail;
7396 }
7397 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7398 return resultobj;
7399 fail:
7400 return NULL;
7401 }
7402
7403
7404 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7405 PyObject *resultobj = 0;
7406 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7407 int result;
7408 void *argp1 = 0 ;
7409 int res1 = 0 ;
7410 PyObject *swig_obj[1] ;
7411
7412 if (!args) SWIG_fail;
7413 swig_obj[0] = args;
7414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7415 if (!SWIG_IsOK(res1)) {
7416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7417 }
7418 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7419 {
7420 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7421 if (PyErr_Occurred()) SWIG_fail;
7422 }
7423 resultobj = SWIG_From_int(static_cast< int >(result));
7424 return resultobj;
7425 fail:
7426 return NULL;
7427 }
7428
7429
7430 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7431 PyObject *obj;
7432 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7433 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7434 return SWIG_Py_Void();
7435 }
7436
7437 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7438 PyObject *resultobj = 0;
7439 wxBitmap *arg1 = 0 ;
7440 wxNativePixelData *result = 0 ;
7441 void *argp1 = 0 ;
7442 int res1 = 0 ;
7443
7444 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7446 if (!SWIG_IsOK(res1)) {
7447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7448 }
7449 if (!argp1) {
7450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7451 }
7452 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7453 {
7454 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7455 if (PyErr_Occurred()) SWIG_fail;
7456 }
7457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7458 return resultobj;
7459 fail:
7460 return NULL;
7461 }
7462
7463
7464 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7465 PyObject *resultobj = 0;
7466 wxBitmap *arg1 = 0 ;
7467 wxRect *arg2 = 0 ;
7468 wxNativePixelData *result = 0 ;
7469 void *argp1 = 0 ;
7470 int res1 = 0 ;
7471 wxRect temp2 ;
7472
7473 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7475 if (!SWIG_IsOK(res1)) {
7476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7477 }
7478 if (!argp1) {
7479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7480 }
7481 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7482 {
7483 arg2 = &temp2;
7484 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7485 }
7486 {
7487 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7488 if (PyErr_Occurred()) SWIG_fail;
7489 }
7490 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7491 return resultobj;
7492 fail:
7493 return NULL;
7494 }
7495
7496
7497 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7498 PyObject *resultobj = 0;
7499 wxBitmap *arg1 = 0 ;
7500 wxPoint *arg2 = 0 ;
7501 wxSize *arg3 = 0 ;
7502 wxNativePixelData *result = 0 ;
7503 void *argp1 = 0 ;
7504 int res1 = 0 ;
7505 wxPoint temp2 ;
7506 wxSize temp3 ;
7507
7508 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7510 if (!SWIG_IsOK(res1)) {
7511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7512 }
7513 if (!argp1) {
7514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7515 }
7516 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7517 {
7518 arg2 = &temp2;
7519 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7520 }
7521 {
7522 arg3 = &temp3;
7523 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7524 }
7525 {
7526 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7527 if (PyErr_Occurred()) SWIG_fail;
7528 }
7529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7530 return resultobj;
7531 fail:
7532 return NULL;
7533 }
7534
7535
7536 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7537 int argc;
7538 PyObject *argv[4];
7539
7540 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7541 --argc;
7542 if (argc == 1) {
7543 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7544 }
7545 if (argc == 2) {
7546 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7547 }
7548 if (argc == 3) {
7549 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7550 }
7551
7552 fail:
7553 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7554 return NULL;
7555 }
7556
7557
7558 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7559 PyObject *resultobj = 0;
7560 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7561 void *argp1 = 0 ;
7562 int res1 = 0 ;
7563 PyObject *swig_obj[1] ;
7564
7565 if (!args) SWIG_fail;
7566 swig_obj[0] = args;
7567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7568 if (!SWIG_IsOK(res1)) {
7569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7570 }
7571 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7572 {
7573 delete arg1;
7574
7575 if (PyErr_Occurred()) SWIG_fail;
7576 }
7577 resultobj = SWIG_Py_Void();
7578 return resultobj;
7579 fail:
7580 return NULL;
7581 }
7582
7583
7584 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7585 PyObject *resultobj = 0;
7586 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7587 wxNativePixelData_Accessor result;
7588 void *argp1 = 0 ;
7589 int res1 = 0 ;
7590 PyObject *swig_obj[1] ;
7591
7592 if (!args) SWIG_fail;
7593 swig_obj[0] = args;
7594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7595 if (!SWIG_IsOK(res1)) {
7596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7597 }
7598 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7599 {
7600 result = ((wxNativePixelData const *)arg1)->GetPixels();
7601 if (PyErr_Occurred()) SWIG_fail;
7602 }
7603 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7604 return resultobj;
7605 fail:
7606 return NULL;
7607 }
7608
7609
7610 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7611 PyObject *resultobj = 0;
7612 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7613 void *argp1 = 0 ;
7614 int res1 = 0 ;
7615 PyObject *swig_obj[1] ;
7616
7617 if (!args) SWIG_fail;
7618 swig_obj[0] = args;
7619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7620 if (!SWIG_IsOK(res1)) {
7621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7622 }
7623 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7624 {
7625 (arg1)->UseAlpha();
7626 if (PyErr_Occurred()) SWIG_fail;
7627 }
7628 resultobj = SWIG_Py_Void();
7629 return resultobj;
7630 fail:
7631 return NULL;
7632 }
7633
7634
7635 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7636 PyObject *resultobj = 0;
7637 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7638 bool result;
7639 void *argp1 = 0 ;
7640 int res1 = 0 ;
7641 PyObject *swig_obj[1] ;
7642
7643 if (!args) SWIG_fail;
7644 swig_obj[0] = args;
7645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7646 if (!SWIG_IsOK(res1)) {
7647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7648 }
7649 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7650 {
7651 result = (bool)wxNativePixelData___nonzero__(arg1);
7652 if (PyErr_Occurred()) SWIG_fail;
7653 }
7654 {
7655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7656 }
7657 return resultobj;
7658 fail:
7659 return NULL;
7660 }
7661
7662
7663 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7664 PyObject *obj;
7665 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7666 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7667 return SWIG_Py_Void();
7668 }
7669
7670 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7671 return SWIG_Python_InitShadowInstance(args);
7672 }
7673
7674 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7675 PyObject *resultobj = 0;
7676 wxNativePixelData *arg1 = 0 ;
7677 wxNativePixelData_Accessor *result = 0 ;
7678 void *argp1 = 0 ;
7679 int res1 = 0 ;
7680
7681 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7683 if (!SWIG_IsOK(res1)) {
7684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7685 }
7686 if (!argp1) {
7687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7688 }
7689 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7690 {
7691 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7692 if (PyErr_Occurred()) SWIG_fail;
7693 }
7694 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7695 return resultobj;
7696 fail:
7697 return NULL;
7698 }
7699
7700
7701 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7702 PyObject *resultobj = 0;
7703 wxBitmap *arg1 = 0 ;
7704 wxNativePixelData *arg2 = 0 ;
7705 wxNativePixelData_Accessor *result = 0 ;
7706 void *argp1 = 0 ;
7707 int res1 = 0 ;
7708 void *argp2 = 0 ;
7709 int res2 = 0 ;
7710
7711 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7713 if (!SWIG_IsOK(res1)) {
7714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7715 }
7716 if (!argp1) {
7717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7718 }
7719 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7720 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7721 if (!SWIG_IsOK(res2)) {
7722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7723 }
7724 if (!argp2) {
7725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7726 }
7727 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7728 {
7729 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7730 if (PyErr_Occurred()) SWIG_fail;
7731 }
7732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7733 return resultobj;
7734 fail:
7735 return NULL;
7736 }
7737
7738
7739 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7740 PyObject *resultobj = 0;
7741 wxNativePixelData_Accessor *result = 0 ;
7742
7743 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7744 {
7745 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7746 if (PyErr_Occurred()) SWIG_fail;
7747 }
7748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7749 return resultobj;
7750 fail:
7751 return NULL;
7752 }
7753
7754
7755 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7756 int argc;
7757 PyObject *argv[3];
7758
7759 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7760 --argc;
7761 if (argc == 0) {
7762 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7763 }
7764 if (argc == 1) {
7765 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7766 }
7767 if (argc == 2) {
7768 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7769 }
7770
7771 fail:
7772 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7773 return NULL;
7774 }
7775
7776
7777 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7778 PyObject *resultobj = 0;
7779 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7780 void *argp1 = 0 ;
7781 int res1 = 0 ;
7782 PyObject *swig_obj[1] ;
7783
7784 if (!args) SWIG_fail;
7785 swig_obj[0] = args;
7786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7787 if (!SWIG_IsOK(res1)) {
7788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7789 }
7790 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7791 {
7792 delete arg1;
7793
7794 if (PyErr_Occurred()) SWIG_fail;
7795 }
7796 resultobj = SWIG_Py_Void();
7797 return resultobj;
7798 fail:
7799 return NULL;
7800 }
7801
7802
7803 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7804 PyObject *resultobj = 0;
7805 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7806 wxNativePixelData *arg2 = 0 ;
7807 void *argp1 = 0 ;
7808 int res1 = 0 ;
7809 void *argp2 = 0 ;
7810 int res2 = 0 ;
7811 PyObject * obj0 = 0 ;
7812 PyObject * obj1 = 0 ;
7813 char * kwnames[] = {
7814 (char *) "self",(char *) "data", NULL
7815 };
7816
7817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7819 if (!SWIG_IsOK(res1)) {
7820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7821 }
7822 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7823 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7824 if (!SWIG_IsOK(res2)) {
7825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7826 }
7827 if (!argp2) {
7828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7829 }
7830 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7831 {
7832 (arg1)->Reset((wxNativePixelData const &)*arg2);
7833 if (PyErr_Occurred()) SWIG_fail;
7834 }
7835 resultobj = SWIG_Py_Void();
7836 return resultobj;
7837 fail:
7838 return NULL;
7839 }
7840
7841
7842 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7843 PyObject *resultobj = 0;
7844 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7845 bool result;
7846 void *argp1 = 0 ;
7847 int res1 = 0 ;
7848 PyObject *swig_obj[1] ;
7849
7850 if (!args) SWIG_fail;
7851 swig_obj[0] = args;
7852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7853 if (!SWIG_IsOK(res1)) {
7854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7855 }
7856 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7857 {
7858 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7859 if (PyErr_Occurred()) SWIG_fail;
7860 }
7861 {
7862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7863 }
7864 return resultobj;
7865 fail:
7866 return NULL;
7867 }
7868
7869
7870 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7871 PyObject *resultobj = 0;
7872 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7873 void *argp1 = 0 ;
7874 int res1 = 0 ;
7875 PyObject *swig_obj[1] ;
7876
7877 if (!args) SWIG_fail;
7878 swig_obj[0] = args;
7879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7880 if (!SWIG_IsOK(res1)) {
7881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7882 }
7883 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7884 {
7885 wxNativePixelData_Accessor_nextPixel(arg1);
7886 if (PyErr_Occurred()) SWIG_fail;
7887 }
7888 resultobj = SWIG_Py_Void();
7889 return resultobj;
7890 fail:
7891 return NULL;
7892 }
7893
7894
7895 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7896 PyObject *resultobj = 0;
7897 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7898 wxNativePixelData *arg2 = 0 ;
7899 int arg3 ;
7900 int arg4 ;
7901 void *argp1 = 0 ;
7902 int res1 = 0 ;
7903 void *argp2 = 0 ;
7904 int res2 = 0 ;
7905 int val3 ;
7906 int ecode3 = 0 ;
7907 int val4 ;
7908 int ecode4 = 0 ;
7909 PyObject * obj0 = 0 ;
7910 PyObject * obj1 = 0 ;
7911 PyObject * obj2 = 0 ;
7912 PyObject * obj3 = 0 ;
7913 char * kwnames[] = {
7914 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7915 };
7916
7917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7919 if (!SWIG_IsOK(res1)) {
7920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7921 }
7922 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7923 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7924 if (!SWIG_IsOK(res2)) {
7925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7926 }
7927 if (!argp2) {
7928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7929 }
7930 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7931 ecode3 = SWIG_AsVal_int(obj2, &val3);
7932 if (!SWIG_IsOK(ecode3)) {
7933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7934 }
7935 arg3 = static_cast< int >(val3);
7936 ecode4 = SWIG_AsVal_int(obj3, &val4);
7937 if (!SWIG_IsOK(ecode4)) {
7938 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7939 }
7940 arg4 = static_cast< int >(val4);
7941 {
7942 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7943 if (PyErr_Occurred()) SWIG_fail;
7944 }
7945 resultobj = SWIG_Py_Void();
7946 return resultobj;
7947 fail:
7948 return NULL;
7949 }
7950
7951
7952 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7953 PyObject *resultobj = 0;
7954 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7955 wxNativePixelData *arg2 = 0 ;
7956 int arg3 ;
7957 void *argp1 = 0 ;
7958 int res1 = 0 ;
7959 void *argp2 = 0 ;
7960 int res2 = 0 ;
7961 int val3 ;
7962 int ecode3 = 0 ;
7963 PyObject * obj0 = 0 ;
7964 PyObject * obj1 = 0 ;
7965 PyObject * obj2 = 0 ;
7966 char * kwnames[] = {
7967 (char *) "self",(char *) "data",(char *) "x", NULL
7968 };
7969
7970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7972 if (!SWIG_IsOK(res1)) {
7973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7974 }
7975 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7976 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7977 if (!SWIG_IsOK(res2)) {
7978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7979 }
7980 if (!argp2) {
7981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7982 }
7983 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7984 ecode3 = SWIG_AsVal_int(obj2, &val3);
7985 if (!SWIG_IsOK(ecode3)) {
7986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7987 }
7988 arg3 = static_cast< int >(val3);
7989 {
7990 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7991 if (PyErr_Occurred()) SWIG_fail;
7992 }
7993 resultobj = SWIG_Py_Void();
7994 return resultobj;
7995 fail:
7996 return NULL;
7997 }
7998
7999
8000 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8001 PyObject *resultobj = 0;
8002 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8003 wxNativePixelData *arg2 = 0 ;
8004 int arg3 ;
8005 void *argp1 = 0 ;
8006 int res1 = 0 ;
8007 void *argp2 = 0 ;
8008 int res2 = 0 ;
8009 int val3 ;
8010 int ecode3 = 0 ;
8011 PyObject * obj0 = 0 ;
8012 PyObject * obj1 = 0 ;
8013 PyObject * obj2 = 0 ;
8014 char * kwnames[] = {
8015 (char *) "self",(char *) "data",(char *) "y", NULL
8016 };
8017
8018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8020 if (!SWIG_IsOK(res1)) {
8021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8022 }
8023 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8024 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8025 if (!SWIG_IsOK(res2)) {
8026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8027 }
8028 if (!argp2) {
8029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8030 }
8031 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8032 ecode3 = SWIG_AsVal_int(obj2, &val3);
8033 if (!SWIG_IsOK(ecode3)) {
8034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8035 }
8036 arg3 = static_cast< int >(val3);
8037 {
8038 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8039 if (PyErr_Occurred()) SWIG_fail;
8040 }
8041 resultobj = SWIG_Py_Void();
8042 return resultobj;
8043 fail:
8044 return NULL;
8045 }
8046
8047
8048 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8049 PyObject *resultobj = 0;
8050 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8051 wxNativePixelData *arg2 = 0 ;
8052 int arg3 ;
8053 int arg4 ;
8054 void *argp1 = 0 ;
8055 int res1 = 0 ;
8056 void *argp2 = 0 ;
8057 int res2 = 0 ;
8058 int val3 ;
8059 int ecode3 = 0 ;
8060 int val4 ;
8061 int ecode4 = 0 ;
8062 PyObject * obj0 = 0 ;
8063 PyObject * obj1 = 0 ;
8064 PyObject * obj2 = 0 ;
8065 PyObject * obj3 = 0 ;
8066 char * kwnames[] = {
8067 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8068 };
8069
8070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8072 if (!SWIG_IsOK(res1)) {
8073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8074 }
8075 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8076 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8077 if (!SWIG_IsOK(res2)) {
8078 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8079 }
8080 if (!argp2) {
8081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8082 }
8083 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8084 ecode3 = SWIG_AsVal_int(obj2, &val3);
8085 if (!SWIG_IsOK(ecode3)) {
8086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8087 }
8088 arg3 = static_cast< int >(val3);
8089 ecode4 = SWIG_AsVal_int(obj3, &val4);
8090 if (!SWIG_IsOK(ecode4)) {
8091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8092 }
8093 arg4 = static_cast< int >(val4);
8094 {
8095 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8096 if (PyErr_Occurred()) SWIG_fail;
8097 }
8098 resultobj = SWIG_Py_Void();
8099 return resultobj;
8100 fail:
8101 return NULL;
8102 }
8103
8104
8105 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8106 PyObject *resultobj = 0;
8107 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8108 byte arg2 ;
8109 byte arg3 ;
8110 byte arg4 ;
8111 void *argp1 = 0 ;
8112 int res1 = 0 ;
8113 unsigned char val2 ;
8114 int ecode2 = 0 ;
8115 unsigned char val3 ;
8116 int ecode3 = 0 ;
8117 unsigned char val4 ;
8118 int ecode4 = 0 ;
8119 PyObject * obj0 = 0 ;
8120 PyObject * obj1 = 0 ;
8121 PyObject * obj2 = 0 ;
8122 PyObject * obj3 = 0 ;
8123 char * kwnames[] = {
8124 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8125 };
8126
8127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8129 if (!SWIG_IsOK(res1)) {
8130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8131 }
8132 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8133 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8134 if (!SWIG_IsOK(ecode2)) {
8135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8136 }
8137 arg2 = static_cast< byte >(val2);
8138 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8139 if (!SWIG_IsOK(ecode3)) {
8140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8141 }
8142 arg3 = static_cast< byte >(val3);
8143 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8144 if (!SWIG_IsOK(ecode4)) {
8145 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8146 }
8147 arg4 = static_cast< byte >(val4);
8148 {
8149 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8150 if (PyErr_Occurred()) SWIG_fail;
8151 }
8152 resultobj = SWIG_Py_Void();
8153 return resultobj;
8154 fail:
8155 return NULL;
8156 }
8157
8158
8159 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8160 PyObject *resultobj = 0;
8161 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8162 PyObject *result = 0 ;
8163 void *argp1 = 0 ;
8164 int res1 = 0 ;
8165 PyObject *swig_obj[1] ;
8166
8167 if (!args) SWIG_fail;
8168 swig_obj[0] = args;
8169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8170 if (!SWIG_IsOK(res1)) {
8171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8172 }
8173 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8174 {
8175 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8176 if (PyErr_Occurred()) SWIG_fail;
8177 }
8178 resultobj = result;
8179 return resultobj;
8180 fail:
8181 return NULL;
8182 }
8183
8184
8185 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8186 PyObject *obj;
8187 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8188 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8189 return SWIG_Py_Void();
8190 }
8191
8192 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8193 return SWIG_Python_InitShadowInstance(args);
8194 }
8195
8196 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8197 PyObject *resultobj = 0;
8198 wxBitmap *arg1 = 0 ;
8199 wxAlphaPixelData *result = 0 ;
8200 void *argp1 = 0 ;
8201 int res1 = 0 ;
8202
8203 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8205 if (!SWIG_IsOK(res1)) {
8206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8207 }
8208 if (!argp1) {
8209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8210 }
8211 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8212 {
8213 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8214 if (PyErr_Occurred()) SWIG_fail;
8215 }
8216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8217 return resultobj;
8218 fail:
8219 return NULL;
8220 }
8221
8222
8223 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8224 PyObject *resultobj = 0;
8225 wxBitmap *arg1 = 0 ;
8226 wxRect *arg2 = 0 ;
8227 wxAlphaPixelData *result = 0 ;
8228 void *argp1 = 0 ;
8229 int res1 = 0 ;
8230 wxRect temp2 ;
8231
8232 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8234 if (!SWIG_IsOK(res1)) {
8235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8236 }
8237 if (!argp1) {
8238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8239 }
8240 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8241 {
8242 arg2 = &temp2;
8243 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8244 }
8245 {
8246 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8247 if (PyErr_Occurred()) SWIG_fail;
8248 }
8249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8250 return resultobj;
8251 fail:
8252 return NULL;
8253 }
8254
8255
8256 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8257 PyObject *resultobj = 0;
8258 wxBitmap *arg1 = 0 ;
8259 wxPoint *arg2 = 0 ;
8260 wxSize *arg3 = 0 ;
8261 wxAlphaPixelData *result = 0 ;
8262 void *argp1 = 0 ;
8263 int res1 = 0 ;
8264 wxPoint temp2 ;
8265 wxSize temp3 ;
8266
8267 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8269 if (!SWIG_IsOK(res1)) {
8270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8271 }
8272 if (!argp1) {
8273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8274 }
8275 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8276 {
8277 arg2 = &temp2;
8278 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8279 }
8280 {
8281 arg3 = &temp3;
8282 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8283 }
8284 {
8285 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8286 if (PyErr_Occurred()) SWIG_fail;
8287 }
8288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8289 return resultobj;
8290 fail:
8291 return NULL;
8292 }
8293
8294
8295 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8296 int argc;
8297 PyObject *argv[4];
8298
8299 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8300 --argc;
8301 if (argc == 1) {
8302 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8303 }
8304 if (argc == 2) {
8305 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8306 }
8307 if (argc == 3) {
8308 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8309 }
8310
8311 fail:
8312 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8313 return NULL;
8314 }
8315
8316
8317 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8318 PyObject *resultobj = 0;
8319 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8320 void *argp1 = 0 ;
8321 int res1 = 0 ;
8322 PyObject *swig_obj[1] ;
8323
8324 if (!args) SWIG_fail;
8325 swig_obj[0] = args;
8326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8327 if (!SWIG_IsOK(res1)) {
8328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8329 }
8330 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8331 {
8332 delete arg1;
8333
8334 if (PyErr_Occurred()) SWIG_fail;
8335 }
8336 resultobj = SWIG_Py_Void();
8337 return resultobj;
8338 fail:
8339 return NULL;
8340 }
8341
8342
8343 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8344 PyObject *resultobj = 0;
8345 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8346 wxAlphaPixelData_Accessor result;
8347 void *argp1 = 0 ;
8348 int res1 = 0 ;
8349 PyObject *swig_obj[1] ;
8350
8351 if (!args) SWIG_fail;
8352 swig_obj[0] = args;
8353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8354 if (!SWIG_IsOK(res1)) {
8355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8356 }
8357 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8358 {
8359 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8360 if (PyErr_Occurred()) SWIG_fail;
8361 }
8362 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8363 return resultobj;
8364 fail:
8365 return NULL;
8366 }
8367
8368
8369 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8370 PyObject *resultobj = 0;
8371 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8372 void *argp1 = 0 ;
8373 int res1 = 0 ;
8374 PyObject *swig_obj[1] ;
8375
8376 if (!args) SWIG_fail;
8377 swig_obj[0] = args;
8378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8379 if (!SWIG_IsOK(res1)) {
8380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8381 }
8382 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8383 {
8384 (arg1)->UseAlpha();
8385 if (PyErr_Occurred()) SWIG_fail;
8386 }
8387 resultobj = SWIG_Py_Void();
8388 return resultobj;
8389 fail:
8390 return NULL;
8391 }
8392
8393
8394 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8395 PyObject *resultobj = 0;
8396 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8397 bool result;
8398 void *argp1 = 0 ;
8399 int res1 = 0 ;
8400 PyObject *swig_obj[1] ;
8401
8402 if (!args) SWIG_fail;
8403 swig_obj[0] = args;
8404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8405 if (!SWIG_IsOK(res1)) {
8406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8407 }
8408 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8409 {
8410 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8411 if (PyErr_Occurred()) SWIG_fail;
8412 }
8413 {
8414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8415 }
8416 return resultobj;
8417 fail:
8418 return NULL;
8419 }
8420
8421
8422 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8423 PyObject *obj;
8424 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8425 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8426 return SWIG_Py_Void();
8427 }
8428
8429 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8430 return SWIG_Python_InitShadowInstance(args);
8431 }
8432
8433 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8434 PyObject *resultobj = 0;
8435 wxAlphaPixelData *arg1 = 0 ;
8436 wxAlphaPixelData_Accessor *result = 0 ;
8437 void *argp1 = 0 ;
8438 int res1 = 0 ;
8439
8440 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8442 if (!SWIG_IsOK(res1)) {
8443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8444 }
8445 if (!argp1) {
8446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8447 }
8448 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8449 {
8450 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8451 if (PyErr_Occurred()) SWIG_fail;
8452 }
8453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8454 return resultobj;
8455 fail:
8456 return NULL;
8457 }
8458
8459
8460 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8461 PyObject *resultobj = 0;
8462 wxBitmap *arg1 = 0 ;
8463 wxAlphaPixelData *arg2 = 0 ;
8464 wxAlphaPixelData_Accessor *result = 0 ;
8465 void *argp1 = 0 ;
8466 int res1 = 0 ;
8467 void *argp2 = 0 ;
8468 int res2 = 0 ;
8469
8470 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8472 if (!SWIG_IsOK(res1)) {
8473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8474 }
8475 if (!argp1) {
8476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8477 }
8478 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8479 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8480 if (!SWIG_IsOK(res2)) {
8481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8482 }
8483 if (!argp2) {
8484 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8485 }
8486 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8487 {
8488 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8489 if (PyErr_Occurred()) SWIG_fail;
8490 }
8491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8492 return resultobj;
8493 fail:
8494 return NULL;
8495 }
8496
8497
8498 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8499 PyObject *resultobj = 0;
8500 wxAlphaPixelData_Accessor *result = 0 ;
8501
8502 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8503 {
8504 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8505 if (PyErr_Occurred()) SWIG_fail;
8506 }
8507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8508 return resultobj;
8509 fail:
8510 return NULL;
8511 }
8512
8513
8514 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8515 int argc;
8516 PyObject *argv[3];
8517
8518 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8519 --argc;
8520 if (argc == 0) {
8521 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8522 }
8523 if (argc == 1) {
8524 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8525 }
8526 if (argc == 2) {
8527 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8528 }
8529
8530 fail:
8531 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8532 return NULL;
8533 }
8534
8535
8536 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8537 PyObject *resultobj = 0;
8538 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8539 void *argp1 = 0 ;
8540 int res1 = 0 ;
8541 PyObject *swig_obj[1] ;
8542
8543 if (!args) SWIG_fail;
8544 swig_obj[0] = args;
8545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8546 if (!SWIG_IsOK(res1)) {
8547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8548 }
8549 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8550 {
8551 delete arg1;
8552
8553 if (PyErr_Occurred()) SWIG_fail;
8554 }
8555 resultobj = SWIG_Py_Void();
8556 return resultobj;
8557 fail:
8558 return NULL;
8559 }
8560
8561
8562 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8563 PyObject *resultobj = 0;
8564 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8565 wxAlphaPixelData *arg2 = 0 ;
8566 void *argp1 = 0 ;
8567 int res1 = 0 ;
8568 void *argp2 = 0 ;
8569 int res2 = 0 ;
8570 PyObject * obj0 = 0 ;
8571 PyObject * obj1 = 0 ;
8572 char * kwnames[] = {
8573 (char *) "self",(char *) "data", NULL
8574 };
8575
8576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8578 if (!SWIG_IsOK(res1)) {
8579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8580 }
8581 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8582 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8583 if (!SWIG_IsOK(res2)) {
8584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8585 }
8586 if (!argp2) {
8587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8588 }
8589 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8590 {
8591 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8592 if (PyErr_Occurred()) SWIG_fail;
8593 }
8594 resultobj = SWIG_Py_Void();
8595 return resultobj;
8596 fail:
8597 return NULL;
8598 }
8599
8600
8601 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8602 PyObject *resultobj = 0;
8603 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8604 bool result;
8605 void *argp1 = 0 ;
8606 int res1 = 0 ;
8607 PyObject *swig_obj[1] ;
8608
8609 if (!args) SWIG_fail;
8610 swig_obj[0] = args;
8611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8612 if (!SWIG_IsOK(res1)) {
8613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8614 }
8615 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8616 {
8617 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8618 if (PyErr_Occurred()) SWIG_fail;
8619 }
8620 {
8621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8622 }
8623 return resultobj;
8624 fail:
8625 return NULL;
8626 }
8627
8628
8629 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8630 PyObject *resultobj = 0;
8631 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8632 void *argp1 = 0 ;
8633 int res1 = 0 ;
8634 PyObject *swig_obj[1] ;
8635
8636 if (!args) SWIG_fail;
8637 swig_obj[0] = args;
8638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8639 if (!SWIG_IsOK(res1)) {
8640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8641 }
8642 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8643 {
8644 wxAlphaPixelData_Accessor_nextPixel(arg1);
8645 if (PyErr_Occurred()) SWIG_fail;
8646 }
8647 resultobj = SWIG_Py_Void();
8648 return resultobj;
8649 fail:
8650 return NULL;
8651 }
8652
8653
8654 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8655 PyObject *resultobj = 0;
8656 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8657 wxAlphaPixelData *arg2 = 0 ;
8658 int arg3 ;
8659 int arg4 ;
8660 void *argp1 = 0 ;
8661 int res1 = 0 ;
8662 void *argp2 = 0 ;
8663 int res2 = 0 ;
8664 int val3 ;
8665 int ecode3 = 0 ;
8666 int val4 ;
8667 int ecode4 = 0 ;
8668 PyObject * obj0 = 0 ;
8669 PyObject * obj1 = 0 ;
8670 PyObject * obj2 = 0 ;
8671 PyObject * obj3 = 0 ;
8672 char * kwnames[] = {
8673 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8674 };
8675
8676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8678 if (!SWIG_IsOK(res1)) {
8679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8680 }
8681 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8682 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8683 if (!SWIG_IsOK(res2)) {
8684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8685 }
8686 if (!argp2) {
8687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8688 }
8689 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8690 ecode3 = SWIG_AsVal_int(obj2, &val3);
8691 if (!SWIG_IsOK(ecode3)) {
8692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8693 }
8694 arg3 = static_cast< int >(val3);
8695 ecode4 = SWIG_AsVal_int(obj3, &val4);
8696 if (!SWIG_IsOK(ecode4)) {
8697 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8698 }
8699 arg4 = static_cast< int >(val4);
8700 {
8701 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8702 if (PyErr_Occurred()) SWIG_fail;
8703 }
8704 resultobj = SWIG_Py_Void();
8705 return resultobj;
8706 fail:
8707 return NULL;
8708 }
8709
8710
8711 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8712 PyObject *resultobj = 0;
8713 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8714 wxAlphaPixelData *arg2 = 0 ;
8715 int arg3 ;
8716 void *argp1 = 0 ;
8717 int res1 = 0 ;
8718 void *argp2 = 0 ;
8719 int res2 = 0 ;
8720 int val3 ;
8721 int ecode3 = 0 ;
8722 PyObject * obj0 = 0 ;
8723 PyObject * obj1 = 0 ;
8724 PyObject * obj2 = 0 ;
8725 char * kwnames[] = {
8726 (char *) "self",(char *) "data",(char *) "x", NULL
8727 };
8728
8729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8731 if (!SWIG_IsOK(res1)) {
8732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8733 }
8734 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8735 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8736 if (!SWIG_IsOK(res2)) {
8737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8738 }
8739 if (!argp2) {
8740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8741 }
8742 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8743 ecode3 = SWIG_AsVal_int(obj2, &val3);
8744 if (!SWIG_IsOK(ecode3)) {
8745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8746 }
8747 arg3 = static_cast< int >(val3);
8748 {
8749 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8750 if (PyErr_Occurred()) SWIG_fail;
8751 }
8752 resultobj = SWIG_Py_Void();
8753 return resultobj;
8754 fail:
8755 return NULL;
8756 }
8757
8758
8759 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8760 PyObject *resultobj = 0;
8761 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8762 wxAlphaPixelData *arg2 = 0 ;
8763 int arg3 ;
8764 void *argp1 = 0 ;
8765 int res1 = 0 ;
8766 void *argp2 = 0 ;
8767 int res2 = 0 ;
8768 int val3 ;
8769 int ecode3 = 0 ;
8770 PyObject * obj0 = 0 ;
8771 PyObject * obj1 = 0 ;
8772 PyObject * obj2 = 0 ;
8773 char * kwnames[] = {
8774 (char *) "self",(char *) "data",(char *) "y", NULL
8775 };
8776
8777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8779 if (!SWIG_IsOK(res1)) {
8780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8781 }
8782 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8783 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8784 if (!SWIG_IsOK(res2)) {
8785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8786 }
8787 if (!argp2) {
8788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8789 }
8790 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8791 ecode3 = SWIG_AsVal_int(obj2, &val3);
8792 if (!SWIG_IsOK(ecode3)) {
8793 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8794 }
8795 arg3 = static_cast< int >(val3);
8796 {
8797 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8798 if (PyErr_Occurred()) SWIG_fail;
8799 }
8800 resultobj = SWIG_Py_Void();
8801 return resultobj;
8802 fail:
8803 return NULL;
8804 }
8805
8806
8807 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8808 PyObject *resultobj = 0;
8809 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8810 wxAlphaPixelData *arg2 = 0 ;
8811 int arg3 ;
8812 int arg4 ;
8813 void *argp1 = 0 ;
8814 int res1 = 0 ;
8815 void *argp2 = 0 ;
8816 int res2 = 0 ;
8817 int val3 ;
8818 int ecode3 = 0 ;
8819 int val4 ;
8820 int ecode4 = 0 ;
8821 PyObject * obj0 = 0 ;
8822 PyObject * obj1 = 0 ;
8823 PyObject * obj2 = 0 ;
8824 PyObject * obj3 = 0 ;
8825 char * kwnames[] = {
8826 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8827 };
8828
8829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8831 if (!SWIG_IsOK(res1)) {
8832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8833 }
8834 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8835 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8836 if (!SWIG_IsOK(res2)) {
8837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8838 }
8839 if (!argp2) {
8840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8841 }
8842 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8843 ecode3 = SWIG_AsVal_int(obj2, &val3);
8844 if (!SWIG_IsOK(ecode3)) {
8845 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8846 }
8847 arg3 = static_cast< int >(val3);
8848 ecode4 = SWIG_AsVal_int(obj3, &val4);
8849 if (!SWIG_IsOK(ecode4)) {
8850 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8851 }
8852 arg4 = static_cast< int >(val4);
8853 {
8854 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8855 if (PyErr_Occurred()) SWIG_fail;
8856 }
8857 resultobj = SWIG_Py_Void();
8858 return resultobj;
8859 fail:
8860 return NULL;
8861 }
8862
8863
8864 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8865 PyObject *resultobj = 0;
8866 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8867 byte arg2 ;
8868 byte arg3 ;
8869 byte arg4 ;
8870 byte arg5 ;
8871 void *argp1 = 0 ;
8872 int res1 = 0 ;
8873 unsigned char val2 ;
8874 int ecode2 = 0 ;
8875 unsigned char val3 ;
8876 int ecode3 = 0 ;
8877 unsigned char val4 ;
8878 int ecode4 = 0 ;
8879 unsigned char val5 ;
8880 int ecode5 = 0 ;
8881 PyObject * obj0 = 0 ;
8882 PyObject * obj1 = 0 ;
8883 PyObject * obj2 = 0 ;
8884 PyObject * obj3 = 0 ;
8885 PyObject * obj4 = 0 ;
8886 char * kwnames[] = {
8887 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8888 };
8889
8890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8892 if (!SWIG_IsOK(res1)) {
8893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8894 }
8895 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8896 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8897 if (!SWIG_IsOK(ecode2)) {
8898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8899 }
8900 arg2 = static_cast< byte >(val2);
8901 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8902 if (!SWIG_IsOK(ecode3)) {
8903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8904 }
8905 arg3 = static_cast< byte >(val3);
8906 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8907 if (!SWIG_IsOK(ecode4)) {
8908 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8909 }
8910 arg4 = static_cast< byte >(val4);
8911 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8912 if (!SWIG_IsOK(ecode5)) {
8913 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8914 }
8915 arg5 = static_cast< byte >(val5);
8916 {
8917 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8918 if (PyErr_Occurred()) SWIG_fail;
8919 }
8920 resultobj = SWIG_Py_Void();
8921 return resultobj;
8922 fail:
8923 return NULL;
8924 }
8925
8926
8927 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8928 PyObject *resultobj = 0;
8929 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8930 PyObject *result = 0 ;
8931 void *argp1 = 0 ;
8932 int res1 = 0 ;
8933 PyObject *swig_obj[1] ;
8934
8935 if (!args) SWIG_fail;
8936 swig_obj[0] = args;
8937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8938 if (!SWIG_IsOK(res1)) {
8939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8940 }
8941 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8942 {
8943 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8944 if (PyErr_Occurred()) SWIG_fail;
8945 }
8946 resultobj = result;
8947 return resultobj;
8948 fail:
8949 return NULL;
8950 }
8951
8952
8953 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8954 PyObject *obj;
8955 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8956 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8957 return SWIG_Py_Void();
8958 }
8959
8960 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8961 return SWIG_Python_InitShadowInstance(args);
8962 }
8963
8964 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8965 PyObject *resultobj = 0;
8966 wxBitmap *arg1 = 0 ;
8967 wxColour const &arg2_defvalue = wxNullColour ;
8968 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8969 wxMask *result = 0 ;
8970 void *argp1 = 0 ;
8971 int res1 = 0 ;
8972 wxColour temp2 ;
8973 PyObject * obj0 = 0 ;
8974 PyObject * obj1 = 0 ;
8975 char * kwnames[] = {
8976 (char *) "bitmap",(char *) "colour", NULL
8977 };
8978
8979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8980 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8981 if (!SWIG_IsOK(res1)) {
8982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8983 }
8984 if (!argp1) {
8985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8986 }
8987 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8988 if (obj1) {
8989 {
8990 arg2 = &temp2;
8991 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8992 }
8993 }
8994 {
8995 if (!wxPyCheckForApp()) SWIG_fail;
8996 PyThreadState* __tstate = wxPyBeginAllowThreads();
8997 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8998 wxPyEndAllowThreads(__tstate);
8999 if (PyErr_Occurred()) SWIG_fail;
9000 }
9001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9002 return resultobj;
9003 fail:
9004 return NULL;
9005 }
9006
9007
9008 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9009 PyObject *resultobj = 0;
9010 wxMask *arg1 = (wxMask *) 0 ;
9011 void *argp1 = 0 ;
9012 int res1 = 0 ;
9013 PyObject *swig_obj[1] ;
9014
9015 if (!args) SWIG_fail;
9016 swig_obj[0] = args;
9017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9018 if (!SWIG_IsOK(res1)) {
9019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9020 }
9021 arg1 = reinterpret_cast< wxMask * >(argp1);
9022 {
9023 delete arg1;
9024
9025 if (PyErr_Occurred()) SWIG_fail;
9026 }
9027 resultobj = SWIG_Py_Void();
9028 return resultobj;
9029 fail:
9030 return NULL;
9031 }
9032
9033
9034 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9035 PyObject *obj;
9036 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9037 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9038 return SWIG_Py_Void();
9039 }
9040
9041 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9042 return SWIG_Python_InitShadowInstance(args);
9043 }
9044
9045 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9046 PyObject *resultobj = 0;
9047 wxString *arg1 = 0 ;
9048 wxBitmapType arg2 ;
9049 int arg3 = (int) -1 ;
9050 int arg4 = (int) -1 ;
9051 wxIcon *result = 0 ;
9052 bool temp1 = false ;
9053 int val2 ;
9054 int ecode2 = 0 ;
9055 int val3 ;
9056 int ecode3 = 0 ;
9057 int val4 ;
9058 int ecode4 = 0 ;
9059 PyObject * obj0 = 0 ;
9060 PyObject * obj1 = 0 ;
9061 PyObject * obj2 = 0 ;
9062 PyObject * obj3 = 0 ;
9063 char * kwnames[] = {
9064 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9065 };
9066
9067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9068 {
9069 arg1 = wxString_in_helper(obj0);
9070 if (arg1 == NULL) SWIG_fail;
9071 temp1 = true;
9072 }
9073 ecode2 = SWIG_AsVal_int(obj1, &val2);
9074 if (!SWIG_IsOK(ecode2)) {
9075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9076 }
9077 arg2 = static_cast< wxBitmapType >(val2);
9078 if (obj2) {
9079 ecode3 = SWIG_AsVal_int(obj2, &val3);
9080 if (!SWIG_IsOK(ecode3)) {
9081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9082 }
9083 arg3 = static_cast< int >(val3);
9084 }
9085 if (obj3) {
9086 ecode4 = SWIG_AsVal_int(obj3, &val4);
9087 if (!SWIG_IsOK(ecode4)) {
9088 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9089 }
9090 arg4 = static_cast< int >(val4);
9091 }
9092 {
9093 if (!wxPyCheckForApp()) SWIG_fail;
9094 PyThreadState* __tstate = wxPyBeginAllowThreads();
9095 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9096 wxPyEndAllowThreads(__tstate);
9097 if (PyErr_Occurred()) SWIG_fail;
9098 }
9099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9100 {
9101 if (temp1)
9102 delete arg1;
9103 }
9104 return resultobj;
9105 fail:
9106 {
9107 if (temp1)
9108 delete arg1;
9109 }
9110 return NULL;
9111 }
9112
9113
9114 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9115 PyObject *resultobj = 0;
9116 wxIcon *arg1 = (wxIcon *) 0 ;
9117 void *argp1 = 0 ;
9118 int res1 = 0 ;
9119 PyObject *swig_obj[1] ;
9120
9121 if (!args) SWIG_fail;
9122 swig_obj[0] = args;
9123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9124 if (!SWIG_IsOK(res1)) {
9125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9126 }
9127 arg1 = reinterpret_cast< wxIcon * >(argp1);
9128 {
9129 PyThreadState* __tstate = wxPyBeginAllowThreads();
9130 delete arg1;
9131
9132 wxPyEndAllowThreads(__tstate);
9133 if (PyErr_Occurred()) SWIG_fail;
9134 }
9135 resultobj = SWIG_Py_Void();
9136 return resultobj;
9137 fail:
9138 return NULL;
9139 }
9140
9141
9142 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9143 PyObject *resultobj = 0;
9144 wxIcon *result = 0 ;
9145
9146 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9147 {
9148 if (!wxPyCheckForApp()) SWIG_fail;
9149 PyThreadState* __tstate = wxPyBeginAllowThreads();
9150 result = (wxIcon *)new wxIcon();
9151 wxPyEndAllowThreads(__tstate);
9152 if (PyErr_Occurred()) SWIG_fail;
9153 }
9154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9155 return resultobj;
9156 fail:
9157 return NULL;
9158 }
9159
9160
9161 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9162 PyObject *resultobj = 0;
9163 wxIconLocation *arg1 = 0 ;
9164 wxIcon *result = 0 ;
9165 void *argp1 = 0 ;
9166 int res1 = 0 ;
9167 PyObject * obj0 = 0 ;
9168 char * kwnames[] = {
9169 (char *) "loc", NULL
9170 };
9171
9172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9173 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9174 if (!SWIG_IsOK(res1)) {
9175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9176 }
9177 if (!argp1) {
9178 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9179 }
9180 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9181 {
9182 if (!wxPyCheckForApp()) SWIG_fail;
9183 PyThreadState* __tstate = wxPyBeginAllowThreads();
9184 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9185 wxPyEndAllowThreads(__tstate);
9186 if (PyErr_Occurred()) SWIG_fail;
9187 }
9188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9189 return resultobj;
9190 fail:
9191 return NULL;
9192 }
9193
9194
9195 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9196 PyObject *resultobj = 0;
9197 wxBitmap *arg1 = 0 ;
9198 wxIcon *result = 0 ;
9199 void *argp1 = 0 ;
9200 int res1 = 0 ;
9201 PyObject * obj0 = 0 ;
9202 char * kwnames[] = {
9203 (char *) "bmp", NULL
9204 };
9205
9206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9207 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9208 if (!SWIG_IsOK(res1)) {
9209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9210 }
9211 if (!argp1) {
9212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9213 }
9214 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9215 {
9216 if (!wxPyCheckForApp()) SWIG_fail;
9217 PyThreadState* __tstate = wxPyBeginAllowThreads();
9218 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9219 wxPyEndAllowThreads(__tstate);
9220 if (PyErr_Occurred()) SWIG_fail;
9221 }
9222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9223 return resultobj;
9224 fail:
9225 return NULL;
9226 }
9227
9228
9229 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9230 PyObject *resultobj = 0;
9231 PyObject *arg1 = (PyObject *) 0 ;
9232 wxIcon *result = 0 ;
9233 PyObject * obj0 = 0 ;
9234 char * kwnames[] = {
9235 (char *) "listOfStrings", NULL
9236 };
9237
9238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9239 arg1 = obj0;
9240 {
9241 if (!wxPyCheckForApp()) SWIG_fail;
9242 PyThreadState* __tstate = wxPyBeginAllowThreads();
9243 result = (wxIcon *)new_wxIcon(arg1);
9244 wxPyEndAllowThreads(__tstate);
9245 if (PyErr_Occurred()) SWIG_fail;
9246 }
9247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9248 return resultobj;
9249 fail:
9250 return NULL;
9251 }
9252
9253
9254 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9255 PyObject *resultobj = 0;
9256 wxIcon *arg1 = (wxIcon *) 0 ;
9257 wxString *arg2 = 0 ;
9258 wxBitmapType arg3 ;
9259 bool result;
9260 void *argp1 = 0 ;
9261 int res1 = 0 ;
9262 bool temp2 = false ;
9263 int val3 ;
9264 int ecode3 = 0 ;
9265 PyObject * obj0 = 0 ;
9266 PyObject * obj1 = 0 ;
9267 PyObject * obj2 = 0 ;
9268 char * kwnames[] = {
9269 (char *) "self",(char *) "name",(char *) "type", NULL
9270 };
9271
9272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9274 if (!SWIG_IsOK(res1)) {
9275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9276 }
9277 arg1 = reinterpret_cast< wxIcon * >(argp1);
9278 {
9279 arg2 = wxString_in_helper(obj1);
9280 if (arg2 == NULL) SWIG_fail;
9281 temp2 = true;
9282 }
9283 ecode3 = SWIG_AsVal_int(obj2, &val3);
9284 if (!SWIG_IsOK(ecode3)) {
9285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9286 }
9287 arg3 = static_cast< wxBitmapType >(val3);
9288 {
9289 PyThreadState* __tstate = wxPyBeginAllowThreads();
9290 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9291 wxPyEndAllowThreads(__tstate);
9292 if (PyErr_Occurred()) SWIG_fail;
9293 }
9294 {
9295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9296 }
9297 {
9298 if (temp2)
9299 delete arg2;
9300 }
9301 return resultobj;
9302 fail:
9303 {
9304 if (temp2)
9305 delete arg2;
9306 }
9307 return NULL;
9308 }
9309
9310
9311 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9312 PyObject *resultobj = 0;
9313 wxIcon *arg1 = (wxIcon *) 0 ;
9314 bool result;
9315 void *argp1 = 0 ;
9316 int res1 = 0 ;
9317 PyObject *swig_obj[1] ;
9318
9319 if (!args) SWIG_fail;
9320 swig_obj[0] = args;
9321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9322 if (!SWIG_IsOK(res1)) {
9323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9324 }
9325 arg1 = reinterpret_cast< wxIcon * >(argp1);
9326 {
9327 PyThreadState* __tstate = wxPyBeginAllowThreads();
9328 result = (bool)(arg1)->IsOk();
9329 wxPyEndAllowThreads(__tstate);
9330 if (PyErr_Occurred()) SWIG_fail;
9331 }
9332 {
9333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9334 }
9335 return resultobj;
9336 fail:
9337 return NULL;
9338 }
9339
9340
9341 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9342 PyObject *resultobj = 0;
9343 wxIcon *arg1 = (wxIcon *) 0 ;
9344 int result;
9345 void *argp1 = 0 ;
9346 int res1 = 0 ;
9347 PyObject *swig_obj[1] ;
9348
9349 if (!args) SWIG_fail;
9350 swig_obj[0] = args;
9351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9352 if (!SWIG_IsOK(res1)) {
9353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9354 }
9355 arg1 = reinterpret_cast< wxIcon * >(argp1);
9356 {
9357 PyThreadState* __tstate = wxPyBeginAllowThreads();
9358 result = (int)(arg1)->GetWidth();
9359 wxPyEndAllowThreads(__tstate);
9360 if (PyErr_Occurred()) SWIG_fail;
9361 }
9362 resultobj = SWIG_From_int(static_cast< int >(result));
9363 return resultobj;
9364 fail:
9365 return NULL;
9366 }
9367
9368
9369 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9370 PyObject *resultobj = 0;
9371 wxIcon *arg1 = (wxIcon *) 0 ;
9372 int result;
9373 void *argp1 = 0 ;
9374 int res1 = 0 ;
9375 PyObject *swig_obj[1] ;
9376
9377 if (!args) SWIG_fail;
9378 swig_obj[0] = args;
9379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9380 if (!SWIG_IsOK(res1)) {
9381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9382 }
9383 arg1 = reinterpret_cast< wxIcon * >(argp1);
9384 {
9385 PyThreadState* __tstate = wxPyBeginAllowThreads();
9386 result = (int)(arg1)->GetHeight();
9387 wxPyEndAllowThreads(__tstate);
9388 if (PyErr_Occurred()) SWIG_fail;
9389 }
9390 resultobj = SWIG_From_int(static_cast< int >(result));
9391 return resultobj;
9392 fail:
9393 return NULL;
9394 }
9395
9396
9397 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9398 PyObject *resultobj = 0;
9399 wxIcon *arg1 = (wxIcon *) 0 ;
9400 int result;
9401 void *argp1 = 0 ;
9402 int res1 = 0 ;
9403 PyObject *swig_obj[1] ;
9404
9405 if (!args) SWIG_fail;
9406 swig_obj[0] = args;
9407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9408 if (!SWIG_IsOK(res1)) {
9409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9410 }
9411 arg1 = reinterpret_cast< wxIcon * >(argp1);
9412 {
9413 PyThreadState* __tstate = wxPyBeginAllowThreads();
9414 result = (int)(arg1)->GetDepth();
9415 wxPyEndAllowThreads(__tstate);
9416 if (PyErr_Occurred()) SWIG_fail;
9417 }
9418 resultobj = SWIG_From_int(static_cast< int >(result));
9419 return resultobj;
9420 fail:
9421 return NULL;
9422 }
9423
9424
9425 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9426 PyObject *resultobj = 0;
9427 wxIcon *arg1 = (wxIcon *) 0 ;
9428 int arg2 ;
9429 void *argp1 = 0 ;
9430 int res1 = 0 ;
9431 int val2 ;
9432 int ecode2 = 0 ;
9433 PyObject * obj0 = 0 ;
9434 PyObject * obj1 = 0 ;
9435 char * kwnames[] = {
9436 (char *) "self",(char *) "w", NULL
9437 };
9438
9439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9441 if (!SWIG_IsOK(res1)) {
9442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9443 }
9444 arg1 = reinterpret_cast< wxIcon * >(argp1);
9445 ecode2 = SWIG_AsVal_int(obj1, &val2);
9446 if (!SWIG_IsOK(ecode2)) {
9447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9448 }
9449 arg2 = static_cast< int >(val2);
9450 {
9451 PyThreadState* __tstate = wxPyBeginAllowThreads();
9452 (arg1)->SetWidth(arg2);
9453 wxPyEndAllowThreads(__tstate);
9454 if (PyErr_Occurred()) SWIG_fail;
9455 }
9456 resultobj = SWIG_Py_Void();
9457 return resultobj;
9458 fail:
9459 return NULL;
9460 }
9461
9462
9463 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9464 PyObject *resultobj = 0;
9465 wxIcon *arg1 = (wxIcon *) 0 ;
9466 int arg2 ;
9467 void *argp1 = 0 ;
9468 int res1 = 0 ;
9469 int val2 ;
9470 int ecode2 = 0 ;
9471 PyObject * obj0 = 0 ;
9472 PyObject * obj1 = 0 ;
9473 char * kwnames[] = {
9474 (char *) "self",(char *) "h", NULL
9475 };
9476
9477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9479 if (!SWIG_IsOK(res1)) {
9480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9481 }
9482 arg1 = reinterpret_cast< wxIcon * >(argp1);
9483 ecode2 = SWIG_AsVal_int(obj1, &val2);
9484 if (!SWIG_IsOK(ecode2)) {
9485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9486 }
9487 arg2 = static_cast< int >(val2);
9488 {
9489 PyThreadState* __tstate = wxPyBeginAllowThreads();
9490 (arg1)->SetHeight(arg2);
9491 wxPyEndAllowThreads(__tstate);
9492 if (PyErr_Occurred()) SWIG_fail;
9493 }
9494 resultobj = SWIG_Py_Void();
9495 return resultobj;
9496 fail:
9497 return NULL;
9498 }
9499
9500
9501 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9502 PyObject *resultobj = 0;
9503 wxIcon *arg1 = (wxIcon *) 0 ;
9504 int arg2 ;
9505 void *argp1 = 0 ;
9506 int res1 = 0 ;
9507 int val2 ;
9508 int ecode2 = 0 ;
9509 PyObject * obj0 = 0 ;
9510 PyObject * obj1 = 0 ;
9511 char * kwnames[] = {
9512 (char *) "self",(char *) "d", NULL
9513 };
9514
9515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9517 if (!SWIG_IsOK(res1)) {
9518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9519 }
9520 arg1 = reinterpret_cast< wxIcon * >(argp1);
9521 ecode2 = SWIG_AsVal_int(obj1, &val2);
9522 if (!SWIG_IsOK(ecode2)) {
9523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9524 }
9525 arg2 = static_cast< int >(val2);
9526 {
9527 PyThreadState* __tstate = wxPyBeginAllowThreads();
9528 (arg1)->SetDepth(arg2);
9529 wxPyEndAllowThreads(__tstate);
9530 if (PyErr_Occurred()) SWIG_fail;
9531 }
9532 resultobj = SWIG_Py_Void();
9533 return resultobj;
9534 fail:
9535 return NULL;
9536 }
9537
9538
9539 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9540 PyObject *resultobj = 0;
9541 wxIcon *arg1 = (wxIcon *) 0 ;
9542 wxBitmap *arg2 = 0 ;
9543 void *argp1 = 0 ;
9544 int res1 = 0 ;
9545 void *argp2 = 0 ;
9546 int res2 = 0 ;
9547 PyObject * obj0 = 0 ;
9548 PyObject * obj1 = 0 ;
9549 char * kwnames[] = {
9550 (char *) "self",(char *) "bmp", NULL
9551 };
9552
9553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9555 if (!SWIG_IsOK(res1)) {
9556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9557 }
9558 arg1 = reinterpret_cast< wxIcon * >(argp1);
9559 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9560 if (!SWIG_IsOK(res2)) {
9561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9562 }
9563 if (!argp2) {
9564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9565 }
9566 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9567 {
9568 PyThreadState* __tstate = wxPyBeginAllowThreads();
9569 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9570 wxPyEndAllowThreads(__tstate);
9571 if (PyErr_Occurred()) SWIG_fail;
9572 }
9573 resultobj = SWIG_Py_Void();
9574 return resultobj;
9575 fail:
9576 return NULL;
9577 }
9578
9579
9580 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9581 PyObject *obj;
9582 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9583 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9584 return SWIG_Py_Void();
9585 }
9586
9587 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9588 return SWIG_Python_InitShadowInstance(args);
9589 }
9590
9591 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9592 PyObject *resultobj = 0;
9593 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9594 int arg2 = (int) 0 ;
9595 wxIconLocation *result = 0 ;
9596 bool temp1 = false ;
9597 int val2 ;
9598 int ecode2 = 0 ;
9599 PyObject * obj0 = 0 ;
9600 PyObject * obj1 = 0 ;
9601 char * kwnames[] = {
9602 (char *) "filename",(char *) "num", NULL
9603 };
9604
9605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9606 if (obj0) {
9607 {
9608 arg1 = wxString_in_helper(obj0);
9609 if (arg1 == NULL) SWIG_fail;
9610 temp1 = true;
9611 }
9612 }
9613 if (obj1) {
9614 ecode2 = SWIG_AsVal_int(obj1, &val2);
9615 if (!SWIG_IsOK(ecode2)) {
9616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9617 }
9618 arg2 = static_cast< int >(val2);
9619 }
9620 {
9621 PyThreadState* __tstate = wxPyBeginAllowThreads();
9622 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9623 wxPyEndAllowThreads(__tstate);
9624 if (PyErr_Occurred()) SWIG_fail;
9625 }
9626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9627 {
9628 if (temp1)
9629 delete arg1;
9630 }
9631 return resultobj;
9632 fail:
9633 {
9634 if (temp1)
9635 delete arg1;
9636 }
9637 return NULL;
9638 }
9639
9640
9641 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9642 PyObject *resultobj = 0;
9643 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9644 void *argp1 = 0 ;
9645 int res1 = 0 ;
9646 PyObject *swig_obj[1] ;
9647
9648 if (!args) SWIG_fail;
9649 swig_obj[0] = args;
9650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9651 if (!SWIG_IsOK(res1)) {
9652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9653 }
9654 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9655 {
9656 PyThreadState* __tstate = wxPyBeginAllowThreads();
9657 delete arg1;
9658
9659 wxPyEndAllowThreads(__tstate);
9660 if (PyErr_Occurred()) SWIG_fail;
9661 }
9662 resultobj = SWIG_Py_Void();
9663 return resultobj;
9664 fail:
9665 return NULL;
9666 }
9667
9668
9669 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9670 PyObject *resultobj = 0;
9671 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9672 bool result;
9673 void *argp1 = 0 ;
9674 int res1 = 0 ;
9675 PyObject *swig_obj[1] ;
9676
9677 if (!args) SWIG_fail;
9678 swig_obj[0] = args;
9679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9680 if (!SWIG_IsOK(res1)) {
9681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9682 }
9683 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9684 {
9685 PyThreadState* __tstate = wxPyBeginAllowThreads();
9686 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9687 wxPyEndAllowThreads(__tstate);
9688 if (PyErr_Occurred()) SWIG_fail;
9689 }
9690 {
9691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9692 }
9693 return resultobj;
9694 fail:
9695 return NULL;
9696 }
9697
9698
9699 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9700 PyObject *resultobj = 0;
9701 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9702 wxString *arg2 = 0 ;
9703 void *argp1 = 0 ;
9704 int res1 = 0 ;
9705 bool temp2 = false ;
9706 PyObject * obj0 = 0 ;
9707 PyObject * obj1 = 0 ;
9708 char * kwnames[] = {
9709 (char *) "self",(char *) "filename", NULL
9710 };
9711
9712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9714 if (!SWIG_IsOK(res1)) {
9715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9716 }
9717 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9718 {
9719 arg2 = wxString_in_helper(obj1);
9720 if (arg2 == NULL) SWIG_fail;
9721 temp2 = true;
9722 }
9723 {
9724 PyThreadState* __tstate = wxPyBeginAllowThreads();
9725 (arg1)->SetFileName((wxString const &)*arg2);
9726 wxPyEndAllowThreads(__tstate);
9727 if (PyErr_Occurred()) SWIG_fail;
9728 }
9729 resultobj = SWIG_Py_Void();
9730 {
9731 if (temp2)
9732 delete arg2;
9733 }
9734 return resultobj;
9735 fail:
9736 {
9737 if (temp2)
9738 delete arg2;
9739 }
9740 return NULL;
9741 }
9742
9743
9744 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9745 PyObject *resultobj = 0;
9746 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9747 wxString *result = 0 ;
9748 void *argp1 = 0 ;
9749 int res1 = 0 ;
9750 PyObject *swig_obj[1] ;
9751
9752 if (!args) SWIG_fail;
9753 swig_obj[0] = args;
9754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9755 if (!SWIG_IsOK(res1)) {
9756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9757 }
9758 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9759 {
9760 PyThreadState* __tstate = wxPyBeginAllowThreads();
9761 {
9762 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9763 result = (wxString *) &_result_ref;
9764 }
9765 wxPyEndAllowThreads(__tstate);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 }
9768 {
9769 #if wxUSE_UNICODE
9770 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9771 #else
9772 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9773 #endif
9774 }
9775 return resultobj;
9776 fail:
9777 return NULL;
9778 }
9779
9780
9781 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9782 PyObject *resultobj = 0;
9783 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9784 int arg2 ;
9785 void *argp1 = 0 ;
9786 int res1 = 0 ;
9787 int val2 ;
9788 int ecode2 = 0 ;
9789 PyObject * obj0 = 0 ;
9790 PyObject * obj1 = 0 ;
9791 char * kwnames[] = {
9792 (char *) "self",(char *) "num", NULL
9793 };
9794
9795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9797 if (!SWIG_IsOK(res1)) {
9798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9799 }
9800 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9801 ecode2 = SWIG_AsVal_int(obj1, &val2);
9802 if (!SWIG_IsOK(ecode2)) {
9803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9804 }
9805 arg2 = static_cast< int >(val2);
9806 {
9807 PyThreadState* __tstate = wxPyBeginAllowThreads();
9808 wxIconLocation_SetIndex(arg1,arg2);
9809 wxPyEndAllowThreads(__tstate);
9810 if (PyErr_Occurred()) SWIG_fail;
9811 }
9812 resultobj = SWIG_Py_Void();
9813 return resultobj;
9814 fail:
9815 return NULL;
9816 }
9817
9818
9819 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9820 PyObject *resultobj = 0;
9821 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9822 int result;
9823 void *argp1 = 0 ;
9824 int res1 = 0 ;
9825 PyObject *swig_obj[1] ;
9826
9827 if (!args) SWIG_fail;
9828 swig_obj[0] = args;
9829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9830 if (!SWIG_IsOK(res1)) {
9831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9832 }
9833 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9834 {
9835 PyThreadState* __tstate = wxPyBeginAllowThreads();
9836 result = (int)wxIconLocation_GetIndex(arg1);
9837 wxPyEndAllowThreads(__tstate);
9838 if (PyErr_Occurred()) SWIG_fail;
9839 }
9840 resultobj = SWIG_From_int(static_cast< int >(result));
9841 return resultobj;
9842 fail:
9843 return NULL;
9844 }
9845
9846
9847 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9848 PyObject *obj;
9849 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9850 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9851 return SWIG_Py_Void();
9852 }
9853
9854 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9855 return SWIG_Python_InitShadowInstance(args);
9856 }
9857
9858 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9859 PyObject *resultobj = 0;
9860 wxIconBundle *result = 0 ;
9861
9862 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9863 {
9864 PyThreadState* __tstate = wxPyBeginAllowThreads();
9865 result = (wxIconBundle *)new wxIconBundle();
9866 wxPyEndAllowThreads(__tstate);
9867 if (PyErr_Occurred()) SWIG_fail;
9868 }
9869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9870 return resultobj;
9871 fail:
9872 return NULL;
9873 }
9874
9875
9876 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9877 PyObject *resultobj = 0;
9878 wxString *arg1 = 0 ;
9879 long arg2 ;
9880 wxIconBundle *result = 0 ;
9881 bool temp1 = false ;
9882 long val2 ;
9883 int ecode2 = 0 ;
9884 PyObject * obj0 = 0 ;
9885 PyObject * obj1 = 0 ;
9886 char * kwnames[] = {
9887 (char *) "file",(char *) "type", NULL
9888 };
9889
9890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9891 {
9892 arg1 = wxString_in_helper(obj0);
9893 if (arg1 == NULL) SWIG_fail;
9894 temp1 = true;
9895 }
9896 ecode2 = SWIG_AsVal_long(obj1, &val2);
9897 if (!SWIG_IsOK(ecode2)) {
9898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9899 }
9900 arg2 = static_cast< long >(val2);
9901 {
9902 PyThreadState* __tstate = wxPyBeginAllowThreads();
9903 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9904 wxPyEndAllowThreads(__tstate);
9905 if (PyErr_Occurred()) SWIG_fail;
9906 }
9907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9908 {
9909 if (temp1)
9910 delete arg1;
9911 }
9912 return resultobj;
9913 fail:
9914 {
9915 if (temp1)
9916 delete arg1;
9917 }
9918 return NULL;
9919 }
9920
9921
9922 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9923 PyObject *resultobj = 0;
9924 wxIcon *arg1 = 0 ;
9925 wxIconBundle *result = 0 ;
9926 void *argp1 = 0 ;
9927 int res1 = 0 ;
9928 PyObject * obj0 = 0 ;
9929 char * kwnames[] = {
9930 (char *) "icon", NULL
9931 };
9932
9933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9934 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9935 if (!SWIG_IsOK(res1)) {
9936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9937 }
9938 if (!argp1) {
9939 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9940 }
9941 arg1 = reinterpret_cast< wxIcon * >(argp1);
9942 {
9943 PyThreadState* __tstate = wxPyBeginAllowThreads();
9944 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9945 wxPyEndAllowThreads(__tstate);
9946 if (PyErr_Occurred()) SWIG_fail;
9947 }
9948 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9949 return resultobj;
9950 fail:
9951 return NULL;
9952 }
9953
9954
9955 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9956 PyObject *resultobj = 0;
9957 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9958 void *argp1 = 0 ;
9959 int res1 = 0 ;
9960 PyObject *swig_obj[1] ;
9961
9962 if (!args) SWIG_fail;
9963 swig_obj[0] = args;
9964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9965 if (!SWIG_IsOK(res1)) {
9966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9967 }
9968 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9969 {
9970 PyThreadState* __tstate = wxPyBeginAllowThreads();
9971 delete arg1;
9972
9973 wxPyEndAllowThreads(__tstate);
9974 if (PyErr_Occurred()) SWIG_fail;
9975 }
9976 resultobj = SWIG_Py_Void();
9977 return resultobj;
9978 fail:
9979 return NULL;
9980 }
9981
9982
9983 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9984 PyObject *resultobj = 0;
9985 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9986 wxIcon *arg2 = 0 ;
9987 void *argp1 = 0 ;
9988 int res1 = 0 ;
9989 void *argp2 = 0 ;
9990 int res2 = 0 ;
9991 PyObject * obj0 = 0 ;
9992 PyObject * obj1 = 0 ;
9993 char * kwnames[] = {
9994 (char *) "self",(char *) "icon", NULL
9995 };
9996
9997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9999 if (!SWIG_IsOK(res1)) {
10000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10001 }
10002 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10003 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10004 if (!SWIG_IsOK(res2)) {
10005 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10006 }
10007 if (!argp2) {
10008 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10009 }
10010 arg2 = reinterpret_cast< wxIcon * >(argp2);
10011 {
10012 PyThreadState* __tstate = wxPyBeginAllowThreads();
10013 (arg1)->AddIcon((wxIcon const &)*arg2);
10014 wxPyEndAllowThreads(__tstate);
10015 if (PyErr_Occurred()) SWIG_fail;
10016 }
10017 resultobj = SWIG_Py_Void();
10018 return resultobj;
10019 fail:
10020 return NULL;
10021 }
10022
10023
10024 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10025 PyObject *resultobj = 0;
10026 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10027 wxString *arg2 = 0 ;
10028 long arg3 ;
10029 void *argp1 = 0 ;
10030 int res1 = 0 ;
10031 bool temp2 = false ;
10032 long val3 ;
10033 int ecode3 = 0 ;
10034 PyObject * obj0 = 0 ;
10035 PyObject * obj1 = 0 ;
10036 PyObject * obj2 = 0 ;
10037 char * kwnames[] = {
10038 (char *) "self",(char *) "file",(char *) "type", NULL
10039 };
10040
10041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10043 if (!SWIG_IsOK(res1)) {
10044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10045 }
10046 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10047 {
10048 arg2 = wxString_in_helper(obj1);
10049 if (arg2 == NULL) SWIG_fail;
10050 temp2 = true;
10051 }
10052 ecode3 = SWIG_AsVal_long(obj2, &val3);
10053 if (!SWIG_IsOK(ecode3)) {
10054 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10055 }
10056 arg3 = static_cast< long >(val3);
10057 {
10058 PyThreadState* __tstate = wxPyBeginAllowThreads();
10059 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10060 wxPyEndAllowThreads(__tstate);
10061 if (PyErr_Occurred()) SWIG_fail;
10062 }
10063 resultobj = SWIG_Py_Void();
10064 {
10065 if (temp2)
10066 delete arg2;
10067 }
10068 return resultobj;
10069 fail:
10070 {
10071 if (temp2)
10072 delete arg2;
10073 }
10074 return NULL;
10075 }
10076
10077
10078 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10079 PyObject *resultobj = 0;
10080 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10081 wxSize *arg2 = 0 ;
10082 wxIcon *result = 0 ;
10083 void *argp1 = 0 ;
10084 int res1 = 0 ;
10085 wxSize temp2 ;
10086 PyObject * obj0 = 0 ;
10087 PyObject * obj1 = 0 ;
10088 char * kwnames[] = {
10089 (char *) "self",(char *) "size", NULL
10090 };
10091
10092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10094 if (!SWIG_IsOK(res1)) {
10095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10096 }
10097 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10098 {
10099 arg2 = &temp2;
10100 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10101 }
10102 {
10103 PyThreadState* __tstate = wxPyBeginAllowThreads();
10104 {
10105 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10106 result = (wxIcon *) &_result_ref;
10107 }
10108 wxPyEndAllowThreads(__tstate);
10109 if (PyErr_Occurred()) SWIG_fail;
10110 }
10111 {
10112 wxIcon* resultptr = new wxIcon(*result);
10113 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10114 }
10115 return resultobj;
10116 fail:
10117 return NULL;
10118 }
10119
10120
10121 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10122 PyObject *obj;
10123 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10124 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10125 return SWIG_Py_Void();
10126 }
10127
10128 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10129 return SWIG_Python_InitShadowInstance(args);
10130 }
10131
10132 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10133 PyObject *resultobj = 0;
10134 wxString *arg1 = 0 ;
10135 long arg2 ;
10136 int arg3 = (int) 0 ;
10137 int arg4 = (int) 0 ;
10138 wxCursor *result = 0 ;
10139 bool temp1 = false ;
10140 long val2 ;
10141 int ecode2 = 0 ;
10142 int val3 ;
10143 int ecode3 = 0 ;
10144 int val4 ;
10145 int ecode4 = 0 ;
10146 PyObject * obj0 = 0 ;
10147 PyObject * obj1 = 0 ;
10148 PyObject * obj2 = 0 ;
10149 PyObject * obj3 = 0 ;
10150 char * kwnames[] = {
10151 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10152 };
10153
10154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10155 {
10156 arg1 = wxString_in_helper(obj0);
10157 if (arg1 == NULL) SWIG_fail;
10158 temp1 = true;
10159 }
10160 ecode2 = SWIG_AsVal_long(obj1, &val2);
10161 if (!SWIG_IsOK(ecode2)) {
10162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10163 }
10164 arg2 = static_cast< long >(val2);
10165 if (obj2) {
10166 ecode3 = SWIG_AsVal_int(obj2, &val3);
10167 if (!SWIG_IsOK(ecode3)) {
10168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10169 }
10170 arg3 = static_cast< int >(val3);
10171 }
10172 if (obj3) {
10173 ecode4 = SWIG_AsVal_int(obj3, &val4);
10174 if (!SWIG_IsOK(ecode4)) {
10175 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10176 }
10177 arg4 = static_cast< int >(val4);
10178 }
10179 {
10180 if (!wxPyCheckForApp()) SWIG_fail;
10181 PyThreadState* __tstate = wxPyBeginAllowThreads();
10182 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10183 wxPyEndAllowThreads(__tstate);
10184 if (PyErr_Occurred()) SWIG_fail;
10185 }
10186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10187 {
10188 if (temp1)
10189 delete arg1;
10190 }
10191 return resultobj;
10192 fail:
10193 {
10194 if (temp1)
10195 delete arg1;
10196 }
10197 return NULL;
10198 }
10199
10200
10201 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10202 PyObject *resultobj = 0;
10203 wxCursor *arg1 = (wxCursor *) 0 ;
10204 void *argp1 = 0 ;
10205 int res1 = 0 ;
10206 PyObject *swig_obj[1] ;
10207
10208 if (!args) SWIG_fail;
10209 swig_obj[0] = args;
10210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10211 if (!SWIG_IsOK(res1)) {
10212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10213 }
10214 arg1 = reinterpret_cast< wxCursor * >(argp1);
10215 {
10216 PyThreadState* __tstate = wxPyBeginAllowThreads();
10217 delete arg1;
10218
10219 wxPyEndAllowThreads(__tstate);
10220 if (PyErr_Occurred()) SWIG_fail;
10221 }
10222 resultobj = SWIG_Py_Void();
10223 return resultobj;
10224 fail:
10225 return NULL;
10226 }
10227
10228
10229 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10230 PyObject *resultobj = 0;
10231 int arg1 ;
10232 wxCursor *result = 0 ;
10233 int val1 ;
10234 int ecode1 = 0 ;
10235 PyObject * obj0 = 0 ;
10236 char * kwnames[] = {
10237 (char *) "id", NULL
10238 };
10239
10240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10241 ecode1 = SWIG_AsVal_int(obj0, &val1);
10242 if (!SWIG_IsOK(ecode1)) {
10243 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10244 }
10245 arg1 = static_cast< int >(val1);
10246 {
10247 if (!wxPyCheckForApp()) SWIG_fail;
10248 PyThreadState* __tstate = wxPyBeginAllowThreads();
10249 result = (wxCursor *)new wxCursor(arg1);
10250 wxPyEndAllowThreads(__tstate);
10251 if (PyErr_Occurred()) SWIG_fail;
10252 }
10253 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10254 return resultobj;
10255 fail:
10256 return NULL;
10257 }
10258
10259
10260 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10261 PyObject *resultobj = 0;
10262 wxImage *arg1 = 0 ;
10263 wxCursor *result = 0 ;
10264 void *argp1 = 0 ;
10265 int res1 = 0 ;
10266 PyObject * obj0 = 0 ;
10267 char * kwnames[] = {
10268 (char *) "image", NULL
10269 };
10270
10271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10272 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10273 if (!SWIG_IsOK(res1)) {
10274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10275 }
10276 if (!argp1) {
10277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10278 }
10279 arg1 = reinterpret_cast< wxImage * >(argp1);
10280 {
10281 if (!wxPyCheckForApp()) SWIG_fail;
10282 PyThreadState* __tstate = wxPyBeginAllowThreads();
10283 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10284 wxPyEndAllowThreads(__tstate);
10285 if (PyErr_Occurred()) SWIG_fail;
10286 }
10287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10288 return resultobj;
10289 fail:
10290 return NULL;
10291 }
10292
10293
10294 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10295 PyObject *resultobj = 0;
10296 wxCursor *arg1 = (wxCursor *) 0 ;
10297 bool result;
10298 void *argp1 = 0 ;
10299 int res1 = 0 ;
10300 PyObject *swig_obj[1] ;
10301
10302 if (!args) SWIG_fail;
10303 swig_obj[0] = args;
10304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10305 if (!SWIG_IsOK(res1)) {
10306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10307 }
10308 arg1 = reinterpret_cast< wxCursor * >(argp1);
10309 {
10310 PyThreadState* __tstate = wxPyBeginAllowThreads();
10311 result = (bool)(arg1)->IsOk();
10312 wxPyEndAllowThreads(__tstate);
10313 if (PyErr_Occurred()) SWIG_fail;
10314 }
10315 {
10316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10317 }
10318 return resultobj;
10319 fail:
10320 return NULL;
10321 }
10322
10323
10324 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10325 PyObject *obj;
10326 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10327 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10328 return SWIG_Py_Void();
10329 }
10330
10331 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10332 return SWIG_Python_InitShadowInstance(args);
10333 }
10334
10335 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10336 PyObject *resultobj = 0;
10337 int arg1 = (int) 0 ;
10338 int arg2 = (int) 0 ;
10339 int arg3 = (int) 0 ;
10340 int arg4 = (int) 0 ;
10341 wxRegion *result = 0 ;
10342 int val1 ;
10343 int ecode1 = 0 ;
10344 int val2 ;
10345 int ecode2 = 0 ;
10346 int val3 ;
10347 int ecode3 = 0 ;
10348 int val4 ;
10349 int ecode4 = 0 ;
10350 PyObject * obj0 = 0 ;
10351 PyObject * obj1 = 0 ;
10352 PyObject * obj2 = 0 ;
10353 PyObject * obj3 = 0 ;
10354 char * kwnames[] = {
10355 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10356 };
10357
10358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10359 if (obj0) {
10360 ecode1 = SWIG_AsVal_int(obj0, &val1);
10361 if (!SWIG_IsOK(ecode1)) {
10362 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10363 }
10364 arg1 = static_cast< int >(val1);
10365 }
10366 if (obj1) {
10367 ecode2 = SWIG_AsVal_int(obj1, &val2);
10368 if (!SWIG_IsOK(ecode2)) {
10369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10370 }
10371 arg2 = static_cast< int >(val2);
10372 }
10373 if (obj2) {
10374 ecode3 = SWIG_AsVal_int(obj2, &val3);
10375 if (!SWIG_IsOK(ecode3)) {
10376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10377 }
10378 arg3 = static_cast< int >(val3);
10379 }
10380 if (obj3) {
10381 ecode4 = SWIG_AsVal_int(obj3, &val4);
10382 if (!SWIG_IsOK(ecode4)) {
10383 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10384 }
10385 arg4 = static_cast< int >(val4);
10386 }
10387 {
10388 if (!wxPyCheckForApp()) SWIG_fail;
10389 PyThreadState* __tstate = wxPyBeginAllowThreads();
10390 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10391 wxPyEndAllowThreads(__tstate);
10392 if (PyErr_Occurred()) SWIG_fail;
10393 }
10394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10395 return resultobj;
10396 fail:
10397 return NULL;
10398 }
10399
10400
10401 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10402 PyObject *resultobj = 0;
10403 wxBitmap *arg1 = 0 ;
10404 wxRegion *result = 0 ;
10405 void *argp1 = 0 ;
10406 int res1 = 0 ;
10407 PyObject * obj0 = 0 ;
10408 char * kwnames[] = {
10409 (char *) "bmp", NULL
10410 };
10411
10412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10413 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10414 if (!SWIG_IsOK(res1)) {
10415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10416 }
10417 if (!argp1) {
10418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10419 }
10420 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10421 {
10422 if (!wxPyCheckForApp()) SWIG_fail;
10423 PyThreadState* __tstate = wxPyBeginAllowThreads();
10424 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10425 wxPyEndAllowThreads(__tstate);
10426 if (PyErr_Occurred()) SWIG_fail;
10427 }
10428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10429 return resultobj;
10430 fail:
10431 return NULL;
10432 }
10433
10434
10435 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10436 PyObject *resultobj = 0;
10437 wxBitmap *arg1 = 0 ;
10438 wxColour *arg2 = 0 ;
10439 int arg3 = (int) 0 ;
10440 wxRegion *result = 0 ;
10441 void *argp1 = 0 ;
10442 int res1 = 0 ;
10443 wxColour temp2 ;
10444 int val3 ;
10445 int ecode3 = 0 ;
10446 PyObject * obj0 = 0 ;
10447 PyObject * obj1 = 0 ;
10448 PyObject * obj2 = 0 ;
10449 char * kwnames[] = {
10450 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10451 };
10452
10453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10454 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10455 if (!SWIG_IsOK(res1)) {
10456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10457 }
10458 if (!argp1) {
10459 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10460 }
10461 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10462 {
10463 arg2 = &temp2;
10464 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10465 }
10466 if (obj2) {
10467 ecode3 = SWIG_AsVal_int(obj2, &val3);
10468 if (!SWIG_IsOK(ecode3)) {
10469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10470 }
10471 arg3 = static_cast< int >(val3);
10472 }
10473 {
10474 if (!wxPyCheckForApp()) SWIG_fail;
10475 PyThreadState* __tstate = wxPyBeginAllowThreads();
10476 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10477 wxPyEndAllowThreads(__tstate);
10478 if (PyErr_Occurred()) SWIG_fail;
10479 }
10480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10481 return resultobj;
10482 fail:
10483 return NULL;
10484 }
10485
10486
10487 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10488 PyObject *resultobj = 0;
10489 int arg1 ;
10490 wxPoint *arg2 = (wxPoint *) 0 ;
10491 int arg3 = (int) wxWINDING_RULE ;
10492 wxRegion *result = 0 ;
10493 int val3 ;
10494 int ecode3 = 0 ;
10495 PyObject * obj0 = 0 ;
10496 PyObject * obj1 = 0 ;
10497 char * kwnames[] = {
10498 (char *) "points",(char *) "fillStyle", NULL
10499 };
10500
10501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10502 {
10503 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10504 if (arg2 == NULL) SWIG_fail;
10505 }
10506 if (obj1) {
10507 ecode3 = SWIG_AsVal_int(obj1, &val3);
10508 if (!SWIG_IsOK(ecode3)) {
10509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10510 }
10511 arg3 = static_cast< int >(val3);
10512 }
10513 {
10514 if (!wxPyCheckForApp()) SWIG_fail;
10515 PyThreadState* __tstate = wxPyBeginAllowThreads();
10516 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10517 wxPyEndAllowThreads(__tstate);
10518 if (PyErr_Occurred()) SWIG_fail;
10519 }
10520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10521 {
10522 if (arg2) delete [] arg2;
10523 }
10524 return resultobj;
10525 fail:
10526 {
10527 if (arg2) delete [] arg2;
10528 }
10529 return NULL;
10530 }
10531
10532
10533 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10534 PyObject *resultobj = 0;
10535 wxRegion *arg1 = (wxRegion *) 0 ;
10536 void *argp1 = 0 ;
10537 int res1 = 0 ;
10538 PyObject *swig_obj[1] ;
10539
10540 if (!args) SWIG_fail;
10541 swig_obj[0] = args;
10542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10543 if (!SWIG_IsOK(res1)) {
10544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10545 }
10546 arg1 = reinterpret_cast< wxRegion * >(argp1);
10547 {
10548 PyThreadState* __tstate = wxPyBeginAllowThreads();
10549 delete arg1;
10550
10551 wxPyEndAllowThreads(__tstate);
10552 if (PyErr_Occurred()) SWIG_fail;
10553 }
10554 resultobj = SWIG_Py_Void();
10555 return resultobj;
10556 fail:
10557 return NULL;
10558 }
10559
10560
10561 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10562 PyObject *resultobj = 0;
10563 wxRegion *arg1 = (wxRegion *) 0 ;
10564 void *argp1 = 0 ;
10565 int res1 = 0 ;
10566 PyObject *swig_obj[1] ;
10567
10568 if (!args) SWIG_fail;
10569 swig_obj[0] = args;
10570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10571 if (!SWIG_IsOK(res1)) {
10572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10573 }
10574 arg1 = reinterpret_cast< wxRegion * >(argp1);
10575 {
10576 PyThreadState* __tstate = wxPyBeginAllowThreads();
10577 (arg1)->Clear();
10578 wxPyEndAllowThreads(__tstate);
10579 if (PyErr_Occurred()) SWIG_fail;
10580 }
10581 resultobj = SWIG_Py_Void();
10582 return resultobj;
10583 fail:
10584 return NULL;
10585 }
10586
10587
10588 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10589 PyObject *resultobj = 0;
10590 wxRegion *arg1 = (wxRegion *) 0 ;
10591 int arg2 ;
10592 int arg3 ;
10593 bool result;
10594 void *argp1 = 0 ;
10595 int res1 = 0 ;
10596 int val2 ;
10597 int ecode2 = 0 ;
10598 int val3 ;
10599 int ecode3 = 0 ;
10600 PyObject * obj0 = 0 ;
10601 PyObject * obj1 = 0 ;
10602 PyObject * obj2 = 0 ;
10603 char * kwnames[] = {
10604 (char *) "self",(char *) "x",(char *) "y", NULL
10605 };
10606
10607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10609 if (!SWIG_IsOK(res1)) {
10610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10611 }
10612 arg1 = reinterpret_cast< wxRegion * >(argp1);
10613 ecode2 = SWIG_AsVal_int(obj1, &val2);
10614 if (!SWIG_IsOK(ecode2)) {
10615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10616 }
10617 arg2 = static_cast< int >(val2);
10618 ecode3 = SWIG_AsVal_int(obj2, &val3);
10619 if (!SWIG_IsOK(ecode3)) {
10620 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10621 }
10622 arg3 = static_cast< int >(val3);
10623 {
10624 PyThreadState* __tstate = wxPyBeginAllowThreads();
10625 result = (bool)(arg1)->Offset(arg2,arg3);
10626 wxPyEndAllowThreads(__tstate);
10627 if (PyErr_Occurred()) SWIG_fail;
10628 }
10629 {
10630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10631 }
10632 return resultobj;
10633 fail:
10634 return NULL;
10635 }
10636
10637
10638 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10639 PyObject *resultobj = 0;
10640 wxRegion *arg1 = (wxRegion *) 0 ;
10641 int arg2 ;
10642 int arg3 ;
10643 wxRegionContain result;
10644 void *argp1 = 0 ;
10645 int res1 = 0 ;
10646 int val2 ;
10647 int ecode2 = 0 ;
10648 int val3 ;
10649 int ecode3 = 0 ;
10650 PyObject * obj0 = 0 ;
10651 PyObject * obj1 = 0 ;
10652 PyObject * obj2 = 0 ;
10653 char * kwnames[] = {
10654 (char *) "self",(char *) "x",(char *) "y", NULL
10655 };
10656
10657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10659 if (!SWIG_IsOK(res1)) {
10660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10661 }
10662 arg1 = reinterpret_cast< wxRegion * >(argp1);
10663 ecode2 = SWIG_AsVal_int(obj1, &val2);
10664 if (!SWIG_IsOK(ecode2)) {
10665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10666 }
10667 arg2 = static_cast< int >(val2);
10668 ecode3 = SWIG_AsVal_int(obj2, &val3);
10669 if (!SWIG_IsOK(ecode3)) {
10670 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10671 }
10672 arg3 = static_cast< int >(val3);
10673 {
10674 PyThreadState* __tstate = wxPyBeginAllowThreads();
10675 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10676 wxPyEndAllowThreads(__tstate);
10677 if (PyErr_Occurred()) SWIG_fail;
10678 }
10679 resultobj = SWIG_From_int(static_cast< int >(result));
10680 return resultobj;
10681 fail:
10682 return NULL;
10683 }
10684
10685
10686 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10687 PyObject *resultobj = 0;
10688 wxRegion *arg1 = (wxRegion *) 0 ;
10689 wxPoint *arg2 = 0 ;
10690 wxRegionContain result;
10691 void *argp1 = 0 ;
10692 int res1 = 0 ;
10693 wxPoint temp2 ;
10694 PyObject * obj0 = 0 ;
10695 PyObject * obj1 = 0 ;
10696 char * kwnames[] = {
10697 (char *) "self",(char *) "pt", NULL
10698 };
10699
10700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10702 if (!SWIG_IsOK(res1)) {
10703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10704 }
10705 arg1 = reinterpret_cast< wxRegion * >(argp1);
10706 {
10707 arg2 = &temp2;
10708 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10709 }
10710 {
10711 PyThreadState* __tstate = wxPyBeginAllowThreads();
10712 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10713 wxPyEndAllowThreads(__tstate);
10714 if (PyErr_Occurred()) SWIG_fail;
10715 }
10716 resultobj = SWIG_From_int(static_cast< int >(result));
10717 return resultobj;
10718 fail:
10719 return NULL;
10720 }
10721
10722
10723 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10724 PyObject *resultobj = 0;
10725 wxRegion *arg1 = (wxRegion *) 0 ;
10726 wxRect *arg2 = 0 ;
10727 wxRegionContain result;
10728 void *argp1 = 0 ;
10729 int res1 = 0 ;
10730 wxRect temp2 ;
10731 PyObject * obj0 = 0 ;
10732 PyObject * obj1 = 0 ;
10733 char * kwnames[] = {
10734 (char *) "self",(char *) "rect", NULL
10735 };
10736
10737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10739 if (!SWIG_IsOK(res1)) {
10740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10741 }
10742 arg1 = reinterpret_cast< wxRegion * >(argp1);
10743 {
10744 arg2 = &temp2;
10745 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10746 }
10747 {
10748 PyThreadState* __tstate = wxPyBeginAllowThreads();
10749 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10750 wxPyEndAllowThreads(__tstate);
10751 if (PyErr_Occurred()) SWIG_fail;
10752 }
10753 resultobj = SWIG_From_int(static_cast< int >(result));
10754 return resultobj;
10755 fail:
10756 return NULL;
10757 }
10758
10759
10760 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10761 PyObject *resultobj = 0;
10762 wxRegion *arg1 = (wxRegion *) 0 ;
10763 int arg2 ;
10764 int arg3 ;
10765 int arg4 ;
10766 int arg5 ;
10767 wxRegionContain result;
10768 void *argp1 = 0 ;
10769 int res1 = 0 ;
10770 int val2 ;
10771 int ecode2 = 0 ;
10772 int val3 ;
10773 int ecode3 = 0 ;
10774 int val4 ;
10775 int ecode4 = 0 ;
10776 int val5 ;
10777 int ecode5 = 0 ;
10778 PyObject * obj0 = 0 ;
10779 PyObject * obj1 = 0 ;
10780 PyObject * obj2 = 0 ;
10781 PyObject * obj3 = 0 ;
10782 PyObject * obj4 = 0 ;
10783 char * kwnames[] = {
10784 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10785 };
10786
10787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10789 if (!SWIG_IsOK(res1)) {
10790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10791 }
10792 arg1 = reinterpret_cast< wxRegion * >(argp1);
10793 ecode2 = SWIG_AsVal_int(obj1, &val2);
10794 if (!SWIG_IsOK(ecode2)) {
10795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10796 }
10797 arg2 = static_cast< int >(val2);
10798 ecode3 = SWIG_AsVal_int(obj2, &val3);
10799 if (!SWIG_IsOK(ecode3)) {
10800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10801 }
10802 arg3 = static_cast< int >(val3);
10803 ecode4 = SWIG_AsVal_int(obj3, &val4);
10804 if (!SWIG_IsOK(ecode4)) {
10805 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10806 }
10807 arg4 = static_cast< int >(val4);
10808 ecode5 = SWIG_AsVal_int(obj4, &val5);
10809 if (!SWIG_IsOK(ecode5)) {
10810 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10811 }
10812 arg5 = static_cast< int >(val5);
10813 {
10814 PyThreadState* __tstate = wxPyBeginAllowThreads();
10815 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10816 wxPyEndAllowThreads(__tstate);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 }
10819 resultobj = SWIG_From_int(static_cast< int >(result));
10820 return resultobj;
10821 fail:
10822 return NULL;
10823 }
10824
10825
10826 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10827 PyObject *resultobj = 0;
10828 wxRegion *arg1 = (wxRegion *) 0 ;
10829 wxRect result;
10830 void *argp1 = 0 ;
10831 int res1 = 0 ;
10832 PyObject *swig_obj[1] ;
10833
10834 if (!args) SWIG_fail;
10835 swig_obj[0] = args;
10836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10837 if (!SWIG_IsOK(res1)) {
10838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10839 }
10840 arg1 = reinterpret_cast< wxRegion * >(argp1);
10841 {
10842 PyThreadState* __tstate = wxPyBeginAllowThreads();
10843 result = (arg1)->GetBox();
10844 wxPyEndAllowThreads(__tstate);
10845 if (PyErr_Occurred()) SWIG_fail;
10846 }
10847 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10848 return resultobj;
10849 fail:
10850 return NULL;
10851 }
10852
10853
10854 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10855 PyObject *resultobj = 0;
10856 wxRegion *arg1 = (wxRegion *) 0 ;
10857 int arg2 ;
10858 int arg3 ;
10859 int arg4 ;
10860 int arg5 ;
10861 bool result;
10862 void *argp1 = 0 ;
10863 int res1 = 0 ;
10864 int val2 ;
10865 int ecode2 = 0 ;
10866 int val3 ;
10867 int ecode3 = 0 ;
10868 int val4 ;
10869 int ecode4 = 0 ;
10870 int val5 ;
10871 int ecode5 = 0 ;
10872 PyObject * obj0 = 0 ;
10873 PyObject * obj1 = 0 ;
10874 PyObject * obj2 = 0 ;
10875 PyObject * obj3 = 0 ;
10876 PyObject * obj4 = 0 ;
10877 char * kwnames[] = {
10878 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10879 };
10880
10881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10883 if (!SWIG_IsOK(res1)) {
10884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10885 }
10886 arg1 = reinterpret_cast< wxRegion * >(argp1);
10887 ecode2 = SWIG_AsVal_int(obj1, &val2);
10888 if (!SWIG_IsOK(ecode2)) {
10889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10890 }
10891 arg2 = static_cast< int >(val2);
10892 ecode3 = SWIG_AsVal_int(obj2, &val3);
10893 if (!SWIG_IsOK(ecode3)) {
10894 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10895 }
10896 arg3 = static_cast< int >(val3);
10897 ecode4 = SWIG_AsVal_int(obj3, &val4);
10898 if (!SWIG_IsOK(ecode4)) {
10899 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10900 }
10901 arg4 = static_cast< int >(val4);
10902 ecode5 = SWIG_AsVal_int(obj4, &val5);
10903 if (!SWIG_IsOK(ecode5)) {
10904 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10905 }
10906 arg5 = static_cast< int >(val5);
10907 {
10908 PyThreadState* __tstate = wxPyBeginAllowThreads();
10909 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10910 wxPyEndAllowThreads(__tstate);
10911 if (PyErr_Occurred()) SWIG_fail;
10912 }
10913 {
10914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10915 }
10916 return resultobj;
10917 fail:
10918 return NULL;
10919 }
10920
10921
10922 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10923 PyObject *resultobj = 0;
10924 wxRegion *arg1 = (wxRegion *) 0 ;
10925 wxRect *arg2 = 0 ;
10926 bool result;
10927 void *argp1 = 0 ;
10928 int res1 = 0 ;
10929 wxRect temp2 ;
10930 PyObject * obj0 = 0 ;
10931 PyObject * obj1 = 0 ;
10932 char * kwnames[] = {
10933 (char *) "self",(char *) "rect", NULL
10934 };
10935
10936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10938 if (!SWIG_IsOK(res1)) {
10939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10940 }
10941 arg1 = reinterpret_cast< wxRegion * >(argp1);
10942 {
10943 arg2 = &temp2;
10944 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10945 }
10946 {
10947 PyThreadState* __tstate = wxPyBeginAllowThreads();
10948 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10949 wxPyEndAllowThreads(__tstate);
10950 if (PyErr_Occurred()) SWIG_fail;
10951 }
10952 {
10953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10954 }
10955 return resultobj;
10956 fail:
10957 return NULL;
10958 }
10959
10960
10961 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10962 PyObject *resultobj = 0;
10963 wxRegion *arg1 = (wxRegion *) 0 ;
10964 wxRegion *arg2 = 0 ;
10965 bool result;
10966 void *argp1 = 0 ;
10967 int res1 = 0 ;
10968 void *argp2 = 0 ;
10969 int res2 = 0 ;
10970 PyObject * obj0 = 0 ;
10971 PyObject * obj1 = 0 ;
10972 char * kwnames[] = {
10973 (char *) "self",(char *) "region", NULL
10974 };
10975
10976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10978 if (!SWIG_IsOK(res1)) {
10979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10980 }
10981 arg1 = reinterpret_cast< wxRegion * >(argp1);
10982 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10983 if (!SWIG_IsOK(res2)) {
10984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10985 }
10986 if (!argp2) {
10987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10988 }
10989 arg2 = reinterpret_cast< wxRegion * >(argp2);
10990 {
10991 PyThreadState* __tstate = wxPyBeginAllowThreads();
10992 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10993 wxPyEndAllowThreads(__tstate);
10994 if (PyErr_Occurred()) SWIG_fail;
10995 }
10996 {
10997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10998 }
10999 return resultobj;
11000 fail:
11001 return NULL;
11002 }
11003
11004
11005 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11006 PyObject *resultobj = 0;
11007 wxRegion *arg1 = (wxRegion *) 0 ;
11008 bool result;
11009 void *argp1 = 0 ;
11010 int res1 = 0 ;
11011 PyObject *swig_obj[1] ;
11012
11013 if (!args) SWIG_fail;
11014 swig_obj[0] = args;
11015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11016 if (!SWIG_IsOK(res1)) {
11017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11018 }
11019 arg1 = reinterpret_cast< wxRegion * >(argp1);
11020 {
11021 PyThreadState* __tstate = wxPyBeginAllowThreads();
11022 result = (bool)(arg1)->IsEmpty();
11023 wxPyEndAllowThreads(__tstate);
11024 if (PyErr_Occurred()) SWIG_fail;
11025 }
11026 {
11027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11028 }
11029 return resultobj;
11030 fail:
11031 return NULL;
11032 }
11033
11034
11035 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11036 PyObject *resultobj = 0;
11037 wxRegion *arg1 = (wxRegion *) 0 ;
11038 wxRegion *arg2 = 0 ;
11039 bool result;
11040 void *argp1 = 0 ;
11041 int res1 = 0 ;
11042 void *argp2 = 0 ;
11043 int res2 = 0 ;
11044 PyObject * obj0 = 0 ;
11045 PyObject * obj1 = 0 ;
11046 char * kwnames[] = {
11047 (char *) "self",(char *) "region", NULL
11048 };
11049
11050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11052 if (!SWIG_IsOK(res1)) {
11053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11054 }
11055 arg1 = reinterpret_cast< wxRegion * >(argp1);
11056 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11057 if (!SWIG_IsOK(res2)) {
11058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11059 }
11060 if (!argp2) {
11061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11062 }
11063 arg2 = reinterpret_cast< wxRegion * >(argp2);
11064 {
11065 PyThreadState* __tstate = wxPyBeginAllowThreads();
11066 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11067 wxPyEndAllowThreads(__tstate);
11068 if (PyErr_Occurred()) SWIG_fail;
11069 }
11070 {
11071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11072 }
11073 return resultobj;
11074 fail:
11075 return NULL;
11076 }
11077
11078
11079 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11080 PyObject *resultobj = 0;
11081 wxRegion *arg1 = (wxRegion *) 0 ;
11082 int arg2 ;
11083 int arg3 ;
11084 int arg4 ;
11085 int arg5 ;
11086 bool result;
11087 void *argp1 = 0 ;
11088 int res1 = 0 ;
11089 int val2 ;
11090 int ecode2 = 0 ;
11091 int val3 ;
11092 int ecode3 = 0 ;
11093 int val4 ;
11094 int ecode4 = 0 ;
11095 int val5 ;
11096 int ecode5 = 0 ;
11097 PyObject * obj0 = 0 ;
11098 PyObject * obj1 = 0 ;
11099 PyObject * obj2 = 0 ;
11100 PyObject * obj3 = 0 ;
11101 PyObject * obj4 = 0 ;
11102 char * kwnames[] = {
11103 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11104 };
11105
11106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11108 if (!SWIG_IsOK(res1)) {
11109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11110 }
11111 arg1 = reinterpret_cast< wxRegion * >(argp1);
11112 ecode2 = SWIG_AsVal_int(obj1, &val2);
11113 if (!SWIG_IsOK(ecode2)) {
11114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11115 }
11116 arg2 = static_cast< int >(val2);
11117 ecode3 = SWIG_AsVal_int(obj2, &val3);
11118 if (!SWIG_IsOK(ecode3)) {
11119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11120 }
11121 arg3 = static_cast< int >(val3);
11122 ecode4 = SWIG_AsVal_int(obj3, &val4);
11123 if (!SWIG_IsOK(ecode4)) {
11124 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11125 }
11126 arg4 = static_cast< int >(val4);
11127 ecode5 = SWIG_AsVal_int(obj4, &val5);
11128 if (!SWIG_IsOK(ecode5)) {
11129 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11130 }
11131 arg5 = static_cast< int >(val5);
11132 {
11133 PyThreadState* __tstate = wxPyBeginAllowThreads();
11134 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11135 wxPyEndAllowThreads(__tstate);
11136 if (PyErr_Occurred()) SWIG_fail;
11137 }
11138 {
11139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11140 }
11141 return resultobj;
11142 fail:
11143 return NULL;
11144 }
11145
11146
11147 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11148 PyObject *resultobj = 0;
11149 wxRegion *arg1 = (wxRegion *) 0 ;
11150 wxRect *arg2 = 0 ;
11151 bool result;
11152 void *argp1 = 0 ;
11153 int res1 = 0 ;
11154 wxRect temp2 ;
11155 PyObject * obj0 = 0 ;
11156 PyObject * obj1 = 0 ;
11157 char * kwnames[] = {
11158 (char *) "self",(char *) "rect", NULL
11159 };
11160
11161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11163 if (!SWIG_IsOK(res1)) {
11164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11165 }
11166 arg1 = reinterpret_cast< wxRegion * >(argp1);
11167 {
11168 arg2 = &temp2;
11169 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11170 }
11171 {
11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
11173 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11174 wxPyEndAllowThreads(__tstate);
11175 if (PyErr_Occurred()) SWIG_fail;
11176 }
11177 {
11178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11179 }
11180 return resultobj;
11181 fail:
11182 return NULL;
11183 }
11184
11185
11186 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11187 PyObject *resultobj = 0;
11188 wxRegion *arg1 = (wxRegion *) 0 ;
11189 wxRegion *arg2 = 0 ;
11190 bool result;
11191 void *argp1 = 0 ;
11192 int res1 = 0 ;
11193 void *argp2 = 0 ;
11194 int res2 = 0 ;
11195 PyObject * obj0 = 0 ;
11196 PyObject * obj1 = 0 ;
11197 char * kwnames[] = {
11198 (char *) "self",(char *) "region", NULL
11199 };
11200
11201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11203 if (!SWIG_IsOK(res1)) {
11204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11205 }
11206 arg1 = reinterpret_cast< wxRegion * >(argp1);
11207 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11208 if (!SWIG_IsOK(res2)) {
11209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11210 }
11211 if (!argp2) {
11212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11213 }
11214 arg2 = reinterpret_cast< wxRegion * >(argp2);
11215 {
11216 PyThreadState* __tstate = wxPyBeginAllowThreads();
11217 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11218 wxPyEndAllowThreads(__tstate);
11219 if (PyErr_Occurred()) SWIG_fail;
11220 }
11221 {
11222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11223 }
11224 return resultobj;
11225 fail:
11226 return NULL;
11227 }
11228
11229
11230 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11231 PyObject *resultobj = 0;
11232 wxRegion *arg1 = (wxRegion *) 0 ;
11233 int arg2 ;
11234 int arg3 ;
11235 int arg4 ;
11236 int arg5 ;
11237 bool result;
11238 void *argp1 = 0 ;
11239 int res1 = 0 ;
11240 int val2 ;
11241 int ecode2 = 0 ;
11242 int val3 ;
11243 int ecode3 = 0 ;
11244 int val4 ;
11245 int ecode4 = 0 ;
11246 int val5 ;
11247 int ecode5 = 0 ;
11248 PyObject * obj0 = 0 ;
11249 PyObject * obj1 = 0 ;
11250 PyObject * obj2 = 0 ;
11251 PyObject * obj3 = 0 ;
11252 PyObject * obj4 = 0 ;
11253 char * kwnames[] = {
11254 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11255 };
11256
11257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11259 if (!SWIG_IsOK(res1)) {
11260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11261 }
11262 arg1 = reinterpret_cast< wxRegion * >(argp1);
11263 ecode2 = SWIG_AsVal_int(obj1, &val2);
11264 if (!SWIG_IsOK(ecode2)) {
11265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11266 }
11267 arg2 = static_cast< int >(val2);
11268 ecode3 = SWIG_AsVal_int(obj2, &val3);
11269 if (!SWIG_IsOK(ecode3)) {
11270 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11271 }
11272 arg3 = static_cast< int >(val3);
11273 ecode4 = SWIG_AsVal_int(obj3, &val4);
11274 if (!SWIG_IsOK(ecode4)) {
11275 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11276 }
11277 arg4 = static_cast< int >(val4);
11278 ecode5 = SWIG_AsVal_int(obj4, &val5);
11279 if (!SWIG_IsOK(ecode5)) {
11280 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11281 }
11282 arg5 = static_cast< int >(val5);
11283 {
11284 PyThreadState* __tstate = wxPyBeginAllowThreads();
11285 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11286 wxPyEndAllowThreads(__tstate);
11287 if (PyErr_Occurred()) SWIG_fail;
11288 }
11289 {
11290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11291 }
11292 return resultobj;
11293 fail:
11294 return NULL;
11295 }
11296
11297
11298 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11299 PyObject *resultobj = 0;
11300 wxRegion *arg1 = (wxRegion *) 0 ;
11301 wxRect *arg2 = 0 ;
11302 bool result;
11303 void *argp1 = 0 ;
11304 int res1 = 0 ;
11305 wxRect temp2 ;
11306 PyObject * obj0 = 0 ;
11307 PyObject * obj1 = 0 ;
11308 char * kwnames[] = {
11309 (char *) "self",(char *) "rect", NULL
11310 };
11311
11312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11314 if (!SWIG_IsOK(res1)) {
11315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11316 }
11317 arg1 = reinterpret_cast< wxRegion * >(argp1);
11318 {
11319 arg2 = &temp2;
11320 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11321 }
11322 {
11323 PyThreadState* __tstate = wxPyBeginAllowThreads();
11324 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11325 wxPyEndAllowThreads(__tstate);
11326 if (PyErr_Occurred()) SWIG_fail;
11327 }
11328 {
11329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11330 }
11331 return resultobj;
11332 fail:
11333 return NULL;
11334 }
11335
11336
11337 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11338 PyObject *resultobj = 0;
11339 wxRegion *arg1 = (wxRegion *) 0 ;
11340 wxRegion *arg2 = 0 ;
11341 bool result;
11342 void *argp1 = 0 ;
11343 int res1 = 0 ;
11344 void *argp2 = 0 ;
11345 int res2 = 0 ;
11346 PyObject * obj0 = 0 ;
11347 PyObject * obj1 = 0 ;
11348 char * kwnames[] = {
11349 (char *) "self",(char *) "region", NULL
11350 };
11351
11352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11354 if (!SWIG_IsOK(res1)) {
11355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11356 }
11357 arg1 = reinterpret_cast< wxRegion * >(argp1);
11358 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11359 if (!SWIG_IsOK(res2)) {
11360 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11361 }
11362 if (!argp2) {
11363 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11364 }
11365 arg2 = reinterpret_cast< wxRegion * >(argp2);
11366 {
11367 PyThreadState* __tstate = wxPyBeginAllowThreads();
11368 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11369 wxPyEndAllowThreads(__tstate);
11370 if (PyErr_Occurred()) SWIG_fail;
11371 }
11372 {
11373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11374 }
11375 return resultobj;
11376 fail:
11377 return NULL;
11378 }
11379
11380
11381 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11382 PyObject *resultobj = 0;
11383 wxRegion *arg1 = (wxRegion *) 0 ;
11384 int arg2 ;
11385 int arg3 ;
11386 int arg4 ;
11387 int arg5 ;
11388 bool result;
11389 void *argp1 = 0 ;
11390 int res1 = 0 ;
11391 int val2 ;
11392 int ecode2 = 0 ;
11393 int val3 ;
11394 int ecode3 = 0 ;
11395 int val4 ;
11396 int ecode4 = 0 ;
11397 int val5 ;
11398 int ecode5 = 0 ;
11399 PyObject * obj0 = 0 ;
11400 PyObject * obj1 = 0 ;
11401 PyObject * obj2 = 0 ;
11402 PyObject * obj3 = 0 ;
11403 PyObject * obj4 = 0 ;
11404 char * kwnames[] = {
11405 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11406 };
11407
11408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11410 if (!SWIG_IsOK(res1)) {
11411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11412 }
11413 arg1 = reinterpret_cast< wxRegion * >(argp1);
11414 ecode2 = SWIG_AsVal_int(obj1, &val2);
11415 if (!SWIG_IsOK(ecode2)) {
11416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11417 }
11418 arg2 = static_cast< int >(val2);
11419 ecode3 = SWIG_AsVal_int(obj2, &val3);
11420 if (!SWIG_IsOK(ecode3)) {
11421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11422 }
11423 arg3 = static_cast< int >(val3);
11424 ecode4 = SWIG_AsVal_int(obj3, &val4);
11425 if (!SWIG_IsOK(ecode4)) {
11426 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11427 }
11428 arg4 = static_cast< int >(val4);
11429 ecode5 = SWIG_AsVal_int(obj4, &val5);
11430 if (!SWIG_IsOK(ecode5)) {
11431 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11432 }
11433 arg5 = static_cast< int >(val5);
11434 {
11435 PyThreadState* __tstate = wxPyBeginAllowThreads();
11436 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11437 wxPyEndAllowThreads(__tstate);
11438 if (PyErr_Occurred()) SWIG_fail;
11439 }
11440 {
11441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11442 }
11443 return resultobj;
11444 fail:
11445 return NULL;
11446 }
11447
11448
11449 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11450 PyObject *resultobj = 0;
11451 wxRegion *arg1 = (wxRegion *) 0 ;
11452 wxRect *arg2 = 0 ;
11453 bool result;
11454 void *argp1 = 0 ;
11455 int res1 = 0 ;
11456 wxRect temp2 ;
11457 PyObject * obj0 = 0 ;
11458 PyObject * obj1 = 0 ;
11459 char * kwnames[] = {
11460 (char *) "self",(char *) "rect", NULL
11461 };
11462
11463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11465 if (!SWIG_IsOK(res1)) {
11466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11467 }
11468 arg1 = reinterpret_cast< wxRegion * >(argp1);
11469 {
11470 arg2 = &temp2;
11471 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11472 }
11473 {
11474 PyThreadState* __tstate = wxPyBeginAllowThreads();
11475 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11476 wxPyEndAllowThreads(__tstate);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 {
11480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11481 }
11482 return resultobj;
11483 fail:
11484 return NULL;
11485 }
11486
11487
11488 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11489 PyObject *resultobj = 0;
11490 wxRegion *arg1 = (wxRegion *) 0 ;
11491 wxRegion *arg2 = 0 ;
11492 bool result;
11493 void *argp1 = 0 ;
11494 int res1 = 0 ;
11495 void *argp2 = 0 ;
11496 int res2 = 0 ;
11497 PyObject * obj0 = 0 ;
11498 PyObject * obj1 = 0 ;
11499 char * kwnames[] = {
11500 (char *) "self",(char *) "region", NULL
11501 };
11502
11503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11505 if (!SWIG_IsOK(res1)) {
11506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11507 }
11508 arg1 = reinterpret_cast< wxRegion * >(argp1);
11509 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11510 if (!SWIG_IsOK(res2)) {
11511 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11512 }
11513 if (!argp2) {
11514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11515 }
11516 arg2 = reinterpret_cast< wxRegion * >(argp2);
11517 {
11518 PyThreadState* __tstate = wxPyBeginAllowThreads();
11519 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11520 wxPyEndAllowThreads(__tstate);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 {
11524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11525 }
11526 return resultobj;
11527 fail:
11528 return NULL;
11529 }
11530
11531
11532 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11533 PyObject *resultobj = 0;
11534 wxRegion *arg1 = (wxRegion *) 0 ;
11535 SwigValueWrapper<wxBitmap > result;
11536 void *argp1 = 0 ;
11537 int res1 = 0 ;
11538 PyObject *swig_obj[1] ;
11539
11540 if (!args) SWIG_fail;
11541 swig_obj[0] = args;
11542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11543 if (!SWIG_IsOK(res1)) {
11544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11545 }
11546 arg1 = reinterpret_cast< wxRegion * >(argp1);
11547 {
11548 PyThreadState* __tstate = wxPyBeginAllowThreads();
11549 result = (arg1)->ConvertToBitmap();
11550 wxPyEndAllowThreads(__tstate);
11551 if (PyErr_Occurred()) SWIG_fail;
11552 }
11553 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11554 return resultobj;
11555 fail:
11556 return NULL;
11557 }
11558
11559
11560 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11561 PyObject *resultobj = 0;
11562 wxRegion *arg1 = (wxRegion *) 0 ;
11563 wxBitmap *arg2 = 0 ;
11564 bool result;
11565 void *argp1 = 0 ;
11566 int res1 = 0 ;
11567 void *argp2 = 0 ;
11568 int res2 = 0 ;
11569 PyObject * obj0 = 0 ;
11570 PyObject * obj1 = 0 ;
11571 char * kwnames[] = {
11572 (char *) "self",(char *) "bmp", NULL
11573 };
11574
11575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11577 if (!SWIG_IsOK(res1)) {
11578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11579 }
11580 arg1 = reinterpret_cast< wxRegion * >(argp1);
11581 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11582 if (!SWIG_IsOK(res2)) {
11583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11584 }
11585 if (!argp2) {
11586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11587 }
11588 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11589 {
11590 PyThreadState* __tstate = wxPyBeginAllowThreads();
11591 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11592 wxPyEndAllowThreads(__tstate);
11593 if (PyErr_Occurred()) SWIG_fail;
11594 }
11595 {
11596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11597 }
11598 return resultobj;
11599 fail:
11600 return NULL;
11601 }
11602
11603
11604 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11605 PyObject *resultobj = 0;
11606 wxRegion *arg1 = (wxRegion *) 0 ;
11607 wxBitmap *arg2 = 0 ;
11608 wxColour *arg3 = 0 ;
11609 int arg4 = (int) 0 ;
11610 bool result;
11611 void *argp1 = 0 ;
11612 int res1 = 0 ;
11613 void *argp2 = 0 ;
11614 int res2 = 0 ;
11615 wxColour temp3 ;
11616 int val4 ;
11617 int ecode4 = 0 ;
11618 PyObject * obj0 = 0 ;
11619 PyObject * obj1 = 0 ;
11620 PyObject * obj2 = 0 ;
11621 PyObject * obj3 = 0 ;
11622 char * kwnames[] = {
11623 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11624 };
11625
11626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11628 if (!SWIG_IsOK(res1)) {
11629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11630 }
11631 arg1 = reinterpret_cast< wxRegion * >(argp1);
11632 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11633 if (!SWIG_IsOK(res2)) {
11634 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11635 }
11636 if (!argp2) {
11637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11638 }
11639 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11640 {
11641 arg3 = &temp3;
11642 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11643 }
11644 if (obj3) {
11645 ecode4 = SWIG_AsVal_int(obj3, &val4);
11646 if (!SWIG_IsOK(ecode4)) {
11647 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11648 }
11649 arg4 = static_cast< int >(val4);
11650 }
11651 {
11652 PyThreadState* __tstate = wxPyBeginAllowThreads();
11653 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11654 wxPyEndAllowThreads(__tstate);
11655 if (PyErr_Occurred()) SWIG_fail;
11656 }
11657 {
11658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11659 }
11660 return resultobj;
11661 fail:
11662 return NULL;
11663 }
11664
11665
11666 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11667 PyObject *obj;
11668 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11669 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11670 return SWIG_Py_Void();
11671 }
11672
11673 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11674 return SWIG_Python_InitShadowInstance(args);
11675 }
11676
11677 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11678 PyObject *resultobj = 0;
11679 wxRegion *arg1 = 0 ;
11680 wxRegionIterator *result = 0 ;
11681 void *argp1 = 0 ;
11682 int res1 = 0 ;
11683 PyObject * obj0 = 0 ;
11684 char * kwnames[] = {
11685 (char *) "region", NULL
11686 };
11687
11688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11689 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11690 if (!SWIG_IsOK(res1)) {
11691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11692 }
11693 if (!argp1) {
11694 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11695 }
11696 arg1 = reinterpret_cast< wxRegion * >(argp1);
11697 {
11698 if (!wxPyCheckForApp()) SWIG_fail;
11699 PyThreadState* __tstate = wxPyBeginAllowThreads();
11700 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11701 wxPyEndAllowThreads(__tstate);
11702 if (PyErr_Occurred()) SWIG_fail;
11703 }
11704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11705 return resultobj;
11706 fail:
11707 return NULL;
11708 }
11709
11710
11711 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11712 PyObject *resultobj = 0;
11713 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11714 void *argp1 = 0 ;
11715 int res1 = 0 ;
11716 PyObject *swig_obj[1] ;
11717
11718 if (!args) SWIG_fail;
11719 swig_obj[0] = args;
11720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11721 if (!SWIG_IsOK(res1)) {
11722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11723 }
11724 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11725 {
11726 PyThreadState* __tstate = wxPyBeginAllowThreads();
11727 delete arg1;
11728
11729 wxPyEndAllowThreads(__tstate);
11730 if (PyErr_Occurred()) SWIG_fail;
11731 }
11732 resultobj = SWIG_Py_Void();
11733 return resultobj;
11734 fail:
11735 return NULL;
11736 }
11737
11738
11739 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11740 PyObject *resultobj = 0;
11741 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11742 int result;
11743 void *argp1 = 0 ;
11744 int res1 = 0 ;
11745 PyObject *swig_obj[1] ;
11746
11747 if (!args) SWIG_fail;
11748 swig_obj[0] = args;
11749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11750 if (!SWIG_IsOK(res1)) {
11751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11752 }
11753 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11754 {
11755 PyThreadState* __tstate = wxPyBeginAllowThreads();
11756 result = (int)(arg1)->GetX();
11757 wxPyEndAllowThreads(__tstate);
11758 if (PyErr_Occurred()) SWIG_fail;
11759 }
11760 resultobj = SWIG_From_int(static_cast< int >(result));
11761 return resultobj;
11762 fail:
11763 return NULL;
11764 }
11765
11766
11767 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11768 PyObject *resultobj = 0;
11769 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11770 int result;
11771 void *argp1 = 0 ;
11772 int res1 = 0 ;
11773 PyObject *swig_obj[1] ;
11774
11775 if (!args) SWIG_fail;
11776 swig_obj[0] = args;
11777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11778 if (!SWIG_IsOK(res1)) {
11779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11780 }
11781 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11782 {
11783 PyThreadState* __tstate = wxPyBeginAllowThreads();
11784 result = (int)(arg1)->GetY();
11785 wxPyEndAllowThreads(__tstate);
11786 if (PyErr_Occurred()) SWIG_fail;
11787 }
11788 resultobj = SWIG_From_int(static_cast< int >(result));
11789 return resultobj;
11790 fail:
11791 return NULL;
11792 }
11793
11794
11795 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11796 PyObject *resultobj = 0;
11797 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11798 int result;
11799 void *argp1 = 0 ;
11800 int res1 = 0 ;
11801 PyObject *swig_obj[1] ;
11802
11803 if (!args) SWIG_fail;
11804 swig_obj[0] = args;
11805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11806 if (!SWIG_IsOK(res1)) {
11807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11808 }
11809 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11810 {
11811 PyThreadState* __tstate = wxPyBeginAllowThreads();
11812 result = (int)(arg1)->GetW();
11813 wxPyEndAllowThreads(__tstate);
11814 if (PyErr_Occurred()) SWIG_fail;
11815 }
11816 resultobj = SWIG_From_int(static_cast< int >(result));
11817 return resultobj;
11818 fail:
11819 return NULL;
11820 }
11821
11822
11823 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11824 PyObject *resultobj = 0;
11825 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11826 int result;
11827 void *argp1 = 0 ;
11828 int res1 = 0 ;
11829 PyObject *swig_obj[1] ;
11830
11831 if (!args) SWIG_fail;
11832 swig_obj[0] = args;
11833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11834 if (!SWIG_IsOK(res1)) {
11835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11836 }
11837 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11838 {
11839 PyThreadState* __tstate = wxPyBeginAllowThreads();
11840 result = (int)(arg1)->GetWidth();
11841 wxPyEndAllowThreads(__tstate);
11842 if (PyErr_Occurred()) SWIG_fail;
11843 }
11844 resultobj = SWIG_From_int(static_cast< int >(result));
11845 return resultobj;
11846 fail:
11847 return NULL;
11848 }
11849
11850
11851 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11852 PyObject *resultobj = 0;
11853 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11854 int result;
11855 void *argp1 = 0 ;
11856 int res1 = 0 ;
11857 PyObject *swig_obj[1] ;
11858
11859 if (!args) SWIG_fail;
11860 swig_obj[0] = args;
11861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11862 if (!SWIG_IsOK(res1)) {
11863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11864 }
11865 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11866 {
11867 PyThreadState* __tstate = wxPyBeginAllowThreads();
11868 result = (int)(arg1)->GetH();
11869 wxPyEndAllowThreads(__tstate);
11870 if (PyErr_Occurred()) SWIG_fail;
11871 }
11872 resultobj = SWIG_From_int(static_cast< int >(result));
11873 return resultobj;
11874 fail:
11875 return NULL;
11876 }
11877
11878
11879 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11880 PyObject *resultobj = 0;
11881 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11882 int result;
11883 void *argp1 = 0 ;
11884 int res1 = 0 ;
11885 PyObject *swig_obj[1] ;
11886
11887 if (!args) SWIG_fail;
11888 swig_obj[0] = args;
11889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11890 if (!SWIG_IsOK(res1)) {
11891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11892 }
11893 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11894 {
11895 PyThreadState* __tstate = wxPyBeginAllowThreads();
11896 result = (int)(arg1)->GetHeight();
11897 wxPyEndAllowThreads(__tstate);
11898 if (PyErr_Occurred()) SWIG_fail;
11899 }
11900 resultobj = SWIG_From_int(static_cast< int >(result));
11901 return resultobj;
11902 fail:
11903 return NULL;
11904 }
11905
11906
11907 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11908 PyObject *resultobj = 0;
11909 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11910 wxRect result;
11911 void *argp1 = 0 ;
11912 int res1 = 0 ;
11913 PyObject *swig_obj[1] ;
11914
11915 if (!args) SWIG_fail;
11916 swig_obj[0] = args;
11917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11918 if (!SWIG_IsOK(res1)) {
11919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11920 }
11921 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11922 {
11923 PyThreadState* __tstate = wxPyBeginAllowThreads();
11924 result = (arg1)->GetRect();
11925 wxPyEndAllowThreads(__tstate);
11926 if (PyErr_Occurred()) SWIG_fail;
11927 }
11928 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11929 return resultobj;
11930 fail:
11931 return NULL;
11932 }
11933
11934
11935 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11936 PyObject *resultobj = 0;
11937 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11938 bool result;
11939 void *argp1 = 0 ;
11940 int res1 = 0 ;
11941 PyObject *swig_obj[1] ;
11942
11943 if (!args) SWIG_fail;
11944 swig_obj[0] = args;
11945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11946 if (!SWIG_IsOK(res1)) {
11947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11948 }
11949 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11950 {
11951 PyThreadState* __tstate = wxPyBeginAllowThreads();
11952 result = (bool)(arg1)->HaveRects();
11953 wxPyEndAllowThreads(__tstate);
11954 if (PyErr_Occurred()) SWIG_fail;
11955 }
11956 {
11957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11958 }
11959 return resultobj;
11960 fail:
11961 return NULL;
11962 }
11963
11964
11965 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11966 PyObject *resultobj = 0;
11967 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11968 void *argp1 = 0 ;
11969 int res1 = 0 ;
11970 PyObject *swig_obj[1] ;
11971
11972 if (!args) SWIG_fail;
11973 swig_obj[0] = args;
11974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11975 if (!SWIG_IsOK(res1)) {
11976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11977 }
11978 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11979 {
11980 PyThreadState* __tstate = wxPyBeginAllowThreads();
11981 (arg1)->Reset();
11982 wxPyEndAllowThreads(__tstate);
11983 if (PyErr_Occurred()) SWIG_fail;
11984 }
11985 resultobj = SWIG_Py_Void();
11986 return resultobj;
11987 fail:
11988 return NULL;
11989 }
11990
11991
11992 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11993 PyObject *resultobj = 0;
11994 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11995 void *argp1 = 0 ;
11996 int res1 = 0 ;
11997 PyObject *swig_obj[1] ;
11998
11999 if (!args) SWIG_fail;
12000 swig_obj[0] = args;
12001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12002 if (!SWIG_IsOK(res1)) {
12003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12004 }
12005 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12006 {
12007 PyThreadState* __tstate = wxPyBeginAllowThreads();
12008 wxRegionIterator_Next(arg1);
12009 wxPyEndAllowThreads(__tstate);
12010 if (PyErr_Occurred()) SWIG_fail;
12011 }
12012 resultobj = SWIG_Py_Void();
12013 return resultobj;
12014 fail:
12015 return NULL;
12016 }
12017
12018
12019 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12020 PyObject *resultobj = 0;
12021 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12022 bool result;
12023 void *argp1 = 0 ;
12024 int res1 = 0 ;
12025 PyObject *swig_obj[1] ;
12026
12027 if (!args) SWIG_fail;
12028 swig_obj[0] = args;
12029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12030 if (!SWIG_IsOK(res1)) {
12031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12032 }
12033 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12034 {
12035 PyThreadState* __tstate = wxPyBeginAllowThreads();
12036 result = (bool)wxRegionIterator___nonzero__(arg1);
12037 wxPyEndAllowThreads(__tstate);
12038 if (PyErr_Occurred()) SWIG_fail;
12039 }
12040 {
12041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12042 }
12043 return resultobj;
12044 fail:
12045 return NULL;
12046 }
12047
12048
12049 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12050 PyObject *obj;
12051 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12052 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12053 return SWIG_Py_Void();
12054 }
12055
12056 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12057 return SWIG_Python_InitShadowInstance(args);
12058 }
12059
12060 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12061 PyObject *resultobj = 0;
12062 wxNativeFontInfo *result = 0 ;
12063
12064 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12065 {
12066 PyThreadState* __tstate = wxPyBeginAllowThreads();
12067 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12068 wxPyEndAllowThreads(__tstate);
12069 if (PyErr_Occurred()) SWIG_fail;
12070 }
12071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12072 return resultobj;
12073 fail:
12074 return NULL;
12075 }
12076
12077
12078 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12079 PyObject *resultobj = 0;
12080 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12081 void *argp1 = 0 ;
12082 int res1 = 0 ;
12083 PyObject *swig_obj[1] ;
12084
12085 if (!args) SWIG_fail;
12086 swig_obj[0] = args;
12087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12088 if (!SWIG_IsOK(res1)) {
12089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12090 }
12091 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12092 {
12093 PyThreadState* __tstate = wxPyBeginAllowThreads();
12094 delete arg1;
12095
12096 wxPyEndAllowThreads(__tstate);
12097 if (PyErr_Occurred()) SWIG_fail;
12098 }
12099 resultobj = SWIG_Py_Void();
12100 return resultobj;
12101 fail:
12102 return NULL;
12103 }
12104
12105
12106 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12107 PyObject *resultobj = 0;
12108 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12109 void *argp1 = 0 ;
12110 int res1 = 0 ;
12111 PyObject *swig_obj[1] ;
12112
12113 if (!args) SWIG_fail;
12114 swig_obj[0] = args;
12115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12116 if (!SWIG_IsOK(res1)) {
12117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12118 }
12119 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12120 {
12121 PyThreadState* __tstate = wxPyBeginAllowThreads();
12122 (arg1)->Init();
12123 wxPyEndAllowThreads(__tstate);
12124 if (PyErr_Occurred()) SWIG_fail;
12125 }
12126 resultobj = SWIG_Py_Void();
12127 return resultobj;
12128 fail:
12129 return NULL;
12130 }
12131
12132
12133 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12134 PyObject *resultobj = 0;
12135 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12136 wxFont *arg2 = 0 ;
12137 void *argp1 = 0 ;
12138 int res1 = 0 ;
12139 void *argp2 = 0 ;
12140 int res2 = 0 ;
12141 PyObject * obj0 = 0 ;
12142 PyObject * obj1 = 0 ;
12143 char * kwnames[] = {
12144 (char *) "self",(char *) "font", NULL
12145 };
12146
12147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12149 if (!SWIG_IsOK(res1)) {
12150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12151 }
12152 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12153 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12154 if (!SWIG_IsOK(res2)) {
12155 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12156 }
12157 if (!argp2) {
12158 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12159 }
12160 arg2 = reinterpret_cast< wxFont * >(argp2);
12161 {
12162 PyThreadState* __tstate = wxPyBeginAllowThreads();
12163 (arg1)->InitFromFont((wxFont const &)*arg2);
12164 wxPyEndAllowThreads(__tstate);
12165 if (PyErr_Occurred()) SWIG_fail;
12166 }
12167 resultobj = SWIG_Py_Void();
12168 return resultobj;
12169 fail:
12170 return NULL;
12171 }
12172
12173
12174 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12175 PyObject *resultobj = 0;
12176 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12177 int result;
12178 void *argp1 = 0 ;
12179 int res1 = 0 ;
12180 PyObject *swig_obj[1] ;
12181
12182 if (!args) SWIG_fail;
12183 swig_obj[0] = args;
12184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12185 if (!SWIG_IsOK(res1)) {
12186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12187 }
12188 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12189 {
12190 PyThreadState* __tstate = wxPyBeginAllowThreads();
12191 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12192 wxPyEndAllowThreads(__tstate);
12193 if (PyErr_Occurred()) SWIG_fail;
12194 }
12195 resultobj = SWIG_From_int(static_cast< int >(result));
12196 return resultobj;
12197 fail:
12198 return NULL;
12199 }
12200
12201
12202 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12203 PyObject *resultobj = 0;
12204 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12205 wxFontStyle result;
12206 void *argp1 = 0 ;
12207 int res1 = 0 ;
12208 PyObject *swig_obj[1] ;
12209
12210 if (!args) SWIG_fail;
12211 swig_obj[0] = args;
12212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12213 if (!SWIG_IsOK(res1)) {
12214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12215 }
12216 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12217 {
12218 PyThreadState* __tstate = wxPyBeginAllowThreads();
12219 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12220 wxPyEndAllowThreads(__tstate);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 resultobj = SWIG_From_int(static_cast< int >(result));
12224 return resultobj;
12225 fail:
12226 return NULL;
12227 }
12228
12229
12230 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12231 PyObject *resultobj = 0;
12232 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12233 wxFontWeight result;
12234 void *argp1 = 0 ;
12235 int res1 = 0 ;
12236 PyObject *swig_obj[1] ;
12237
12238 if (!args) SWIG_fail;
12239 swig_obj[0] = args;
12240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12241 if (!SWIG_IsOK(res1)) {
12242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12243 }
12244 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12245 {
12246 PyThreadState* __tstate = wxPyBeginAllowThreads();
12247 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12248 wxPyEndAllowThreads(__tstate);
12249 if (PyErr_Occurred()) SWIG_fail;
12250 }
12251 resultobj = SWIG_From_int(static_cast< int >(result));
12252 return resultobj;
12253 fail:
12254 return NULL;
12255 }
12256
12257
12258 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12259 PyObject *resultobj = 0;
12260 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12261 bool result;
12262 void *argp1 = 0 ;
12263 int res1 = 0 ;
12264 PyObject *swig_obj[1] ;
12265
12266 if (!args) SWIG_fail;
12267 swig_obj[0] = args;
12268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12269 if (!SWIG_IsOK(res1)) {
12270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12271 }
12272 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12273 {
12274 PyThreadState* __tstate = wxPyBeginAllowThreads();
12275 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12276 wxPyEndAllowThreads(__tstate);
12277 if (PyErr_Occurred()) SWIG_fail;
12278 }
12279 {
12280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12281 }
12282 return resultobj;
12283 fail:
12284 return NULL;
12285 }
12286
12287
12288 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12289 PyObject *resultobj = 0;
12290 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12291 wxString result;
12292 void *argp1 = 0 ;
12293 int res1 = 0 ;
12294 PyObject *swig_obj[1] ;
12295
12296 if (!args) SWIG_fail;
12297 swig_obj[0] = args;
12298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12299 if (!SWIG_IsOK(res1)) {
12300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12301 }
12302 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12303 {
12304 PyThreadState* __tstate = wxPyBeginAllowThreads();
12305 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12306 wxPyEndAllowThreads(__tstate);
12307 if (PyErr_Occurred()) SWIG_fail;
12308 }
12309 {
12310 #if wxUSE_UNICODE
12311 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12312 #else
12313 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12314 #endif
12315 }
12316 return resultobj;
12317 fail:
12318 return NULL;
12319 }
12320
12321
12322 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12323 PyObject *resultobj = 0;
12324 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12325 wxFontFamily result;
12326 void *argp1 = 0 ;
12327 int res1 = 0 ;
12328 PyObject *swig_obj[1] ;
12329
12330 if (!args) SWIG_fail;
12331 swig_obj[0] = args;
12332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12333 if (!SWIG_IsOK(res1)) {
12334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12335 }
12336 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12337 {
12338 PyThreadState* __tstate = wxPyBeginAllowThreads();
12339 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12340 wxPyEndAllowThreads(__tstate);
12341 if (PyErr_Occurred()) SWIG_fail;
12342 }
12343 resultobj = SWIG_From_int(static_cast< int >(result));
12344 return resultobj;
12345 fail:
12346 return NULL;
12347 }
12348
12349
12350 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12351 PyObject *resultobj = 0;
12352 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12353 wxFontEncoding result;
12354 void *argp1 = 0 ;
12355 int res1 = 0 ;
12356 PyObject *swig_obj[1] ;
12357
12358 if (!args) SWIG_fail;
12359 swig_obj[0] = args;
12360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12361 if (!SWIG_IsOK(res1)) {
12362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12363 }
12364 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12365 {
12366 PyThreadState* __tstate = wxPyBeginAllowThreads();
12367 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12368 wxPyEndAllowThreads(__tstate);
12369 if (PyErr_Occurred()) SWIG_fail;
12370 }
12371 resultobj = SWIG_From_int(static_cast< int >(result));
12372 return resultobj;
12373 fail:
12374 return NULL;
12375 }
12376
12377
12378 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12379 PyObject *resultobj = 0;
12380 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12381 int arg2 ;
12382 void *argp1 = 0 ;
12383 int res1 = 0 ;
12384 int val2 ;
12385 int ecode2 = 0 ;
12386 PyObject * obj0 = 0 ;
12387 PyObject * obj1 = 0 ;
12388 char * kwnames[] = {
12389 (char *) "self",(char *) "pointsize", NULL
12390 };
12391
12392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12394 if (!SWIG_IsOK(res1)) {
12395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12396 }
12397 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12398 ecode2 = SWIG_AsVal_int(obj1, &val2);
12399 if (!SWIG_IsOK(ecode2)) {
12400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12401 }
12402 arg2 = static_cast< int >(val2);
12403 {
12404 PyThreadState* __tstate = wxPyBeginAllowThreads();
12405 (arg1)->SetPointSize(arg2);
12406 wxPyEndAllowThreads(__tstate);
12407 if (PyErr_Occurred()) SWIG_fail;
12408 }
12409 resultobj = SWIG_Py_Void();
12410 return resultobj;
12411 fail:
12412 return NULL;
12413 }
12414
12415
12416 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12417 PyObject *resultobj = 0;
12418 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12419 wxFontStyle arg2 ;
12420 void *argp1 = 0 ;
12421 int res1 = 0 ;
12422 int val2 ;
12423 int ecode2 = 0 ;
12424 PyObject * obj0 = 0 ;
12425 PyObject * obj1 = 0 ;
12426 char * kwnames[] = {
12427 (char *) "self",(char *) "style", NULL
12428 };
12429
12430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12432 if (!SWIG_IsOK(res1)) {
12433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12434 }
12435 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12436 ecode2 = SWIG_AsVal_int(obj1, &val2);
12437 if (!SWIG_IsOK(ecode2)) {
12438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12439 }
12440 arg2 = static_cast< wxFontStyle >(val2);
12441 {
12442 PyThreadState* __tstate = wxPyBeginAllowThreads();
12443 (arg1)->SetStyle(arg2);
12444 wxPyEndAllowThreads(__tstate);
12445 if (PyErr_Occurred()) SWIG_fail;
12446 }
12447 resultobj = SWIG_Py_Void();
12448 return resultobj;
12449 fail:
12450 return NULL;
12451 }
12452
12453
12454 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12455 PyObject *resultobj = 0;
12456 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12457 wxFontWeight arg2 ;
12458 void *argp1 = 0 ;
12459 int res1 = 0 ;
12460 int val2 ;
12461 int ecode2 = 0 ;
12462 PyObject * obj0 = 0 ;
12463 PyObject * obj1 = 0 ;
12464 char * kwnames[] = {
12465 (char *) "self",(char *) "weight", NULL
12466 };
12467
12468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12470 if (!SWIG_IsOK(res1)) {
12471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12472 }
12473 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12474 ecode2 = SWIG_AsVal_int(obj1, &val2);
12475 if (!SWIG_IsOK(ecode2)) {
12476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12477 }
12478 arg2 = static_cast< wxFontWeight >(val2);
12479 {
12480 PyThreadState* __tstate = wxPyBeginAllowThreads();
12481 (arg1)->SetWeight(arg2);
12482 wxPyEndAllowThreads(__tstate);
12483 if (PyErr_Occurred()) SWIG_fail;
12484 }
12485 resultobj = SWIG_Py_Void();
12486 return resultobj;
12487 fail:
12488 return NULL;
12489 }
12490
12491
12492 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12493 PyObject *resultobj = 0;
12494 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12495 bool arg2 ;
12496 void *argp1 = 0 ;
12497 int res1 = 0 ;
12498 bool val2 ;
12499 int ecode2 = 0 ;
12500 PyObject * obj0 = 0 ;
12501 PyObject * obj1 = 0 ;
12502 char * kwnames[] = {
12503 (char *) "self",(char *) "underlined", NULL
12504 };
12505
12506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12508 if (!SWIG_IsOK(res1)) {
12509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12510 }
12511 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12512 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12513 if (!SWIG_IsOK(ecode2)) {
12514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12515 }
12516 arg2 = static_cast< bool >(val2);
12517 {
12518 PyThreadState* __tstate = wxPyBeginAllowThreads();
12519 (arg1)->SetUnderlined(arg2);
12520 wxPyEndAllowThreads(__tstate);
12521 if (PyErr_Occurred()) SWIG_fail;
12522 }
12523 resultobj = SWIG_Py_Void();
12524 return resultobj;
12525 fail:
12526 return NULL;
12527 }
12528
12529
12530 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12531 PyObject *resultobj = 0;
12532 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12533 wxString arg2 ;
12534 bool result;
12535 void *argp1 = 0 ;
12536 int res1 = 0 ;
12537 PyObject * obj0 = 0 ;
12538 PyObject * obj1 = 0 ;
12539 char * kwnames[] = {
12540 (char *) "self",(char *) "facename", NULL
12541 };
12542
12543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12545 if (!SWIG_IsOK(res1)) {
12546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12547 }
12548 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12549 {
12550 wxString* sptr = wxString_in_helper(obj1);
12551 if (sptr == NULL) SWIG_fail;
12552 arg2 = *sptr;
12553 delete sptr;
12554 }
12555 {
12556 PyThreadState* __tstate = wxPyBeginAllowThreads();
12557 result = (bool)(arg1)->SetFaceName(arg2);
12558 wxPyEndAllowThreads(__tstate);
12559 if (PyErr_Occurred()) SWIG_fail;
12560 }
12561 {
12562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12563 }
12564 return resultobj;
12565 fail:
12566 return NULL;
12567 }
12568
12569
12570 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12571 PyObject *resultobj = 0;
12572 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12573 wxFontFamily arg2 ;
12574 void *argp1 = 0 ;
12575 int res1 = 0 ;
12576 int val2 ;
12577 int ecode2 = 0 ;
12578 PyObject * obj0 = 0 ;
12579 PyObject * obj1 = 0 ;
12580 char * kwnames[] = {
12581 (char *) "self",(char *) "family", NULL
12582 };
12583
12584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12586 if (!SWIG_IsOK(res1)) {
12587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12588 }
12589 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12590 ecode2 = SWIG_AsVal_int(obj1, &val2);
12591 if (!SWIG_IsOK(ecode2)) {
12592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12593 }
12594 arg2 = static_cast< wxFontFamily >(val2);
12595 {
12596 PyThreadState* __tstate = wxPyBeginAllowThreads();
12597 (arg1)->SetFamily(arg2);
12598 wxPyEndAllowThreads(__tstate);
12599 if (PyErr_Occurred()) SWIG_fail;
12600 }
12601 resultobj = SWIG_Py_Void();
12602 return resultobj;
12603 fail:
12604 return NULL;
12605 }
12606
12607
12608 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12609 PyObject *resultobj = 0;
12610 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12611 wxFontEncoding arg2 ;
12612 void *argp1 = 0 ;
12613 int res1 = 0 ;
12614 int val2 ;
12615 int ecode2 = 0 ;
12616 PyObject * obj0 = 0 ;
12617 PyObject * obj1 = 0 ;
12618 char * kwnames[] = {
12619 (char *) "self",(char *) "encoding", NULL
12620 };
12621
12622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12624 if (!SWIG_IsOK(res1)) {
12625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12626 }
12627 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12628 ecode2 = SWIG_AsVal_int(obj1, &val2);
12629 if (!SWIG_IsOK(ecode2)) {
12630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12631 }
12632 arg2 = static_cast< wxFontEncoding >(val2);
12633 {
12634 PyThreadState* __tstate = wxPyBeginAllowThreads();
12635 (arg1)->SetEncoding(arg2);
12636 wxPyEndAllowThreads(__tstate);
12637 if (PyErr_Occurred()) SWIG_fail;
12638 }
12639 resultobj = SWIG_Py_Void();
12640 return resultobj;
12641 fail:
12642 return NULL;
12643 }
12644
12645
12646 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12647 PyObject *resultobj = 0;
12648 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12649 wxString *arg2 = 0 ;
12650 bool result;
12651 void *argp1 = 0 ;
12652 int res1 = 0 ;
12653 bool temp2 = false ;
12654 PyObject * obj0 = 0 ;
12655 PyObject * obj1 = 0 ;
12656 char * kwnames[] = {
12657 (char *) "self",(char *) "s", NULL
12658 };
12659
12660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12662 if (!SWIG_IsOK(res1)) {
12663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12664 }
12665 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12666 {
12667 arg2 = wxString_in_helper(obj1);
12668 if (arg2 == NULL) SWIG_fail;
12669 temp2 = true;
12670 }
12671 {
12672 PyThreadState* __tstate = wxPyBeginAllowThreads();
12673 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12674 wxPyEndAllowThreads(__tstate);
12675 if (PyErr_Occurred()) SWIG_fail;
12676 }
12677 {
12678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12679 }
12680 {
12681 if (temp2)
12682 delete arg2;
12683 }
12684 return resultobj;
12685 fail:
12686 {
12687 if (temp2)
12688 delete arg2;
12689 }
12690 return NULL;
12691 }
12692
12693
12694 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12695 PyObject *resultobj = 0;
12696 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12697 wxString result;
12698 void *argp1 = 0 ;
12699 int res1 = 0 ;
12700 PyObject *swig_obj[1] ;
12701
12702 if (!args) SWIG_fail;
12703 swig_obj[0] = args;
12704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12705 if (!SWIG_IsOK(res1)) {
12706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12707 }
12708 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12709 {
12710 PyThreadState* __tstate = wxPyBeginAllowThreads();
12711 result = ((wxNativeFontInfo const *)arg1)->ToString();
12712 wxPyEndAllowThreads(__tstate);
12713 if (PyErr_Occurred()) SWIG_fail;
12714 }
12715 {
12716 #if wxUSE_UNICODE
12717 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12718 #else
12719 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12720 #endif
12721 }
12722 return resultobj;
12723 fail:
12724 return NULL;
12725 }
12726
12727
12728 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12729 PyObject *resultobj = 0;
12730 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12731 wxString result;
12732 void *argp1 = 0 ;
12733 int res1 = 0 ;
12734 PyObject *swig_obj[1] ;
12735
12736 if (!args) SWIG_fail;
12737 swig_obj[0] = args;
12738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12739 if (!SWIG_IsOK(res1)) {
12740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12741 }
12742 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12743 {
12744 PyThreadState* __tstate = wxPyBeginAllowThreads();
12745 result = wxNativeFontInfo___str__(arg1);
12746 wxPyEndAllowThreads(__tstate);
12747 if (PyErr_Occurred()) SWIG_fail;
12748 }
12749 {
12750 #if wxUSE_UNICODE
12751 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12752 #else
12753 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12754 #endif
12755 }
12756 return resultobj;
12757 fail:
12758 return NULL;
12759 }
12760
12761
12762 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12763 PyObject *resultobj = 0;
12764 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12765 wxString *arg2 = 0 ;
12766 bool result;
12767 void *argp1 = 0 ;
12768 int res1 = 0 ;
12769 bool temp2 = false ;
12770 PyObject * obj0 = 0 ;
12771 PyObject * obj1 = 0 ;
12772 char * kwnames[] = {
12773 (char *) "self",(char *) "s", NULL
12774 };
12775
12776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12778 if (!SWIG_IsOK(res1)) {
12779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12780 }
12781 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12782 {
12783 arg2 = wxString_in_helper(obj1);
12784 if (arg2 == NULL) SWIG_fail;
12785 temp2 = true;
12786 }
12787 {
12788 PyThreadState* __tstate = wxPyBeginAllowThreads();
12789 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12790 wxPyEndAllowThreads(__tstate);
12791 if (PyErr_Occurred()) SWIG_fail;
12792 }
12793 {
12794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12795 }
12796 {
12797 if (temp2)
12798 delete arg2;
12799 }
12800 return resultobj;
12801 fail:
12802 {
12803 if (temp2)
12804 delete arg2;
12805 }
12806 return NULL;
12807 }
12808
12809
12810 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12811 PyObject *resultobj = 0;
12812 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12813 wxString result;
12814 void *argp1 = 0 ;
12815 int res1 = 0 ;
12816 PyObject *swig_obj[1] ;
12817
12818 if (!args) SWIG_fail;
12819 swig_obj[0] = args;
12820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12821 if (!SWIG_IsOK(res1)) {
12822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12823 }
12824 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12825 {
12826 PyThreadState* __tstate = wxPyBeginAllowThreads();
12827 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12828 wxPyEndAllowThreads(__tstate);
12829 if (PyErr_Occurred()) SWIG_fail;
12830 }
12831 {
12832 #if wxUSE_UNICODE
12833 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12834 #else
12835 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12836 #endif
12837 }
12838 return resultobj;
12839 fail:
12840 return NULL;
12841 }
12842
12843
12844 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12845 PyObject *obj;
12846 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12847 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12848 return SWIG_Py_Void();
12849 }
12850
12851 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12852 return SWIG_Python_InitShadowInstance(args);
12853 }
12854
12855 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12856 PyObject *resultobj = 0;
12857 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12858 wxString *arg2 = (wxString *) 0 ;
12859 void *argp1 = 0 ;
12860 int res1 = 0 ;
12861 bool temp2 = false ;
12862 PyObject *swig_obj[2] ;
12863
12864 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12866 if (!SWIG_IsOK(res1)) {
12867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12868 }
12869 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12870 {
12871 arg2 = wxString_in_helper(swig_obj[1]);
12872 if (arg2 == NULL) SWIG_fail;
12873 temp2 = true;
12874 }
12875 if (arg1) (arg1)->facename = *arg2;
12876
12877 resultobj = SWIG_Py_Void();
12878 {
12879 if (temp2)
12880 delete arg2;
12881 }
12882 return resultobj;
12883 fail:
12884 {
12885 if (temp2)
12886 delete arg2;
12887 }
12888 return NULL;
12889 }
12890
12891
12892 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12893 PyObject *resultobj = 0;
12894 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12895 wxString *result = 0 ;
12896 void *argp1 = 0 ;
12897 int res1 = 0 ;
12898 PyObject *swig_obj[1] ;
12899
12900 if (!args) SWIG_fail;
12901 swig_obj[0] = args;
12902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12903 if (!SWIG_IsOK(res1)) {
12904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12905 }
12906 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12907 result = (wxString *)& ((arg1)->facename);
12908 {
12909 #if wxUSE_UNICODE
12910 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12911 #else
12912 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12913 #endif
12914 }
12915 return resultobj;
12916 fail:
12917 return NULL;
12918 }
12919
12920
12921 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12922 PyObject *resultobj = 0;
12923 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12924 wxFontEncoding arg2 ;
12925 void *argp1 = 0 ;
12926 int res1 = 0 ;
12927 int val2 ;
12928 int ecode2 = 0 ;
12929 PyObject *swig_obj[2] ;
12930
12931 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12933 if (!SWIG_IsOK(res1)) {
12934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12935 }
12936 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12937 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12938 if (!SWIG_IsOK(ecode2)) {
12939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12940 }
12941 arg2 = static_cast< wxFontEncoding >(val2);
12942 if (arg1) (arg1)->encoding = arg2;
12943
12944 resultobj = SWIG_Py_Void();
12945 return resultobj;
12946 fail:
12947 return NULL;
12948 }
12949
12950
12951 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12952 PyObject *resultobj = 0;
12953 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12954 wxFontEncoding result;
12955 void *argp1 = 0 ;
12956 int res1 = 0 ;
12957 PyObject *swig_obj[1] ;
12958
12959 if (!args) SWIG_fail;
12960 swig_obj[0] = args;
12961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12962 if (!SWIG_IsOK(res1)) {
12963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12964 }
12965 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12966 result = (wxFontEncoding) ((arg1)->encoding);
12967 resultobj = SWIG_From_int(static_cast< int >(result));
12968 return resultobj;
12969 fail:
12970 return NULL;
12971 }
12972
12973
12974 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12975 PyObject *resultobj = 0;
12976 wxNativeEncodingInfo *result = 0 ;
12977
12978 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12979 {
12980 PyThreadState* __tstate = wxPyBeginAllowThreads();
12981 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12982 wxPyEndAllowThreads(__tstate);
12983 if (PyErr_Occurred()) SWIG_fail;
12984 }
12985 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12986 return resultobj;
12987 fail:
12988 return NULL;
12989 }
12990
12991
12992 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12993 PyObject *resultobj = 0;
12994 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12995 void *argp1 = 0 ;
12996 int res1 = 0 ;
12997 PyObject *swig_obj[1] ;
12998
12999 if (!args) SWIG_fail;
13000 swig_obj[0] = args;
13001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13002 if (!SWIG_IsOK(res1)) {
13003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13004 }
13005 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13006 {
13007 PyThreadState* __tstate = wxPyBeginAllowThreads();
13008 delete arg1;
13009
13010 wxPyEndAllowThreads(__tstate);
13011 if (PyErr_Occurred()) SWIG_fail;
13012 }
13013 resultobj = SWIG_Py_Void();
13014 return resultobj;
13015 fail:
13016 return NULL;
13017 }
13018
13019
13020 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13021 PyObject *resultobj = 0;
13022 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13023 wxString *arg2 = 0 ;
13024 bool result;
13025 void *argp1 = 0 ;
13026 int res1 = 0 ;
13027 bool temp2 = false ;
13028 PyObject * obj0 = 0 ;
13029 PyObject * obj1 = 0 ;
13030 char * kwnames[] = {
13031 (char *) "self",(char *) "s", NULL
13032 };
13033
13034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13036 if (!SWIG_IsOK(res1)) {
13037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13038 }
13039 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13040 {
13041 arg2 = wxString_in_helper(obj1);
13042 if (arg2 == NULL) SWIG_fail;
13043 temp2 = true;
13044 }
13045 {
13046 PyThreadState* __tstate = wxPyBeginAllowThreads();
13047 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13048 wxPyEndAllowThreads(__tstate);
13049 if (PyErr_Occurred()) SWIG_fail;
13050 }
13051 {
13052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13053 }
13054 {
13055 if (temp2)
13056 delete arg2;
13057 }
13058 return resultobj;
13059 fail:
13060 {
13061 if (temp2)
13062 delete arg2;
13063 }
13064 return NULL;
13065 }
13066
13067
13068 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13069 PyObject *resultobj = 0;
13070 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13071 wxString result;
13072 void *argp1 = 0 ;
13073 int res1 = 0 ;
13074 PyObject *swig_obj[1] ;
13075
13076 if (!args) SWIG_fail;
13077 swig_obj[0] = args;
13078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13079 if (!SWIG_IsOK(res1)) {
13080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13081 }
13082 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13083 {
13084 PyThreadState* __tstate = wxPyBeginAllowThreads();
13085 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13086 wxPyEndAllowThreads(__tstate);
13087 if (PyErr_Occurred()) SWIG_fail;
13088 }
13089 {
13090 #if wxUSE_UNICODE
13091 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13092 #else
13093 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13094 #endif
13095 }
13096 return resultobj;
13097 fail:
13098 return NULL;
13099 }
13100
13101
13102 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13103 PyObject *obj;
13104 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13105 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13106 return SWIG_Py_Void();
13107 }
13108
13109 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13110 return SWIG_Python_InitShadowInstance(args);
13111 }
13112
13113 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13114 PyObject *resultobj = 0;
13115 wxFontEncoding arg1 ;
13116 wxNativeEncodingInfo *result = 0 ;
13117 int val1 ;
13118 int ecode1 = 0 ;
13119 PyObject * obj0 = 0 ;
13120 char * kwnames[] = {
13121 (char *) "encoding", NULL
13122 };
13123
13124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13125 ecode1 = SWIG_AsVal_int(obj0, &val1);
13126 if (!SWIG_IsOK(ecode1)) {
13127 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13128 }
13129 arg1 = static_cast< wxFontEncoding >(val1);
13130 {
13131 PyThreadState* __tstate = wxPyBeginAllowThreads();
13132 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13133 wxPyEndAllowThreads(__tstate);
13134 if (PyErr_Occurred()) SWIG_fail;
13135 }
13136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13137 return resultobj;
13138 fail:
13139 return NULL;
13140 }
13141
13142
13143 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13144 PyObject *resultobj = 0;
13145 wxNativeEncodingInfo *arg1 = 0 ;
13146 bool result;
13147 void *argp1 = 0 ;
13148 int res1 = 0 ;
13149 PyObject * obj0 = 0 ;
13150 char * kwnames[] = {
13151 (char *) "info", NULL
13152 };
13153
13154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13155 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13156 if (!SWIG_IsOK(res1)) {
13157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13158 }
13159 if (!argp1) {
13160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13161 }
13162 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13163 {
13164 PyThreadState* __tstate = wxPyBeginAllowThreads();
13165 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13166 wxPyEndAllowThreads(__tstate);
13167 if (PyErr_Occurred()) SWIG_fail;
13168 }
13169 {
13170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13171 }
13172 return resultobj;
13173 fail:
13174 return NULL;
13175 }
13176
13177
13178 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13179 PyObject *resultobj = 0;
13180 wxFontMapper *result = 0 ;
13181
13182 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13183 {
13184 PyThreadState* __tstate = wxPyBeginAllowThreads();
13185 result = (wxFontMapper *)new wxFontMapper();
13186 wxPyEndAllowThreads(__tstate);
13187 if (PyErr_Occurred()) SWIG_fail;
13188 }
13189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13190 return resultobj;
13191 fail:
13192 return NULL;
13193 }
13194
13195
13196 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13197 PyObject *resultobj = 0;
13198 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13199 void *argp1 = 0 ;
13200 int res1 = 0 ;
13201 PyObject *swig_obj[1] ;
13202
13203 if (!args) SWIG_fail;
13204 swig_obj[0] = args;
13205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13206 if (!SWIG_IsOK(res1)) {
13207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13208 }
13209 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13210 {
13211 PyThreadState* __tstate = wxPyBeginAllowThreads();
13212 delete arg1;
13213
13214 wxPyEndAllowThreads(__tstate);
13215 if (PyErr_Occurred()) SWIG_fail;
13216 }
13217 resultobj = SWIG_Py_Void();
13218 return resultobj;
13219 fail:
13220 return NULL;
13221 }
13222
13223
13224 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13225 PyObject *resultobj = 0;
13226 wxFontMapper *result = 0 ;
13227
13228 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13229 {
13230 PyThreadState* __tstate = wxPyBeginAllowThreads();
13231 result = (wxFontMapper *)wxFontMapper::Get();
13232 wxPyEndAllowThreads(__tstate);
13233 if (PyErr_Occurred()) SWIG_fail;
13234 }
13235 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13236 return resultobj;
13237 fail:
13238 return NULL;
13239 }
13240
13241
13242 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13243 PyObject *resultobj = 0;
13244 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13245 wxFontMapper *result = 0 ;
13246 void *argp1 = 0 ;
13247 int res1 = 0 ;
13248 PyObject * obj0 = 0 ;
13249 char * kwnames[] = {
13250 (char *) "mapper", NULL
13251 };
13252
13253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13255 if (!SWIG_IsOK(res1)) {
13256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13257 }
13258 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13259 {
13260 PyThreadState* __tstate = wxPyBeginAllowThreads();
13261 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13262 wxPyEndAllowThreads(__tstate);
13263 if (PyErr_Occurred()) SWIG_fail;
13264 }
13265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13266 return resultobj;
13267 fail:
13268 return NULL;
13269 }
13270
13271
13272 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13273 PyObject *resultobj = 0;
13274 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13275 wxString *arg2 = 0 ;
13276 bool arg3 = (bool) true ;
13277 wxFontEncoding result;
13278 void *argp1 = 0 ;
13279 int res1 = 0 ;
13280 bool temp2 = false ;
13281 bool val3 ;
13282 int ecode3 = 0 ;
13283 PyObject * obj0 = 0 ;
13284 PyObject * obj1 = 0 ;
13285 PyObject * obj2 = 0 ;
13286 char * kwnames[] = {
13287 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13288 };
13289
13290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13292 if (!SWIG_IsOK(res1)) {
13293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13294 }
13295 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13296 {
13297 arg2 = wxString_in_helper(obj1);
13298 if (arg2 == NULL) SWIG_fail;
13299 temp2 = true;
13300 }
13301 if (obj2) {
13302 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13303 if (!SWIG_IsOK(ecode3)) {
13304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13305 }
13306 arg3 = static_cast< bool >(val3);
13307 }
13308 {
13309 PyThreadState* __tstate = wxPyBeginAllowThreads();
13310 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13311 wxPyEndAllowThreads(__tstate);
13312 if (PyErr_Occurred()) SWIG_fail;
13313 }
13314 resultobj = SWIG_From_int(static_cast< int >(result));
13315 {
13316 if (temp2)
13317 delete arg2;
13318 }
13319 return resultobj;
13320 fail:
13321 {
13322 if (temp2)
13323 delete arg2;
13324 }
13325 return NULL;
13326 }
13327
13328
13329 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13330 PyObject *resultobj = 0;
13331 size_t result;
13332
13333 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13334 {
13335 PyThreadState* __tstate = wxPyBeginAllowThreads();
13336 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13337 wxPyEndAllowThreads(__tstate);
13338 if (PyErr_Occurred()) SWIG_fail;
13339 }
13340 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13341 return resultobj;
13342 fail:
13343 return NULL;
13344 }
13345
13346
13347 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13348 PyObject *resultobj = 0;
13349 size_t arg1 ;
13350 wxFontEncoding result;
13351 size_t val1 ;
13352 int ecode1 = 0 ;
13353 PyObject * obj0 = 0 ;
13354 char * kwnames[] = {
13355 (char *) "n", NULL
13356 };
13357
13358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13359 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13360 if (!SWIG_IsOK(ecode1)) {
13361 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13362 }
13363 arg1 = static_cast< size_t >(val1);
13364 {
13365 PyThreadState* __tstate = wxPyBeginAllowThreads();
13366 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13367 wxPyEndAllowThreads(__tstate);
13368 if (PyErr_Occurred()) SWIG_fail;
13369 }
13370 resultobj = SWIG_From_int(static_cast< int >(result));
13371 return resultobj;
13372 fail:
13373 return NULL;
13374 }
13375
13376
13377 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13378 PyObject *resultobj = 0;
13379 wxFontEncoding arg1 ;
13380 wxString result;
13381 int val1 ;
13382 int ecode1 = 0 ;
13383 PyObject * obj0 = 0 ;
13384 char * kwnames[] = {
13385 (char *) "encoding", NULL
13386 };
13387
13388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13389 ecode1 = SWIG_AsVal_int(obj0, &val1);
13390 if (!SWIG_IsOK(ecode1)) {
13391 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13392 }
13393 arg1 = static_cast< wxFontEncoding >(val1);
13394 {
13395 PyThreadState* __tstate = wxPyBeginAllowThreads();
13396 result = wxFontMapper::GetEncodingName(arg1);
13397 wxPyEndAllowThreads(__tstate);
13398 if (PyErr_Occurred()) SWIG_fail;
13399 }
13400 {
13401 #if wxUSE_UNICODE
13402 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13403 #else
13404 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13405 #endif
13406 }
13407 return resultobj;
13408 fail:
13409 return NULL;
13410 }
13411
13412
13413 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13414 PyObject *resultobj = 0;
13415 wxFontEncoding arg1 ;
13416 wxString result;
13417 int val1 ;
13418 int ecode1 = 0 ;
13419 PyObject * obj0 = 0 ;
13420 char * kwnames[] = {
13421 (char *) "encoding", NULL
13422 };
13423
13424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13425 ecode1 = SWIG_AsVal_int(obj0, &val1);
13426 if (!SWIG_IsOK(ecode1)) {
13427 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13428 }
13429 arg1 = static_cast< wxFontEncoding >(val1);
13430 {
13431 PyThreadState* __tstate = wxPyBeginAllowThreads();
13432 result = wxFontMapper::GetEncodingDescription(arg1);
13433 wxPyEndAllowThreads(__tstate);
13434 if (PyErr_Occurred()) SWIG_fail;
13435 }
13436 {
13437 #if wxUSE_UNICODE
13438 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13439 #else
13440 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13441 #endif
13442 }
13443 return resultobj;
13444 fail:
13445 return NULL;
13446 }
13447
13448
13449 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13450 PyObject *resultobj = 0;
13451 wxString *arg1 = 0 ;
13452 wxFontEncoding result;
13453 bool temp1 = false ;
13454 PyObject * obj0 = 0 ;
13455 char * kwnames[] = {
13456 (char *) "name", NULL
13457 };
13458
13459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13460 {
13461 arg1 = wxString_in_helper(obj0);
13462 if (arg1 == NULL) SWIG_fail;
13463 temp1 = true;
13464 }
13465 {
13466 PyThreadState* __tstate = wxPyBeginAllowThreads();
13467 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13468 wxPyEndAllowThreads(__tstate);
13469 if (PyErr_Occurred()) SWIG_fail;
13470 }
13471 resultobj = SWIG_From_int(static_cast< int >(result));
13472 {
13473 if (temp1)
13474 delete arg1;
13475 }
13476 return resultobj;
13477 fail:
13478 {
13479 if (temp1)
13480 delete arg1;
13481 }
13482 return NULL;
13483 }
13484
13485
13486 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13487 PyObject *resultobj = 0;
13488 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13489 wxString *arg2 = 0 ;
13490 void *argp1 = 0 ;
13491 int res1 = 0 ;
13492 bool temp2 = false ;
13493 PyObject * obj0 = 0 ;
13494 PyObject * obj1 = 0 ;
13495 char * kwnames[] = {
13496 (char *) "self",(char *) "prefix", NULL
13497 };
13498
13499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13501 if (!SWIG_IsOK(res1)) {
13502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13503 }
13504 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13505 {
13506 arg2 = wxString_in_helper(obj1);
13507 if (arg2 == NULL) SWIG_fail;
13508 temp2 = true;
13509 }
13510 {
13511 PyThreadState* __tstate = wxPyBeginAllowThreads();
13512 (arg1)->SetConfigPath((wxString const &)*arg2);
13513 wxPyEndAllowThreads(__tstate);
13514 if (PyErr_Occurred()) SWIG_fail;
13515 }
13516 resultobj = SWIG_Py_Void();
13517 {
13518 if (temp2)
13519 delete arg2;
13520 }
13521 return resultobj;
13522 fail:
13523 {
13524 if (temp2)
13525 delete arg2;
13526 }
13527 return NULL;
13528 }
13529
13530
13531 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13532 PyObject *resultobj = 0;
13533 wxString result;
13534
13535 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13536 {
13537 PyThreadState* __tstate = wxPyBeginAllowThreads();
13538 result = wxFontMapper::GetDefaultConfigPath();
13539 wxPyEndAllowThreads(__tstate);
13540 if (PyErr_Occurred()) SWIG_fail;
13541 }
13542 {
13543 #if wxUSE_UNICODE
13544 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13545 #else
13546 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13547 #endif
13548 }
13549 return resultobj;
13550 fail:
13551 return NULL;
13552 }
13553
13554
13555 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13556 PyObject *resultobj = 0;
13557 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13558 wxFontEncoding arg2 ;
13559 wxString const &arg3_defvalue = wxPyEmptyString ;
13560 wxString *arg3 = (wxString *) &arg3_defvalue ;
13561 bool arg4 = (bool) true ;
13562 PyObject *result = 0 ;
13563 void *argp1 = 0 ;
13564 int res1 = 0 ;
13565 int val2 ;
13566 int ecode2 = 0 ;
13567 bool temp3 = false ;
13568 bool val4 ;
13569 int ecode4 = 0 ;
13570 PyObject * obj0 = 0 ;
13571 PyObject * obj1 = 0 ;
13572 PyObject * obj2 = 0 ;
13573 PyObject * obj3 = 0 ;
13574 char * kwnames[] = {
13575 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13576 };
13577
13578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13580 if (!SWIG_IsOK(res1)) {
13581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13582 }
13583 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13584 ecode2 = SWIG_AsVal_int(obj1, &val2);
13585 if (!SWIG_IsOK(ecode2)) {
13586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13587 }
13588 arg2 = static_cast< wxFontEncoding >(val2);
13589 if (obj2) {
13590 {
13591 arg3 = wxString_in_helper(obj2);
13592 if (arg3 == NULL) SWIG_fail;
13593 temp3 = true;
13594 }
13595 }
13596 if (obj3) {
13597 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13598 if (!SWIG_IsOK(ecode4)) {
13599 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13600 }
13601 arg4 = static_cast< bool >(val4);
13602 }
13603 {
13604 PyThreadState* __tstate = wxPyBeginAllowThreads();
13605 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13606 wxPyEndAllowThreads(__tstate);
13607 if (PyErr_Occurred()) SWIG_fail;
13608 }
13609 resultobj = result;
13610 {
13611 if (temp3)
13612 delete arg3;
13613 }
13614 return resultobj;
13615 fail:
13616 {
13617 if (temp3)
13618 delete arg3;
13619 }
13620 return NULL;
13621 }
13622
13623
13624 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13625 PyObject *resultobj = 0;
13626 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13627 wxFontEncoding arg2 ;
13628 wxString const &arg3_defvalue = wxPyEmptyString ;
13629 wxString *arg3 = (wxString *) &arg3_defvalue ;
13630 bool result;
13631 void *argp1 = 0 ;
13632 int res1 = 0 ;
13633 int val2 ;
13634 int ecode2 = 0 ;
13635 bool temp3 = false ;
13636 PyObject * obj0 = 0 ;
13637 PyObject * obj1 = 0 ;
13638 PyObject * obj2 = 0 ;
13639 char * kwnames[] = {
13640 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13641 };
13642
13643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13645 if (!SWIG_IsOK(res1)) {
13646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13647 }
13648 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13649 ecode2 = SWIG_AsVal_int(obj1, &val2);
13650 if (!SWIG_IsOK(ecode2)) {
13651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13652 }
13653 arg2 = static_cast< wxFontEncoding >(val2);
13654 if (obj2) {
13655 {
13656 arg3 = wxString_in_helper(obj2);
13657 if (arg3 == NULL) SWIG_fail;
13658 temp3 = true;
13659 }
13660 }
13661 {
13662 PyThreadState* __tstate = wxPyBeginAllowThreads();
13663 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13664 wxPyEndAllowThreads(__tstate);
13665 if (PyErr_Occurred()) SWIG_fail;
13666 }
13667 {
13668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13669 }
13670 {
13671 if (temp3)
13672 delete arg3;
13673 }
13674 return resultobj;
13675 fail:
13676 {
13677 if (temp3)
13678 delete arg3;
13679 }
13680 return NULL;
13681 }
13682
13683
13684 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13685 PyObject *resultobj = 0;
13686 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13687 wxWindow *arg2 = (wxWindow *) 0 ;
13688 void *argp1 = 0 ;
13689 int res1 = 0 ;
13690 void *argp2 = 0 ;
13691 int res2 = 0 ;
13692 PyObject * obj0 = 0 ;
13693 PyObject * obj1 = 0 ;
13694 char * kwnames[] = {
13695 (char *) "self",(char *) "parent", NULL
13696 };
13697
13698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13700 if (!SWIG_IsOK(res1)) {
13701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13702 }
13703 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13704 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13705 if (!SWIG_IsOK(res2)) {
13706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13707 }
13708 arg2 = reinterpret_cast< wxWindow * >(argp2);
13709 {
13710 PyThreadState* __tstate = wxPyBeginAllowThreads();
13711 (arg1)->SetDialogParent(arg2);
13712 wxPyEndAllowThreads(__tstate);
13713 if (PyErr_Occurred()) SWIG_fail;
13714 }
13715 resultobj = SWIG_Py_Void();
13716 return resultobj;
13717 fail:
13718 return NULL;
13719 }
13720
13721
13722 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13723 PyObject *resultobj = 0;
13724 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13725 wxString *arg2 = 0 ;
13726 void *argp1 = 0 ;
13727 int res1 = 0 ;
13728 bool temp2 = false ;
13729 PyObject * obj0 = 0 ;
13730 PyObject * obj1 = 0 ;
13731 char * kwnames[] = {
13732 (char *) "self",(char *) "title", NULL
13733 };
13734
13735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13737 if (!SWIG_IsOK(res1)) {
13738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13739 }
13740 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13741 {
13742 arg2 = wxString_in_helper(obj1);
13743 if (arg2 == NULL) SWIG_fail;
13744 temp2 = true;
13745 }
13746 {
13747 PyThreadState* __tstate = wxPyBeginAllowThreads();
13748 (arg1)->SetDialogTitle((wxString const &)*arg2);
13749 wxPyEndAllowThreads(__tstate);
13750 if (PyErr_Occurred()) SWIG_fail;
13751 }
13752 resultobj = SWIG_Py_Void();
13753 {
13754 if (temp2)
13755 delete arg2;
13756 }
13757 return resultobj;
13758 fail:
13759 {
13760 if (temp2)
13761 delete arg2;
13762 }
13763 return NULL;
13764 }
13765
13766
13767 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13768 PyObject *obj;
13769 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13770 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13771 return SWIG_Py_Void();
13772 }
13773
13774 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13775 return SWIG_Python_InitShadowInstance(args);
13776 }
13777
13778 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13779 PyObject *resultobj = 0;
13780 int arg1 ;
13781 int arg2 ;
13782 int arg3 ;
13783 int arg4 ;
13784 bool arg5 = (bool) false ;
13785 wxString const &arg6_defvalue = wxPyEmptyString ;
13786 wxString *arg6 = (wxString *) &arg6_defvalue ;
13787 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13788 wxFont *result = 0 ;
13789 int val1 ;
13790 int ecode1 = 0 ;
13791 int val2 ;
13792 int ecode2 = 0 ;
13793 int val3 ;
13794 int ecode3 = 0 ;
13795 int val4 ;
13796 int ecode4 = 0 ;
13797 bool val5 ;
13798 int ecode5 = 0 ;
13799 bool temp6 = false ;
13800 int val7 ;
13801 int ecode7 = 0 ;
13802 PyObject * obj0 = 0 ;
13803 PyObject * obj1 = 0 ;
13804 PyObject * obj2 = 0 ;
13805 PyObject * obj3 = 0 ;
13806 PyObject * obj4 = 0 ;
13807 PyObject * obj5 = 0 ;
13808 PyObject * obj6 = 0 ;
13809 char * kwnames[] = {
13810 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13811 };
13812
13813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13814 ecode1 = SWIG_AsVal_int(obj0, &val1);
13815 if (!SWIG_IsOK(ecode1)) {
13816 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13817 }
13818 arg1 = static_cast< int >(val1);
13819 ecode2 = SWIG_AsVal_int(obj1, &val2);
13820 if (!SWIG_IsOK(ecode2)) {
13821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13822 }
13823 arg2 = static_cast< int >(val2);
13824 ecode3 = SWIG_AsVal_int(obj2, &val3);
13825 if (!SWIG_IsOK(ecode3)) {
13826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13827 }
13828 arg3 = static_cast< int >(val3);
13829 ecode4 = SWIG_AsVal_int(obj3, &val4);
13830 if (!SWIG_IsOK(ecode4)) {
13831 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13832 }
13833 arg4 = static_cast< int >(val4);
13834 if (obj4) {
13835 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13836 if (!SWIG_IsOK(ecode5)) {
13837 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13838 }
13839 arg5 = static_cast< bool >(val5);
13840 }
13841 if (obj5) {
13842 {
13843 arg6 = wxString_in_helper(obj5);
13844 if (arg6 == NULL) SWIG_fail;
13845 temp6 = true;
13846 }
13847 }
13848 if (obj6) {
13849 ecode7 = SWIG_AsVal_int(obj6, &val7);
13850 if (!SWIG_IsOK(ecode7)) {
13851 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13852 }
13853 arg7 = static_cast< wxFontEncoding >(val7);
13854 }
13855 {
13856 if (!wxPyCheckForApp()) SWIG_fail;
13857 PyThreadState* __tstate = wxPyBeginAllowThreads();
13858 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13859 wxPyEndAllowThreads(__tstate);
13860 if (PyErr_Occurred()) SWIG_fail;
13861 }
13862 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13863 {
13864 if (temp6)
13865 delete arg6;
13866 }
13867 return resultobj;
13868 fail:
13869 {
13870 if (temp6)
13871 delete arg6;
13872 }
13873 return NULL;
13874 }
13875
13876
13877 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13878 PyObject *resultobj = 0;
13879 wxFont *arg1 = (wxFont *) 0 ;
13880 void *argp1 = 0 ;
13881 int res1 = 0 ;
13882 PyObject *swig_obj[1] ;
13883
13884 if (!args) SWIG_fail;
13885 swig_obj[0] = args;
13886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13887 if (!SWIG_IsOK(res1)) {
13888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13889 }
13890 arg1 = reinterpret_cast< wxFont * >(argp1);
13891 {
13892 PyThreadState* __tstate = wxPyBeginAllowThreads();
13893 delete arg1;
13894
13895 wxPyEndAllowThreads(__tstate);
13896 if (PyErr_Occurred()) SWIG_fail;
13897 }
13898 resultobj = SWIG_Py_Void();
13899 return resultobj;
13900 fail:
13901 return NULL;
13902 }
13903
13904
13905 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13906 PyObject *resultobj = 0;
13907 wxNativeFontInfo *arg1 = 0 ;
13908 wxFont *result = 0 ;
13909 void *argp1 = 0 ;
13910 int res1 = 0 ;
13911 PyObject * obj0 = 0 ;
13912 char * kwnames[] = {
13913 (char *) "info", NULL
13914 };
13915
13916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13917 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13918 if (!SWIG_IsOK(res1)) {
13919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13920 }
13921 if (!argp1) {
13922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13923 }
13924 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13925 {
13926 if (!wxPyCheckForApp()) SWIG_fail;
13927 PyThreadState* __tstate = wxPyBeginAllowThreads();
13928 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13929 wxPyEndAllowThreads(__tstate);
13930 if (PyErr_Occurred()) SWIG_fail;
13931 }
13932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13933 return resultobj;
13934 fail:
13935 return NULL;
13936 }
13937
13938
13939 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13940 PyObject *resultobj = 0;
13941 wxString *arg1 = 0 ;
13942 wxFont *result = 0 ;
13943 bool temp1 = false ;
13944 PyObject * obj0 = 0 ;
13945 char * kwnames[] = {
13946 (char *) "info", NULL
13947 };
13948
13949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13950 {
13951 arg1 = wxString_in_helper(obj0);
13952 if (arg1 == NULL) SWIG_fail;
13953 temp1 = true;
13954 }
13955 {
13956 if (!wxPyCheckForApp()) SWIG_fail;
13957 PyThreadState* __tstate = wxPyBeginAllowThreads();
13958 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13959 wxPyEndAllowThreads(__tstate);
13960 if (PyErr_Occurred()) SWIG_fail;
13961 }
13962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13963 {
13964 if (temp1)
13965 delete arg1;
13966 }
13967 return resultobj;
13968 fail:
13969 {
13970 if (temp1)
13971 delete arg1;
13972 }
13973 return NULL;
13974 }
13975
13976
13977 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13978 PyObject *resultobj = 0;
13979 int arg1 ;
13980 wxFontFamily arg2 ;
13981 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13982 wxString const &arg4_defvalue = wxPyEmptyString ;
13983 wxString *arg4 = (wxString *) &arg4_defvalue ;
13984 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13985 wxFont *result = 0 ;
13986 int val1 ;
13987 int ecode1 = 0 ;
13988 int val2 ;
13989 int ecode2 = 0 ;
13990 int val3 ;
13991 int ecode3 = 0 ;
13992 bool temp4 = false ;
13993 int val5 ;
13994 int ecode5 = 0 ;
13995 PyObject * obj0 = 0 ;
13996 PyObject * obj1 = 0 ;
13997 PyObject * obj2 = 0 ;
13998 PyObject * obj3 = 0 ;
13999 PyObject * obj4 = 0 ;
14000 char * kwnames[] = {
14001 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14002 };
14003
14004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14005 ecode1 = SWIG_AsVal_int(obj0, &val1);
14006 if (!SWIG_IsOK(ecode1)) {
14007 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14008 }
14009 arg1 = static_cast< int >(val1);
14010 ecode2 = SWIG_AsVal_int(obj1, &val2);
14011 if (!SWIG_IsOK(ecode2)) {
14012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14013 }
14014 arg2 = static_cast< wxFontFamily >(val2);
14015 if (obj2) {
14016 ecode3 = SWIG_AsVal_int(obj2, &val3);
14017 if (!SWIG_IsOK(ecode3)) {
14018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14019 }
14020 arg3 = static_cast< int >(val3);
14021 }
14022 if (obj3) {
14023 {
14024 arg4 = wxString_in_helper(obj3);
14025 if (arg4 == NULL) SWIG_fail;
14026 temp4 = true;
14027 }
14028 }
14029 if (obj4) {
14030 ecode5 = SWIG_AsVal_int(obj4, &val5);
14031 if (!SWIG_IsOK(ecode5)) {
14032 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14033 }
14034 arg5 = static_cast< wxFontEncoding >(val5);
14035 }
14036 {
14037 if (!wxPyCheckForApp()) SWIG_fail;
14038 PyThreadState* __tstate = wxPyBeginAllowThreads();
14039 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14040 wxPyEndAllowThreads(__tstate);
14041 if (PyErr_Occurred()) SWIG_fail;
14042 }
14043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14044 {
14045 if (temp4)
14046 delete arg4;
14047 }
14048 return resultobj;
14049 fail:
14050 {
14051 if (temp4)
14052 delete arg4;
14053 }
14054 return NULL;
14055 }
14056
14057
14058 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14059 PyObject *resultobj = 0;
14060 wxSize *arg1 = 0 ;
14061 int arg2 ;
14062 int arg3 ;
14063 int arg4 ;
14064 bool arg5 = (bool) false ;
14065 wxString const &arg6_defvalue = wxEmptyString ;
14066 wxString *arg6 = (wxString *) &arg6_defvalue ;
14067 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14068 wxFont *result = 0 ;
14069 wxSize temp1 ;
14070 int val2 ;
14071 int ecode2 = 0 ;
14072 int val3 ;
14073 int ecode3 = 0 ;
14074 int val4 ;
14075 int ecode4 = 0 ;
14076 bool val5 ;
14077 int ecode5 = 0 ;
14078 bool temp6 = false ;
14079 int val7 ;
14080 int ecode7 = 0 ;
14081 PyObject * obj0 = 0 ;
14082 PyObject * obj1 = 0 ;
14083 PyObject * obj2 = 0 ;
14084 PyObject * obj3 = 0 ;
14085 PyObject * obj4 = 0 ;
14086 PyObject * obj5 = 0 ;
14087 PyObject * obj6 = 0 ;
14088 char * kwnames[] = {
14089 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14090 };
14091
14092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14093 {
14094 arg1 = &temp1;
14095 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14096 }
14097 ecode2 = SWIG_AsVal_int(obj1, &val2);
14098 if (!SWIG_IsOK(ecode2)) {
14099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14100 }
14101 arg2 = static_cast< int >(val2);
14102 ecode3 = SWIG_AsVal_int(obj2, &val3);
14103 if (!SWIG_IsOK(ecode3)) {
14104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14105 }
14106 arg3 = static_cast< int >(val3);
14107 ecode4 = SWIG_AsVal_int(obj3, &val4);
14108 if (!SWIG_IsOK(ecode4)) {
14109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14110 }
14111 arg4 = static_cast< int >(val4);
14112 if (obj4) {
14113 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14114 if (!SWIG_IsOK(ecode5)) {
14115 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14116 }
14117 arg5 = static_cast< bool >(val5);
14118 }
14119 if (obj5) {
14120 {
14121 arg6 = wxString_in_helper(obj5);
14122 if (arg6 == NULL) SWIG_fail;
14123 temp6 = true;
14124 }
14125 }
14126 if (obj6) {
14127 ecode7 = SWIG_AsVal_int(obj6, &val7);
14128 if (!SWIG_IsOK(ecode7)) {
14129 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14130 }
14131 arg7 = static_cast< wxFontEncoding >(val7);
14132 }
14133 {
14134 if (!wxPyCheckForApp()) SWIG_fail;
14135 PyThreadState* __tstate = wxPyBeginAllowThreads();
14136 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14137 wxPyEndAllowThreads(__tstate);
14138 if (PyErr_Occurred()) SWIG_fail;
14139 }
14140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14141 {
14142 if (temp6)
14143 delete arg6;
14144 }
14145 return resultobj;
14146 fail:
14147 {
14148 if (temp6)
14149 delete arg6;
14150 }
14151 return NULL;
14152 }
14153
14154
14155 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14156 PyObject *resultobj = 0;
14157 wxSize *arg1 = 0 ;
14158 wxFontFamily arg2 ;
14159 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14160 wxString const &arg4_defvalue = wxEmptyString ;
14161 wxString *arg4 = (wxString *) &arg4_defvalue ;
14162 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14163 wxFont *result = 0 ;
14164 wxSize temp1 ;
14165 int val2 ;
14166 int ecode2 = 0 ;
14167 int val3 ;
14168 int ecode3 = 0 ;
14169 bool temp4 = false ;
14170 int val5 ;
14171 int ecode5 = 0 ;
14172 PyObject * obj0 = 0 ;
14173 PyObject * obj1 = 0 ;
14174 PyObject * obj2 = 0 ;
14175 PyObject * obj3 = 0 ;
14176 PyObject * obj4 = 0 ;
14177 char * kwnames[] = {
14178 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14179 };
14180
14181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14182 {
14183 arg1 = &temp1;
14184 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14185 }
14186 ecode2 = SWIG_AsVal_int(obj1, &val2);
14187 if (!SWIG_IsOK(ecode2)) {
14188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14189 }
14190 arg2 = static_cast< wxFontFamily >(val2);
14191 if (obj2) {
14192 ecode3 = SWIG_AsVal_int(obj2, &val3);
14193 if (!SWIG_IsOK(ecode3)) {
14194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14195 }
14196 arg3 = static_cast< int >(val3);
14197 }
14198 if (obj3) {
14199 {
14200 arg4 = wxString_in_helper(obj3);
14201 if (arg4 == NULL) SWIG_fail;
14202 temp4 = true;
14203 }
14204 }
14205 if (obj4) {
14206 ecode5 = SWIG_AsVal_int(obj4, &val5);
14207 if (!SWIG_IsOK(ecode5)) {
14208 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14209 }
14210 arg5 = static_cast< wxFontEncoding >(val5);
14211 }
14212 {
14213 if (!wxPyCheckForApp()) SWIG_fail;
14214 PyThreadState* __tstate = wxPyBeginAllowThreads();
14215 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14216 wxPyEndAllowThreads(__tstate);
14217 if (PyErr_Occurred()) SWIG_fail;
14218 }
14219 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14220 {
14221 if (temp4)
14222 delete arg4;
14223 }
14224 return resultobj;
14225 fail:
14226 {
14227 if (temp4)
14228 delete arg4;
14229 }
14230 return NULL;
14231 }
14232
14233
14234 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14235 PyObject *resultobj = 0;
14236 wxFont *arg1 = (wxFont *) 0 ;
14237 bool result;
14238 void *argp1 = 0 ;
14239 int res1 = 0 ;
14240 PyObject *swig_obj[1] ;
14241
14242 if (!args) SWIG_fail;
14243 swig_obj[0] = args;
14244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14245 if (!SWIG_IsOK(res1)) {
14246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14247 }
14248 arg1 = reinterpret_cast< wxFont * >(argp1);
14249 {
14250 PyThreadState* __tstate = wxPyBeginAllowThreads();
14251 result = (bool)((wxFont const *)arg1)->IsOk();
14252 wxPyEndAllowThreads(__tstate);
14253 if (PyErr_Occurred()) SWIG_fail;
14254 }
14255 {
14256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14257 }
14258 return resultobj;
14259 fail:
14260 return NULL;
14261 }
14262
14263
14264 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14265 PyObject *resultobj = 0;
14266 wxFont *arg1 = (wxFont *) 0 ;
14267 wxFont *arg2 = (wxFont *) 0 ;
14268 bool result;
14269 void *argp1 = 0 ;
14270 int res1 = 0 ;
14271 void *argp2 = 0 ;
14272 int res2 = 0 ;
14273 PyObject * obj0 = 0 ;
14274 PyObject * obj1 = 0 ;
14275 char * kwnames[] = {
14276 (char *) "self",(char *) "other", NULL
14277 };
14278
14279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14281 if (!SWIG_IsOK(res1)) {
14282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14283 }
14284 arg1 = reinterpret_cast< wxFont * >(argp1);
14285 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14286 if (!SWIG_IsOK(res2)) {
14287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14288 }
14289 arg2 = reinterpret_cast< wxFont * >(argp2);
14290 {
14291 PyThreadState* __tstate = wxPyBeginAllowThreads();
14292 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14293 wxPyEndAllowThreads(__tstate);
14294 if (PyErr_Occurred()) SWIG_fail;
14295 }
14296 {
14297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14298 }
14299 return resultobj;
14300 fail:
14301 return NULL;
14302 }
14303
14304
14305 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14306 PyObject *resultobj = 0;
14307 wxFont *arg1 = (wxFont *) 0 ;
14308 wxFont *arg2 = (wxFont *) 0 ;
14309 bool result;
14310 void *argp1 = 0 ;
14311 int res1 = 0 ;
14312 void *argp2 = 0 ;
14313 int res2 = 0 ;
14314 PyObject * obj0 = 0 ;
14315 PyObject * obj1 = 0 ;
14316 char * kwnames[] = {
14317 (char *) "self",(char *) "other", NULL
14318 };
14319
14320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14322 if (!SWIG_IsOK(res1)) {
14323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14324 }
14325 arg1 = reinterpret_cast< wxFont * >(argp1);
14326 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14327 if (!SWIG_IsOK(res2)) {
14328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14329 }
14330 arg2 = reinterpret_cast< wxFont * >(argp2);
14331 {
14332 PyThreadState* __tstate = wxPyBeginAllowThreads();
14333 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14334 wxPyEndAllowThreads(__tstate);
14335 if (PyErr_Occurred()) SWIG_fail;
14336 }
14337 {
14338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14339 }
14340 return resultobj;
14341 fail:
14342 return NULL;
14343 }
14344
14345
14346 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14347 PyObject *resultobj = 0;
14348 wxFont *arg1 = (wxFont *) 0 ;
14349 int result;
14350 void *argp1 = 0 ;
14351 int res1 = 0 ;
14352 PyObject *swig_obj[1] ;
14353
14354 if (!args) SWIG_fail;
14355 swig_obj[0] = args;
14356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14357 if (!SWIG_IsOK(res1)) {
14358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14359 }
14360 arg1 = reinterpret_cast< wxFont * >(argp1);
14361 {
14362 PyThreadState* __tstate = wxPyBeginAllowThreads();
14363 result = (int)((wxFont const *)arg1)->GetPointSize();
14364 wxPyEndAllowThreads(__tstate);
14365 if (PyErr_Occurred()) SWIG_fail;
14366 }
14367 resultobj = SWIG_From_int(static_cast< int >(result));
14368 return resultobj;
14369 fail:
14370 return NULL;
14371 }
14372
14373
14374 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14375 PyObject *resultobj = 0;
14376 wxFont *arg1 = (wxFont *) 0 ;
14377 wxSize result;
14378 void *argp1 = 0 ;
14379 int res1 = 0 ;
14380 PyObject *swig_obj[1] ;
14381
14382 if (!args) SWIG_fail;
14383 swig_obj[0] = args;
14384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14385 if (!SWIG_IsOK(res1)) {
14386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14387 }
14388 arg1 = reinterpret_cast< wxFont * >(argp1);
14389 {
14390 PyThreadState* __tstate = wxPyBeginAllowThreads();
14391 result = ((wxFont const *)arg1)->GetPixelSize();
14392 wxPyEndAllowThreads(__tstate);
14393 if (PyErr_Occurred()) SWIG_fail;
14394 }
14395 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14396 return resultobj;
14397 fail:
14398 return NULL;
14399 }
14400
14401
14402 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14403 PyObject *resultobj = 0;
14404 wxFont *arg1 = (wxFont *) 0 ;
14405 bool result;
14406 void *argp1 = 0 ;
14407 int res1 = 0 ;
14408 PyObject *swig_obj[1] ;
14409
14410 if (!args) SWIG_fail;
14411 swig_obj[0] = args;
14412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14413 if (!SWIG_IsOK(res1)) {
14414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14415 }
14416 arg1 = reinterpret_cast< wxFont * >(argp1);
14417 {
14418 PyThreadState* __tstate = wxPyBeginAllowThreads();
14419 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14420 wxPyEndAllowThreads(__tstate);
14421 if (PyErr_Occurred()) SWIG_fail;
14422 }
14423 {
14424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14425 }
14426 return resultobj;
14427 fail:
14428 return NULL;
14429 }
14430
14431
14432 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14433 PyObject *resultobj = 0;
14434 wxFont *arg1 = (wxFont *) 0 ;
14435 int result;
14436 void *argp1 = 0 ;
14437 int res1 = 0 ;
14438 PyObject *swig_obj[1] ;
14439
14440 if (!args) SWIG_fail;
14441 swig_obj[0] = args;
14442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14443 if (!SWIG_IsOK(res1)) {
14444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14445 }
14446 arg1 = reinterpret_cast< wxFont * >(argp1);
14447 {
14448 PyThreadState* __tstate = wxPyBeginAllowThreads();
14449 result = (int)((wxFont const *)arg1)->GetFamily();
14450 wxPyEndAllowThreads(__tstate);
14451 if (PyErr_Occurred()) SWIG_fail;
14452 }
14453 resultobj = SWIG_From_int(static_cast< int >(result));
14454 return resultobj;
14455 fail:
14456 return NULL;
14457 }
14458
14459
14460 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14461 PyObject *resultobj = 0;
14462 wxFont *arg1 = (wxFont *) 0 ;
14463 int result;
14464 void *argp1 = 0 ;
14465 int res1 = 0 ;
14466 PyObject *swig_obj[1] ;
14467
14468 if (!args) SWIG_fail;
14469 swig_obj[0] = args;
14470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14471 if (!SWIG_IsOK(res1)) {
14472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14473 }
14474 arg1 = reinterpret_cast< wxFont * >(argp1);
14475 {
14476 PyThreadState* __tstate = wxPyBeginAllowThreads();
14477 result = (int)((wxFont const *)arg1)->GetStyle();
14478 wxPyEndAllowThreads(__tstate);
14479 if (PyErr_Occurred()) SWIG_fail;
14480 }
14481 resultobj = SWIG_From_int(static_cast< int >(result));
14482 return resultobj;
14483 fail:
14484 return NULL;
14485 }
14486
14487
14488 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14489 PyObject *resultobj = 0;
14490 wxFont *arg1 = (wxFont *) 0 ;
14491 int result;
14492 void *argp1 = 0 ;
14493 int res1 = 0 ;
14494 PyObject *swig_obj[1] ;
14495
14496 if (!args) SWIG_fail;
14497 swig_obj[0] = args;
14498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14499 if (!SWIG_IsOK(res1)) {
14500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14501 }
14502 arg1 = reinterpret_cast< wxFont * >(argp1);
14503 {
14504 PyThreadState* __tstate = wxPyBeginAllowThreads();
14505 result = (int)((wxFont const *)arg1)->GetWeight();
14506 wxPyEndAllowThreads(__tstate);
14507 if (PyErr_Occurred()) SWIG_fail;
14508 }
14509 resultobj = SWIG_From_int(static_cast< int >(result));
14510 return resultobj;
14511 fail:
14512 return NULL;
14513 }
14514
14515
14516 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14517 PyObject *resultobj = 0;
14518 wxFont *arg1 = (wxFont *) 0 ;
14519 bool result;
14520 void *argp1 = 0 ;
14521 int res1 = 0 ;
14522 PyObject *swig_obj[1] ;
14523
14524 if (!args) SWIG_fail;
14525 swig_obj[0] = args;
14526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14527 if (!SWIG_IsOK(res1)) {
14528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14529 }
14530 arg1 = reinterpret_cast< wxFont * >(argp1);
14531 {
14532 PyThreadState* __tstate = wxPyBeginAllowThreads();
14533 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14534 wxPyEndAllowThreads(__tstate);
14535 if (PyErr_Occurred()) SWIG_fail;
14536 }
14537 {
14538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14539 }
14540 return resultobj;
14541 fail:
14542 return NULL;
14543 }
14544
14545
14546 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14547 PyObject *resultobj = 0;
14548 wxFont *arg1 = (wxFont *) 0 ;
14549 wxString result;
14550 void *argp1 = 0 ;
14551 int res1 = 0 ;
14552 PyObject *swig_obj[1] ;
14553
14554 if (!args) SWIG_fail;
14555 swig_obj[0] = args;
14556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14557 if (!SWIG_IsOK(res1)) {
14558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14559 }
14560 arg1 = reinterpret_cast< wxFont * >(argp1);
14561 {
14562 PyThreadState* __tstate = wxPyBeginAllowThreads();
14563 result = ((wxFont const *)arg1)->GetFaceName();
14564 wxPyEndAllowThreads(__tstate);
14565 if (PyErr_Occurred()) SWIG_fail;
14566 }
14567 {
14568 #if wxUSE_UNICODE
14569 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14570 #else
14571 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14572 #endif
14573 }
14574 return resultobj;
14575 fail:
14576 return NULL;
14577 }
14578
14579
14580 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14581 PyObject *resultobj = 0;
14582 wxFont *arg1 = (wxFont *) 0 ;
14583 wxFontEncoding result;
14584 void *argp1 = 0 ;
14585 int res1 = 0 ;
14586 PyObject *swig_obj[1] ;
14587
14588 if (!args) SWIG_fail;
14589 swig_obj[0] = args;
14590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14591 if (!SWIG_IsOK(res1)) {
14592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14593 }
14594 arg1 = reinterpret_cast< wxFont * >(argp1);
14595 {
14596 PyThreadState* __tstate = wxPyBeginAllowThreads();
14597 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14598 wxPyEndAllowThreads(__tstate);
14599 if (PyErr_Occurred()) SWIG_fail;
14600 }
14601 resultobj = SWIG_From_int(static_cast< int >(result));
14602 return resultobj;
14603 fail:
14604 return NULL;
14605 }
14606
14607
14608 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14609 PyObject *resultobj = 0;
14610 wxFont *arg1 = (wxFont *) 0 ;
14611 wxNativeFontInfo *result = 0 ;
14612 void *argp1 = 0 ;
14613 int res1 = 0 ;
14614 PyObject *swig_obj[1] ;
14615
14616 if (!args) SWIG_fail;
14617 swig_obj[0] = args;
14618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14619 if (!SWIG_IsOK(res1)) {
14620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14621 }
14622 arg1 = reinterpret_cast< wxFont * >(argp1);
14623 {
14624 PyThreadState* __tstate = wxPyBeginAllowThreads();
14625 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14626 wxPyEndAllowThreads(__tstate);
14627 if (PyErr_Occurred()) SWIG_fail;
14628 }
14629 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14630 return resultobj;
14631 fail:
14632 return NULL;
14633 }
14634
14635
14636 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14637 PyObject *resultobj = 0;
14638 wxFont *arg1 = (wxFont *) 0 ;
14639 bool result;
14640 void *argp1 = 0 ;
14641 int res1 = 0 ;
14642 PyObject *swig_obj[1] ;
14643
14644 if (!args) SWIG_fail;
14645 swig_obj[0] = args;
14646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14647 if (!SWIG_IsOK(res1)) {
14648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14649 }
14650 arg1 = reinterpret_cast< wxFont * >(argp1);
14651 {
14652 PyThreadState* __tstate = wxPyBeginAllowThreads();
14653 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14654 wxPyEndAllowThreads(__tstate);
14655 if (PyErr_Occurred()) SWIG_fail;
14656 }
14657 {
14658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14659 }
14660 return resultobj;
14661 fail:
14662 return NULL;
14663 }
14664
14665
14666 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14667 PyObject *resultobj = 0;
14668 wxFont *arg1 = (wxFont *) 0 ;
14669 wxString result;
14670 void *argp1 = 0 ;
14671 int res1 = 0 ;
14672 PyObject *swig_obj[1] ;
14673
14674 if (!args) SWIG_fail;
14675 swig_obj[0] = args;
14676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14677 if (!SWIG_IsOK(res1)) {
14678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14679 }
14680 arg1 = reinterpret_cast< wxFont * >(argp1);
14681 {
14682 PyThreadState* __tstate = wxPyBeginAllowThreads();
14683 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14684 wxPyEndAllowThreads(__tstate);
14685 if (PyErr_Occurred()) SWIG_fail;
14686 }
14687 {
14688 #if wxUSE_UNICODE
14689 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14690 #else
14691 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14692 #endif
14693 }
14694 return resultobj;
14695 fail:
14696 return NULL;
14697 }
14698
14699
14700 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14701 PyObject *resultobj = 0;
14702 wxFont *arg1 = (wxFont *) 0 ;
14703 wxString result;
14704 void *argp1 = 0 ;
14705 int res1 = 0 ;
14706 PyObject *swig_obj[1] ;
14707
14708 if (!args) SWIG_fail;
14709 swig_obj[0] = args;
14710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14711 if (!SWIG_IsOK(res1)) {
14712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14713 }
14714 arg1 = reinterpret_cast< wxFont * >(argp1);
14715 {
14716 PyThreadState* __tstate = wxPyBeginAllowThreads();
14717 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14718 wxPyEndAllowThreads(__tstate);
14719 if (PyErr_Occurred()) SWIG_fail;
14720 }
14721 {
14722 #if wxUSE_UNICODE
14723 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14724 #else
14725 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14726 #endif
14727 }
14728 return resultobj;
14729 fail:
14730 return NULL;
14731 }
14732
14733
14734 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14735 PyObject *resultobj = 0;
14736 wxFont *arg1 = (wxFont *) 0 ;
14737 int arg2 ;
14738 void *argp1 = 0 ;
14739 int res1 = 0 ;
14740 int val2 ;
14741 int ecode2 = 0 ;
14742 PyObject * obj0 = 0 ;
14743 PyObject * obj1 = 0 ;
14744 char * kwnames[] = {
14745 (char *) "self",(char *) "pointSize", NULL
14746 };
14747
14748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14750 if (!SWIG_IsOK(res1)) {
14751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14752 }
14753 arg1 = reinterpret_cast< wxFont * >(argp1);
14754 ecode2 = SWIG_AsVal_int(obj1, &val2);
14755 if (!SWIG_IsOK(ecode2)) {
14756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14757 }
14758 arg2 = static_cast< int >(val2);
14759 {
14760 PyThreadState* __tstate = wxPyBeginAllowThreads();
14761 (arg1)->SetPointSize(arg2);
14762 wxPyEndAllowThreads(__tstate);
14763 if (PyErr_Occurred()) SWIG_fail;
14764 }
14765 resultobj = SWIG_Py_Void();
14766 return resultobj;
14767 fail:
14768 return NULL;
14769 }
14770
14771
14772 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14773 PyObject *resultobj = 0;
14774 wxFont *arg1 = (wxFont *) 0 ;
14775 wxSize *arg2 = 0 ;
14776 void *argp1 = 0 ;
14777 int res1 = 0 ;
14778 wxSize temp2 ;
14779 PyObject * obj0 = 0 ;
14780 PyObject * obj1 = 0 ;
14781 char * kwnames[] = {
14782 (char *) "self",(char *) "pixelSize", NULL
14783 };
14784
14785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14787 if (!SWIG_IsOK(res1)) {
14788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14789 }
14790 arg1 = reinterpret_cast< wxFont * >(argp1);
14791 {
14792 arg2 = &temp2;
14793 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14794 }
14795 {
14796 PyThreadState* __tstate = wxPyBeginAllowThreads();
14797 (arg1)->SetPixelSize((wxSize const &)*arg2);
14798 wxPyEndAllowThreads(__tstate);
14799 if (PyErr_Occurred()) SWIG_fail;
14800 }
14801 resultobj = SWIG_Py_Void();
14802 return resultobj;
14803 fail:
14804 return NULL;
14805 }
14806
14807
14808 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14809 PyObject *resultobj = 0;
14810 wxFont *arg1 = (wxFont *) 0 ;
14811 int arg2 ;
14812 void *argp1 = 0 ;
14813 int res1 = 0 ;
14814 int val2 ;
14815 int ecode2 = 0 ;
14816 PyObject * obj0 = 0 ;
14817 PyObject * obj1 = 0 ;
14818 char * kwnames[] = {
14819 (char *) "self",(char *) "family", NULL
14820 };
14821
14822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14824 if (!SWIG_IsOK(res1)) {
14825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14826 }
14827 arg1 = reinterpret_cast< wxFont * >(argp1);
14828 ecode2 = SWIG_AsVal_int(obj1, &val2);
14829 if (!SWIG_IsOK(ecode2)) {
14830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14831 }
14832 arg2 = static_cast< int >(val2);
14833 {
14834 PyThreadState* __tstate = wxPyBeginAllowThreads();
14835 (arg1)->SetFamily(arg2);
14836 wxPyEndAllowThreads(__tstate);
14837 if (PyErr_Occurred()) SWIG_fail;
14838 }
14839 resultobj = SWIG_Py_Void();
14840 return resultobj;
14841 fail:
14842 return NULL;
14843 }
14844
14845
14846 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14847 PyObject *resultobj = 0;
14848 wxFont *arg1 = (wxFont *) 0 ;
14849 int arg2 ;
14850 void *argp1 = 0 ;
14851 int res1 = 0 ;
14852 int val2 ;
14853 int ecode2 = 0 ;
14854 PyObject * obj0 = 0 ;
14855 PyObject * obj1 = 0 ;
14856 char * kwnames[] = {
14857 (char *) "self",(char *) "style", NULL
14858 };
14859
14860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14862 if (!SWIG_IsOK(res1)) {
14863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14864 }
14865 arg1 = reinterpret_cast< wxFont * >(argp1);
14866 ecode2 = SWIG_AsVal_int(obj1, &val2);
14867 if (!SWIG_IsOK(ecode2)) {
14868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14869 }
14870 arg2 = static_cast< int >(val2);
14871 {
14872 PyThreadState* __tstate = wxPyBeginAllowThreads();
14873 (arg1)->SetStyle(arg2);
14874 wxPyEndAllowThreads(__tstate);
14875 if (PyErr_Occurred()) SWIG_fail;
14876 }
14877 resultobj = SWIG_Py_Void();
14878 return resultobj;
14879 fail:
14880 return NULL;
14881 }
14882
14883
14884 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14885 PyObject *resultobj = 0;
14886 wxFont *arg1 = (wxFont *) 0 ;
14887 int arg2 ;
14888 void *argp1 = 0 ;
14889 int res1 = 0 ;
14890 int val2 ;
14891 int ecode2 = 0 ;
14892 PyObject * obj0 = 0 ;
14893 PyObject * obj1 = 0 ;
14894 char * kwnames[] = {
14895 (char *) "self",(char *) "weight", NULL
14896 };
14897
14898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14900 if (!SWIG_IsOK(res1)) {
14901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14902 }
14903 arg1 = reinterpret_cast< wxFont * >(argp1);
14904 ecode2 = SWIG_AsVal_int(obj1, &val2);
14905 if (!SWIG_IsOK(ecode2)) {
14906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14907 }
14908 arg2 = static_cast< int >(val2);
14909 {
14910 PyThreadState* __tstate = wxPyBeginAllowThreads();
14911 (arg1)->SetWeight(arg2);
14912 wxPyEndAllowThreads(__tstate);
14913 if (PyErr_Occurred()) SWIG_fail;
14914 }
14915 resultobj = SWIG_Py_Void();
14916 return resultobj;
14917 fail:
14918 return NULL;
14919 }
14920
14921
14922 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14923 PyObject *resultobj = 0;
14924 wxFont *arg1 = (wxFont *) 0 ;
14925 wxString *arg2 = 0 ;
14926 bool result;
14927 void *argp1 = 0 ;
14928 int res1 = 0 ;
14929 bool temp2 = false ;
14930 PyObject * obj0 = 0 ;
14931 PyObject * obj1 = 0 ;
14932 char * kwnames[] = {
14933 (char *) "self",(char *) "faceName", NULL
14934 };
14935
14936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14938 if (!SWIG_IsOK(res1)) {
14939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14940 }
14941 arg1 = reinterpret_cast< wxFont * >(argp1);
14942 {
14943 arg2 = wxString_in_helper(obj1);
14944 if (arg2 == NULL) SWIG_fail;
14945 temp2 = true;
14946 }
14947 {
14948 PyThreadState* __tstate = wxPyBeginAllowThreads();
14949 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14950 wxPyEndAllowThreads(__tstate);
14951 if (PyErr_Occurred()) SWIG_fail;
14952 }
14953 {
14954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14955 }
14956 {
14957 if (temp2)
14958 delete arg2;
14959 }
14960 return resultobj;
14961 fail:
14962 {
14963 if (temp2)
14964 delete arg2;
14965 }
14966 return NULL;
14967 }
14968
14969
14970 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14971 PyObject *resultobj = 0;
14972 wxFont *arg1 = (wxFont *) 0 ;
14973 bool arg2 ;
14974 void *argp1 = 0 ;
14975 int res1 = 0 ;
14976 bool val2 ;
14977 int ecode2 = 0 ;
14978 PyObject * obj0 = 0 ;
14979 PyObject * obj1 = 0 ;
14980 char * kwnames[] = {
14981 (char *) "self",(char *) "underlined", NULL
14982 };
14983
14984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14986 if (!SWIG_IsOK(res1)) {
14987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14988 }
14989 arg1 = reinterpret_cast< wxFont * >(argp1);
14990 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14991 if (!SWIG_IsOK(ecode2)) {
14992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14993 }
14994 arg2 = static_cast< bool >(val2);
14995 {
14996 PyThreadState* __tstate = wxPyBeginAllowThreads();
14997 (arg1)->SetUnderlined(arg2);
14998 wxPyEndAllowThreads(__tstate);
14999 if (PyErr_Occurred()) SWIG_fail;
15000 }
15001 resultobj = SWIG_Py_Void();
15002 return resultobj;
15003 fail:
15004 return NULL;
15005 }
15006
15007
15008 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15009 PyObject *resultobj = 0;
15010 wxFont *arg1 = (wxFont *) 0 ;
15011 wxFontEncoding arg2 ;
15012 void *argp1 = 0 ;
15013 int res1 = 0 ;
15014 int val2 ;
15015 int ecode2 = 0 ;
15016 PyObject * obj0 = 0 ;
15017 PyObject * obj1 = 0 ;
15018 char * kwnames[] = {
15019 (char *) "self",(char *) "encoding", NULL
15020 };
15021
15022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15024 if (!SWIG_IsOK(res1)) {
15025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15026 }
15027 arg1 = reinterpret_cast< wxFont * >(argp1);
15028 ecode2 = SWIG_AsVal_int(obj1, &val2);
15029 if (!SWIG_IsOK(ecode2)) {
15030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15031 }
15032 arg2 = static_cast< wxFontEncoding >(val2);
15033 {
15034 PyThreadState* __tstate = wxPyBeginAllowThreads();
15035 (arg1)->SetEncoding(arg2);
15036 wxPyEndAllowThreads(__tstate);
15037 if (PyErr_Occurred()) SWIG_fail;
15038 }
15039 resultobj = SWIG_Py_Void();
15040 return resultobj;
15041 fail:
15042 return NULL;
15043 }
15044
15045
15046 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15047 PyObject *resultobj = 0;
15048 wxFont *arg1 = (wxFont *) 0 ;
15049 wxNativeFontInfo *arg2 = 0 ;
15050 void *argp1 = 0 ;
15051 int res1 = 0 ;
15052 void *argp2 = 0 ;
15053 int res2 = 0 ;
15054 PyObject * obj0 = 0 ;
15055 PyObject * obj1 = 0 ;
15056 char * kwnames[] = {
15057 (char *) "self",(char *) "info", NULL
15058 };
15059
15060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15062 if (!SWIG_IsOK(res1)) {
15063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15064 }
15065 arg1 = reinterpret_cast< wxFont * >(argp1);
15066 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15067 if (!SWIG_IsOK(res2)) {
15068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15069 }
15070 if (!argp2) {
15071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15072 }
15073 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15074 {
15075 PyThreadState* __tstate = wxPyBeginAllowThreads();
15076 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15077 wxPyEndAllowThreads(__tstate);
15078 if (PyErr_Occurred()) SWIG_fail;
15079 }
15080 resultobj = SWIG_Py_Void();
15081 return resultobj;
15082 fail:
15083 return NULL;
15084 }
15085
15086
15087 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15088 PyObject *resultobj = 0;
15089 wxFont *arg1 = (wxFont *) 0 ;
15090 wxString *arg2 = 0 ;
15091 bool result;
15092 void *argp1 = 0 ;
15093 int res1 = 0 ;
15094 bool temp2 = false ;
15095 PyObject * obj0 = 0 ;
15096 PyObject * obj1 = 0 ;
15097 char * kwnames[] = {
15098 (char *) "self",(char *) "info", NULL
15099 };
15100
15101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15103 if (!SWIG_IsOK(res1)) {
15104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15105 }
15106 arg1 = reinterpret_cast< wxFont * >(argp1);
15107 {
15108 arg2 = wxString_in_helper(obj1);
15109 if (arg2 == NULL) SWIG_fail;
15110 temp2 = true;
15111 }
15112 {
15113 PyThreadState* __tstate = wxPyBeginAllowThreads();
15114 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15115 wxPyEndAllowThreads(__tstate);
15116 if (PyErr_Occurred()) SWIG_fail;
15117 }
15118 {
15119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15120 }
15121 {
15122 if (temp2)
15123 delete arg2;
15124 }
15125 return resultobj;
15126 fail:
15127 {
15128 if (temp2)
15129 delete arg2;
15130 }
15131 return NULL;
15132 }
15133
15134
15135 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15136 PyObject *resultobj = 0;
15137 wxFont *arg1 = (wxFont *) 0 ;
15138 wxString *arg2 = 0 ;
15139 bool result;
15140 void *argp1 = 0 ;
15141 int res1 = 0 ;
15142 bool temp2 = false ;
15143 PyObject * obj0 = 0 ;
15144 PyObject * obj1 = 0 ;
15145 char * kwnames[] = {
15146 (char *) "self",(char *) "info", NULL
15147 };
15148
15149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15151 if (!SWIG_IsOK(res1)) {
15152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15153 }
15154 arg1 = reinterpret_cast< wxFont * >(argp1);
15155 {
15156 arg2 = wxString_in_helper(obj1);
15157 if (arg2 == NULL) SWIG_fail;
15158 temp2 = true;
15159 }
15160 {
15161 PyThreadState* __tstate = wxPyBeginAllowThreads();
15162 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15163 wxPyEndAllowThreads(__tstate);
15164 if (PyErr_Occurred()) SWIG_fail;
15165 }
15166 {
15167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15168 }
15169 {
15170 if (temp2)
15171 delete arg2;
15172 }
15173 return resultobj;
15174 fail:
15175 {
15176 if (temp2)
15177 delete arg2;
15178 }
15179 return NULL;
15180 }
15181
15182
15183 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15184 PyObject *resultobj = 0;
15185 wxFont *arg1 = (wxFont *) 0 ;
15186 wxString result;
15187 void *argp1 = 0 ;
15188 int res1 = 0 ;
15189 PyObject *swig_obj[1] ;
15190
15191 if (!args) SWIG_fail;
15192 swig_obj[0] = args;
15193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15194 if (!SWIG_IsOK(res1)) {
15195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15196 }
15197 arg1 = reinterpret_cast< wxFont * >(argp1);
15198 {
15199 PyThreadState* __tstate = wxPyBeginAllowThreads();
15200 result = ((wxFont const *)arg1)->GetFamilyString();
15201 wxPyEndAllowThreads(__tstate);
15202 if (PyErr_Occurred()) SWIG_fail;
15203 }
15204 {
15205 #if wxUSE_UNICODE
15206 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15207 #else
15208 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15209 #endif
15210 }
15211 return resultobj;
15212 fail:
15213 return NULL;
15214 }
15215
15216
15217 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15218 PyObject *resultobj = 0;
15219 wxFont *arg1 = (wxFont *) 0 ;
15220 wxString result;
15221 void *argp1 = 0 ;
15222 int res1 = 0 ;
15223 PyObject *swig_obj[1] ;
15224
15225 if (!args) SWIG_fail;
15226 swig_obj[0] = args;
15227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15228 if (!SWIG_IsOK(res1)) {
15229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15230 }
15231 arg1 = reinterpret_cast< wxFont * >(argp1);
15232 {
15233 PyThreadState* __tstate = wxPyBeginAllowThreads();
15234 result = ((wxFont const *)arg1)->GetStyleString();
15235 wxPyEndAllowThreads(__tstate);
15236 if (PyErr_Occurred()) SWIG_fail;
15237 }
15238 {
15239 #if wxUSE_UNICODE
15240 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15241 #else
15242 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15243 #endif
15244 }
15245 return resultobj;
15246 fail:
15247 return NULL;
15248 }
15249
15250
15251 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15252 PyObject *resultobj = 0;
15253 wxFont *arg1 = (wxFont *) 0 ;
15254 wxString result;
15255 void *argp1 = 0 ;
15256 int res1 = 0 ;
15257 PyObject *swig_obj[1] ;
15258
15259 if (!args) SWIG_fail;
15260 swig_obj[0] = args;
15261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15262 if (!SWIG_IsOK(res1)) {
15263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15264 }
15265 arg1 = reinterpret_cast< wxFont * >(argp1);
15266 {
15267 PyThreadState* __tstate = wxPyBeginAllowThreads();
15268 result = ((wxFont const *)arg1)->GetWeightString();
15269 wxPyEndAllowThreads(__tstate);
15270 if (PyErr_Occurred()) SWIG_fail;
15271 }
15272 {
15273 #if wxUSE_UNICODE
15274 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15275 #else
15276 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15277 #endif
15278 }
15279 return resultobj;
15280 fail:
15281 return NULL;
15282 }
15283
15284
15285 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15286 PyObject *resultobj = 0;
15287 wxFont *arg1 = (wxFont *) 0 ;
15288 bool arg2 = (bool) true ;
15289 void *argp1 = 0 ;
15290 int res1 = 0 ;
15291 bool val2 ;
15292 int ecode2 = 0 ;
15293 PyObject * obj0 = 0 ;
15294 PyObject * obj1 = 0 ;
15295 char * kwnames[] = {
15296 (char *) "self",(char *) "no", NULL
15297 };
15298
15299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15301 if (!SWIG_IsOK(res1)) {
15302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15303 }
15304 arg1 = reinterpret_cast< wxFont * >(argp1);
15305 if (obj1) {
15306 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15307 if (!SWIG_IsOK(ecode2)) {
15308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15309 }
15310 arg2 = static_cast< bool >(val2);
15311 }
15312 {
15313 PyThreadState* __tstate = wxPyBeginAllowThreads();
15314 (arg1)->SetNoAntiAliasing(arg2);
15315 wxPyEndAllowThreads(__tstate);
15316 if (PyErr_Occurred()) SWIG_fail;
15317 }
15318 resultobj = SWIG_Py_Void();
15319 return resultobj;
15320 fail:
15321 return NULL;
15322 }
15323
15324
15325 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15326 PyObject *resultobj = 0;
15327 wxFont *arg1 = (wxFont *) 0 ;
15328 bool result;
15329 void *argp1 = 0 ;
15330 int res1 = 0 ;
15331 PyObject *swig_obj[1] ;
15332
15333 if (!args) SWIG_fail;
15334 swig_obj[0] = args;
15335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15336 if (!SWIG_IsOK(res1)) {
15337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15338 }
15339 arg1 = reinterpret_cast< wxFont * >(argp1);
15340 {
15341 PyThreadState* __tstate = wxPyBeginAllowThreads();
15342 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15343 wxPyEndAllowThreads(__tstate);
15344 if (PyErr_Occurred()) SWIG_fail;
15345 }
15346 {
15347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15348 }
15349 return resultobj;
15350 fail:
15351 return NULL;
15352 }
15353
15354
15355 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15356 PyObject *resultobj = 0;
15357 wxFontEncoding result;
15358
15359 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15360 {
15361 if (!wxPyCheckForApp()) SWIG_fail;
15362 PyThreadState* __tstate = wxPyBeginAllowThreads();
15363 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15364 wxPyEndAllowThreads(__tstate);
15365 if (PyErr_Occurred()) SWIG_fail;
15366 }
15367 resultobj = SWIG_From_int(static_cast< int >(result));
15368 return resultobj;
15369 fail:
15370 return NULL;
15371 }
15372
15373
15374 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15375 PyObject *resultobj = 0;
15376 wxFontEncoding arg1 ;
15377 int val1 ;
15378 int ecode1 = 0 ;
15379 PyObject * obj0 = 0 ;
15380 char * kwnames[] = {
15381 (char *) "encoding", NULL
15382 };
15383
15384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15385 ecode1 = SWIG_AsVal_int(obj0, &val1);
15386 if (!SWIG_IsOK(ecode1)) {
15387 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15388 }
15389 arg1 = static_cast< wxFontEncoding >(val1);
15390 {
15391 if (!wxPyCheckForApp()) SWIG_fail;
15392 PyThreadState* __tstate = wxPyBeginAllowThreads();
15393 wxFont::SetDefaultEncoding(arg1);
15394 wxPyEndAllowThreads(__tstate);
15395 if (PyErr_Occurred()) SWIG_fail;
15396 }
15397 resultobj = SWIG_Py_Void();
15398 return resultobj;
15399 fail:
15400 return NULL;
15401 }
15402
15403
15404 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15405 PyObject *obj;
15406 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15407 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15408 return SWIG_Py_Void();
15409 }
15410
15411 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15412 return SWIG_Python_InitShadowInstance(args);
15413 }
15414
15415 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15416 PyObject *resultobj = 0;
15417 wxPyFontEnumerator *result = 0 ;
15418
15419 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15420 {
15421 if (!wxPyCheckForApp()) SWIG_fail;
15422 PyThreadState* __tstate = wxPyBeginAllowThreads();
15423 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15424 wxPyEndAllowThreads(__tstate);
15425 if (PyErr_Occurred()) SWIG_fail;
15426 }
15427 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15428 return resultobj;
15429 fail:
15430 return NULL;
15431 }
15432
15433
15434 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15435 PyObject *resultobj = 0;
15436 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15437 void *argp1 = 0 ;
15438 int res1 = 0 ;
15439 PyObject *swig_obj[1] ;
15440
15441 if (!args) SWIG_fail;
15442 swig_obj[0] = args;
15443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15444 if (!SWIG_IsOK(res1)) {
15445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15446 }
15447 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15448 {
15449 PyThreadState* __tstate = wxPyBeginAllowThreads();
15450 delete arg1;
15451
15452 wxPyEndAllowThreads(__tstate);
15453 if (PyErr_Occurred()) SWIG_fail;
15454 }
15455 resultobj = SWIG_Py_Void();
15456 return resultobj;
15457 fail:
15458 return NULL;
15459 }
15460
15461
15462 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15463 PyObject *resultobj = 0;
15464 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15465 PyObject *arg2 = (PyObject *) 0 ;
15466 PyObject *arg3 = (PyObject *) 0 ;
15467 int arg4 = (int) 0 ;
15468 void *argp1 = 0 ;
15469 int res1 = 0 ;
15470 int val4 ;
15471 int ecode4 = 0 ;
15472 PyObject * obj0 = 0 ;
15473 PyObject * obj1 = 0 ;
15474 PyObject * obj2 = 0 ;
15475 PyObject * obj3 = 0 ;
15476 char * kwnames[] = {
15477 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15478 };
15479
15480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15482 if (!SWIG_IsOK(res1)) {
15483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15484 }
15485 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15486 arg2 = obj1;
15487 arg3 = obj2;
15488 if (obj3) {
15489 ecode4 = SWIG_AsVal_int(obj3, &val4);
15490 if (!SWIG_IsOK(ecode4)) {
15491 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
15492 }
15493 arg4 = static_cast< int >(val4);
15494 }
15495 {
15496 PyThreadState* __tstate = wxPyBeginAllowThreads();
15497 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15498 wxPyEndAllowThreads(__tstate);
15499 if (PyErr_Occurred()) SWIG_fail;
15500 }
15501 resultobj = SWIG_Py_Void();
15502 return resultobj;
15503 fail:
15504 return NULL;
15505 }
15506
15507
15508 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15509 PyObject *resultobj = 0;
15510 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15511 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15512 bool arg3 = (bool) false ;
15513 bool result;
15514 void *argp1 = 0 ;
15515 int res1 = 0 ;
15516 int val2 ;
15517 int ecode2 = 0 ;
15518 bool val3 ;
15519 int ecode3 = 0 ;
15520 PyObject * obj0 = 0 ;
15521 PyObject * obj1 = 0 ;
15522 PyObject * obj2 = 0 ;
15523 char * kwnames[] = {
15524 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15525 };
15526
15527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15529 if (!SWIG_IsOK(res1)) {
15530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15531 }
15532 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15533 if (obj1) {
15534 ecode2 = SWIG_AsVal_int(obj1, &val2);
15535 if (!SWIG_IsOK(ecode2)) {
15536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15537 }
15538 arg2 = static_cast< wxFontEncoding >(val2);
15539 }
15540 if (obj2) {
15541 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15542 if (!SWIG_IsOK(ecode3)) {
15543 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15544 }
15545 arg3 = static_cast< bool >(val3);
15546 }
15547 {
15548 PyThreadState* __tstate = wxPyBeginAllowThreads();
15549 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15550 wxPyEndAllowThreads(__tstate);
15551 if (PyErr_Occurred()) SWIG_fail;
15552 }
15553 {
15554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15555 }
15556 return resultobj;
15557 fail:
15558 return NULL;
15559 }
15560
15561
15562 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15563 PyObject *resultobj = 0;
15564 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15565 wxString const &arg2_defvalue = wxPyEmptyString ;
15566 wxString *arg2 = (wxString *) &arg2_defvalue ;
15567 bool result;
15568 void *argp1 = 0 ;
15569 int res1 = 0 ;
15570 bool temp2 = false ;
15571 PyObject * obj0 = 0 ;
15572 PyObject * obj1 = 0 ;
15573 char * kwnames[] = {
15574 (char *) "self",(char *) "facename", NULL
15575 };
15576
15577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15579 if (!SWIG_IsOK(res1)) {
15580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15581 }
15582 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15583 if (obj1) {
15584 {
15585 arg2 = wxString_in_helper(obj1);
15586 if (arg2 == NULL) SWIG_fail;
15587 temp2 = true;
15588 }
15589 }
15590 {
15591 PyThreadState* __tstate = wxPyBeginAllowThreads();
15592 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15593 wxPyEndAllowThreads(__tstate);
15594 if (PyErr_Occurred()) SWIG_fail;
15595 }
15596 {
15597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15598 }
15599 {
15600 if (temp2)
15601 delete arg2;
15602 }
15603 return resultobj;
15604 fail:
15605 {
15606 if (temp2)
15607 delete arg2;
15608 }
15609 return NULL;
15610 }
15611
15612
15613 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15614 PyObject *resultobj = 0;
15615 PyObject *result = 0 ;
15616
15617 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15618 {
15619 PyThreadState* __tstate = wxPyBeginAllowThreads();
15620 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15621 wxPyEndAllowThreads(__tstate);
15622 if (PyErr_Occurred()) SWIG_fail;
15623 }
15624 resultobj = result;
15625 return resultobj;
15626 fail:
15627 return NULL;
15628 }
15629
15630
15631 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15632 PyObject *resultobj = 0;
15633 PyObject *result = 0 ;
15634
15635 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15636 {
15637 PyThreadState* __tstate = wxPyBeginAllowThreads();
15638 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15639 wxPyEndAllowThreads(__tstate);
15640 if (PyErr_Occurred()) SWIG_fail;
15641 }
15642 resultobj = result;
15643 return resultobj;
15644 fail:
15645 return NULL;
15646 }
15647
15648
15649 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15650 PyObject *resultobj = 0;
15651 wxString *arg1 = 0 ;
15652 bool result;
15653 bool temp1 = false ;
15654 PyObject * obj0 = 0 ;
15655 char * kwnames[] = {
15656 (char *) "str", NULL
15657 };
15658
15659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15660 {
15661 arg1 = wxString_in_helper(obj0);
15662 if (arg1 == NULL) SWIG_fail;
15663 temp1 = true;
15664 }
15665 {
15666 PyThreadState* __tstate = wxPyBeginAllowThreads();
15667 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15668 wxPyEndAllowThreads(__tstate);
15669 if (PyErr_Occurred()) SWIG_fail;
15670 }
15671 {
15672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15673 }
15674 {
15675 if (temp1)
15676 delete arg1;
15677 }
15678 return resultobj;
15679 fail:
15680 {
15681 if (temp1)
15682 delete arg1;
15683 }
15684 return NULL;
15685 }
15686
15687
15688 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15689 PyObject *obj;
15690 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15691 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15692 return SWIG_Py_Void();
15693 }
15694
15695 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15696 return SWIG_Python_InitShadowInstance(args);
15697 }
15698
15699 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15700 PyObject *resultobj = 0;
15701 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15702 int arg2 ;
15703 void *argp1 = 0 ;
15704 int res1 = 0 ;
15705 int val2 ;
15706 int ecode2 = 0 ;
15707 PyObject *swig_obj[2] ;
15708
15709 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15711 if (!SWIG_IsOK(res1)) {
15712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15713 }
15714 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15715 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15716 if (!SWIG_IsOK(ecode2)) {
15717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15718 }
15719 arg2 = static_cast< int >(val2);
15720 if (arg1) (arg1)->Language = arg2;
15721
15722 resultobj = SWIG_Py_Void();
15723 return resultobj;
15724 fail:
15725 return NULL;
15726 }
15727
15728
15729 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15730 PyObject *resultobj = 0;
15731 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15732 int result;
15733 void *argp1 = 0 ;
15734 int res1 = 0 ;
15735 PyObject *swig_obj[1] ;
15736
15737 if (!args) SWIG_fail;
15738 swig_obj[0] = args;
15739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15740 if (!SWIG_IsOK(res1)) {
15741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15742 }
15743 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15744 result = (int) ((arg1)->Language);
15745 resultobj = SWIG_From_int(static_cast< int >(result));
15746 return resultobj;
15747 fail:
15748 return NULL;
15749 }
15750
15751
15752 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15753 PyObject *resultobj = 0;
15754 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15755 wxString *arg2 = (wxString *) 0 ;
15756 void *argp1 = 0 ;
15757 int res1 = 0 ;
15758 bool temp2 = false ;
15759 PyObject *swig_obj[2] ;
15760
15761 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15763 if (!SWIG_IsOK(res1)) {
15764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15765 }
15766 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15767 {
15768 arg2 = wxString_in_helper(swig_obj[1]);
15769 if (arg2 == NULL) SWIG_fail;
15770 temp2 = true;
15771 }
15772 if (arg1) (arg1)->CanonicalName = *arg2;
15773
15774 resultobj = SWIG_Py_Void();
15775 {
15776 if (temp2)
15777 delete arg2;
15778 }
15779 return resultobj;
15780 fail:
15781 {
15782 if (temp2)
15783 delete arg2;
15784 }
15785 return NULL;
15786 }
15787
15788
15789 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15790 PyObject *resultobj = 0;
15791 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15792 wxString *result = 0 ;
15793 void *argp1 = 0 ;
15794 int res1 = 0 ;
15795 PyObject *swig_obj[1] ;
15796
15797 if (!args) SWIG_fail;
15798 swig_obj[0] = args;
15799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15800 if (!SWIG_IsOK(res1)) {
15801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15802 }
15803 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15804 result = (wxString *)& ((arg1)->CanonicalName);
15805 {
15806 #if wxUSE_UNICODE
15807 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15808 #else
15809 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15810 #endif
15811 }
15812 return resultobj;
15813 fail:
15814 return NULL;
15815 }
15816
15817
15818 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15819 PyObject *resultobj = 0;
15820 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15821 wxString *arg2 = (wxString *) 0 ;
15822 void *argp1 = 0 ;
15823 int res1 = 0 ;
15824 bool temp2 = false ;
15825 PyObject *swig_obj[2] ;
15826
15827 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15829 if (!SWIG_IsOK(res1)) {
15830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15831 }
15832 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15833 {
15834 arg2 = wxString_in_helper(swig_obj[1]);
15835 if (arg2 == NULL) SWIG_fail;
15836 temp2 = true;
15837 }
15838 if (arg1) (arg1)->Description = *arg2;
15839
15840 resultobj = SWIG_Py_Void();
15841 {
15842 if (temp2)
15843 delete arg2;
15844 }
15845 return resultobj;
15846 fail:
15847 {
15848 if (temp2)
15849 delete arg2;
15850 }
15851 return NULL;
15852 }
15853
15854
15855 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15856 PyObject *resultobj = 0;
15857 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15858 wxString *result = 0 ;
15859 void *argp1 = 0 ;
15860 int res1 = 0 ;
15861 PyObject *swig_obj[1] ;
15862
15863 if (!args) SWIG_fail;
15864 swig_obj[0] = args;
15865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15866 if (!SWIG_IsOK(res1)) {
15867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15868 }
15869 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15870 result = (wxString *)& ((arg1)->Description);
15871 {
15872 #if wxUSE_UNICODE
15873 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15874 #else
15875 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15876 #endif
15877 }
15878 return resultobj;
15879 fail:
15880 return NULL;
15881 }
15882
15883
15884 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15885 PyObject *obj;
15886 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15887 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15888 return SWIG_Py_Void();
15889 }
15890
15891 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15892 PyObject *resultobj = 0;
15893 int arg1 = (int) -1 ;
15894 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15895 wxLocale *result = 0 ;
15896 int val1 ;
15897 int ecode1 = 0 ;
15898 int val2 ;
15899 int ecode2 = 0 ;
15900 PyObject * obj0 = 0 ;
15901 PyObject * obj1 = 0 ;
15902 char * kwnames[] = {
15903 (char *) "language",(char *) "flags", NULL
15904 };
15905
15906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15907 if (obj0) {
15908 ecode1 = SWIG_AsVal_int(obj0, &val1);
15909 if (!SWIG_IsOK(ecode1)) {
15910 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15911 }
15912 arg1 = static_cast< int >(val1);
15913 }
15914 if (obj1) {
15915 ecode2 = SWIG_AsVal_int(obj1, &val2);
15916 if (!SWIG_IsOK(ecode2)) {
15917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15918 }
15919 arg2 = static_cast< int >(val2);
15920 }
15921 {
15922 PyThreadState* __tstate = wxPyBeginAllowThreads();
15923 result = (wxLocale *)new_wxLocale(arg1,arg2);
15924 wxPyEndAllowThreads(__tstate);
15925 if (PyErr_Occurred()) SWIG_fail;
15926 }
15927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15928 return resultobj;
15929 fail:
15930 return NULL;
15931 }
15932
15933
15934 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15935 PyObject *resultobj = 0;
15936 wxLocale *arg1 = (wxLocale *) 0 ;
15937 void *argp1 = 0 ;
15938 int res1 = 0 ;
15939 PyObject *swig_obj[1] ;
15940
15941 if (!args) SWIG_fail;
15942 swig_obj[0] = args;
15943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15944 if (!SWIG_IsOK(res1)) {
15945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15946 }
15947 arg1 = reinterpret_cast< wxLocale * >(argp1);
15948 {
15949 PyThreadState* __tstate = wxPyBeginAllowThreads();
15950 delete arg1;
15951
15952 wxPyEndAllowThreads(__tstate);
15953 if (PyErr_Occurred()) SWIG_fail;
15954 }
15955 resultobj = SWIG_Py_Void();
15956 return resultobj;
15957 fail:
15958 return NULL;
15959 }
15960
15961
15962 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15963 PyObject *resultobj = 0;
15964 wxLocale *arg1 = (wxLocale *) 0 ;
15965 wxString *arg2 = 0 ;
15966 wxString const &arg3_defvalue = wxPyEmptyString ;
15967 wxString *arg3 = (wxString *) &arg3_defvalue ;
15968 wxString const &arg4_defvalue = wxPyEmptyString ;
15969 wxString *arg4 = (wxString *) &arg4_defvalue ;
15970 bool arg5 = (bool) true ;
15971 bool arg6 = (bool) false ;
15972 bool result;
15973 void *argp1 = 0 ;
15974 int res1 = 0 ;
15975 bool temp2 = false ;
15976 bool temp3 = false ;
15977 bool temp4 = false ;
15978 bool val5 ;
15979 int ecode5 = 0 ;
15980 bool val6 ;
15981 int ecode6 = 0 ;
15982 PyObject * obj0 = 0 ;
15983 PyObject * obj1 = 0 ;
15984 PyObject * obj2 = 0 ;
15985 PyObject * obj3 = 0 ;
15986 PyObject * obj4 = 0 ;
15987 PyObject * obj5 = 0 ;
15988 char * kwnames[] = {
15989 (char *) "self",(char *) "name",(char *) "shortName",(char *) "locale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15990 };
15991
15992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15994 if (!SWIG_IsOK(res1)) {
15995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15996 }
15997 arg1 = reinterpret_cast< wxLocale * >(argp1);
15998 {
15999 arg2 = wxString_in_helper(obj1);
16000 if (arg2 == NULL) SWIG_fail;
16001 temp2 = true;
16002 }
16003 if (obj2) {
16004 {
16005 arg3 = wxString_in_helper(obj2);
16006 if (arg3 == NULL) SWIG_fail;
16007 temp3 = true;
16008 }
16009 }
16010 if (obj3) {
16011 {
16012 arg4 = wxString_in_helper(obj3);
16013 if (arg4 == NULL) SWIG_fail;
16014 temp4 = true;
16015 }
16016 }
16017 if (obj4) {
16018 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16019 if (!SWIG_IsOK(ecode5)) {
16020 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16021 }
16022 arg5 = static_cast< bool >(val5);
16023 }
16024 if (obj5) {
16025 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16026 if (!SWIG_IsOK(ecode6)) {
16027 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16028 }
16029 arg6 = static_cast< bool >(val6);
16030 }
16031 {
16032 PyThreadState* __tstate = wxPyBeginAllowThreads();
16033 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16034 wxPyEndAllowThreads(__tstate);
16035 if (PyErr_Occurred()) SWIG_fail;
16036 }
16037 {
16038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16039 }
16040 {
16041 if (temp2)
16042 delete arg2;
16043 }
16044 {
16045 if (temp3)
16046 delete arg3;
16047 }
16048 {
16049 if (temp4)
16050 delete arg4;
16051 }
16052 return resultobj;
16053 fail:
16054 {
16055 if (temp2)
16056 delete arg2;
16057 }
16058 {
16059 if (temp3)
16060 delete arg3;
16061 }
16062 {
16063 if (temp4)
16064 delete arg4;
16065 }
16066 return NULL;
16067 }
16068
16069
16070 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16071 PyObject *resultobj = 0;
16072 wxLocale *arg1 = (wxLocale *) 0 ;
16073 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16074 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16075 bool result;
16076 void *argp1 = 0 ;
16077 int res1 = 0 ;
16078 int val2 ;
16079 int ecode2 = 0 ;
16080 int val3 ;
16081 int ecode3 = 0 ;
16082 PyObject * obj0 = 0 ;
16083 PyObject * obj1 = 0 ;
16084 PyObject * obj2 = 0 ;
16085 char * kwnames[] = {
16086 (char *) "self",(char *) "language",(char *) "flags", NULL
16087 };
16088
16089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16091 if (!SWIG_IsOK(res1)) {
16092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16093 }
16094 arg1 = reinterpret_cast< wxLocale * >(argp1);
16095 if (obj1) {
16096 ecode2 = SWIG_AsVal_int(obj1, &val2);
16097 if (!SWIG_IsOK(ecode2)) {
16098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16099 }
16100 arg2 = static_cast< int >(val2);
16101 }
16102 if (obj2) {
16103 ecode3 = SWIG_AsVal_int(obj2, &val3);
16104 if (!SWIG_IsOK(ecode3)) {
16105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16106 }
16107 arg3 = static_cast< int >(val3);
16108 }
16109 {
16110 PyThreadState* __tstate = wxPyBeginAllowThreads();
16111 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16112 wxPyEndAllowThreads(__tstate);
16113 if (PyErr_Occurred()) SWIG_fail;
16114 }
16115 {
16116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16117 }
16118 return resultobj;
16119 fail:
16120 return NULL;
16121 }
16122
16123
16124 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16125 PyObject *resultobj = 0;
16126 int result;
16127
16128 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16129 {
16130 PyThreadState* __tstate = wxPyBeginAllowThreads();
16131 result = (int)wxLocale::GetSystemLanguage();
16132 wxPyEndAllowThreads(__tstate);
16133 if (PyErr_Occurred()) SWIG_fail;
16134 }
16135 resultobj = SWIG_From_int(static_cast< int >(result));
16136 return resultobj;
16137 fail:
16138 return NULL;
16139 }
16140
16141
16142 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16143 PyObject *resultobj = 0;
16144 wxFontEncoding result;
16145
16146 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16147 {
16148 PyThreadState* __tstate = wxPyBeginAllowThreads();
16149 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16150 wxPyEndAllowThreads(__tstate);
16151 if (PyErr_Occurred()) SWIG_fail;
16152 }
16153 resultobj = SWIG_From_int(static_cast< int >(result));
16154 return resultobj;
16155 fail:
16156 return NULL;
16157 }
16158
16159
16160 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16161 PyObject *resultobj = 0;
16162 wxString result;
16163
16164 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16165 {
16166 PyThreadState* __tstate = wxPyBeginAllowThreads();
16167 result = wxLocale::GetSystemEncodingName();
16168 wxPyEndAllowThreads(__tstate);
16169 if (PyErr_Occurred()) SWIG_fail;
16170 }
16171 {
16172 #if wxUSE_UNICODE
16173 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16174 #else
16175 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16176 #endif
16177 }
16178 return resultobj;
16179 fail:
16180 return NULL;
16181 }
16182
16183
16184 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16185 PyObject *resultobj = 0;
16186 wxLocale *arg1 = (wxLocale *) 0 ;
16187 bool result;
16188 void *argp1 = 0 ;
16189 int res1 = 0 ;
16190 PyObject *swig_obj[1] ;
16191
16192 if (!args) SWIG_fail;
16193 swig_obj[0] = args;
16194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16195 if (!SWIG_IsOK(res1)) {
16196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16197 }
16198 arg1 = reinterpret_cast< wxLocale * >(argp1);
16199 {
16200 PyThreadState* __tstate = wxPyBeginAllowThreads();
16201 result = (bool)((wxLocale const *)arg1)->IsOk();
16202 wxPyEndAllowThreads(__tstate);
16203 if (PyErr_Occurred()) SWIG_fail;
16204 }
16205 {
16206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16207 }
16208 return resultobj;
16209 fail:
16210 return NULL;
16211 }
16212
16213
16214 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16215 PyObject *resultobj = 0;
16216 wxLocale *arg1 = (wxLocale *) 0 ;
16217 wxString result;
16218 void *argp1 = 0 ;
16219 int res1 = 0 ;
16220 PyObject *swig_obj[1] ;
16221
16222 if (!args) SWIG_fail;
16223 swig_obj[0] = args;
16224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16225 if (!SWIG_IsOK(res1)) {
16226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16227 }
16228 arg1 = reinterpret_cast< wxLocale * >(argp1);
16229 {
16230 PyThreadState* __tstate = wxPyBeginAllowThreads();
16231 result = ((wxLocale const *)arg1)->GetLocale();
16232 wxPyEndAllowThreads(__tstate);
16233 if (PyErr_Occurred()) SWIG_fail;
16234 }
16235 {
16236 #if wxUSE_UNICODE
16237 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16238 #else
16239 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16240 #endif
16241 }
16242 return resultobj;
16243 fail:
16244 return NULL;
16245 }
16246
16247
16248 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16249 PyObject *resultobj = 0;
16250 wxLocale *arg1 = (wxLocale *) 0 ;
16251 int result;
16252 void *argp1 = 0 ;
16253 int res1 = 0 ;
16254 PyObject *swig_obj[1] ;
16255
16256 if (!args) SWIG_fail;
16257 swig_obj[0] = args;
16258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16259 if (!SWIG_IsOK(res1)) {
16260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16261 }
16262 arg1 = reinterpret_cast< wxLocale * >(argp1);
16263 {
16264 PyThreadState* __tstate = wxPyBeginAllowThreads();
16265 result = (int)((wxLocale const *)arg1)->GetLanguage();
16266 wxPyEndAllowThreads(__tstate);
16267 if (PyErr_Occurred()) SWIG_fail;
16268 }
16269 resultobj = SWIG_From_int(static_cast< int >(result));
16270 return resultobj;
16271 fail:
16272 return NULL;
16273 }
16274
16275
16276 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16277 PyObject *resultobj = 0;
16278 wxLocale *arg1 = (wxLocale *) 0 ;
16279 wxString result;
16280 void *argp1 = 0 ;
16281 int res1 = 0 ;
16282 PyObject *swig_obj[1] ;
16283
16284 if (!args) SWIG_fail;
16285 swig_obj[0] = args;
16286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16287 if (!SWIG_IsOK(res1)) {
16288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16289 }
16290 arg1 = reinterpret_cast< wxLocale * >(argp1);
16291 {
16292 PyThreadState* __tstate = wxPyBeginAllowThreads();
16293 result = ((wxLocale const *)arg1)->GetSysName();
16294 wxPyEndAllowThreads(__tstate);
16295 if (PyErr_Occurred()) SWIG_fail;
16296 }
16297 {
16298 #if wxUSE_UNICODE
16299 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16300 #else
16301 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16302 #endif
16303 }
16304 return resultobj;
16305 fail:
16306 return NULL;
16307 }
16308
16309
16310 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16311 PyObject *resultobj = 0;
16312 wxLocale *arg1 = (wxLocale *) 0 ;
16313 wxString result;
16314 void *argp1 = 0 ;
16315 int res1 = 0 ;
16316 PyObject *swig_obj[1] ;
16317
16318 if (!args) SWIG_fail;
16319 swig_obj[0] = args;
16320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16321 if (!SWIG_IsOK(res1)) {
16322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16323 }
16324 arg1 = reinterpret_cast< wxLocale * >(argp1);
16325 {
16326 PyThreadState* __tstate = wxPyBeginAllowThreads();
16327 result = ((wxLocale const *)arg1)->GetCanonicalName();
16328 wxPyEndAllowThreads(__tstate);
16329 if (PyErr_Occurred()) SWIG_fail;
16330 }
16331 {
16332 #if wxUSE_UNICODE
16333 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16334 #else
16335 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16336 #endif
16337 }
16338 return resultobj;
16339 fail:
16340 return NULL;
16341 }
16342
16343
16344 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16345 PyObject *resultobj = 0;
16346 wxString *arg1 = 0 ;
16347 bool temp1 = false ;
16348 PyObject * obj0 = 0 ;
16349 char * kwnames[] = {
16350 (char *) "prefix", NULL
16351 };
16352
16353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16354 {
16355 arg1 = wxString_in_helper(obj0);
16356 if (arg1 == NULL) SWIG_fail;
16357 temp1 = true;
16358 }
16359 {
16360 PyThreadState* __tstate = wxPyBeginAllowThreads();
16361 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16362 wxPyEndAllowThreads(__tstate);
16363 if (PyErr_Occurred()) SWIG_fail;
16364 }
16365 resultobj = SWIG_Py_Void();
16366 {
16367 if (temp1)
16368 delete arg1;
16369 }
16370 return resultobj;
16371 fail:
16372 {
16373 if (temp1)
16374 delete arg1;
16375 }
16376 return NULL;
16377 }
16378
16379
16380 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16381 PyObject *resultobj = 0;
16382 wxLocale *arg1 = (wxLocale *) 0 ;
16383 wxString *arg2 = 0 ;
16384 bool result;
16385 void *argp1 = 0 ;
16386 int res1 = 0 ;
16387 bool temp2 = false ;
16388 PyObject * obj0 = 0 ;
16389 PyObject * obj1 = 0 ;
16390 char * kwnames[] = {
16391 (char *) "self",(char *) "domain", NULL
16392 };
16393
16394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16396 if (!SWIG_IsOK(res1)) {
16397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16398 }
16399 arg1 = reinterpret_cast< wxLocale * >(argp1);
16400 {
16401 arg2 = wxString_in_helper(obj1);
16402 if (arg2 == NULL) SWIG_fail;
16403 temp2 = true;
16404 }
16405 {
16406 PyThreadState* __tstate = wxPyBeginAllowThreads();
16407 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16408 wxPyEndAllowThreads(__tstate);
16409 if (PyErr_Occurred()) SWIG_fail;
16410 }
16411 {
16412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16413 }
16414 {
16415 if (temp2)
16416 delete arg2;
16417 }
16418 return resultobj;
16419 fail:
16420 {
16421 if (temp2)
16422 delete arg2;
16423 }
16424 return NULL;
16425 }
16426
16427
16428 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16429 PyObject *resultobj = 0;
16430 int arg1 ;
16431 bool result;
16432 int val1 ;
16433 int ecode1 = 0 ;
16434 PyObject * obj0 = 0 ;
16435 char * kwnames[] = {
16436 (char *) "lang", NULL
16437 };
16438
16439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16440 ecode1 = SWIG_AsVal_int(obj0, &val1);
16441 if (!SWIG_IsOK(ecode1)) {
16442 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16443 }
16444 arg1 = static_cast< int >(val1);
16445 {
16446 PyThreadState* __tstate = wxPyBeginAllowThreads();
16447 result = (bool)wxLocale::IsAvailable(arg1);
16448 wxPyEndAllowThreads(__tstate);
16449 if (PyErr_Occurred()) SWIG_fail;
16450 }
16451 {
16452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16453 }
16454 return resultobj;
16455 fail:
16456 return NULL;
16457 }
16458
16459
16460 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16461 PyObject *resultobj = 0;
16462 wxLocale *arg1 = (wxLocale *) 0 ;
16463 wxString *arg2 = 0 ;
16464 bool result;
16465 void *argp1 = 0 ;
16466 int res1 = 0 ;
16467 bool temp2 = false ;
16468 PyObject * obj0 = 0 ;
16469 PyObject * obj1 = 0 ;
16470 char * kwnames[] = {
16471 (char *) "self",(char *) "domain", NULL
16472 };
16473
16474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16476 if (!SWIG_IsOK(res1)) {
16477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16478 }
16479 arg1 = reinterpret_cast< wxLocale * >(argp1);
16480 {
16481 arg2 = wxString_in_helper(obj1);
16482 if (arg2 == NULL) SWIG_fail;
16483 temp2 = true;
16484 }
16485 {
16486 PyThreadState* __tstate = wxPyBeginAllowThreads();
16487 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16488 wxPyEndAllowThreads(__tstate);
16489 if (PyErr_Occurred()) SWIG_fail;
16490 }
16491 {
16492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16493 }
16494 {
16495 if (temp2)
16496 delete arg2;
16497 }
16498 return resultobj;
16499 fail:
16500 {
16501 if (temp2)
16502 delete arg2;
16503 }
16504 return NULL;
16505 }
16506
16507
16508 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16509 PyObject *resultobj = 0;
16510 int arg1 ;
16511 wxLanguageInfo *result = 0 ;
16512 int val1 ;
16513 int ecode1 = 0 ;
16514 PyObject * obj0 = 0 ;
16515 char * kwnames[] = {
16516 (char *) "lang", NULL
16517 };
16518
16519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16520 ecode1 = SWIG_AsVal_int(obj0, &val1);
16521 if (!SWIG_IsOK(ecode1)) {
16522 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16523 }
16524 arg1 = static_cast< int >(val1);
16525 {
16526 PyThreadState* __tstate = wxPyBeginAllowThreads();
16527 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16528 wxPyEndAllowThreads(__tstate);
16529 if (PyErr_Occurred()) SWIG_fail;
16530 }
16531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16532 return resultobj;
16533 fail:
16534 return NULL;
16535 }
16536
16537
16538 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16539 PyObject *resultobj = 0;
16540 int arg1 ;
16541 wxString result;
16542 int val1 ;
16543 int ecode1 = 0 ;
16544 PyObject * obj0 = 0 ;
16545 char * kwnames[] = {
16546 (char *) "lang", NULL
16547 };
16548
16549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16550 ecode1 = SWIG_AsVal_int(obj0, &val1);
16551 if (!SWIG_IsOK(ecode1)) {
16552 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16553 }
16554 arg1 = static_cast< int >(val1);
16555 {
16556 PyThreadState* __tstate = wxPyBeginAllowThreads();
16557 result = wxLocale::GetLanguageName(arg1);
16558 wxPyEndAllowThreads(__tstate);
16559 if (PyErr_Occurred()) SWIG_fail;
16560 }
16561 {
16562 #if wxUSE_UNICODE
16563 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16564 #else
16565 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16566 #endif
16567 }
16568 return resultobj;
16569 fail:
16570 return NULL;
16571 }
16572
16573
16574 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16575 PyObject *resultobj = 0;
16576 wxString *arg1 = 0 ;
16577 wxLanguageInfo *result = 0 ;
16578 bool temp1 = false ;
16579 PyObject * obj0 = 0 ;
16580 char * kwnames[] = {
16581 (char *) "locale", NULL
16582 };
16583
16584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16585 {
16586 arg1 = wxString_in_helper(obj0);
16587 if (arg1 == NULL) SWIG_fail;
16588 temp1 = true;
16589 }
16590 {
16591 PyThreadState* __tstate = wxPyBeginAllowThreads();
16592 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16593 wxPyEndAllowThreads(__tstate);
16594 if (PyErr_Occurred()) SWIG_fail;
16595 }
16596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16597 {
16598 if (temp1)
16599 delete arg1;
16600 }
16601 return resultobj;
16602 fail:
16603 {
16604 if (temp1)
16605 delete arg1;
16606 }
16607 return NULL;
16608 }
16609
16610
16611 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16612 PyObject *resultobj = 0;
16613 wxLanguageInfo *arg1 = 0 ;
16614 void *argp1 = 0 ;
16615 int res1 = 0 ;
16616 PyObject * obj0 = 0 ;
16617 char * kwnames[] = {
16618 (char *) "info", NULL
16619 };
16620
16621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16622 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16623 if (!SWIG_IsOK(res1)) {
16624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16625 }
16626 if (!argp1) {
16627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16628 }
16629 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16630 {
16631 PyThreadState* __tstate = wxPyBeginAllowThreads();
16632 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16633 wxPyEndAllowThreads(__tstate);
16634 if (PyErr_Occurred()) SWIG_fail;
16635 }
16636 resultobj = SWIG_Py_Void();
16637 return resultobj;
16638 fail:
16639 return NULL;
16640 }
16641
16642
16643 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16644 PyObject *resultobj = 0;
16645 wxLocale *arg1 = (wxLocale *) 0 ;
16646 wxString *arg2 = 0 ;
16647 wxString const &arg3_defvalue = wxPyEmptyString ;
16648 wxString *arg3 = (wxString *) &arg3_defvalue ;
16649 wxString result;
16650 void *argp1 = 0 ;
16651 int res1 = 0 ;
16652 bool temp2 = false ;
16653 bool temp3 = false ;
16654 PyObject * obj0 = 0 ;
16655 PyObject * obj1 = 0 ;
16656 PyObject * obj2 = 0 ;
16657 char * kwnames[] = {
16658 (char *) "self",(char *) "origString",(char *) "domain", NULL
16659 };
16660
16661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16663 if (!SWIG_IsOK(res1)) {
16664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16665 }
16666 arg1 = reinterpret_cast< wxLocale * >(argp1);
16667 {
16668 arg2 = wxString_in_helper(obj1);
16669 if (arg2 == NULL) SWIG_fail;
16670 temp2 = true;
16671 }
16672 if (obj2) {
16673 {
16674 arg3 = wxString_in_helper(obj2);
16675 if (arg3 == NULL) SWIG_fail;
16676 temp3 = true;
16677 }
16678 }
16679 {
16680 PyThreadState* __tstate = wxPyBeginAllowThreads();
16681 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16682 wxPyEndAllowThreads(__tstate);
16683 if (PyErr_Occurred()) SWIG_fail;
16684 }
16685 {
16686 #if wxUSE_UNICODE
16687 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16688 #else
16689 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16690 #endif
16691 }
16692 {
16693 if (temp2)
16694 delete arg2;
16695 }
16696 {
16697 if (temp3)
16698 delete arg3;
16699 }
16700 return resultobj;
16701 fail:
16702 {
16703 if (temp2)
16704 delete arg2;
16705 }
16706 {
16707 if (temp3)
16708 delete arg3;
16709 }
16710 return NULL;
16711 }
16712
16713
16714 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16715 PyObject *resultobj = 0;
16716 wxLocale *arg1 = (wxLocale *) 0 ;
16717 wxString *result = 0 ;
16718 void *argp1 = 0 ;
16719 int res1 = 0 ;
16720 PyObject *swig_obj[1] ;
16721
16722 if (!args) SWIG_fail;
16723 swig_obj[0] = args;
16724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16725 if (!SWIG_IsOK(res1)) {
16726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16727 }
16728 arg1 = reinterpret_cast< wxLocale * >(argp1);
16729 {
16730 PyThreadState* __tstate = wxPyBeginAllowThreads();
16731 {
16732 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16733 result = (wxString *) &_result_ref;
16734 }
16735 wxPyEndAllowThreads(__tstate);
16736 if (PyErr_Occurred()) SWIG_fail;
16737 }
16738 {
16739 #if wxUSE_UNICODE
16740 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16741 #else
16742 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16743 #endif
16744 }
16745 return resultobj;
16746 fail:
16747 return NULL;
16748 }
16749
16750
16751 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16752 PyObject *obj;
16753 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16754 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16755 return SWIG_Py_Void();
16756 }
16757
16758 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16759 return SWIG_Python_InitShadowInstance(args);
16760 }
16761
16762 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16763 PyObject *resultobj = 0;
16764 int arg1 = (int) -1 ;
16765 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16766 wxPyLocale *result = 0 ;
16767 int val1 ;
16768 int ecode1 = 0 ;
16769 int val2 ;
16770 int ecode2 = 0 ;
16771 PyObject * obj0 = 0 ;
16772 PyObject * obj1 = 0 ;
16773 char * kwnames[] = {
16774 (char *) "language",(char *) "flags", NULL
16775 };
16776
16777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16778 if (obj0) {
16779 ecode1 = SWIG_AsVal_int(obj0, &val1);
16780 if (!SWIG_IsOK(ecode1)) {
16781 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16782 }
16783 arg1 = static_cast< int >(val1);
16784 }
16785 if (obj1) {
16786 ecode2 = SWIG_AsVal_int(obj1, &val2);
16787 if (!SWIG_IsOK(ecode2)) {
16788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16789 }
16790 arg2 = static_cast< int >(val2);
16791 }
16792 {
16793 PyThreadState* __tstate = wxPyBeginAllowThreads();
16794 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16795 wxPyEndAllowThreads(__tstate);
16796 if (PyErr_Occurred()) SWIG_fail;
16797 }
16798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16799 return resultobj;
16800 fail:
16801 return NULL;
16802 }
16803
16804
16805 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16806 PyObject *resultobj = 0;
16807 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16808 void *argp1 = 0 ;
16809 int res1 = 0 ;
16810 PyObject *swig_obj[1] ;
16811
16812 if (!args) SWIG_fail;
16813 swig_obj[0] = args;
16814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16815 if (!SWIG_IsOK(res1)) {
16816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16817 }
16818 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16819 {
16820 PyThreadState* __tstate = wxPyBeginAllowThreads();
16821 delete arg1;
16822
16823 wxPyEndAllowThreads(__tstate);
16824 if (PyErr_Occurred()) SWIG_fail;
16825 }
16826 resultobj = SWIG_Py_Void();
16827 return resultobj;
16828 fail:
16829 return NULL;
16830 }
16831
16832
16833 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16834 PyObject *resultobj = 0;
16835 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16836 PyObject *arg2 = (PyObject *) 0 ;
16837 PyObject *arg3 = (PyObject *) 0 ;
16838 void *argp1 = 0 ;
16839 int res1 = 0 ;
16840 PyObject * obj0 = 0 ;
16841 PyObject * obj1 = 0 ;
16842 PyObject * obj2 = 0 ;
16843 char * kwnames[] = {
16844 (char *) "self",(char *) "self",(char *) "_class", NULL
16845 };
16846
16847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16849 if (!SWIG_IsOK(res1)) {
16850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16851 }
16852 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16853 arg2 = obj1;
16854 arg3 = obj2;
16855 {
16856 PyThreadState* __tstate = wxPyBeginAllowThreads();
16857 (arg1)->_setCallbackInfo(arg2,arg3);
16858 wxPyEndAllowThreads(__tstate);
16859 if (PyErr_Occurred()) SWIG_fail;
16860 }
16861 resultobj = SWIG_Py_Void();
16862 return resultobj;
16863 fail:
16864 return NULL;
16865 }
16866
16867
16868 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16869 PyObject *resultobj = 0;
16870 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16871 wxString *arg2 = 0 ;
16872 wxString const &arg3_defvalue = wxPyEmptyString ;
16873 wxString *arg3 = (wxString *) &arg3_defvalue ;
16874 wxString *result = 0 ;
16875 void *argp1 = 0 ;
16876 int res1 = 0 ;
16877 bool temp2 = false ;
16878 bool temp3 = false ;
16879 PyObject * obj0 = 0 ;
16880 PyObject * obj1 = 0 ;
16881 PyObject * obj2 = 0 ;
16882 char * kwnames[] = {
16883 (char *) "self",(char *) "origString",(char *) "domain", NULL
16884 };
16885
16886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16888 if (!SWIG_IsOK(res1)) {
16889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16890 }
16891 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16892 {
16893 arg2 = wxString_in_helper(obj1);
16894 if (arg2 == NULL) SWIG_fail;
16895 temp2 = true;
16896 }
16897 if (obj2) {
16898 {
16899 arg3 = wxString_in_helper(obj2);
16900 if (arg3 == NULL) SWIG_fail;
16901 temp3 = true;
16902 }
16903 }
16904 {
16905 PyThreadState* __tstate = wxPyBeginAllowThreads();
16906 {
16907 wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetSingularString((wxString const &)*arg2,(wxString const &)*arg3);
16908 result = (wxString *) &_result_ref;
16909 }
16910 wxPyEndAllowThreads(__tstate);
16911 if (PyErr_Occurred()) SWIG_fail;
16912 }
16913 {
16914 #if wxUSE_UNICODE
16915 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16916 #else
16917 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16918 #endif
16919 }
16920 {
16921 if (temp2)
16922 delete arg2;
16923 }
16924 {
16925 if (temp3)
16926 delete arg3;
16927 }
16928 return resultobj;
16929 fail:
16930 {
16931 if (temp2)
16932 delete arg2;
16933 }
16934 {
16935 if (temp3)
16936 delete arg3;
16937 }
16938 return NULL;
16939 }
16940
16941
16942 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16943 PyObject *resultobj = 0;
16944 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16945 wxString *arg2 = 0 ;
16946 wxString *arg3 = 0 ;
16947 size_t arg4 ;
16948 wxString const &arg5_defvalue = wxPyEmptyString ;
16949 wxString *arg5 = (wxString *) &arg5_defvalue ;
16950 wxString *result = 0 ;
16951 void *argp1 = 0 ;
16952 int res1 = 0 ;
16953 bool temp2 = false ;
16954 bool temp3 = false ;
16955 size_t val4 ;
16956 int ecode4 = 0 ;
16957 bool temp5 = false ;
16958 PyObject * obj0 = 0 ;
16959 PyObject * obj1 = 0 ;
16960 PyObject * obj2 = 0 ;
16961 PyObject * obj3 = 0 ;
16962 PyObject * obj4 = 0 ;
16963 char * kwnames[] = {
16964 (char *) "self",(char *) "origString",(char *) "origString2",(char *) "n",(char *) "domain", NULL
16965 };
16966
16967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16969 if (!SWIG_IsOK(res1)) {
16970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16971 }
16972 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16973 {
16974 arg2 = wxString_in_helper(obj1);
16975 if (arg2 == NULL) SWIG_fail;
16976 temp2 = true;
16977 }
16978 {
16979 arg3 = wxString_in_helper(obj2);
16980 if (arg3 == NULL) SWIG_fail;
16981 temp3 = true;
16982 }
16983 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16984 if (!SWIG_IsOK(ecode4)) {
16985 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16986 }
16987 arg4 = static_cast< size_t >(val4);
16988 if (obj4) {
16989 {
16990 arg5 = wxString_in_helper(obj4);
16991 if (arg5 == NULL) SWIG_fail;
16992 temp5 = true;
16993 }
16994 }
16995 {
16996 PyThreadState* __tstate = wxPyBeginAllowThreads();
16997 {
16998 wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetPluralString((wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
16999 result = (wxString *) &_result_ref;
17000 }
17001 wxPyEndAllowThreads(__tstate);
17002 if (PyErr_Occurred()) SWIG_fail;
17003 }
17004 {
17005 #if wxUSE_UNICODE
17006 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17007 #else
17008 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17009 #endif
17010 }
17011 {
17012 if (temp2)
17013 delete arg2;
17014 }
17015 {
17016 if (temp3)
17017 delete arg3;
17018 }
17019 {
17020 if (temp5)
17021 delete arg5;
17022 }
17023 return resultobj;
17024 fail:
17025 {
17026 if (temp2)
17027 delete arg2;
17028 }
17029 {
17030 if (temp3)
17031 delete arg3;
17032 }
17033 {
17034 if (temp5)
17035 delete arg5;
17036 }
17037 return NULL;
17038 }
17039
17040
17041 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17042 PyObject *obj;
17043 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17044 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17045 return SWIG_Py_Void();
17046 }
17047
17048 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17049 return SWIG_Python_InitShadowInstance(args);
17050 }
17051
17052 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17053 PyObject *resultobj = 0;
17054 wxLocale *result = 0 ;
17055
17056 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17057 {
17058 PyThreadState* __tstate = wxPyBeginAllowThreads();
17059 result = (wxLocale *)wxGetLocale();
17060 wxPyEndAllowThreads(__tstate);
17061 if (PyErr_Occurred()) SWIG_fail;
17062 }
17063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17064 return resultobj;
17065 fail:
17066 return NULL;
17067 }
17068
17069
17070 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17071 PyObject *resultobj = 0;
17072 wxString *arg1 = 0 ;
17073 wxString result;
17074 bool temp1 = false ;
17075
17076 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17077 {
17078 arg1 = wxString_in_helper(swig_obj[0]);
17079 if (arg1 == NULL) SWIG_fail;
17080 temp1 = true;
17081 }
17082 {
17083 PyThreadState* __tstate = wxPyBeginAllowThreads();
17084 result = wxGetTranslation((wxString const &)*arg1);
17085 wxPyEndAllowThreads(__tstate);
17086 if (PyErr_Occurred()) SWIG_fail;
17087 }
17088 {
17089 #if wxUSE_UNICODE
17090 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17091 #else
17092 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17093 #endif
17094 }
17095 {
17096 if (temp1)
17097 delete arg1;
17098 }
17099 return resultobj;
17100 fail:
17101 {
17102 if (temp1)
17103 delete arg1;
17104 }
17105 return NULL;
17106 }
17107
17108
17109 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17110 PyObject *resultobj = 0;
17111 wxString *arg1 = 0 ;
17112 wxString *arg2 = 0 ;
17113 wxString result;
17114 bool temp1 = false ;
17115 bool temp2 = false ;
17116
17117 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17118 {
17119 arg1 = wxString_in_helper(swig_obj[0]);
17120 if (arg1 == NULL) SWIG_fail;
17121 temp1 = true;
17122 }
17123 {
17124 arg2 = wxString_in_helper(swig_obj[1]);
17125 if (arg2 == NULL) SWIG_fail;
17126 temp2 = true;
17127 }
17128 {
17129 PyThreadState* __tstate = wxPyBeginAllowThreads();
17130 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17131 wxPyEndAllowThreads(__tstate);
17132 if (PyErr_Occurred()) SWIG_fail;
17133 }
17134 {
17135 #if wxUSE_UNICODE
17136 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17137 #else
17138 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17139 #endif
17140 }
17141 {
17142 if (temp1)
17143 delete arg1;
17144 }
17145 {
17146 if (temp2)
17147 delete arg2;
17148 }
17149 return resultobj;
17150 fail:
17151 {
17152 if (temp1)
17153 delete arg1;
17154 }
17155 {
17156 if (temp2)
17157 delete arg2;
17158 }
17159 return NULL;
17160 }
17161
17162
17163 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17164 PyObject *resultobj = 0;
17165 wxString *arg1 = 0 ;
17166 wxString *arg2 = 0 ;
17167 size_t arg3 ;
17168 wxString result;
17169 bool temp1 = false ;
17170 bool temp2 = false ;
17171 size_t val3 ;
17172 int ecode3 = 0 ;
17173
17174 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17175 {
17176 arg1 = wxString_in_helper(swig_obj[0]);
17177 if (arg1 == NULL) SWIG_fail;
17178 temp1 = true;
17179 }
17180 {
17181 arg2 = wxString_in_helper(swig_obj[1]);
17182 if (arg2 == NULL) SWIG_fail;
17183 temp2 = true;
17184 }
17185 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17186 if (!SWIG_IsOK(ecode3)) {
17187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17188 }
17189 arg3 = static_cast< size_t >(val3);
17190 {
17191 PyThreadState* __tstate = wxPyBeginAllowThreads();
17192 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17193 wxPyEndAllowThreads(__tstate);
17194 if (PyErr_Occurred()) SWIG_fail;
17195 }
17196 {
17197 #if wxUSE_UNICODE
17198 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17199 #else
17200 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17201 #endif
17202 }
17203 {
17204 if (temp1)
17205 delete arg1;
17206 }
17207 {
17208 if (temp2)
17209 delete arg2;
17210 }
17211 return resultobj;
17212 fail:
17213 {
17214 if (temp1)
17215 delete arg1;
17216 }
17217 {
17218 if (temp2)
17219 delete arg2;
17220 }
17221 return NULL;
17222 }
17223
17224
17225 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17226 PyObject *resultobj = 0;
17227 wxString *arg1 = 0 ;
17228 wxString *arg2 = 0 ;
17229 size_t arg3 ;
17230 wxString *arg4 = 0 ;
17231 wxString result;
17232 bool temp1 = false ;
17233 bool temp2 = false ;
17234 size_t val3 ;
17235 int ecode3 = 0 ;
17236 bool temp4 = false ;
17237
17238 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17239 {
17240 arg1 = wxString_in_helper(swig_obj[0]);
17241 if (arg1 == NULL) SWIG_fail;
17242 temp1 = true;
17243 }
17244 {
17245 arg2 = wxString_in_helper(swig_obj[1]);
17246 if (arg2 == NULL) SWIG_fail;
17247 temp2 = true;
17248 }
17249 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17250 if (!SWIG_IsOK(ecode3)) {
17251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17252 }
17253 arg3 = static_cast< size_t >(val3);
17254 {
17255 arg4 = wxString_in_helper(swig_obj[3]);
17256 if (arg4 == NULL) SWIG_fail;
17257 temp4 = true;
17258 }
17259 {
17260 PyThreadState* __tstate = wxPyBeginAllowThreads();
17261 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17262 wxPyEndAllowThreads(__tstate);
17263 if (PyErr_Occurred()) SWIG_fail;
17264 }
17265 {
17266 #if wxUSE_UNICODE
17267 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17268 #else
17269 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17270 #endif
17271 }
17272 {
17273 if (temp1)
17274 delete arg1;
17275 }
17276 {
17277 if (temp2)
17278 delete arg2;
17279 }
17280 {
17281 if (temp4)
17282 delete arg4;
17283 }
17284 return resultobj;
17285 fail:
17286 {
17287 if (temp1)
17288 delete arg1;
17289 }
17290 {
17291 if (temp2)
17292 delete arg2;
17293 }
17294 {
17295 if (temp4)
17296 delete arg4;
17297 }
17298 return NULL;
17299 }
17300
17301
17302 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17303 int argc;
17304 PyObject *argv[5];
17305
17306 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17307 --argc;
17308 if (argc == 1) {
17309 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17310 }
17311 if (argc == 2) {
17312 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17313 }
17314 if (argc == 3) {
17315 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17316 }
17317 if (argc == 4) {
17318 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17319 }
17320
17321 fail:
17322 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17323 return NULL;
17324 }
17325
17326
17327 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17328 PyObject *resultobj = 0;
17329 wxEncodingConverter *result = 0 ;
17330
17331 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17332 {
17333 PyThreadState* __tstate = wxPyBeginAllowThreads();
17334 result = (wxEncodingConverter *)new wxEncodingConverter();
17335 wxPyEndAllowThreads(__tstate);
17336 if (PyErr_Occurred()) SWIG_fail;
17337 }
17338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17339 return resultobj;
17340 fail:
17341 return NULL;
17342 }
17343
17344
17345 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17346 PyObject *resultobj = 0;
17347 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17348 void *argp1 = 0 ;
17349 int res1 = 0 ;
17350 PyObject *swig_obj[1] ;
17351
17352 if (!args) SWIG_fail;
17353 swig_obj[0] = args;
17354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17355 if (!SWIG_IsOK(res1)) {
17356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17357 }
17358 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17359 {
17360 PyThreadState* __tstate = wxPyBeginAllowThreads();
17361 delete arg1;
17362
17363 wxPyEndAllowThreads(__tstate);
17364 if (PyErr_Occurred()) SWIG_fail;
17365 }
17366 resultobj = SWIG_Py_Void();
17367 return resultobj;
17368 fail:
17369 return NULL;
17370 }
17371
17372
17373 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17374 PyObject *resultobj = 0;
17375 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17376 wxFontEncoding arg2 ;
17377 wxFontEncoding arg3 ;
17378 int arg4 = (int) wxCONVERT_STRICT ;
17379 bool result;
17380 void *argp1 = 0 ;
17381 int res1 = 0 ;
17382 int val2 ;
17383 int ecode2 = 0 ;
17384 int val3 ;
17385 int ecode3 = 0 ;
17386 int val4 ;
17387 int ecode4 = 0 ;
17388 PyObject * obj0 = 0 ;
17389 PyObject * obj1 = 0 ;
17390 PyObject * obj2 = 0 ;
17391 PyObject * obj3 = 0 ;
17392 char * kwnames[] = {
17393 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17394 };
17395
17396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17398 if (!SWIG_IsOK(res1)) {
17399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17400 }
17401 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17402 ecode2 = SWIG_AsVal_int(obj1, &val2);
17403 if (!SWIG_IsOK(ecode2)) {
17404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17405 }
17406 arg2 = static_cast< wxFontEncoding >(val2);
17407 ecode3 = SWIG_AsVal_int(obj2, &val3);
17408 if (!SWIG_IsOK(ecode3)) {
17409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17410 }
17411 arg3 = static_cast< wxFontEncoding >(val3);
17412 if (obj3) {
17413 ecode4 = SWIG_AsVal_int(obj3, &val4);
17414 if (!SWIG_IsOK(ecode4)) {
17415 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17416 }
17417 arg4 = static_cast< int >(val4);
17418 }
17419 {
17420 PyThreadState* __tstate = wxPyBeginAllowThreads();
17421 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17422 wxPyEndAllowThreads(__tstate);
17423 if (PyErr_Occurred()) SWIG_fail;
17424 }
17425 {
17426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17427 }
17428 return resultobj;
17429 fail:
17430 return NULL;
17431 }
17432
17433
17434 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17435 PyObject *resultobj = 0;
17436 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17437 wxString *arg2 = 0 ;
17438 wxString result;
17439 void *argp1 = 0 ;
17440 int res1 = 0 ;
17441 bool temp2 = false ;
17442 PyObject * obj0 = 0 ;
17443 PyObject * obj1 = 0 ;
17444 char * kwnames[] = {
17445 (char *) "self",(char *) "input", NULL
17446 };
17447
17448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17450 if (!SWIG_IsOK(res1)) {
17451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17452 }
17453 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17454 {
17455 arg2 = wxString_in_helper(obj1);
17456 if (arg2 == NULL) SWIG_fail;
17457 temp2 = true;
17458 }
17459 {
17460 PyThreadState* __tstate = wxPyBeginAllowThreads();
17461 result = (arg1)->Convert((wxString const &)*arg2);
17462 wxPyEndAllowThreads(__tstate);
17463 if (PyErr_Occurred()) SWIG_fail;
17464 }
17465 {
17466 #if wxUSE_UNICODE
17467 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17468 #else
17469 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17470 #endif
17471 }
17472 {
17473 if (temp2)
17474 delete arg2;
17475 }
17476 return resultobj;
17477 fail:
17478 {
17479 if (temp2)
17480 delete arg2;
17481 }
17482 return NULL;
17483 }
17484
17485
17486 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17487 PyObject *resultobj = 0;
17488 wxFontEncoding arg1 ;
17489 int arg2 = (int) wxPLATFORM_CURRENT ;
17490 wxFontEncodingArray result;
17491 int val1 ;
17492 int ecode1 = 0 ;
17493 int val2 ;
17494 int ecode2 = 0 ;
17495 PyObject * obj0 = 0 ;
17496 PyObject * obj1 = 0 ;
17497 char * kwnames[] = {
17498 (char *) "enc",(char *) "platform", NULL
17499 };
17500
17501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17502 ecode1 = SWIG_AsVal_int(obj0, &val1);
17503 if (!SWIG_IsOK(ecode1)) {
17504 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17505 }
17506 arg1 = static_cast< wxFontEncoding >(val1);
17507 if (obj1) {
17508 ecode2 = SWIG_AsVal_int(obj1, &val2);
17509 if (!SWIG_IsOK(ecode2)) {
17510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17511 }
17512 arg2 = static_cast< int >(val2);
17513 }
17514 {
17515 PyThreadState* __tstate = wxPyBeginAllowThreads();
17516 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17517 wxPyEndAllowThreads(__tstate);
17518 if (PyErr_Occurred()) SWIG_fail;
17519 }
17520 {
17521 resultobj = PyList_New(0);
17522 for (size_t i=0; i < (&result)->GetCount(); i++) {
17523 PyObject* number = PyInt_FromLong((&result)->Item(i));
17524 PyList_Append(resultobj, number);
17525 Py_DECREF(number);
17526 }
17527 }
17528 return resultobj;
17529 fail:
17530 return NULL;
17531 }
17532
17533
17534 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17535 PyObject *resultobj = 0;
17536 wxFontEncoding arg1 ;
17537 wxFontEncodingArray result;
17538 int val1 ;
17539 int ecode1 = 0 ;
17540 PyObject * obj0 = 0 ;
17541 char * kwnames[] = {
17542 (char *) "enc", NULL
17543 };
17544
17545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17546 ecode1 = SWIG_AsVal_int(obj0, &val1);
17547 if (!SWIG_IsOK(ecode1)) {
17548 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17549 }
17550 arg1 = static_cast< wxFontEncoding >(val1);
17551 {
17552 PyThreadState* __tstate = wxPyBeginAllowThreads();
17553 result = wxEncodingConverter::GetAllEquivalents(arg1);
17554 wxPyEndAllowThreads(__tstate);
17555 if (PyErr_Occurred()) SWIG_fail;
17556 }
17557 {
17558 resultobj = PyList_New(0);
17559 for (size_t i=0; i < (&result)->GetCount(); i++) {
17560 PyObject* number = PyInt_FromLong((&result)->Item(i));
17561 PyList_Append(resultobj, number);
17562 Py_DECREF(number);
17563 }
17564 }
17565 return resultobj;
17566 fail:
17567 return NULL;
17568 }
17569
17570
17571 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17572 PyObject *resultobj = 0;
17573 wxFontEncoding arg1 ;
17574 wxFontEncoding arg2 ;
17575 bool result;
17576 int val1 ;
17577 int ecode1 = 0 ;
17578 int val2 ;
17579 int ecode2 = 0 ;
17580 PyObject * obj0 = 0 ;
17581 PyObject * obj1 = 0 ;
17582 char * kwnames[] = {
17583 (char *) "encIn",(char *) "encOut", NULL
17584 };
17585
17586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17587 ecode1 = SWIG_AsVal_int(obj0, &val1);
17588 if (!SWIG_IsOK(ecode1)) {
17589 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17590 }
17591 arg1 = static_cast< wxFontEncoding >(val1);
17592 ecode2 = SWIG_AsVal_int(obj1, &val2);
17593 if (!SWIG_IsOK(ecode2)) {
17594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17595 }
17596 arg2 = static_cast< wxFontEncoding >(val2);
17597 {
17598 PyThreadState* __tstate = wxPyBeginAllowThreads();
17599 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17600 wxPyEndAllowThreads(__tstate);
17601 if (PyErr_Occurred()) SWIG_fail;
17602 }
17603 {
17604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17605 }
17606 return resultobj;
17607 fail:
17608 return NULL;
17609 }
17610
17611
17612 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17613 PyObject *obj;
17614 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17615 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17616 return SWIG_Py_Void();
17617 }
17618
17619 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17620 return SWIG_Python_InitShadowInstance(args);
17621 }
17622
17623 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17624 PyObject *resultobj = 0;
17625 wxDC *arg1 = (wxDC *) 0 ;
17626 void *argp1 = 0 ;
17627 int res1 = 0 ;
17628 PyObject *swig_obj[1] ;
17629
17630 if (!args) SWIG_fail;
17631 swig_obj[0] = args;
17632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17633 if (!SWIG_IsOK(res1)) {
17634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17635 }
17636 arg1 = reinterpret_cast< wxDC * >(argp1);
17637 {
17638 PyThreadState* __tstate = wxPyBeginAllowThreads();
17639 delete arg1;
17640
17641 wxPyEndAllowThreads(__tstate);
17642 if (PyErr_Occurred()) SWIG_fail;
17643 }
17644 resultobj = SWIG_Py_Void();
17645 return resultobj;
17646 fail:
17647 return NULL;
17648 }
17649
17650
17651 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17652 PyObject *resultobj = 0;
17653 wxDC *arg1 = (wxDC *) 0 ;
17654 int arg2 ;
17655 int arg3 ;
17656 wxColour *arg4 = 0 ;
17657 int arg5 = (int) wxFLOOD_SURFACE ;
17658 bool result;
17659 void *argp1 = 0 ;
17660 int res1 = 0 ;
17661 int val2 ;
17662 int ecode2 = 0 ;
17663 int val3 ;
17664 int ecode3 = 0 ;
17665 wxColour temp4 ;
17666 int val5 ;
17667 int ecode5 = 0 ;
17668 PyObject * obj0 = 0 ;
17669 PyObject * obj1 = 0 ;
17670 PyObject * obj2 = 0 ;
17671 PyObject * obj3 = 0 ;
17672 PyObject * obj4 = 0 ;
17673 char * kwnames[] = {
17674 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17675 };
17676
17677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17679 if (!SWIG_IsOK(res1)) {
17680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17681 }
17682 arg1 = reinterpret_cast< wxDC * >(argp1);
17683 ecode2 = SWIG_AsVal_int(obj1, &val2);
17684 if (!SWIG_IsOK(ecode2)) {
17685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17686 }
17687 arg2 = static_cast< int >(val2);
17688 ecode3 = SWIG_AsVal_int(obj2, &val3);
17689 if (!SWIG_IsOK(ecode3)) {
17690 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17691 }
17692 arg3 = static_cast< int >(val3);
17693 {
17694 arg4 = &temp4;
17695 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17696 }
17697 if (obj4) {
17698 ecode5 = SWIG_AsVal_int(obj4, &val5);
17699 if (!SWIG_IsOK(ecode5)) {
17700 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17701 }
17702 arg5 = static_cast< int >(val5);
17703 }
17704 {
17705 PyThreadState* __tstate = wxPyBeginAllowThreads();
17706 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17707 wxPyEndAllowThreads(__tstate);
17708 if (PyErr_Occurred()) SWIG_fail;
17709 }
17710 {
17711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17712 }
17713 return resultobj;
17714 fail:
17715 return NULL;
17716 }
17717
17718
17719 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17720 PyObject *resultobj = 0;
17721 wxDC *arg1 = (wxDC *) 0 ;
17722 wxPoint *arg2 = 0 ;
17723 wxColour *arg3 = 0 ;
17724 int arg4 = (int) wxFLOOD_SURFACE ;
17725 bool result;
17726 void *argp1 = 0 ;
17727 int res1 = 0 ;
17728 wxPoint temp2 ;
17729 wxColour temp3 ;
17730 int val4 ;
17731 int ecode4 = 0 ;
17732 PyObject * obj0 = 0 ;
17733 PyObject * obj1 = 0 ;
17734 PyObject * obj2 = 0 ;
17735 PyObject * obj3 = 0 ;
17736 char * kwnames[] = {
17737 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17738 };
17739
17740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17742 if (!SWIG_IsOK(res1)) {
17743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17744 }
17745 arg1 = reinterpret_cast< wxDC * >(argp1);
17746 {
17747 arg2 = &temp2;
17748 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17749 }
17750 {
17751 arg3 = &temp3;
17752 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17753 }
17754 if (obj3) {
17755 ecode4 = SWIG_AsVal_int(obj3, &val4);
17756 if (!SWIG_IsOK(ecode4)) {
17757 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17758 }
17759 arg4 = static_cast< int >(val4);
17760 }
17761 {
17762 PyThreadState* __tstate = wxPyBeginAllowThreads();
17763 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17764 wxPyEndAllowThreads(__tstate);
17765 if (PyErr_Occurred()) SWIG_fail;
17766 }
17767 {
17768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17769 }
17770 return resultobj;
17771 fail:
17772 return NULL;
17773 }
17774
17775
17776 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17777 PyObject *resultobj = 0;
17778 wxDC *arg1 = (wxDC *) 0 ;
17779 wxRect *arg2 = 0 ;
17780 wxColour *arg3 = 0 ;
17781 wxColour *arg4 = 0 ;
17782 wxPoint *arg5 = 0 ;
17783 void *argp1 = 0 ;
17784 int res1 = 0 ;
17785 wxRect temp2 ;
17786 wxColour temp3 ;
17787 wxColour temp4 ;
17788 wxPoint temp5 ;
17789 PyObject * obj0 = 0 ;
17790 PyObject * obj1 = 0 ;
17791 PyObject * obj2 = 0 ;
17792 PyObject * obj3 = 0 ;
17793 PyObject * obj4 = 0 ;
17794 char * kwnames[] = {
17795 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17796 };
17797
17798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17800 if (!SWIG_IsOK(res1)) {
17801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17802 }
17803 arg1 = reinterpret_cast< wxDC * >(argp1);
17804 {
17805 arg2 = &temp2;
17806 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17807 }
17808 {
17809 arg3 = &temp3;
17810 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17811 }
17812 {
17813 arg4 = &temp4;
17814 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17815 }
17816 {
17817 arg5 = &temp5;
17818 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17819 }
17820 {
17821 PyThreadState* __tstate = wxPyBeginAllowThreads();
17822 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17823 wxPyEndAllowThreads(__tstate);
17824 if (PyErr_Occurred()) SWIG_fail;
17825 }
17826 resultobj = SWIG_Py_Void();
17827 return resultobj;
17828 fail:
17829 return NULL;
17830 }
17831
17832
17833 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17834 PyObject *resultobj = 0;
17835 wxDC *arg1 = (wxDC *) 0 ;
17836 wxRect *arg2 = 0 ;
17837 wxColour *arg3 = 0 ;
17838 wxColour *arg4 = 0 ;
17839 wxDirection arg5 = (wxDirection) wxEAST ;
17840 void *argp1 = 0 ;
17841 int res1 = 0 ;
17842 wxRect temp2 ;
17843 wxColour temp3 ;
17844 wxColour temp4 ;
17845 int val5 ;
17846 int ecode5 = 0 ;
17847 PyObject * obj0 = 0 ;
17848 PyObject * obj1 = 0 ;
17849 PyObject * obj2 = 0 ;
17850 PyObject * obj3 = 0 ;
17851 PyObject * obj4 = 0 ;
17852 char * kwnames[] = {
17853 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17854 };
17855
17856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17858 if (!SWIG_IsOK(res1)) {
17859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17860 }
17861 arg1 = reinterpret_cast< wxDC * >(argp1);
17862 {
17863 arg2 = &temp2;
17864 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17865 }
17866 {
17867 arg3 = &temp3;
17868 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17869 }
17870 {
17871 arg4 = &temp4;
17872 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17873 }
17874 if (obj4) {
17875 ecode5 = SWIG_AsVal_int(obj4, &val5);
17876 if (!SWIG_IsOK(ecode5)) {
17877 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17878 }
17879 arg5 = static_cast< wxDirection >(val5);
17880 }
17881 {
17882 PyThreadState* __tstate = wxPyBeginAllowThreads();
17883 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17884 wxPyEndAllowThreads(__tstate);
17885 if (PyErr_Occurred()) SWIG_fail;
17886 }
17887 resultobj = SWIG_Py_Void();
17888 return resultobj;
17889 fail:
17890 return NULL;
17891 }
17892
17893
17894 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17895 PyObject *resultobj = 0;
17896 wxDC *arg1 = (wxDC *) 0 ;
17897 int arg2 ;
17898 int arg3 ;
17899 wxColour result;
17900 void *argp1 = 0 ;
17901 int res1 = 0 ;
17902 int val2 ;
17903 int ecode2 = 0 ;
17904 int val3 ;
17905 int ecode3 = 0 ;
17906 PyObject * obj0 = 0 ;
17907 PyObject * obj1 = 0 ;
17908 PyObject * obj2 = 0 ;
17909 char * kwnames[] = {
17910 (char *) "self",(char *) "x",(char *) "y", NULL
17911 };
17912
17913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17915 if (!SWIG_IsOK(res1)) {
17916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17917 }
17918 arg1 = reinterpret_cast< wxDC * >(argp1);
17919 ecode2 = SWIG_AsVal_int(obj1, &val2);
17920 if (!SWIG_IsOK(ecode2)) {
17921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17922 }
17923 arg2 = static_cast< int >(val2);
17924 ecode3 = SWIG_AsVal_int(obj2, &val3);
17925 if (!SWIG_IsOK(ecode3)) {
17926 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17927 }
17928 arg3 = static_cast< int >(val3);
17929 {
17930 PyThreadState* __tstate = wxPyBeginAllowThreads();
17931 result = wxDC_GetPixel(arg1,arg2,arg3);
17932 wxPyEndAllowThreads(__tstate);
17933 if (PyErr_Occurred()) SWIG_fail;
17934 }
17935 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17936 return resultobj;
17937 fail:
17938 return NULL;
17939 }
17940
17941
17942 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17943 PyObject *resultobj = 0;
17944 wxDC *arg1 = (wxDC *) 0 ;
17945 wxPoint *arg2 = 0 ;
17946 wxColour result;
17947 void *argp1 = 0 ;
17948 int res1 = 0 ;
17949 wxPoint temp2 ;
17950 PyObject * obj0 = 0 ;
17951 PyObject * obj1 = 0 ;
17952 char * kwnames[] = {
17953 (char *) "self",(char *) "pt", NULL
17954 };
17955
17956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17958 if (!SWIG_IsOK(res1)) {
17959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17960 }
17961 arg1 = reinterpret_cast< wxDC * >(argp1);
17962 {
17963 arg2 = &temp2;
17964 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17965 }
17966 {
17967 PyThreadState* __tstate = wxPyBeginAllowThreads();
17968 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17969 wxPyEndAllowThreads(__tstate);
17970 if (PyErr_Occurred()) SWIG_fail;
17971 }
17972 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17973 return resultobj;
17974 fail:
17975 return NULL;
17976 }
17977
17978
17979 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17980 PyObject *resultobj = 0;
17981 wxDC *arg1 = (wxDC *) 0 ;
17982 int arg2 ;
17983 int arg3 ;
17984 int arg4 ;
17985 int arg5 ;
17986 void *argp1 = 0 ;
17987 int res1 = 0 ;
17988 int val2 ;
17989 int ecode2 = 0 ;
17990 int val3 ;
17991 int ecode3 = 0 ;
17992 int val4 ;
17993 int ecode4 = 0 ;
17994 int val5 ;
17995 int ecode5 = 0 ;
17996 PyObject * obj0 = 0 ;
17997 PyObject * obj1 = 0 ;
17998 PyObject * obj2 = 0 ;
17999 PyObject * obj3 = 0 ;
18000 PyObject * obj4 = 0 ;
18001 char * kwnames[] = {
18002 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18003 };
18004
18005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18007 if (!SWIG_IsOK(res1)) {
18008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18009 }
18010 arg1 = reinterpret_cast< wxDC * >(argp1);
18011 ecode2 = SWIG_AsVal_int(obj1, &val2);
18012 if (!SWIG_IsOK(ecode2)) {
18013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18014 }
18015 arg2 = static_cast< int >(val2);
18016 ecode3 = SWIG_AsVal_int(obj2, &val3);
18017 if (!SWIG_IsOK(ecode3)) {
18018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18019 }
18020 arg3 = static_cast< int >(val3);
18021 ecode4 = SWIG_AsVal_int(obj3, &val4);
18022 if (!SWIG_IsOK(ecode4)) {
18023 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18024 }
18025 arg4 = static_cast< int >(val4);
18026 ecode5 = SWIG_AsVal_int(obj4, &val5);
18027 if (!SWIG_IsOK(ecode5)) {
18028 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18029 }
18030 arg5 = static_cast< int >(val5);
18031 {
18032 PyThreadState* __tstate = wxPyBeginAllowThreads();
18033 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18034 wxPyEndAllowThreads(__tstate);
18035 if (PyErr_Occurred()) SWIG_fail;
18036 }
18037 resultobj = SWIG_Py_Void();
18038 return resultobj;
18039 fail:
18040 return NULL;
18041 }
18042
18043
18044 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18045 PyObject *resultobj = 0;
18046 wxDC *arg1 = (wxDC *) 0 ;
18047 wxPoint *arg2 = 0 ;
18048 wxPoint *arg3 = 0 ;
18049 void *argp1 = 0 ;
18050 int res1 = 0 ;
18051 wxPoint temp2 ;
18052 wxPoint temp3 ;
18053 PyObject * obj0 = 0 ;
18054 PyObject * obj1 = 0 ;
18055 PyObject * obj2 = 0 ;
18056 char * kwnames[] = {
18057 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18058 };
18059
18060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18062 if (!SWIG_IsOK(res1)) {
18063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18064 }
18065 arg1 = reinterpret_cast< wxDC * >(argp1);
18066 {
18067 arg2 = &temp2;
18068 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18069 }
18070 {
18071 arg3 = &temp3;
18072 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18073 }
18074 {
18075 PyThreadState* __tstate = wxPyBeginAllowThreads();
18076 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18077 wxPyEndAllowThreads(__tstate);
18078 if (PyErr_Occurred()) SWIG_fail;
18079 }
18080 resultobj = SWIG_Py_Void();
18081 return resultobj;
18082 fail:
18083 return NULL;
18084 }
18085
18086
18087 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18088 PyObject *resultobj = 0;
18089 wxDC *arg1 = (wxDC *) 0 ;
18090 int arg2 ;
18091 int arg3 ;
18092 void *argp1 = 0 ;
18093 int res1 = 0 ;
18094 int val2 ;
18095 int ecode2 = 0 ;
18096 int val3 ;
18097 int ecode3 = 0 ;
18098 PyObject * obj0 = 0 ;
18099 PyObject * obj1 = 0 ;
18100 PyObject * obj2 = 0 ;
18101 char * kwnames[] = {
18102 (char *) "self",(char *) "x",(char *) "y", NULL
18103 };
18104
18105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18107 if (!SWIG_IsOK(res1)) {
18108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18109 }
18110 arg1 = reinterpret_cast< wxDC * >(argp1);
18111 ecode2 = SWIG_AsVal_int(obj1, &val2);
18112 if (!SWIG_IsOK(ecode2)) {
18113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18114 }
18115 arg2 = static_cast< int >(val2);
18116 ecode3 = SWIG_AsVal_int(obj2, &val3);
18117 if (!SWIG_IsOK(ecode3)) {
18118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18119 }
18120 arg3 = static_cast< int >(val3);
18121 {
18122 PyThreadState* __tstate = wxPyBeginAllowThreads();
18123 (arg1)->CrossHair(arg2,arg3);
18124 wxPyEndAllowThreads(__tstate);
18125 if (PyErr_Occurred()) SWIG_fail;
18126 }
18127 resultobj = SWIG_Py_Void();
18128 return resultobj;
18129 fail:
18130 return NULL;
18131 }
18132
18133
18134 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18135 PyObject *resultobj = 0;
18136 wxDC *arg1 = (wxDC *) 0 ;
18137 wxPoint *arg2 = 0 ;
18138 void *argp1 = 0 ;
18139 int res1 = 0 ;
18140 wxPoint temp2 ;
18141 PyObject * obj0 = 0 ;
18142 PyObject * obj1 = 0 ;
18143 char * kwnames[] = {
18144 (char *) "self",(char *) "pt", NULL
18145 };
18146
18147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18149 if (!SWIG_IsOK(res1)) {
18150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18151 }
18152 arg1 = reinterpret_cast< wxDC * >(argp1);
18153 {
18154 arg2 = &temp2;
18155 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18156 }
18157 {
18158 PyThreadState* __tstate = wxPyBeginAllowThreads();
18159 (arg1)->CrossHair((wxPoint const &)*arg2);
18160 wxPyEndAllowThreads(__tstate);
18161 if (PyErr_Occurred()) SWIG_fail;
18162 }
18163 resultobj = SWIG_Py_Void();
18164 return resultobj;
18165 fail:
18166 return NULL;
18167 }
18168
18169
18170 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18171 PyObject *resultobj = 0;
18172 wxDC *arg1 = (wxDC *) 0 ;
18173 int arg2 ;
18174 int arg3 ;
18175 int arg4 ;
18176 int arg5 ;
18177 int arg6 ;
18178 int arg7 ;
18179 void *argp1 = 0 ;
18180 int res1 = 0 ;
18181 int val2 ;
18182 int ecode2 = 0 ;
18183 int val3 ;
18184 int ecode3 = 0 ;
18185 int val4 ;
18186 int ecode4 = 0 ;
18187 int val5 ;
18188 int ecode5 = 0 ;
18189 int val6 ;
18190 int ecode6 = 0 ;
18191 int val7 ;
18192 int ecode7 = 0 ;
18193 PyObject * obj0 = 0 ;
18194 PyObject * obj1 = 0 ;
18195 PyObject * obj2 = 0 ;
18196 PyObject * obj3 = 0 ;
18197 PyObject * obj4 = 0 ;
18198 PyObject * obj5 = 0 ;
18199 PyObject * obj6 = 0 ;
18200 char * kwnames[] = {
18201 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18202 };
18203
18204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18206 if (!SWIG_IsOK(res1)) {
18207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18208 }
18209 arg1 = reinterpret_cast< wxDC * >(argp1);
18210 ecode2 = SWIG_AsVal_int(obj1, &val2);
18211 if (!SWIG_IsOK(ecode2)) {
18212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18213 }
18214 arg2 = static_cast< int >(val2);
18215 ecode3 = SWIG_AsVal_int(obj2, &val3);
18216 if (!SWIG_IsOK(ecode3)) {
18217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18218 }
18219 arg3 = static_cast< int >(val3);
18220 ecode4 = SWIG_AsVal_int(obj3, &val4);
18221 if (!SWIG_IsOK(ecode4)) {
18222 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18223 }
18224 arg4 = static_cast< int >(val4);
18225 ecode5 = SWIG_AsVal_int(obj4, &val5);
18226 if (!SWIG_IsOK(ecode5)) {
18227 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18228 }
18229 arg5 = static_cast< int >(val5);
18230 ecode6 = SWIG_AsVal_int(obj5, &val6);
18231 if (!SWIG_IsOK(ecode6)) {
18232 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18233 }
18234 arg6 = static_cast< int >(val6);
18235 ecode7 = SWIG_AsVal_int(obj6, &val7);
18236 if (!SWIG_IsOK(ecode7)) {
18237 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18238 }
18239 arg7 = static_cast< int >(val7);
18240 {
18241 PyThreadState* __tstate = wxPyBeginAllowThreads();
18242 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18243 wxPyEndAllowThreads(__tstate);
18244 if (PyErr_Occurred()) SWIG_fail;
18245 }
18246 resultobj = SWIG_Py_Void();
18247 return resultobj;
18248 fail:
18249 return NULL;
18250 }
18251
18252
18253 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18254 PyObject *resultobj = 0;
18255 wxDC *arg1 = (wxDC *) 0 ;
18256 wxPoint *arg2 = 0 ;
18257 wxPoint *arg3 = 0 ;
18258 wxPoint *arg4 = 0 ;
18259 void *argp1 = 0 ;
18260 int res1 = 0 ;
18261 wxPoint temp2 ;
18262 wxPoint temp3 ;
18263 wxPoint temp4 ;
18264 PyObject * obj0 = 0 ;
18265 PyObject * obj1 = 0 ;
18266 PyObject * obj2 = 0 ;
18267 PyObject * obj3 = 0 ;
18268 char * kwnames[] = {
18269 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18270 };
18271
18272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18274 if (!SWIG_IsOK(res1)) {
18275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18276 }
18277 arg1 = reinterpret_cast< wxDC * >(argp1);
18278 {
18279 arg2 = &temp2;
18280 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18281 }
18282 {
18283 arg3 = &temp3;
18284 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18285 }
18286 {
18287 arg4 = &temp4;
18288 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18289 }
18290 {
18291 PyThreadState* __tstate = wxPyBeginAllowThreads();
18292 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18293 wxPyEndAllowThreads(__tstate);
18294 if (PyErr_Occurred()) SWIG_fail;
18295 }
18296 resultobj = SWIG_Py_Void();
18297 return resultobj;
18298 fail:
18299 return NULL;
18300 }
18301
18302
18303 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18304 PyObject *resultobj = 0;
18305 wxDC *arg1 = (wxDC *) 0 ;
18306 int arg2 ;
18307 int arg3 ;
18308 int arg4 ;
18309 int arg5 ;
18310 void *argp1 = 0 ;
18311 int res1 = 0 ;
18312 int val2 ;
18313 int ecode2 = 0 ;
18314 int val3 ;
18315 int ecode3 = 0 ;
18316 int val4 ;
18317 int ecode4 = 0 ;
18318 int val5 ;
18319 int ecode5 = 0 ;
18320 PyObject * obj0 = 0 ;
18321 PyObject * obj1 = 0 ;
18322 PyObject * obj2 = 0 ;
18323 PyObject * obj3 = 0 ;
18324 PyObject * obj4 = 0 ;
18325 char * kwnames[] = {
18326 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18327 };
18328
18329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18331 if (!SWIG_IsOK(res1)) {
18332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18333 }
18334 arg1 = reinterpret_cast< wxDC * >(argp1);
18335 ecode2 = SWIG_AsVal_int(obj1, &val2);
18336 if (!SWIG_IsOK(ecode2)) {
18337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18338 }
18339 arg2 = static_cast< int >(val2);
18340 ecode3 = SWIG_AsVal_int(obj2, &val3);
18341 if (!SWIG_IsOK(ecode3)) {
18342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18343 }
18344 arg3 = static_cast< int >(val3);
18345 ecode4 = SWIG_AsVal_int(obj3, &val4);
18346 if (!SWIG_IsOK(ecode4)) {
18347 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18348 }
18349 arg4 = static_cast< int >(val4);
18350 ecode5 = SWIG_AsVal_int(obj4, &val5);
18351 if (!SWIG_IsOK(ecode5)) {
18352 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18353 }
18354 arg5 = static_cast< int >(val5);
18355 {
18356 PyThreadState* __tstate = wxPyBeginAllowThreads();
18357 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18358 wxPyEndAllowThreads(__tstate);
18359 if (PyErr_Occurred()) SWIG_fail;
18360 }
18361 resultobj = SWIG_Py_Void();
18362 return resultobj;
18363 fail:
18364 return NULL;
18365 }
18366
18367
18368 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18369 PyObject *resultobj = 0;
18370 wxDC *arg1 = (wxDC *) 0 ;
18371 wxRect *arg2 = 0 ;
18372 void *argp1 = 0 ;
18373 int res1 = 0 ;
18374 wxRect temp2 ;
18375 PyObject * obj0 = 0 ;
18376 PyObject * obj1 = 0 ;
18377 char * kwnames[] = {
18378 (char *) "self",(char *) "rect", NULL
18379 };
18380
18381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18383 if (!SWIG_IsOK(res1)) {
18384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18385 }
18386 arg1 = reinterpret_cast< wxDC * >(argp1);
18387 {
18388 arg2 = &temp2;
18389 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18390 }
18391 {
18392 PyThreadState* __tstate = wxPyBeginAllowThreads();
18393 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18394 wxPyEndAllowThreads(__tstate);
18395 if (PyErr_Occurred()) SWIG_fail;
18396 }
18397 resultobj = SWIG_Py_Void();
18398 return resultobj;
18399 fail:
18400 return NULL;
18401 }
18402
18403
18404 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18405 PyObject *resultobj = 0;
18406 wxDC *arg1 = (wxDC *) 0 ;
18407 int arg2 ;
18408 int arg3 ;
18409 int arg4 ;
18410 int arg5 ;
18411 double arg6 ;
18412 double arg7 ;
18413 void *argp1 = 0 ;
18414 int res1 = 0 ;
18415 int val2 ;
18416 int ecode2 = 0 ;
18417 int val3 ;
18418 int ecode3 = 0 ;
18419 int val4 ;
18420 int ecode4 = 0 ;
18421 int val5 ;
18422 int ecode5 = 0 ;
18423 double val6 ;
18424 int ecode6 = 0 ;
18425 double val7 ;
18426 int ecode7 = 0 ;
18427 PyObject * obj0 = 0 ;
18428 PyObject * obj1 = 0 ;
18429 PyObject * obj2 = 0 ;
18430 PyObject * obj3 = 0 ;
18431 PyObject * obj4 = 0 ;
18432 PyObject * obj5 = 0 ;
18433 PyObject * obj6 = 0 ;
18434 char * kwnames[] = {
18435 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18436 };
18437
18438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18440 if (!SWIG_IsOK(res1)) {
18441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18442 }
18443 arg1 = reinterpret_cast< wxDC * >(argp1);
18444 ecode2 = SWIG_AsVal_int(obj1, &val2);
18445 if (!SWIG_IsOK(ecode2)) {
18446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18447 }
18448 arg2 = static_cast< int >(val2);
18449 ecode3 = SWIG_AsVal_int(obj2, &val3);
18450 if (!SWIG_IsOK(ecode3)) {
18451 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18452 }
18453 arg3 = static_cast< int >(val3);
18454 ecode4 = SWIG_AsVal_int(obj3, &val4);
18455 if (!SWIG_IsOK(ecode4)) {
18456 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18457 }
18458 arg4 = static_cast< int >(val4);
18459 ecode5 = SWIG_AsVal_int(obj4, &val5);
18460 if (!SWIG_IsOK(ecode5)) {
18461 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18462 }
18463 arg5 = static_cast< int >(val5);
18464 ecode6 = SWIG_AsVal_double(obj5, &val6);
18465 if (!SWIG_IsOK(ecode6)) {
18466 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18467 }
18468 arg6 = static_cast< double >(val6);
18469 ecode7 = SWIG_AsVal_double(obj6, &val7);
18470 if (!SWIG_IsOK(ecode7)) {
18471 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18472 }
18473 arg7 = static_cast< double >(val7);
18474 {
18475 PyThreadState* __tstate = wxPyBeginAllowThreads();
18476 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18477 wxPyEndAllowThreads(__tstate);
18478 if (PyErr_Occurred()) SWIG_fail;
18479 }
18480 resultobj = SWIG_Py_Void();
18481 return resultobj;
18482 fail:
18483 return NULL;
18484 }
18485
18486
18487 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18488 PyObject *resultobj = 0;
18489 wxDC *arg1 = (wxDC *) 0 ;
18490 wxPoint *arg2 = 0 ;
18491 wxSize *arg3 = 0 ;
18492 double arg4 ;
18493 double arg5 ;
18494 void *argp1 = 0 ;
18495 int res1 = 0 ;
18496 wxPoint temp2 ;
18497 wxSize temp3 ;
18498 double val4 ;
18499 int ecode4 = 0 ;
18500 double val5 ;
18501 int ecode5 = 0 ;
18502 PyObject * obj0 = 0 ;
18503 PyObject * obj1 = 0 ;
18504 PyObject * obj2 = 0 ;
18505 PyObject * obj3 = 0 ;
18506 PyObject * obj4 = 0 ;
18507 char * kwnames[] = {
18508 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18509 };
18510
18511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18513 if (!SWIG_IsOK(res1)) {
18514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18515 }
18516 arg1 = reinterpret_cast< wxDC * >(argp1);
18517 {
18518 arg2 = &temp2;
18519 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18520 }
18521 {
18522 arg3 = &temp3;
18523 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18524 }
18525 ecode4 = SWIG_AsVal_double(obj3, &val4);
18526 if (!SWIG_IsOK(ecode4)) {
18527 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18528 }
18529 arg4 = static_cast< double >(val4);
18530 ecode5 = SWIG_AsVal_double(obj4, &val5);
18531 if (!SWIG_IsOK(ecode5)) {
18532 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18533 }
18534 arg5 = static_cast< double >(val5);
18535 {
18536 PyThreadState* __tstate = wxPyBeginAllowThreads();
18537 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18538 wxPyEndAllowThreads(__tstate);
18539 if (PyErr_Occurred()) SWIG_fail;
18540 }
18541 resultobj = SWIG_Py_Void();
18542 return resultobj;
18543 fail:
18544 return NULL;
18545 }
18546
18547
18548 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18549 PyObject *resultobj = 0;
18550 wxDC *arg1 = (wxDC *) 0 ;
18551 int arg2 ;
18552 int arg3 ;
18553 void *argp1 = 0 ;
18554 int res1 = 0 ;
18555 int val2 ;
18556 int ecode2 = 0 ;
18557 int val3 ;
18558 int ecode3 = 0 ;
18559 PyObject * obj0 = 0 ;
18560 PyObject * obj1 = 0 ;
18561 PyObject * obj2 = 0 ;
18562 char * kwnames[] = {
18563 (char *) "self",(char *) "x",(char *) "y", NULL
18564 };
18565
18566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18568 if (!SWIG_IsOK(res1)) {
18569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18570 }
18571 arg1 = reinterpret_cast< wxDC * >(argp1);
18572 ecode2 = SWIG_AsVal_int(obj1, &val2);
18573 if (!SWIG_IsOK(ecode2)) {
18574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18575 }
18576 arg2 = static_cast< int >(val2);
18577 ecode3 = SWIG_AsVal_int(obj2, &val3);
18578 if (!SWIG_IsOK(ecode3)) {
18579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18580 }
18581 arg3 = static_cast< int >(val3);
18582 {
18583 PyThreadState* __tstate = wxPyBeginAllowThreads();
18584 (arg1)->DrawPoint(arg2,arg3);
18585 wxPyEndAllowThreads(__tstate);
18586 if (PyErr_Occurred()) SWIG_fail;
18587 }
18588 resultobj = SWIG_Py_Void();
18589 return resultobj;
18590 fail:
18591 return NULL;
18592 }
18593
18594
18595 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18596 PyObject *resultobj = 0;
18597 wxDC *arg1 = (wxDC *) 0 ;
18598 wxPoint *arg2 = 0 ;
18599 void *argp1 = 0 ;
18600 int res1 = 0 ;
18601 wxPoint temp2 ;
18602 PyObject * obj0 = 0 ;
18603 PyObject * obj1 = 0 ;
18604 char * kwnames[] = {
18605 (char *) "self",(char *) "pt", NULL
18606 };
18607
18608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18610 if (!SWIG_IsOK(res1)) {
18611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18612 }
18613 arg1 = reinterpret_cast< wxDC * >(argp1);
18614 {
18615 arg2 = &temp2;
18616 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18617 }
18618 {
18619 PyThreadState* __tstate = wxPyBeginAllowThreads();
18620 (arg1)->DrawPoint((wxPoint const &)*arg2);
18621 wxPyEndAllowThreads(__tstate);
18622 if (PyErr_Occurred()) SWIG_fail;
18623 }
18624 resultobj = SWIG_Py_Void();
18625 return resultobj;
18626 fail:
18627 return NULL;
18628 }
18629
18630
18631 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18632 PyObject *resultobj = 0;
18633 wxDC *arg1 = (wxDC *) 0 ;
18634 int arg2 ;
18635 int arg3 ;
18636 int arg4 ;
18637 int arg5 ;
18638 void *argp1 = 0 ;
18639 int res1 = 0 ;
18640 int val2 ;
18641 int ecode2 = 0 ;
18642 int val3 ;
18643 int ecode3 = 0 ;
18644 int val4 ;
18645 int ecode4 = 0 ;
18646 int val5 ;
18647 int ecode5 = 0 ;
18648 PyObject * obj0 = 0 ;
18649 PyObject * obj1 = 0 ;
18650 PyObject * obj2 = 0 ;
18651 PyObject * obj3 = 0 ;
18652 PyObject * obj4 = 0 ;
18653 char * kwnames[] = {
18654 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18655 };
18656
18657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18659 if (!SWIG_IsOK(res1)) {
18660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18661 }
18662 arg1 = reinterpret_cast< wxDC * >(argp1);
18663 ecode2 = SWIG_AsVal_int(obj1, &val2);
18664 if (!SWIG_IsOK(ecode2)) {
18665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18666 }
18667 arg2 = static_cast< int >(val2);
18668 ecode3 = SWIG_AsVal_int(obj2, &val3);
18669 if (!SWIG_IsOK(ecode3)) {
18670 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18671 }
18672 arg3 = static_cast< int >(val3);
18673 ecode4 = SWIG_AsVal_int(obj3, &val4);
18674 if (!SWIG_IsOK(ecode4)) {
18675 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18676 }
18677 arg4 = static_cast< int >(val4);
18678 ecode5 = SWIG_AsVal_int(obj4, &val5);
18679 if (!SWIG_IsOK(ecode5)) {
18680 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18681 }
18682 arg5 = static_cast< int >(val5);
18683 {
18684 PyThreadState* __tstate = wxPyBeginAllowThreads();
18685 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18686 wxPyEndAllowThreads(__tstate);
18687 if (PyErr_Occurred()) SWIG_fail;
18688 }
18689 resultobj = SWIG_Py_Void();
18690 return resultobj;
18691 fail:
18692 return NULL;
18693 }
18694
18695
18696 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18697 PyObject *resultobj = 0;
18698 wxDC *arg1 = (wxDC *) 0 ;
18699 wxRect *arg2 = 0 ;
18700 void *argp1 = 0 ;
18701 int res1 = 0 ;
18702 wxRect temp2 ;
18703 PyObject * obj0 = 0 ;
18704 PyObject * obj1 = 0 ;
18705 char * kwnames[] = {
18706 (char *) "self",(char *) "rect", NULL
18707 };
18708
18709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18711 if (!SWIG_IsOK(res1)) {
18712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18713 }
18714 arg1 = reinterpret_cast< wxDC * >(argp1);
18715 {
18716 arg2 = &temp2;
18717 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18718 }
18719 {
18720 PyThreadState* __tstate = wxPyBeginAllowThreads();
18721 (arg1)->DrawRectangle((wxRect const &)*arg2);
18722 wxPyEndAllowThreads(__tstate);
18723 if (PyErr_Occurred()) SWIG_fail;
18724 }
18725 resultobj = SWIG_Py_Void();
18726 return resultobj;
18727 fail:
18728 return NULL;
18729 }
18730
18731
18732 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18733 PyObject *resultobj = 0;
18734 wxDC *arg1 = (wxDC *) 0 ;
18735 wxPoint *arg2 = 0 ;
18736 wxSize *arg3 = 0 ;
18737 void *argp1 = 0 ;
18738 int res1 = 0 ;
18739 wxPoint temp2 ;
18740 wxSize temp3 ;
18741 PyObject * obj0 = 0 ;
18742 PyObject * obj1 = 0 ;
18743 PyObject * obj2 = 0 ;
18744 char * kwnames[] = {
18745 (char *) "self",(char *) "pt",(char *) "sz", NULL
18746 };
18747
18748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18750 if (!SWIG_IsOK(res1)) {
18751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18752 }
18753 arg1 = reinterpret_cast< wxDC * >(argp1);
18754 {
18755 arg2 = &temp2;
18756 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18757 }
18758 {
18759 arg3 = &temp3;
18760 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18761 }
18762 {
18763 PyThreadState* __tstate = wxPyBeginAllowThreads();
18764 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18765 wxPyEndAllowThreads(__tstate);
18766 if (PyErr_Occurred()) SWIG_fail;
18767 }
18768 resultobj = SWIG_Py_Void();
18769 return resultobj;
18770 fail:
18771 return NULL;
18772 }
18773
18774
18775 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18776 PyObject *resultobj = 0;
18777 wxDC *arg1 = (wxDC *) 0 ;
18778 int arg2 ;
18779 int arg3 ;
18780 int arg4 ;
18781 int arg5 ;
18782 double arg6 ;
18783 void *argp1 = 0 ;
18784 int res1 = 0 ;
18785 int val2 ;
18786 int ecode2 = 0 ;
18787 int val3 ;
18788 int ecode3 = 0 ;
18789 int val4 ;
18790 int ecode4 = 0 ;
18791 int val5 ;
18792 int ecode5 = 0 ;
18793 double val6 ;
18794 int ecode6 = 0 ;
18795 PyObject * obj0 = 0 ;
18796 PyObject * obj1 = 0 ;
18797 PyObject * obj2 = 0 ;
18798 PyObject * obj3 = 0 ;
18799 PyObject * obj4 = 0 ;
18800 PyObject * obj5 = 0 ;
18801 char * kwnames[] = {
18802 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18803 };
18804
18805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18807 if (!SWIG_IsOK(res1)) {
18808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18809 }
18810 arg1 = reinterpret_cast< wxDC * >(argp1);
18811 ecode2 = SWIG_AsVal_int(obj1, &val2);
18812 if (!SWIG_IsOK(ecode2)) {
18813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18814 }
18815 arg2 = static_cast< int >(val2);
18816 ecode3 = SWIG_AsVal_int(obj2, &val3);
18817 if (!SWIG_IsOK(ecode3)) {
18818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18819 }
18820 arg3 = static_cast< int >(val3);
18821 ecode4 = SWIG_AsVal_int(obj3, &val4);
18822 if (!SWIG_IsOK(ecode4)) {
18823 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18824 }
18825 arg4 = static_cast< int >(val4);
18826 ecode5 = SWIG_AsVal_int(obj4, &val5);
18827 if (!SWIG_IsOK(ecode5)) {
18828 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18829 }
18830 arg5 = static_cast< int >(val5);
18831 ecode6 = SWIG_AsVal_double(obj5, &val6);
18832 if (!SWIG_IsOK(ecode6)) {
18833 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18834 }
18835 arg6 = static_cast< double >(val6);
18836 {
18837 PyThreadState* __tstate = wxPyBeginAllowThreads();
18838 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18839 wxPyEndAllowThreads(__tstate);
18840 if (PyErr_Occurred()) SWIG_fail;
18841 }
18842 resultobj = SWIG_Py_Void();
18843 return resultobj;
18844 fail:
18845 return NULL;
18846 }
18847
18848
18849 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18850 PyObject *resultobj = 0;
18851 wxDC *arg1 = (wxDC *) 0 ;
18852 wxRect *arg2 = 0 ;
18853 double arg3 ;
18854 void *argp1 = 0 ;
18855 int res1 = 0 ;
18856 wxRect temp2 ;
18857 double val3 ;
18858 int ecode3 = 0 ;
18859 PyObject * obj0 = 0 ;
18860 PyObject * obj1 = 0 ;
18861 PyObject * obj2 = 0 ;
18862 char * kwnames[] = {
18863 (char *) "self",(char *) "r",(char *) "radius", NULL
18864 };
18865
18866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18868 if (!SWIG_IsOK(res1)) {
18869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18870 }
18871 arg1 = reinterpret_cast< wxDC * >(argp1);
18872 {
18873 arg2 = &temp2;
18874 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18875 }
18876 ecode3 = SWIG_AsVal_double(obj2, &val3);
18877 if (!SWIG_IsOK(ecode3)) {
18878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18879 }
18880 arg3 = static_cast< double >(val3);
18881 {
18882 PyThreadState* __tstate = wxPyBeginAllowThreads();
18883 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18884 wxPyEndAllowThreads(__tstate);
18885 if (PyErr_Occurred()) SWIG_fail;
18886 }
18887 resultobj = SWIG_Py_Void();
18888 return resultobj;
18889 fail:
18890 return NULL;
18891 }
18892
18893
18894 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18895 PyObject *resultobj = 0;
18896 wxDC *arg1 = (wxDC *) 0 ;
18897 wxPoint *arg2 = 0 ;
18898 wxSize *arg3 = 0 ;
18899 double arg4 ;
18900 void *argp1 = 0 ;
18901 int res1 = 0 ;
18902 wxPoint temp2 ;
18903 wxSize temp3 ;
18904 double val4 ;
18905 int ecode4 = 0 ;
18906 PyObject * obj0 = 0 ;
18907 PyObject * obj1 = 0 ;
18908 PyObject * obj2 = 0 ;
18909 PyObject * obj3 = 0 ;
18910 char * kwnames[] = {
18911 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18912 };
18913
18914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18916 if (!SWIG_IsOK(res1)) {
18917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18918 }
18919 arg1 = reinterpret_cast< wxDC * >(argp1);
18920 {
18921 arg2 = &temp2;
18922 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18923 }
18924 {
18925 arg3 = &temp3;
18926 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18927 }
18928 ecode4 = SWIG_AsVal_double(obj3, &val4);
18929 if (!SWIG_IsOK(ecode4)) {
18930 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18931 }
18932 arg4 = static_cast< double >(val4);
18933 {
18934 PyThreadState* __tstate = wxPyBeginAllowThreads();
18935 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18936 wxPyEndAllowThreads(__tstate);
18937 if (PyErr_Occurred()) SWIG_fail;
18938 }
18939 resultobj = SWIG_Py_Void();
18940 return resultobj;
18941 fail:
18942 return NULL;
18943 }
18944
18945
18946 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18947 PyObject *resultobj = 0;
18948 wxDC *arg1 = (wxDC *) 0 ;
18949 int arg2 ;
18950 int arg3 ;
18951 int arg4 ;
18952 void *argp1 = 0 ;
18953 int res1 = 0 ;
18954 int val2 ;
18955 int ecode2 = 0 ;
18956 int val3 ;
18957 int ecode3 = 0 ;
18958 int val4 ;
18959 int ecode4 = 0 ;
18960 PyObject * obj0 = 0 ;
18961 PyObject * obj1 = 0 ;
18962 PyObject * obj2 = 0 ;
18963 PyObject * obj3 = 0 ;
18964 char * kwnames[] = {
18965 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18966 };
18967
18968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18970 if (!SWIG_IsOK(res1)) {
18971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18972 }
18973 arg1 = reinterpret_cast< wxDC * >(argp1);
18974 ecode2 = SWIG_AsVal_int(obj1, &val2);
18975 if (!SWIG_IsOK(ecode2)) {
18976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18977 }
18978 arg2 = static_cast< int >(val2);
18979 ecode3 = SWIG_AsVal_int(obj2, &val3);
18980 if (!SWIG_IsOK(ecode3)) {
18981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18982 }
18983 arg3 = static_cast< int >(val3);
18984 ecode4 = SWIG_AsVal_int(obj3, &val4);
18985 if (!SWIG_IsOK(ecode4)) {
18986 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18987 }
18988 arg4 = static_cast< int >(val4);
18989 {
18990 PyThreadState* __tstate = wxPyBeginAllowThreads();
18991 (arg1)->DrawCircle(arg2,arg3,arg4);
18992 wxPyEndAllowThreads(__tstate);
18993 if (PyErr_Occurred()) SWIG_fail;
18994 }
18995 resultobj = SWIG_Py_Void();
18996 return resultobj;
18997 fail:
18998 return NULL;
18999 }
19000
19001
19002 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19003 PyObject *resultobj = 0;
19004 wxDC *arg1 = (wxDC *) 0 ;
19005 wxPoint *arg2 = 0 ;
19006 int arg3 ;
19007 void *argp1 = 0 ;
19008 int res1 = 0 ;
19009 wxPoint temp2 ;
19010 int val3 ;
19011 int ecode3 = 0 ;
19012 PyObject * obj0 = 0 ;
19013 PyObject * obj1 = 0 ;
19014 PyObject * obj2 = 0 ;
19015 char * kwnames[] = {
19016 (char *) "self",(char *) "pt",(char *) "radius", NULL
19017 };
19018
19019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19021 if (!SWIG_IsOK(res1)) {
19022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19023 }
19024 arg1 = reinterpret_cast< wxDC * >(argp1);
19025 {
19026 arg2 = &temp2;
19027 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19028 }
19029 ecode3 = SWIG_AsVal_int(obj2, &val3);
19030 if (!SWIG_IsOK(ecode3)) {
19031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19032 }
19033 arg3 = static_cast< int >(val3);
19034 {
19035 PyThreadState* __tstate = wxPyBeginAllowThreads();
19036 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19037 wxPyEndAllowThreads(__tstate);
19038 if (PyErr_Occurred()) SWIG_fail;
19039 }
19040 resultobj = SWIG_Py_Void();
19041 return resultobj;
19042 fail:
19043 return NULL;
19044 }
19045
19046
19047 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19048 PyObject *resultobj = 0;
19049 wxDC *arg1 = (wxDC *) 0 ;
19050 int arg2 ;
19051 int arg3 ;
19052 int arg4 ;
19053 int arg5 ;
19054 void *argp1 = 0 ;
19055 int res1 = 0 ;
19056 int val2 ;
19057 int ecode2 = 0 ;
19058 int val3 ;
19059 int ecode3 = 0 ;
19060 int val4 ;
19061 int ecode4 = 0 ;
19062 int val5 ;
19063 int ecode5 = 0 ;
19064 PyObject * obj0 = 0 ;
19065 PyObject * obj1 = 0 ;
19066 PyObject * obj2 = 0 ;
19067 PyObject * obj3 = 0 ;
19068 PyObject * obj4 = 0 ;
19069 char * kwnames[] = {
19070 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19071 };
19072
19073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19075 if (!SWIG_IsOK(res1)) {
19076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19077 }
19078 arg1 = reinterpret_cast< wxDC * >(argp1);
19079 ecode2 = SWIG_AsVal_int(obj1, &val2);
19080 if (!SWIG_IsOK(ecode2)) {
19081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19082 }
19083 arg2 = static_cast< int >(val2);
19084 ecode3 = SWIG_AsVal_int(obj2, &val3);
19085 if (!SWIG_IsOK(ecode3)) {
19086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19087 }
19088 arg3 = static_cast< int >(val3);
19089 ecode4 = SWIG_AsVal_int(obj3, &val4);
19090 if (!SWIG_IsOK(ecode4)) {
19091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19092 }
19093 arg4 = static_cast< int >(val4);
19094 ecode5 = SWIG_AsVal_int(obj4, &val5);
19095 if (!SWIG_IsOK(ecode5)) {
19096 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19097 }
19098 arg5 = static_cast< int >(val5);
19099 {
19100 PyThreadState* __tstate = wxPyBeginAllowThreads();
19101 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19102 wxPyEndAllowThreads(__tstate);
19103 if (PyErr_Occurred()) SWIG_fail;
19104 }
19105 resultobj = SWIG_Py_Void();
19106 return resultobj;
19107 fail:
19108 return NULL;
19109 }
19110
19111
19112 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19113 PyObject *resultobj = 0;
19114 wxDC *arg1 = (wxDC *) 0 ;
19115 wxRect *arg2 = 0 ;
19116 void *argp1 = 0 ;
19117 int res1 = 0 ;
19118 wxRect temp2 ;
19119 PyObject * obj0 = 0 ;
19120 PyObject * obj1 = 0 ;
19121 char * kwnames[] = {
19122 (char *) "self",(char *) "rect", NULL
19123 };
19124
19125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19127 if (!SWIG_IsOK(res1)) {
19128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19129 }
19130 arg1 = reinterpret_cast< wxDC * >(argp1);
19131 {
19132 arg2 = &temp2;
19133 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19134 }
19135 {
19136 PyThreadState* __tstate = wxPyBeginAllowThreads();
19137 (arg1)->DrawEllipse((wxRect const &)*arg2);
19138 wxPyEndAllowThreads(__tstate);
19139 if (PyErr_Occurred()) SWIG_fail;
19140 }
19141 resultobj = SWIG_Py_Void();
19142 return resultobj;
19143 fail:
19144 return NULL;
19145 }
19146
19147
19148 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19149 PyObject *resultobj = 0;
19150 wxDC *arg1 = (wxDC *) 0 ;
19151 wxPoint *arg2 = 0 ;
19152 wxSize *arg3 = 0 ;
19153 void *argp1 = 0 ;
19154 int res1 = 0 ;
19155 wxPoint temp2 ;
19156 wxSize temp3 ;
19157 PyObject * obj0 = 0 ;
19158 PyObject * obj1 = 0 ;
19159 PyObject * obj2 = 0 ;
19160 char * kwnames[] = {
19161 (char *) "self",(char *) "pt",(char *) "sz", NULL
19162 };
19163
19164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19166 if (!SWIG_IsOK(res1)) {
19167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19168 }
19169 arg1 = reinterpret_cast< wxDC * >(argp1);
19170 {
19171 arg2 = &temp2;
19172 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19173 }
19174 {
19175 arg3 = &temp3;
19176 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19177 }
19178 {
19179 PyThreadState* __tstate = wxPyBeginAllowThreads();
19180 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
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_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19192 PyObject *resultobj = 0;
19193 wxDC *arg1 = (wxDC *) 0 ;
19194 wxIcon *arg2 = 0 ;
19195 int arg3 ;
19196 int arg4 ;
19197 void *argp1 = 0 ;
19198 int res1 = 0 ;
19199 void *argp2 = 0 ;
19200 int res2 = 0 ;
19201 int val3 ;
19202 int ecode3 = 0 ;
19203 int val4 ;
19204 int ecode4 = 0 ;
19205 PyObject * obj0 = 0 ;
19206 PyObject * obj1 = 0 ;
19207 PyObject * obj2 = 0 ;
19208 PyObject * obj3 = 0 ;
19209 char * kwnames[] = {
19210 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19211 };
19212
19213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19215 if (!SWIG_IsOK(res1)) {
19216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19217 }
19218 arg1 = reinterpret_cast< wxDC * >(argp1);
19219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19220 if (!SWIG_IsOK(res2)) {
19221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19222 }
19223 if (!argp2) {
19224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19225 }
19226 arg2 = reinterpret_cast< wxIcon * >(argp2);
19227 ecode3 = SWIG_AsVal_int(obj2, &val3);
19228 if (!SWIG_IsOK(ecode3)) {
19229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19230 }
19231 arg3 = static_cast< int >(val3);
19232 ecode4 = SWIG_AsVal_int(obj3, &val4);
19233 if (!SWIG_IsOK(ecode4)) {
19234 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19235 }
19236 arg4 = static_cast< int >(val4);
19237 {
19238 PyThreadState* __tstate = wxPyBeginAllowThreads();
19239 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19240 wxPyEndAllowThreads(__tstate);
19241 if (PyErr_Occurred()) SWIG_fail;
19242 }
19243 resultobj = SWIG_Py_Void();
19244 return resultobj;
19245 fail:
19246 return NULL;
19247 }
19248
19249
19250 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19251 PyObject *resultobj = 0;
19252 wxDC *arg1 = (wxDC *) 0 ;
19253 wxIcon *arg2 = 0 ;
19254 wxPoint *arg3 = 0 ;
19255 void *argp1 = 0 ;
19256 int res1 = 0 ;
19257 void *argp2 = 0 ;
19258 int res2 = 0 ;
19259 wxPoint temp3 ;
19260 PyObject * obj0 = 0 ;
19261 PyObject * obj1 = 0 ;
19262 PyObject * obj2 = 0 ;
19263 char * kwnames[] = {
19264 (char *) "self",(char *) "icon",(char *) "pt", NULL
19265 };
19266
19267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19269 if (!SWIG_IsOK(res1)) {
19270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19271 }
19272 arg1 = reinterpret_cast< wxDC * >(argp1);
19273 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19274 if (!SWIG_IsOK(res2)) {
19275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19276 }
19277 if (!argp2) {
19278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19279 }
19280 arg2 = reinterpret_cast< wxIcon * >(argp2);
19281 {
19282 arg3 = &temp3;
19283 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19284 }
19285 {
19286 PyThreadState* __tstate = wxPyBeginAllowThreads();
19287 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19288 wxPyEndAllowThreads(__tstate);
19289 if (PyErr_Occurred()) SWIG_fail;
19290 }
19291 resultobj = SWIG_Py_Void();
19292 return resultobj;
19293 fail:
19294 return NULL;
19295 }
19296
19297
19298 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19299 PyObject *resultobj = 0;
19300 wxDC *arg1 = (wxDC *) 0 ;
19301 wxBitmap *arg2 = 0 ;
19302 int arg3 ;
19303 int arg4 ;
19304 bool arg5 = (bool) false ;
19305 void *argp1 = 0 ;
19306 int res1 = 0 ;
19307 void *argp2 = 0 ;
19308 int res2 = 0 ;
19309 int val3 ;
19310 int ecode3 = 0 ;
19311 int val4 ;
19312 int ecode4 = 0 ;
19313 bool val5 ;
19314 int ecode5 = 0 ;
19315 PyObject * obj0 = 0 ;
19316 PyObject * obj1 = 0 ;
19317 PyObject * obj2 = 0 ;
19318 PyObject * obj3 = 0 ;
19319 PyObject * obj4 = 0 ;
19320 char * kwnames[] = {
19321 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19322 };
19323
19324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19326 if (!SWIG_IsOK(res1)) {
19327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19328 }
19329 arg1 = reinterpret_cast< wxDC * >(argp1);
19330 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19331 if (!SWIG_IsOK(res2)) {
19332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19333 }
19334 if (!argp2) {
19335 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19336 }
19337 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19338 ecode3 = SWIG_AsVal_int(obj2, &val3);
19339 if (!SWIG_IsOK(ecode3)) {
19340 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19341 }
19342 arg3 = static_cast< int >(val3);
19343 ecode4 = SWIG_AsVal_int(obj3, &val4);
19344 if (!SWIG_IsOK(ecode4)) {
19345 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19346 }
19347 arg4 = static_cast< int >(val4);
19348 if (obj4) {
19349 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19350 if (!SWIG_IsOK(ecode5)) {
19351 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19352 }
19353 arg5 = static_cast< bool >(val5);
19354 }
19355 {
19356 PyThreadState* __tstate = wxPyBeginAllowThreads();
19357 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
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_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19369 PyObject *resultobj = 0;
19370 wxDC *arg1 = (wxDC *) 0 ;
19371 wxBitmap *arg2 = 0 ;
19372 wxPoint *arg3 = 0 ;
19373 bool arg4 = (bool) false ;
19374 void *argp1 = 0 ;
19375 int res1 = 0 ;
19376 void *argp2 = 0 ;
19377 int res2 = 0 ;
19378 wxPoint temp3 ;
19379 bool 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 *) "bmp",(char *) "pt",(char *) "useMask", NULL
19387 };
19388
19389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",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_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19393 }
19394 arg1 = reinterpret_cast< wxDC * >(argp1);
19395 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19396 if (!SWIG_IsOK(res2)) {
19397 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19398 }
19399 if (!argp2) {
19400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19401 }
19402 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19403 {
19404 arg3 = &temp3;
19405 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19406 }
19407 if (obj3) {
19408 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19409 if (!SWIG_IsOK(ecode4)) {
19410 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19411 }
19412 arg4 = static_cast< bool >(val4);
19413 }
19414 {
19415 PyThreadState* __tstate = wxPyBeginAllowThreads();
19416 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19417 wxPyEndAllowThreads(__tstate);
19418 if (PyErr_Occurred()) SWIG_fail;
19419 }
19420 resultobj = SWIG_Py_Void();
19421 return resultobj;
19422 fail:
19423 return NULL;
19424 }
19425
19426
19427 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19428 PyObject *resultobj = 0;
19429 wxDC *arg1 = (wxDC *) 0 ;
19430 wxString *arg2 = 0 ;
19431 int arg3 ;
19432 int arg4 ;
19433 void *argp1 = 0 ;
19434 int res1 = 0 ;
19435 bool temp2 = false ;
19436 int val3 ;
19437 int ecode3 = 0 ;
19438 int val4 ;
19439 int ecode4 = 0 ;
19440 PyObject * obj0 = 0 ;
19441 PyObject * obj1 = 0 ;
19442 PyObject * obj2 = 0 ;
19443 PyObject * obj3 = 0 ;
19444 char * kwnames[] = {
19445 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19446 };
19447
19448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19450 if (!SWIG_IsOK(res1)) {
19451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19452 }
19453 arg1 = reinterpret_cast< wxDC * >(argp1);
19454 {
19455 arg2 = wxString_in_helper(obj1);
19456 if (arg2 == NULL) SWIG_fail;
19457 temp2 = true;
19458 }
19459 ecode3 = SWIG_AsVal_int(obj2, &val3);
19460 if (!SWIG_IsOK(ecode3)) {
19461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19462 }
19463 arg3 = static_cast< int >(val3);
19464 ecode4 = SWIG_AsVal_int(obj3, &val4);
19465 if (!SWIG_IsOK(ecode4)) {
19466 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19467 }
19468 arg4 = static_cast< int >(val4);
19469 {
19470 PyThreadState* __tstate = wxPyBeginAllowThreads();
19471 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19472 wxPyEndAllowThreads(__tstate);
19473 if (PyErr_Occurred()) SWIG_fail;
19474 }
19475 resultobj = SWIG_Py_Void();
19476 {
19477 if (temp2)
19478 delete arg2;
19479 }
19480 return resultobj;
19481 fail:
19482 {
19483 if (temp2)
19484 delete arg2;
19485 }
19486 return NULL;
19487 }
19488
19489
19490 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19491 PyObject *resultobj = 0;
19492 wxDC *arg1 = (wxDC *) 0 ;
19493 wxString *arg2 = 0 ;
19494 wxPoint *arg3 = 0 ;
19495 void *argp1 = 0 ;
19496 int res1 = 0 ;
19497 bool temp2 = false ;
19498 wxPoint temp3 ;
19499 PyObject * obj0 = 0 ;
19500 PyObject * obj1 = 0 ;
19501 PyObject * obj2 = 0 ;
19502 char * kwnames[] = {
19503 (char *) "self",(char *) "text",(char *) "pt", NULL
19504 };
19505
19506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19508 if (!SWIG_IsOK(res1)) {
19509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19510 }
19511 arg1 = reinterpret_cast< wxDC * >(argp1);
19512 {
19513 arg2 = wxString_in_helper(obj1);
19514 if (arg2 == NULL) SWIG_fail;
19515 temp2 = true;
19516 }
19517 {
19518 arg3 = &temp3;
19519 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19520 }
19521 {
19522 PyThreadState* __tstate = wxPyBeginAllowThreads();
19523 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19524 wxPyEndAllowThreads(__tstate);
19525 if (PyErr_Occurred()) SWIG_fail;
19526 }
19527 resultobj = SWIG_Py_Void();
19528 {
19529 if (temp2)
19530 delete arg2;
19531 }
19532 return resultobj;
19533 fail:
19534 {
19535 if (temp2)
19536 delete arg2;
19537 }
19538 return NULL;
19539 }
19540
19541
19542 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19543 PyObject *resultobj = 0;
19544 wxDC *arg1 = (wxDC *) 0 ;
19545 wxString *arg2 = 0 ;
19546 int arg3 ;
19547 int arg4 ;
19548 double arg5 ;
19549 void *argp1 = 0 ;
19550 int res1 = 0 ;
19551 bool temp2 = false ;
19552 int val3 ;
19553 int ecode3 = 0 ;
19554 int val4 ;
19555 int ecode4 = 0 ;
19556 double val5 ;
19557 int ecode5 = 0 ;
19558 PyObject * obj0 = 0 ;
19559 PyObject * obj1 = 0 ;
19560 PyObject * obj2 = 0 ;
19561 PyObject * obj3 = 0 ;
19562 PyObject * obj4 = 0 ;
19563 char * kwnames[] = {
19564 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19565 };
19566
19567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19569 if (!SWIG_IsOK(res1)) {
19570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19571 }
19572 arg1 = reinterpret_cast< wxDC * >(argp1);
19573 {
19574 arg2 = wxString_in_helper(obj1);
19575 if (arg2 == NULL) SWIG_fail;
19576 temp2 = true;
19577 }
19578 ecode3 = SWIG_AsVal_int(obj2, &val3);
19579 if (!SWIG_IsOK(ecode3)) {
19580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19581 }
19582 arg3 = static_cast< int >(val3);
19583 ecode4 = SWIG_AsVal_int(obj3, &val4);
19584 if (!SWIG_IsOK(ecode4)) {
19585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19586 }
19587 arg4 = static_cast< int >(val4);
19588 ecode5 = SWIG_AsVal_double(obj4, &val5);
19589 if (!SWIG_IsOK(ecode5)) {
19590 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19591 }
19592 arg5 = static_cast< double >(val5);
19593 {
19594 PyThreadState* __tstate = wxPyBeginAllowThreads();
19595 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19596 wxPyEndAllowThreads(__tstate);
19597 if (PyErr_Occurred()) SWIG_fail;
19598 }
19599 resultobj = SWIG_Py_Void();
19600 {
19601 if (temp2)
19602 delete arg2;
19603 }
19604 return resultobj;
19605 fail:
19606 {
19607 if (temp2)
19608 delete arg2;
19609 }
19610 return NULL;
19611 }
19612
19613
19614 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19615 PyObject *resultobj = 0;
19616 wxDC *arg1 = (wxDC *) 0 ;
19617 wxString *arg2 = 0 ;
19618 wxPoint *arg3 = 0 ;
19619 double arg4 ;
19620 void *argp1 = 0 ;
19621 int res1 = 0 ;
19622 bool temp2 = false ;
19623 wxPoint temp3 ;
19624 double val4 ;
19625 int ecode4 = 0 ;
19626 PyObject * obj0 = 0 ;
19627 PyObject * obj1 = 0 ;
19628 PyObject * obj2 = 0 ;
19629 PyObject * obj3 = 0 ;
19630 char * kwnames[] = {
19631 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19632 };
19633
19634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19636 if (!SWIG_IsOK(res1)) {
19637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19638 }
19639 arg1 = reinterpret_cast< wxDC * >(argp1);
19640 {
19641 arg2 = wxString_in_helper(obj1);
19642 if (arg2 == NULL) SWIG_fail;
19643 temp2 = true;
19644 }
19645 {
19646 arg3 = &temp3;
19647 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19648 }
19649 ecode4 = SWIG_AsVal_double(obj3, &val4);
19650 if (!SWIG_IsOK(ecode4)) {
19651 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19652 }
19653 arg4 = static_cast< double >(val4);
19654 {
19655 PyThreadState* __tstate = wxPyBeginAllowThreads();
19656 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19657 wxPyEndAllowThreads(__tstate);
19658 if (PyErr_Occurred()) SWIG_fail;
19659 }
19660 resultobj = SWIG_Py_Void();
19661 {
19662 if (temp2)
19663 delete arg2;
19664 }
19665 return resultobj;
19666 fail:
19667 {
19668 if (temp2)
19669 delete arg2;
19670 }
19671 return NULL;
19672 }
19673
19674
19675 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19676 PyObject *resultobj = 0;
19677 wxDC *arg1 = (wxDC *) 0 ;
19678 int arg2 ;
19679 int arg3 ;
19680 int arg4 ;
19681 int arg5 ;
19682 wxDC *arg6 = (wxDC *) 0 ;
19683 int arg7 ;
19684 int arg8 ;
19685 int arg9 = (int) wxCOPY ;
19686 bool arg10 = (bool) false ;
19687 int arg11 = (int) -1 ;
19688 int arg12 = (int) -1 ;
19689 bool result;
19690 void *argp1 = 0 ;
19691 int res1 = 0 ;
19692 int val2 ;
19693 int ecode2 = 0 ;
19694 int val3 ;
19695 int ecode3 = 0 ;
19696 int val4 ;
19697 int ecode4 = 0 ;
19698 int val5 ;
19699 int ecode5 = 0 ;
19700 void *argp6 = 0 ;
19701 int res6 = 0 ;
19702 int val7 ;
19703 int ecode7 = 0 ;
19704 int val8 ;
19705 int ecode8 = 0 ;
19706 int val9 ;
19707 int ecode9 = 0 ;
19708 bool val10 ;
19709 int ecode10 = 0 ;
19710 int val11 ;
19711 int ecode11 = 0 ;
19712 int val12 ;
19713 int ecode12 = 0 ;
19714 PyObject * obj0 = 0 ;
19715 PyObject * obj1 = 0 ;
19716 PyObject * obj2 = 0 ;
19717 PyObject * obj3 = 0 ;
19718 PyObject * obj4 = 0 ;
19719 PyObject * obj5 = 0 ;
19720 PyObject * obj6 = 0 ;
19721 PyObject * obj7 = 0 ;
19722 PyObject * obj8 = 0 ;
19723 PyObject * obj9 = 0 ;
19724 PyObject * obj10 = 0 ;
19725 PyObject * obj11 = 0 ;
19726 char * kwnames[] = {
19727 (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
19728 };
19729
19730 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;
19731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19732 if (!SWIG_IsOK(res1)) {
19733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19734 }
19735 arg1 = reinterpret_cast< wxDC * >(argp1);
19736 ecode2 = SWIG_AsVal_int(obj1, &val2);
19737 if (!SWIG_IsOK(ecode2)) {
19738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19739 }
19740 arg2 = static_cast< int >(val2);
19741 ecode3 = SWIG_AsVal_int(obj2, &val3);
19742 if (!SWIG_IsOK(ecode3)) {
19743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19744 }
19745 arg3 = static_cast< int >(val3);
19746 ecode4 = SWIG_AsVal_int(obj3, &val4);
19747 if (!SWIG_IsOK(ecode4)) {
19748 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19749 }
19750 arg4 = static_cast< int >(val4);
19751 ecode5 = SWIG_AsVal_int(obj4, &val5);
19752 if (!SWIG_IsOK(ecode5)) {
19753 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19754 }
19755 arg5 = static_cast< int >(val5);
19756 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19757 if (!SWIG_IsOK(res6)) {
19758 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19759 }
19760 arg6 = reinterpret_cast< wxDC * >(argp6);
19761 ecode7 = SWIG_AsVal_int(obj6, &val7);
19762 if (!SWIG_IsOK(ecode7)) {
19763 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19764 }
19765 arg7 = static_cast< int >(val7);
19766 ecode8 = SWIG_AsVal_int(obj7, &val8);
19767 if (!SWIG_IsOK(ecode8)) {
19768 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19769 }
19770 arg8 = static_cast< int >(val8);
19771 if (obj8) {
19772 ecode9 = SWIG_AsVal_int(obj8, &val9);
19773 if (!SWIG_IsOK(ecode9)) {
19774 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19775 }
19776 arg9 = static_cast< int >(val9);
19777 }
19778 if (obj9) {
19779 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19780 if (!SWIG_IsOK(ecode10)) {
19781 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19782 }
19783 arg10 = static_cast< bool >(val10);
19784 }
19785 if (obj10) {
19786 ecode11 = SWIG_AsVal_int(obj10, &val11);
19787 if (!SWIG_IsOK(ecode11)) {
19788 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19789 }
19790 arg11 = static_cast< int >(val11);
19791 }
19792 if (obj11) {
19793 ecode12 = SWIG_AsVal_int(obj11, &val12);
19794 if (!SWIG_IsOK(ecode12)) {
19795 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19796 }
19797 arg12 = static_cast< int >(val12);
19798 }
19799 {
19800 PyThreadState* __tstate = wxPyBeginAllowThreads();
19801 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19802 wxPyEndAllowThreads(__tstate);
19803 if (PyErr_Occurred()) SWIG_fail;
19804 }
19805 {
19806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19807 }
19808 return resultobj;
19809 fail:
19810 return NULL;
19811 }
19812
19813
19814 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19815 PyObject *resultobj = 0;
19816 wxDC *arg1 = (wxDC *) 0 ;
19817 wxPoint *arg2 = 0 ;
19818 wxSize *arg3 = 0 ;
19819 wxDC *arg4 = (wxDC *) 0 ;
19820 wxPoint *arg5 = 0 ;
19821 int arg6 = (int) wxCOPY ;
19822 bool arg7 = (bool) false ;
19823 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19824 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19825 bool result;
19826 void *argp1 = 0 ;
19827 int res1 = 0 ;
19828 wxPoint temp2 ;
19829 wxSize temp3 ;
19830 void *argp4 = 0 ;
19831 int res4 = 0 ;
19832 wxPoint temp5 ;
19833 int val6 ;
19834 int ecode6 = 0 ;
19835 bool val7 ;
19836 int ecode7 = 0 ;
19837 wxPoint temp8 ;
19838 PyObject * obj0 = 0 ;
19839 PyObject * obj1 = 0 ;
19840 PyObject * obj2 = 0 ;
19841 PyObject * obj3 = 0 ;
19842 PyObject * obj4 = 0 ;
19843 PyObject * obj5 = 0 ;
19844 PyObject * obj6 = 0 ;
19845 PyObject * obj7 = 0 ;
19846 char * kwnames[] = {
19847 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19848 };
19849
19850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19852 if (!SWIG_IsOK(res1)) {
19853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19854 }
19855 arg1 = reinterpret_cast< wxDC * >(argp1);
19856 {
19857 arg2 = &temp2;
19858 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19859 }
19860 {
19861 arg3 = &temp3;
19862 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19863 }
19864 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19865 if (!SWIG_IsOK(res4)) {
19866 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19867 }
19868 arg4 = reinterpret_cast< wxDC * >(argp4);
19869 {
19870 arg5 = &temp5;
19871 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19872 }
19873 if (obj5) {
19874 ecode6 = SWIG_AsVal_int(obj5, &val6);
19875 if (!SWIG_IsOK(ecode6)) {
19876 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19877 }
19878 arg6 = static_cast< int >(val6);
19879 }
19880 if (obj6) {
19881 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19882 if (!SWIG_IsOK(ecode7)) {
19883 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19884 }
19885 arg7 = static_cast< bool >(val7);
19886 }
19887 if (obj7) {
19888 {
19889 arg8 = &temp8;
19890 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19891 }
19892 }
19893 {
19894 PyThreadState* __tstate = wxPyBeginAllowThreads();
19895 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19896 wxPyEndAllowThreads(__tstate);
19897 if (PyErr_Occurred()) SWIG_fail;
19898 }
19899 {
19900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19901 }
19902 return resultobj;
19903 fail:
19904 return NULL;
19905 }
19906
19907
19908 SWIGINTERN PyObject *_wrap_DC_StretchBlit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19909 PyObject *resultobj = 0;
19910 wxDC *arg1 = (wxDC *) 0 ;
19911 int arg2 ;
19912 int arg3 ;
19913 int arg4 ;
19914 int arg5 ;
19915 wxDC *arg6 = (wxDC *) 0 ;
19916 int arg7 ;
19917 int arg8 ;
19918 int arg9 ;
19919 int arg10 ;
19920 int arg11 = (int) wxCOPY ;
19921 bool arg12 = (bool) false ;
19922 int arg13 = (int) wxDefaultCoord ;
19923 int arg14 = (int) wxDefaultCoord ;
19924 bool result;
19925 void *argp1 = 0 ;
19926 int res1 = 0 ;
19927 int val2 ;
19928 int ecode2 = 0 ;
19929 int val3 ;
19930 int ecode3 = 0 ;
19931 int val4 ;
19932 int ecode4 = 0 ;
19933 int val5 ;
19934 int ecode5 = 0 ;
19935 void *argp6 = 0 ;
19936 int res6 = 0 ;
19937 int val7 ;
19938 int ecode7 = 0 ;
19939 int val8 ;
19940 int ecode8 = 0 ;
19941 int val9 ;
19942 int ecode9 = 0 ;
19943 int val10 ;
19944 int ecode10 = 0 ;
19945 int val11 ;
19946 int ecode11 = 0 ;
19947 bool val12 ;
19948 int ecode12 = 0 ;
19949 int val13 ;
19950 int ecode13 = 0 ;
19951 int val14 ;
19952 int ecode14 = 0 ;
19953 PyObject * obj0 = 0 ;
19954 PyObject * obj1 = 0 ;
19955 PyObject * obj2 = 0 ;
19956 PyObject * obj3 = 0 ;
19957 PyObject * obj4 = 0 ;
19958 PyObject * obj5 = 0 ;
19959 PyObject * obj6 = 0 ;
19960 PyObject * obj7 = 0 ;
19961 PyObject * obj8 = 0 ;
19962 PyObject * obj9 = 0 ;
19963 PyObject * obj10 = 0 ;
19964 PyObject * obj11 = 0 ;
19965 PyObject * obj12 = 0 ;
19966 PyObject * obj13 = 0 ;
19967 char * kwnames[] = {
19968 (char *) "self",(char *) "dstX",(char *) "dstY",(char *) "dstWidth",(char *) "dstHeight",(char *) "source",(char *) "srcX",(char *) "srcY",(char *) "srcWidth",(char *) "srcHeight",(char *) "rop",(char *) "useMask",(char *) "srcMaskX",(char *) "srcMaskY", NULL
19969 };
19970
19971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOOOO|OOOO:DC_StretchBlit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
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_StretchBlit" "', expected argument " "1"" of type '" "wxDC *""'");
19975 }
19976 arg1 = reinterpret_cast< wxDC * >(argp1);
19977 ecode2 = SWIG_AsVal_int(obj1, &val2);
19978 if (!SWIG_IsOK(ecode2)) {
19979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_StretchBlit" "', expected argument " "2"" of type '" "int""'");
19980 }
19981 arg2 = static_cast< int >(val2);
19982 ecode3 = SWIG_AsVal_int(obj2, &val3);
19983 if (!SWIG_IsOK(ecode3)) {
19984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_StretchBlit" "', expected argument " "3"" of type '" "int""'");
19985 }
19986 arg3 = static_cast< int >(val3);
19987 ecode4 = SWIG_AsVal_int(obj3, &val4);
19988 if (!SWIG_IsOK(ecode4)) {
19989 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_StretchBlit" "', expected argument " "4"" of type '" "int""'");
19990 }
19991 arg4 = static_cast< int >(val4);
19992 ecode5 = SWIG_AsVal_int(obj4, &val5);
19993 if (!SWIG_IsOK(ecode5)) {
19994 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_StretchBlit" "', expected argument " "5"" of type '" "int""'");
19995 }
19996 arg5 = static_cast< int >(val5);
19997 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19998 if (!SWIG_IsOK(res6)) {
19999 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_StretchBlit" "', expected argument " "6"" of type '" "wxDC *""'");
20000 }
20001 arg6 = reinterpret_cast< wxDC * >(argp6);
20002 ecode7 = SWIG_AsVal_int(obj6, &val7);
20003 if (!SWIG_IsOK(ecode7)) {
20004 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlit" "', expected argument " "7"" of type '" "int""'");
20005 }
20006 arg7 = static_cast< int >(val7);
20007 ecode8 = SWIG_AsVal_int(obj7, &val8);
20008 if (!SWIG_IsOK(ecode8)) {
20009 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlit" "', expected argument " "8"" of type '" "int""'");
20010 }
20011 arg8 = static_cast< int >(val8);
20012 ecode9 = SWIG_AsVal_int(obj8, &val9);
20013 if (!SWIG_IsOK(ecode9)) {
20014 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_StretchBlit" "', expected argument " "9"" of type '" "int""'");
20015 }
20016 arg9 = static_cast< int >(val9);
20017 ecode10 = SWIG_AsVal_int(obj9, &val10);
20018 if (!SWIG_IsOK(ecode10)) {
20019 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_StretchBlit" "', expected argument " "10"" of type '" "int""'");
20020 }
20021 arg10 = static_cast< int >(val10);
20022 if (obj10) {
20023 ecode11 = SWIG_AsVal_int(obj10, &val11);
20024 if (!SWIG_IsOK(ecode11)) {
20025 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_StretchBlit" "', expected argument " "11"" of type '" "int""'");
20026 }
20027 arg11 = static_cast< int >(val11);
20028 }
20029 if (obj11) {
20030 ecode12 = SWIG_AsVal_bool(obj11, &val12);
20031 if (!SWIG_IsOK(ecode12)) {
20032 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_StretchBlit" "', expected argument " "12"" of type '" "bool""'");
20033 }
20034 arg12 = static_cast< bool >(val12);
20035 }
20036 if (obj12) {
20037 ecode13 = SWIG_AsVal_int(obj12, &val13);
20038 if (!SWIG_IsOK(ecode13)) {
20039 SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "DC_StretchBlit" "', expected argument " "13"" of type '" "int""'");
20040 }
20041 arg13 = static_cast< int >(val13);
20042 }
20043 if (obj13) {
20044 ecode14 = SWIG_AsVal_int(obj13, &val14);
20045 if (!SWIG_IsOK(ecode14)) {
20046 SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "DC_StretchBlit" "', expected argument " "14"" of type '" "int""'");
20047 }
20048 arg14 = static_cast< int >(val14);
20049 }
20050 {
20051 PyThreadState* __tstate = wxPyBeginAllowThreads();
20052 result = (bool)(arg1)->StretchBlit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14);
20053 wxPyEndAllowThreads(__tstate);
20054 if (PyErr_Occurred()) SWIG_fail;
20055 }
20056 {
20057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20058 }
20059 return resultobj;
20060 fail:
20061 return NULL;
20062 }
20063
20064
20065 SWIGINTERN PyObject *_wrap_DC_StretchBlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20066 PyObject *resultobj = 0;
20067 wxDC *arg1 = (wxDC *) 0 ;
20068 wxPoint *arg2 = 0 ;
20069 wxSize *arg3 = 0 ;
20070 wxDC *arg4 = (wxDC *) 0 ;
20071 wxPoint *arg5 = 0 ;
20072 wxSize *arg6 = 0 ;
20073 int arg7 = (int) wxCOPY ;
20074 bool arg8 = (bool) false ;
20075 wxPoint const &arg9_defvalue = wxDefaultPosition ;
20076 wxPoint *arg9 = (wxPoint *) &arg9_defvalue ;
20077 bool result;
20078 void *argp1 = 0 ;
20079 int res1 = 0 ;
20080 wxPoint temp2 ;
20081 wxSize temp3 ;
20082 void *argp4 = 0 ;
20083 int res4 = 0 ;
20084 wxPoint temp5 ;
20085 wxSize temp6 ;
20086 int val7 ;
20087 int ecode7 = 0 ;
20088 bool val8 ;
20089 int ecode8 = 0 ;
20090 wxPoint temp9 ;
20091 PyObject * obj0 = 0 ;
20092 PyObject * obj1 = 0 ;
20093 PyObject * obj2 = 0 ;
20094 PyObject * obj3 = 0 ;
20095 PyObject * obj4 = 0 ;
20096 PyObject * obj5 = 0 ;
20097 PyObject * obj6 = 0 ;
20098 PyObject * obj7 = 0 ;
20099 PyObject * obj8 = 0 ;
20100 char * kwnames[] = {
20101 (char *) "self",(char *) "dstPt",(char *) "dstSize",(char *) "source",(char *) "srcPt",(char *) "srcSize",(char *) "rop",(char *) "useMask",(char *) "srcMaskPt", NULL
20102 };
20103
20104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOO:DC_StretchBlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
20105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20106 if (!SWIG_IsOK(res1)) {
20107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StretchBlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20108 }
20109 arg1 = reinterpret_cast< wxDC * >(argp1);
20110 {
20111 arg2 = &temp2;
20112 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20113 }
20114 {
20115 arg3 = &temp3;
20116 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20117 }
20118 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20119 if (!SWIG_IsOK(res4)) {
20120 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_StretchBlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20121 }
20122 arg4 = reinterpret_cast< wxDC * >(argp4);
20123 {
20124 arg5 = &temp5;
20125 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20126 }
20127 {
20128 arg6 = &temp6;
20129 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
20130 }
20131 if (obj6) {
20132 ecode7 = SWIG_AsVal_int(obj6, &val7);
20133 if (!SWIG_IsOK(ecode7)) {
20134 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlitPointSize" "', expected argument " "7"" of type '" "int""'");
20135 }
20136 arg7 = static_cast< int >(val7);
20137 }
20138 if (obj7) {
20139 ecode8 = SWIG_AsVal_bool(obj7, &val8);
20140 if (!SWIG_IsOK(ecode8)) {
20141 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlitPointSize" "', expected argument " "8"" of type '" "bool""'");
20142 }
20143 arg8 = static_cast< bool >(val8);
20144 }
20145 if (obj8) {
20146 {
20147 arg9 = &temp9;
20148 if ( ! wxPoint_helper(obj8, &arg9)) SWIG_fail;
20149 }
20150 }
20151 {
20152 PyThreadState* __tstate = wxPyBeginAllowThreads();
20153 result = (bool)(arg1)->StretchBlit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,(wxPoint const &)*arg9);
20154 wxPyEndAllowThreads(__tstate);
20155 if (PyErr_Occurred()) SWIG_fail;
20156 }
20157 {
20158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20159 }
20160 return resultobj;
20161 fail:
20162 return NULL;
20163 }
20164
20165
20166 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20167 PyObject *resultobj = 0;
20168 wxDC *arg1 = (wxDC *) 0 ;
20169 wxRect *arg2 = (wxRect *) NULL ;
20170 SwigValueWrapper<wxBitmap > result;
20171 void *argp1 = 0 ;
20172 int res1 = 0 ;
20173 void *argp2 = 0 ;
20174 int res2 = 0 ;
20175 PyObject * obj0 = 0 ;
20176 PyObject * obj1 = 0 ;
20177 char * kwnames[] = {
20178 (char *) "self",(char *) "subrect", NULL
20179 };
20180
20181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
20182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20183 if (!SWIG_IsOK(res1)) {
20184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
20185 }
20186 arg1 = reinterpret_cast< wxDC * >(argp1);
20187 if (obj1) {
20188 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20189 if (!SWIG_IsOK(res2)) {
20190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
20191 }
20192 arg2 = reinterpret_cast< wxRect * >(argp2);
20193 }
20194 {
20195 PyThreadState* __tstate = wxPyBeginAllowThreads();
20196 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
20197 wxPyEndAllowThreads(__tstate);
20198 if (PyErr_Occurred()) SWIG_fail;
20199 }
20200 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
20201 return resultobj;
20202 fail:
20203 return NULL;
20204 }
20205
20206
20207 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20208 PyObject *resultobj = 0;
20209 wxDC *arg1 = (wxDC *) 0 ;
20210 int arg2 ;
20211 int arg3 ;
20212 int arg4 ;
20213 int arg5 ;
20214 void *argp1 = 0 ;
20215 int res1 = 0 ;
20216 int val2 ;
20217 int ecode2 = 0 ;
20218 int val3 ;
20219 int ecode3 = 0 ;
20220 int val4 ;
20221 int ecode4 = 0 ;
20222 int val5 ;
20223 int ecode5 = 0 ;
20224 PyObject * obj0 = 0 ;
20225 PyObject * obj1 = 0 ;
20226 PyObject * obj2 = 0 ;
20227 PyObject * obj3 = 0 ;
20228 PyObject * obj4 = 0 ;
20229 char * kwnames[] = {
20230 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20231 };
20232
20233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20235 if (!SWIG_IsOK(res1)) {
20236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20237 }
20238 arg1 = reinterpret_cast< wxDC * >(argp1);
20239 ecode2 = SWIG_AsVal_int(obj1, &val2);
20240 if (!SWIG_IsOK(ecode2)) {
20241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20242 }
20243 arg2 = static_cast< int >(val2);
20244 ecode3 = SWIG_AsVal_int(obj2, &val3);
20245 if (!SWIG_IsOK(ecode3)) {
20246 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20247 }
20248 arg3 = static_cast< int >(val3);
20249 ecode4 = SWIG_AsVal_int(obj3, &val4);
20250 if (!SWIG_IsOK(ecode4)) {
20251 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20252 }
20253 arg4 = static_cast< int >(val4);
20254 ecode5 = SWIG_AsVal_int(obj4, &val5);
20255 if (!SWIG_IsOK(ecode5)) {
20256 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20257 }
20258 arg5 = static_cast< int >(val5);
20259 {
20260 PyThreadState* __tstate = wxPyBeginAllowThreads();
20261 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20262 wxPyEndAllowThreads(__tstate);
20263 if (PyErr_Occurred()) SWIG_fail;
20264 }
20265 resultobj = SWIG_Py_Void();
20266 return resultobj;
20267 fail:
20268 return NULL;
20269 }
20270
20271
20272 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20273 PyObject *resultobj = 0;
20274 wxDC *arg1 = (wxDC *) 0 ;
20275 wxPoint *arg2 = 0 ;
20276 wxSize *arg3 = 0 ;
20277 void *argp1 = 0 ;
20278 int res1 = 0 ;
20279 wxPoint temp2 ;
20280 wxSize temp3 ;
20281 PyObject * obj0 = 0 ;
20282 PyObject * obj1 = 0 ;
20283 PyObject * obj2 = 0 ;
20284 char * kwnames[] = {
20285 (char *) "self",(char *) "pt",(char *) "sz", NULL
20286 };
20287
20288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20290 if (!SWIG_IsOK(res1)) {
20291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20292 }
20293 arg1 = reinterpret_cast< wxDC * >(argp1);
20294 {
20295 arg2 = &temp2;
20296 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20297 }
20298 {
20299 arg3 = &temp3;
20300 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20301 }
20302 {
20303 PyThreadState* __tstate = wxPyBeginAllowThreads();
20304 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20305 wxPyEndAllowThreads(__tstate);
20306 if (PyErr_Occurred()) SWIG_fail;
20307 }
20308 resultobj = SWIG_Py_Void();
20309 return resultobj;
20310 fail:
20311 return NULL;
20312 }
20313
20314
20315 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20316 PyObject *resultobj = 0;
20317 wxDC *arg1 = (wxDC *) 0 ;
20318 wxRegion *arg2 = 0 ;
20319 void *argp1 = 0 ;
20320 int res1 = 0 ;
20321 void *argp2 = 0 ;
20322 int res2 = 0 ;
20323 PyObject * obj0 = 0 ;
20324 PyObject * obj1 = 0 ;
20325 char * kwnames[] = {
20326 (char *) "self",(char *) "region", NULL
20327 };
20328
20329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20331 if (!SWIG_IsOK(res1)) {
20332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20333 }
20334 arg1 = reinterpret_cast< wxDC * >(argp1);
20335 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20336 if (!SWIG_IsOK(res2)) {
20337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20338 }
20339 if (!argp2) {
20340 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20341 }
20342 arg2 = reinterpret_cast< wxRegion * >(argp2);
20343 {
20344 PyThreadState* __tstate = wxPyBeginAllowThreads();
20345 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20346 wxPyEndAllowThreads(__tstate);
20347 if (PyErr_Occurred()) SWIG_fail;
20348 }
20349 resultobj = SWIG_Py_Void();
20350 return resultobj;
20351 fail:
20352 return NULL;
20353 }
20354
20355
20356 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20357 PyObject *resultobj = 0;
20358 wxDC *arg1 = (wxDC *) 0 ;
20359 wxRect *arg2 = 0 ;
20360 void *argp1 = 0 ;
20361 int res1 = 0 ;
20362 wxRect temp2 ;
20363 PyObject * obj0 = 0 ;
20364 PyObject * obj1 = 0 ;
20365 char * kwnames[] = {
20366 (char *) "self",(char *) "rect", NULL
20367 };
20368
20369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20371 if (!SWIG_IsOK(res1)) {
20372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20373 }
20374 arg1 = reinterpret_cast< wxDC * >(argp1);
20375 {
20376 arg2 = &temp2;
20377 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20378 }
20379 {
20380 PyThreadState* __tstate = wxPyBeginAllowThreads();
20381 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20382 wxPyEndAllowThreads(__tstate);
20383 if (PyErr_Occurred()) SWIG_fail;
20384 }
20385 resultobj = SWIG_Py_Void();
20386 return resultobj;
20387 fail:
20388 return NULL;
20389 }
20390
20391
20392 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20393 PyObject *resultobj = 0;
20394 wxDC *arg1 = (wxDC *) 0 ;
20395 int arg2 ;
20396 wxPoint *arg3 = (wxPoint *) 0 ;
20397 int arg4 = (int) 0 ;
20398 int arg5 = (int) 0 ;
20399 void *argp1 = 0 ;
20400 int res1 = 0 ;
20401 int val4 ;
20402 int ecode4 = 0 ;
20403 int val5 ;
20404 int ecode5 = 0 ;
20405 PyObject * obj0 = 0 ;
20406 PyObject * obj1 = 0 ;
20407 PyObject * obj2 = 0 ;
20408 PyObject * obj3 = 0 ;
20409 char * kwnames[] = {
20410 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20411 };
20412
20413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20415 if (!SWIG_IsOK(res1)) {
20416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20417 }
20418 arg1 = reinterpret_cast< wxDC * >(argp1);
20419 {
20420 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20421 if (arg3 == NULL) SWIG_fail;
20422 }
20423 if (obj2) {
20424 ecode4 = SWIG_AsVal_int(obj2, &val4);
20425 if (!SWIG_IsOK(ecode4)) {
20426 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20427 }
20428 arg4 = static_cast< int >(val4);
20429 }
20430 if (obj3) {
20431 ecode5 = SWIG_AsVal_int(obj3, &val5);
20432 if (!SWIG_IsOK(ecode5)) {
20433 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20434 }
20435 arg5 = static_cast< int >(val5);
20436 }
20437 {
20438 PyThreadState* __tstate = wxPyBeginAllowThreads();
20439 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20440 wxPyEndAllowThreads(__tstate);
20441 if (PyErr_Occurred()) SWIG_fail;
20442 }
20443 resultobj = SWIG_Py_Void();
20444 {
20445 if (arg3) delete [] arg3;
20446 }
20447 return resultobj;
20448 fail:
20449 {
20450 if (arg3) delete [] arg3;
20451 }
20452 return NULL;
20453 }
20454
20455
20456 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20457 PyObject *resultobj = 0;
20458 wxDC *arg1 = (wxDC *) 0 ;
20459 int arg2 ;
20460 wxPoint *arg3 = (wxPoint *) 0 ;
20461 int arg4 = (int) 0 ;
20462 int arg5 = (int) 0 ;
20463 int arg6 = (int) wxODDEVEN_RULE ;
20464 void *argp1 = 0 ;
20465 int res1 = 0 ;
20466 int val4 ;
20467 int ecode4 = 0 ;
20468 int val5 ;
20469 int ecode5 = 0 ;
20470 int val6 ;
20471 int ecode6 = 0 ;
20472 PyObject * obj0 = 0 ;
20473 PyObject * obj1 = 0 ;
20474 PyObject * obj2 = 0 ;
20475 PyObject * obj3 = 0 ;
20476 PyObject * obj4 = 0 ;
20477 char * kwnames[] = {
20478 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20479 };
20480
20481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20483 if (!SWIG_IsOK(res1)) {
20484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20485 }
20486 arg1 = reinterpret_cast< wxDC * >(argp1);
20487 {
20488 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20489 if (arg3 == NULL) SWIG_fail;
20490 }
20491 if (obj2) {
20492 ecode4 = SWIG_AsVal_int(obj2, &val4);
20493 if (!SWIG_IsOK(ecode4)) {
20494 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20495 }
20496 arg4 = static_cast< int >(val4);
20497 }
20498 if (obj3) {
20499 ecode5 = SWIG_AsVal_int(obj3, &val5);
20500 if (!SWIG_IsOK(ecode5)) {
20501 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20502 }
20503 arg5 = static_cast< int >(val5);
20504 }
20505 if (obj4) {
20506 ecode6 = SWIG_AsVal_int(obj4, &val6);
20507 if (!SWIG_IsOK(ecode6)) {
20508 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20509 }
20510 arg6 = static_cast< int >(val6);
20511 }
20512 {
20513 PyThreadState* __tstate = wxPyBeginAllowThreads();
20514 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20515 wxPyEndAllowThreads(__tstate);
20516 if (PyErr_Occurred()) SWIG_fail;
20517 }
20518 resultobj = SWIG_Py_Void();
20519 {
20520 if (arg3) delete [] arg3;
20521 }
20522 return resultobj;
20523 fail:
20524 {
20525 if (arg3) delete [] arg3;
20526 }
20527 return NULL;
20528 }
20529
20530
20531 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20532 PyObject *resultobj = 0;
20533 wxDC *arg1 = (wxDC *) 0 ;
20534 wxString *arg2 = 0 ;
20535 wxRect *arg3 = 0 ;
20536 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20537 int arg5 = (int) -1 ;
20538 void *argp1 = 0 ;
20539 int res1 = 0 ;
20540 bool temp2 = false ;
20541 wxRect temp3 ;
20542 int val4 ;
20543 int ecode4 = 0 ;
20544 int val5 ;
20545 int ecode5 = 0 ;
20546 PyObject * obj0 = 0 ;
20547 PyObject * obj1 = 0 ;
20548 PyObject * obj2 = 0 ;
20549 PyObject * obj3 = 0 ;
20550 PyObject * obj4 = 0 ;
20551 char * kwnames[] = {
20552 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20553 };
20554
20555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20557 if (!SWIG_IsOK(res1)) {
20558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20559 }
20560 arg1 = reinterpret_cast< wxDC * >(argp1);
20561 {
20562 arg2 = wxString_in_helper(obj1);
20563 if (arg2 == NULL) SWIG_fail;
20564 temp2 = true;
20565 }
20566 {
20567 arg3 = &temp3;
20568 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20569 }
20570 if (obj3) {
20571 ecode4 = SWIG_AsVal_int(obj3, &val4);
20572 if (!SWIG_IsOK(ecode4)) {
20573 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20574 }
20575 arg4 = static_cast< int >(val4);
20576 }
20577 if (obj4) {
20578 ecode5 = SWIG_AsVal_int(obj4, &val5);
20579 if (!SWIG_IsOK(ecode5)) {
20580 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20581 }
20582 arg5 = static_cast< int >(val5);
20583 }
20584 {
20585 PyThreadState* __tstate = wxPyBeginAllowThreads();
20586 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20587 wxPyEndAllowThreads(__tstate);
20588 if (PyErr_Occurred()) SWIG_fail;
20589 }
20590 resultobj = SWIG_Py_Void();
20591 {
20592 if (temp2)
20593 delete arg2;
20594 }
20595 return resultobj;
20596 fail:
20597 {
20598 if (temp2)
20599 delete arg2;
20600 }
20601 return NULL;
20602 }
20603
20604
20605 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20606 PyObject *resultobj = 0;
20607 wxDC *arg1 = (wxDC *) 0 ;
20608 wxString *arg2 = 0 ;
20609 wxBitmap *arg3 = 0 ;
20610 wxRect *arg4 = 0 ;
20611 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20612 int arg6 = (int) -1 ;
20613 wxRect result;
20614 void *argp1 = 0 ;
20615 int res1 = 0 ;
20616 bool temp2 = false ;
20617 void *argp3 = 0 ;
20618 int res3 = 0 ;
20619 wxRect temp4 ;
20620 int val5 ;
20621 int ecode5 = 0 ;
20622 int val6 ;
20623 int ecode6 = 0 ;
20624 PyObject * obj0 = 0 ;
20625 PyObject * obj1 = 0 ;
20626 PyObject * obj2 = 0 ;
20627 PyObject * obj3 = 0 ;
20628 PyObject * obj4 = 0 ;
20629 PyObject * obj5 = 0 ;
20630 char * kwnames[] = {
20631 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20632 };
20633
20634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20636 if (!SWIG_IsOK(res1)) {
20637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20638 }
20639 arg1 = reinterpret_cast< wxDC * >(argp1);
20640 {
20641 arg2 = wxString_in_helper(obj1);
20642 if (arg2 == NULL) SWIG_fail;
20643 temp2 = true;
20644 }
20645 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20646 if (!SWIG_IsOK(res3)) {
20647 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20648 }
20649 if (!argp3) {
20650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20651 }
20652 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20653 {
20654 arg4 = &temp4;
20655 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20656 }
20657 if (obj4) {
20658 ecode5 = SWIG_AsVal_int(obj4, &val5);
20659 if (!SWIG_IsOK(ecode5)) {
20660 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20661 }
20662 arg5 = static_cast< int >(val5);
20663 }
20664 if (obj5) {
20665 ecode6 = SWIG_AsVal_int(obj5, &val6);
20666 if (!SWIG_IsOK(ecode6)) {
20667 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20668 }
20669 arg6 = static_cast< int >(val6);
20670 }
20671 {
20672 PyThreadState* __tstate = wxPyBeginAllowThreads();
20673 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20674 wxPyEndAllowThreads(__tstate);
20675 if (PyErr_Occurred()) SWIG_fail;
20676 }
20677 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20678 {
20679 if (temp2)
20680 delete arg2;
20681 }
20682 return resultobj;
20683 fail:
20684 {
20685 if (temp2)
20686 delete arg2;
20687 }
20688 return NULL;
20689 }
20690
20691
20692 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20693 PyObject *resultobj = 0;
20694 wxDC *arg1 = (wxDC *) 0 ;
20695 int arg2 ;
20696 wxPoint *arg3 = (wxPoint *) 0 ;
20697 void *argp1 = 0 ;
20698 int res1 = 0 ;
20699 PyObject * obj0 = 0 ;
20700 PyObject * obj1 = 0 ;
20701 char * kwnames[] = {
20702 (char *) "self",(char *) "points", NULL
20703 };
20704
20705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20707 if (!SWIG_IsOK(res1)) {
20708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20709 }
20710 arg1 = reinterpret_cast< wxDC * >(argp1);
20711 {
20712 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20713 if (arg3 == NULL) SWIG_fail;
20714 }
20715 {
20716 PyThreadState* __tstate = wxPyBeginAllowThreads();
20717 (arg1)->DrawSpline(arg2,arg3);
20718 wxPyEndAllowThreads(__tstate);
20719 if (PyErr_Occurred()) SWIG_fail;
20720 }
20721 resultobj = SWIG_Py_Void();
20722 {
20723 if (arg3) delete [] arg3;
20724 }
20725 return resultobj;
20726 fail:
20727 {
20728 if (arg3) delete [] arg3;
20729 }
20730 return NULL;
20731 }
20732
20733
20734 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20735 PyObject *resultobj = 0;
20736 wxDC *arg1 = (wxDC *) 0 ;
20737 void *argp1 = 0 ;
20738 int res1 = 0 ;
20739 PyObject *swig_obj[1] ;
20740
20741 if (!args) SWIG_fail;
20742 swig_obj[0] = args;
20743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20744 if (!SWIG_IsOK(res1)) {
20745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20746 }
20747 arg1 = reinterpret_cast< wxDC * >(argp1);
20748 {
20749 PyThreadState* __tstate = wxPyBeginAllowThreads();
20750 (arg1)->Clear();
20751 wxPyEndAllowThreads(__tstate);
20752 if (PyErr_Occurred()) SWIG_fail;
20753 }
20754 resultobj = SWIG_Py_Void();
20755 return resultobj;
20756 fail:
20757 return NULL;
20758 }
20759
20760
20761 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20762 PyObject *resultobj = 0;
20763 wxDC *arg1 = (wxDC *) 0 ;
20764 wxString *arg2 = 0 ;
20765 bool result;
20766 void *argp1 = 0 ;
20767 int res1 = 0 ;
20768 bool temp2 = false ;
20769 PyObject * obj0 = 0 ;
20770 PyObject * obj1 = 0 ;
20771 char * kwnames[] = {
20772 (char *) "self",(char *) "message", NULL
20773 };
20774
20775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20777 if (!SWIG_IsOK(res1)) {
20778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20779 }
20780 arg1 = reinterpret_cast< wxDC * >(argp1);
20781 {
20782 arg2 = wxString_in_helper(obj1);
20783 if (arg2 == NULL) SWIG_fail;
20784 temp2 = true;
20785 }
20786 {
20787 PyThreadState* __tstate = wxPyBeginAllowThreads();
20788 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20789 wxPyEndAllowThreads(__tstate);
20790 if (PyErr_Occurred()) SWIG_fail;
20791 }
20792 {
20793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20794 }
20795 {
20796 if (temp2)
20797 delete arg2;
20798 }
20799 return resultobj;
20800 fail:
20801 {
20802 if (temp2)
20803 delete arg2;
20804 }
20805 return NULL;
20806 }
20807
20808
20809 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20810 PyObject *resultobj = 0;
20811 wxDC *arg1 = (wxDC *) 0 ;
20812 void *argp1 = 0 ;
20813 int res1 = 0 ;
20814 PyObject *swig_obj[1] ;
20815
20816 if (!args) SWIG_fail;
20817 swig_obj[0] = args;
20818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20819 if (!SWIG_IsOK(res1)) {
20820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20821 }
20822 arg1 = reinterpret_cast< wxDC * >(argp1);
20823 {
20824 PyThreadState* __tstate = wxPyBeginAllowThreads();
20825 (arg1)->EndDoc();
20826 wxPyEndAllowThreads(__tstate);
20827 if (PyErr_Occurred()) SWIG_fail;
20828 }
20829 resultobj = SWIG_Py_Void();
20830 return resultobj;
20831 fail:
20832 return NULL;
20833 }
20834
20835
20836 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20837 PyObject *resultobj = 0;
20838 wxDC *arg1 = (wxDC *) 0 ;
20839 void *argp1 = 0 ;
20840 int res1 = 0 ;
20841 PyObject *swig_obj[1] ;
20842
20843 if (!args) SWIG_fail;
20844 swig_obj[0] = args;
20845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20846 if (!SWIG_IsOK(res1)) {
20847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20848 }
20849 arg1 = reinterpret_cast< wxDC * >(argp1);
20850 {
20851 PyThreadState* __tstate = wxPyBeginAllowThreads();
20852 (arg1)->StartPage();
20853 wxPyEndAllowThreads(__tstate);
20854 if (PyErr_Occurred()) SWIG_fail;
20855 }
20856 resultobj = SWIG_Py_Void();
20857 return resultobj;
20858 fail:
20859 return NULL;
20860 }
20861
20862
20863 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20864 PyObject *resultobj = 0;
20865 wxDC *arg1 = (wxDC *) 0 ;
20866 void *argp1 = 0 ;
20867 int res1 = 0 ;
20868 PyObject *swig_obj[1] ;
20869
20870 if (!args) SWIG_fail;
20871 swig_obj[0] = args;
20872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20873 if (!SWIG_IsOK(res1)) {
20874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20875 }
20876 arg1 = reinterpret_cast< wxDC * >(argp1);
20877 {
20878 PyThreadState* __tstate = wxPyBeginAllowThreads();
20879 (arg1)->EndPage();
20880 wxPyEndAllowThreads(__tstate);
20881 if (PyErr_Occurred()) SWIG_fail;
20882 }
20883 resultobj = SWIG_Py_Void();
20884 return resultobj;
20885 fail:
20886 return NULL;
20887 }
20888
20889
20890 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20891 PyObject *resultobj = 0;
20892 wxDC *arg1 = (wxDC *) 0 ;
20893 wxFont *arg2 = 0 ;
20894 void *argp1 = 0 ;
20895 int res1 = 0 ;
20896 void *argp2 = 0 ;
20897 int res2 = 0 ;
20898 PyObject * obj0 = 0 ;
20899 PyObject * obj1 = 0 ;
20900 char * kwnames[] = {
20901 (char *) "self",(char *) "font", NULL
20902 };
20903
20904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20906 if (!SWIG_IsOK(res1)) {
20907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20908 }
20909 arg1 = reinterpret_cast< wxDC * >(argp1);
20910 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20911 if (!SWIG_IsOK(res2)) {
20912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20913 }
20914 if (!argp2) {
20915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20916 }
20917 arg2 = reinterpret_cast< wxFont * >(argp2);
20918 {
20919 PyThreadState* __tstate = wxPyBeginAllowThreads();
20920 (arg1)->SetFont((wxFont const &)*arg2);
20921 wxPyEndAllowThreads(__tstate);
20922 if (PyErr_Occurred()) SWIG_fail;
20923 }
20924 resultobj = SWIG_Py_Void();
20925 return resultobj;
20926 fail:
20927 return NULL;
20928 }
20929
20930
20931 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20932 PyObject *resultobj = 0;
20933 wxDC *arg1 = (wxDC *) 0 ;
20934 wxPen *arg2 = 0 ;
20935 void *argp1 = 0 ;
20936 int res1 = 0 ;
20937 void *argp2 = 0 ;
20938 int res2 = 0 ;
20939 PyObject * obj0 = 0 ;
20940 PyObject * obj1 = 0 ;
20941 char * kwnames[] = {
20942 (char *) "self",(char *) "pen", NULL
20943 };
20944
20945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20947 if (!SWIG_IsOK(res1)) {
20948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20949 }
20950 arg1 = reinterpret_cast< wxDC * >(argp1);
20951 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20952 if (!SWIG_IsOK(res2)) {
20953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20954 }
20955 if (!argp2) {
20956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20957 }
20958 arg2 = reinterpret_cast< wxPen * >(argp2);
20959 {
20960 PyThreadState* __tstate = wxPyBeginAllowThreads();
20961 (arg1)->SetPen((wxPen const &)*arg2);
20962 wxPyEndAllowThreads(__tstate);
20963 if (PyErr_Occurred()) SWIG_fail;
20964 }
20965 resultobj = SWIG_Py_Void();
20966 return resultobj;
20967 fail:
20968 return NULL;
20969 }
20970
20971
20972 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20973 PyObject *resultobj = 0;
20974 wxDC *arg1 = (wxDC *) 0 ;
20975 wxBrush *arg2 = 0 ;
20976 void *argp1 = 0 ;
20977 int res1 = 0 ;
20978 void *argp2 = 0 ;
20979 int res2 = 0 ;
20980 PyObject * obj0 = 0 ;
20981 PyObject * obj1 = 0 ;
20982 char * kwnames[] = {
20983 (char *) "self",(char *) "brush", NULL
20984 };
20985
20986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20988 if (!SWIG_IsOK(res1)) {
20989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20990 }
20991 arg1 = reinterpret_cast< wxDC * >(argp1);
20992 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20993 if (!SWIG_IsOK(res2)) {
20994 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20995 }
20996 if (!argp2) {
20997 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20998 }
20999 arg2 = reinterpret_cast< wxBrush * >(argp2);
21000 {
21001 PyThreadState* __tstate = wxPyBeginAllowThreads();
21002 (arg1)->SetBrush((wxBrush const &)*arg2);
21003 wxPyEndAllowThreads(__tstate);
21004 if (PyErr_Occurred()) SWIG_fail;
21005 }
21006 resultobj = SWIG_Py_Void();
21007 return resultobj;
21008 fail:
21009 return NULL;
21010 }
21011
21012
21013 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21014 PyObject *resultobj = 0;
21015 wxDC *arg1 = (wxDC *) 0 ;
21016 wxBrush *arg2 = 0 ;
21017 void *argp1 = 0 ;
21018 int res1 = 0 ;
21019 void *argp2 = 0 ;
21020 int res2 = 0 ;
21021 PyObject * obj0 = 0 ;
21022 PyObject * obj1 = 0 ;
21023 char * kwnames[] = {
21024 (char *) "self",(char *) "brush", NULL
21025 };
21026
21027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21029 if (!SWIG_IsOK(res1)) {
21030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21031 }
21032 arg1 = reinterpret_cast< wxDC * >(argp1);
21033 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21034 if (!SWIG_IsOK(res2)) {
21035 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21036 }
21037 if (!argp2) {
21038 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21039 }
21040 arg2 = reinterpret_cast< wxBrush * >(argp2);
21041 {
21042 PyThreadState* __tstate = wxPyBeginAllowThreads();
21043 (arg1)->SetBackground((wxBrush const &)*arg2);
21044 wxPyEndAllowThreads(__tstate);
21045 if (PyErr_Occurred()) SWIG_fail;
21046 }
21047 resultobj = SWIG_Py_Void();
21048 return resultobj;
21049 fail:
21050 return NULL;
21051 }
21052
21053
21054 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21055 PyObject *resultobj = 0;
21056 wxDC *arg1 = (wxDC *) 0 ;
21057 int arg2 ;
21058 void *argp1 = 0 ;
21059 int res1 = 0 ;
21060 int val2 ;
21061 int ecode2 = 0 ;
21062 PyObject * obj0 = 0 ;
21063 PyObject * obj1 = 0 ;
21064 char * kwnames[] = {
21065 (char *) "self",(char *) "mode", NULL
21066 };
21067
21068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21070 if (!SWIG_IsOK(res1)) {
21071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21072 }
21073 arg1 = reinterpret_cast< wxDC * >(argp1);
21074 ecode2 = SWIG_AsVal_int(obj1, &val2);
21075 if (!SWIG_IsOK(ecode2)) {
21076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21077 }
21078 arg2 = static_cast< int >(val2);
21079 {
21080 PyThreadState* __tstate = wxPyBeginAllowThreads();
21081 (arg1)->SetBackgroundMode(arg2);
21082 wxPyEndAllowThreads(__tstate);
21083 if (PyErr_Occurred()) SWIG_fail;
21084 }
21085 resultobj = SWIG_Py_Void();
21086 return resultobj;
21087 fail:
21088 return NULL;
21089 }
21090
21091
21092 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21093 PyObject *resultobj = 0;
21094 wxDC *arg1 = (wxDC *) 0 ;
21095 wxPalette *arg2 = 0 ;
21096 void *argp1 = 0 ;
21097 int res1 = 0 ;
21098 void *argp2 = 0 ;
21099 int res2 = 0 ;
21100 PyObject * obj0 = 0 ;
21101 PyObject * obj1 = 0 ;
21102 char * kwnames[] = {
21103 (char *) "self",(char *) "palette", NULL
21104 };
21105
21106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21108 if (!SWIG_IsOK(res1)) {
21109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21110 }
21111 arg1 = reinterpret_cast< wxDC * >(argp1);
21112 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21113 if (!SWIG_IsOK(res2)) {
21114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21115 }
21116 if (!argp2) {
21117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21118 }
21119 arg2 = reinterpret_cast< wxPalette * >(argp2);
21120 {
21121 PyThreadState* __tstate = wxPyBeginAllowThreads();
21122 (arg1)->SetPalette((wxPalette const &)*arg2);
21123 wxPyEndAllowThreads(__tstate);
21124 if (PyErr_Occurred()) SWIG_fail;
21125 }
21126 resultobj = SWIG_Py_Void();
21127 return resultobj;
21128 fail:
21129 return NULL;
21130 }
21131
21132
21133 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21134 PyObject *resultobj = 0;
21135 wxDC *arg1 = (wxDC *) 0 ;
21136 void *argp1 = 0 ;
21137 int res1 = 0 ;
21138 PyObject *swig_obj[1] ;
21139
21140 if (!args) SWIG_fail;
21141 swig_obj[0] = args;
21142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21143 if (!SWIG_IsOK(res1)) {
21144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21145 }
21146 arg1 = reinterpret_cast< wxDC * >(argp1);
21147 {
21148 PyThreadState* __tstate = wxPyBeginAllowThreads();
21149 (arg1)->DestroyClippingRegion();
21150 wxPyEndAllowThreads(__tstate);
21151 if (PyErr_Occurred()) SWIG_fail;
21152 }
21153 resultobj = SWIG_Py_Void();
21154 return resultobj;
21155 fail:
21156 return NULL;
21157 }
21158
21159
21160 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21161 PyObject *resultobj = 0;
21162 wxDC *arg1 = (wxDC *) 0 ;
21163 int *arg2 = (int *) 0 ;
21164 int *arg3 = (int *) 0 ;
21165 int *arg4 = (int *) 0 ;
21166 int *arg5 = (int *) 0 ;
21167 void *argp1 = 0 ;
21168 int res1 = 0 ;
21169 int temp2 ;
21170 int res2 = SWIG_TMPOBJ ;
21171 int temp3 ;
21172 int res3 = SWIG_TMPOBJ ;
21173 int temp4 ;
21174 int res4 = SWIG_TMPOBJ ;
21175 int temp5 ;
21176 int res5 = SWIG_TMPOBJ ;
21177 PyObject *swig_obj[1] ;
21178
21179 arg2 = &temp2;
21180 arg3 = &temp3;
21181 arg4 = &temp4;
21182 arg5 = &temp5;
21183 if (!args) SWIG_fail;
21184 swig_obj[0] = args;
21185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21186 if (!SWIG_IsOK(res1)) {
21187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21188 }
21189 arg1 = reinterpret_cast< wxDC * >(argp1);
21190 {
21191 PyThreadState* __tstate = wxPyBeginAllowThreads();
21192 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21193 wxPyEndAllowThreads(__tstate);
21194 if (PyErr_Occurred()) SWIG_fail;
21195 }
21196 resultobj = SWIG_Py_Void();
21197 if (SWIG_IsTmpObj(res2)) {
21198 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21199 } else {
21200 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21201 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21202 }
21203 if (SWIG_IsTmpObj(res3)) {
21204 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21205 } else {
21206 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21207 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21208 }
21209 if (SWIG_IsTmpObj(res4)) {
21210 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21211 } else {
21212 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21213 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21214 }
21215 if (SWIG_IsTmpObj(res5)) {
21216 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21217 } else {
21218 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21219 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21220 }
21221 return resultobj;
21222 fail:
21223 return NULL;
21224 }
21225
21226
21227 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21228 PyObject *resultobj = 0;
21229 wxDC *arg1 = (wxDC *) 0 ;
21230 wxRect result;
21231 void *argp1 = 0 ;
21232 int res1 = 0 ;
21233 PyObject *swig_obj[1] ;
21234
21235 if (!args) SWIG_fail;
21236 swig_obj[0] = args;
21237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21238 if (!SWIG_IsOK(res1)) {
21239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21240 }
21241 arg1 = reinterpret_cast< wxDC * >(argp1);
21242 {
21243 PyThreadState* __tstate = wxPyBeginAllowThreads();
21244 result = wxDC_GetClippingRect(arg1);
21245 wxPyEndAllowThreads(__tstate);
21246 if (PyErr_Occurred()) SWIG_fail;
21247 }
21248 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21249 return resultobj;
21250 fail:
21251 return NULL;
21252 }
21253
21254
21255 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21256 PyObject *resultobj = 0;
21257 wxDC *arg1 = (wxDC *) 0 ;
21258 int result;
21259 void *argp1 = 0 ;
21260 int res1 = 0 ;
21261 PyObject *swig_obj[1] ;
21262
21263 if (!args) SWIG_fail;
21264 swig_obj[0] = args;
21265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21266 if (!SWIG_IsOK(res1)) {
21267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21268 }
21269 arg1 = reinterpret_cast< wxDC * >(argp1);
21270 {
21271 PyThreadState* __tstate = wxPyBeginAllowThreads();
21272 result = (int)((wxDC const *)arg1)->GetCharHeight();
21273 wxPyEndAllowThreads(__tstate);
21274 if (PyErr_Occurred()) SWIG_fail;
21275 }
21276 resultobj = SWIG_From_int(static_cast< int >(result));
21277 return resultobj;
21278 fail:
21279 return NULL;
21280 }
21281
21282
21283 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21284 PyObject *resultobj = 0;
21285 wxDC *arg1 = (wxDC *) 0 ;
21286 int result;
21287 void *argp1 = 0 ;
21288 int res1 = 0 ;
21289 PyObject *swig_obj[1] ;
21290
21291 if (!args) SWIG_fail;
21292 swig_obj[0] = args;
21293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21294 if (!SWIG_IsOK(res1)) {
21295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21296 }
21297 arg1 = reinterpret_cast< wxDC * >(argp1);
21298 {
21299 PyThreadState* __tstate = wxPyBeginAllowThreads();
21300 result = (int)((wxDC const *)arg1)->GetCharWidth();
21301 wxPyEndAllowThreads(__tstate);
21302 if (PyErr_Occurred()) SWIG_fail;
21303 }
21304 resultobj = SWIG_From_int(static_cast< int >(result));
21305 return resultobj;
21306 fail:
21307 return NULL;
21308 }
21309
21310
21311 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21312 PyObject *resultobj = 0;
21313 wxDC *arg1 = (wxDC *) 0 ;
21314 wxString *arg2 = 0 ;
21315 int *arg3 = (int *) 0 ;
21316 int *arg4 = (int *) 0 ;
21317 void *argp1 = 0 ;
21318 int res1 = 0 ;
21319 bool temp2 = false ;
21320 int temp3 ;
21321 int res3 = SWIG_TMPOBJ ;
21322 int temp4 ;
21323 int res4 = SWIG_TMPOBJ ;
21324 PyObject * obj0 = 0 ;
21325 PyObject * obj1 = 0 ;
21326 char * kwnames[] = {
21327 (char *) "self",(char *) "string", NULL
21328 };
21329
21330 arg3 = &temp3;
21331 arg4 = &temp4;
21332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21334 if (!SWIG_IsOK(res1)) {
21335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21336 }
21337 arg1 = reinterpret_cast< wxDC * >(argp1);
21338 {
21339 arg2 = wxString_in_helper(obj1);
21340 if (arg2 == NULL) SWIG_fail;
21341 temp2 = true;
21342 }
21343 {
21344 PyThreadState* __tstate = wxPyBeginAllowThreads();
21345 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21346 wxPyEndAllowThreads(__tstate);
21347 if (PyErr_Occurred()) SWIG_fail;
21348 }
21349 resultobj = SWIG_Py_Void();
21350 if (SWIG_IsTmpObj(res3)) {
21351 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21352 } else {
21353 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21354 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21355 }
21356 if (SWIG_IsTmpObj(res4)) {
21357 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21358 } else {
21359 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21360 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21361 }
21362 {
21363 if (temp2)
21364 delete arg2;
21365 }
21366 return resultobj;
21367 fail:
21368 {
21369 if (temp2)
21370 delete arg2;
21371 }
21372 return NULL;
21373 }
21374
21375
21376 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21377 PyObject *resultobj = 0;
21378 wxDC *arg1 = (wxDC *) 0 ;
21379 wxString *arg2 = 0 ;
21380 int *arg3 = (int *) 0 ;
21381 int *arg4 = (int *) 0 ;
21382 int *arg5 = (int *) 0 ;
21383 int *arg6 = (int *) 0 ;
21384 wxFont *arg7 = (wxFont *) NULL ;
21385 void *argp1 = 0 ;
21386 int res1 = 0 ;
21387 bool temp2 = false ;
21388 int temp3 ;
21389 int res3 = SWIG_TMPOBJ ;
21390 int temp4 ;
21391 int res4 = SWIG_TMPOBJ ;
21392 int temp5 ;
21393 int res5 = SWIG_TMPOBJ ;
21394 int temp6 ;
21395 int res6 = SWIG_TMPOBJ ;
21396 void *argp7 = 0 ;
21397 int res7 = 0 ;
21398 PyObject * obj0 = 0 ;
21399 PyObject * obj1 = 0 ;
21400 PyObject * obj2 = 0 ;
21401 char * kwnames[] = {
21402 (char *) "self",(char *) "string",(char *) "font", NULL
21403 };
21404
21405 arg3 = &temp3;
21406 arg4 = &temp4;
21407 arg5 = &temp5;
21408 arg6 = &temp6;
21409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21411 if (!SWIG_IsOK(res1)) {
21412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21413 }
21414 arg1 = reinterpret_cast< wxDC * >(argp1);
21415 {
21416 arg2 = wxString_in_helper(obj1);
21417 if (arg2 == NULL) SWIG_fail;
21418 temp2 = true;
21419 }
21420 if (obj2) {
21421 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21422 if (!SWIG_IsOK(res7)) {
21423 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21424 }
21425 arg7 = reinterpret_cast< wxFont * >(argp7);
21426 }
21427 {
21428 PyThreadState* __tstate = wxPyBeginAllowThreads();
21429 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21430 wxPyEndAllowThreads(__tstate);
21431 if (PyErr_Occurred()) SWIG_fail;
21432 }
21433 resultobj = SWIG_Py_Void();
21434 if (SWIG_IsTmpObj(res3)) {
21435 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21436 } else {
21437 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21438 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21439 }
21440 if (SWIG_IsTmpObj(res4)) {
21441 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21442 } else {
21443 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21444 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21445 }
21446 if (SWIG_IsTmpObj(res5)) {
21447 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21448 } else {
21449 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21450 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21451 }
21452 if (SWIG_IsTmpObj(res6)) {
21453 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21454 } else {
21455 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21456 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21457 }
21458 {
21459 if (temp2)
21460 delete arg2;
21461 }
21462 return resultobj;
21463 fail:
21464 {
21465 if (temp2)
21466 delete arg2;
21467 }
21468 return NULL;
21469 }
21470
21471
21472 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21473 PyObject *resultobj = 0;
21474 wxDC *arg1 = (wxDC *) 0 ;
21475 wxString *arg2 = 0 ;
21476 int *arg3 = (int *) 0 ;
21477 int *arg4 = (int *) 0 ;
21478 int *arg5 = (int *) 0 ;
21479 wxFont *arg6 = (wxFont *) NULL ;
21480 void *argp1 = 0 ;
21481 int res1 = 0 ;
21482 bool temp2 = false ;
21483 int temp3 ;
21484 int res3 = SWIG_TMPOBJ ;
21485 int temp4 ;
21486 int res4 = SWIG_TMPOBJ ;
21487 int temp5 ;
21488 int res5 = SWIG_TMPOBJ ;
21489 void *argp6 = 0 ;
21490 int res6 = 0 ;
21491 PyObject * obj0 = 0 ;
21492 PyObject * obj1 = 0 ;
21493 PyObject * obj2 = 0 ;
21494 char * kwnames[] = {
21495 (char *) "self",(char *) "text",(char *) "font", NULL
21496 };
21497
21498 arg3 = &temp3;
21499 arg4 = &temp4;
21500 arg5 = &temp5;
21501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21503 if (!SWIG_IsOK(res1)) {
21504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21505 }
21506 arg1 = reinterpret_cast< wxDC * >(argp1);
21507 {
21508 arg2 = wxString_in_helper(obj1);
21509 if (arg2 == NULL) SWIG_fail;
21510 temp2 = true;
21511 }
21512 if (obj2) {
21513 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21514 if (!SWIG_IsOK(res6)) {
21515 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21516 }
21517 arg6 = reinterpret_cast< wxFont * >(argp6);
21518 }
21519 {
21520 PyThreadState* __tstate = wxPyBeginAllowThreads();
21521 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21522 wxPyEndAllowThreads(__tstate);
21523 if (PyErr_Occurred()) SWIG_fail;
21524 }
21525 resultobj = SWIG_Py_Void();
21526 if (SWIG_IsTmpObj(res3)) {
21527 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21528 } else {
21529 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21530 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21531 }
21532 if (SWIG_IsTmpObj(res4)) {
21533 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21534 } else {
21535 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21536 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21537 }
21538 if (SWIG_IsTmpObj(res5)) {
21539 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21540 } else {
21541 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21542 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21543 }
21544 {
21545 if (temp2)
21546 delete arg2;
21547 }
21548 return resultobj;
21549 fail:
21550 {
21551 if (temp2)
21552 delete arg2;
21553 }
21554 return NULL;
21555 }
21556
21557
21558 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21559 PyObject *resultobj = 0;
21560 wxDC *arg1 = (wxDC *) 0 ;
21561 wxString *arg2 = 0 ;
21562 wxArrayInt result;
21563 void *argp1 = 0 ;
21564 int res1 = 0 ;
21565 bool temp2 = false ;
21566 PyObject * obj0 = 0 ;
21567 PyObject * obj1 = 0 ;
21568 char * kwnames[] = {
21569 (char *) "self",(char *) "text", NULL
21570 };
21571
21572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21574 if (!SWIG_IsOK(res1)) {
21575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21576 }
21577 arg1 = reinterpret_cast< wxDC * >(argp1);
21578 {
21579 arg2 = wxString_in_helper(obj1);
21580 if (arg2 == NULL) SWIG_fail;
21581 temp2 = true;
21582 }
21583 {
21584 PyThreadState* __tstate = wxPyBeginAllowThreads();
21585 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21586 wxPyEndAllowThreads(__tstate);
21587 if (PyErr_Occurred()) SWIG_fail;
21588 }
21589 {
21590 resultobj = wxArrayInt2PyList_helper(result);
21591 }
21592 {
21593 if (temp2)
21594 delete arg2;
21595 }
21596 return resultobj;
21597 fail:
21598 {
21599 if (temp2)
21600 delete arg2;
21601 }
21602 return NULL;
21603 }
21604
21605
21606 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21607 PyObject *resultobj = 0;
21608 wxDC *arg1 = (wxDC *) 0 ;
21609 wxSize result;
21610 void *argp1 = 0 ;
21611 int res1 = 0 ;
21612 PyObject *swig_obj[1] ;
21613
21614 if (!args) SWIG_fail;
21615 swig_obj[0] = args;
21616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21617 if (!SWIG_IsOK(res1)) {
21618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21619 }
21620 arg1 = reinterpret_cast< wxDC * >(argp1);
21621 {
21622 PyThreadState* __tstate = wxPyBeginAllowThreads();
21623 result = (arg1)->GetSize();
21624 wxPyEndAllowThreads(__tstate);
21625 if (PyErr_Occurred()) SWIG_fail;
21626 }
21627 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21628 return resultobj;
21629 fail:
21630 return NULL;
21631 }
21632
21633
21634 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21635 PyObject *resultobj = 0;
21636 wxDC *arg1 = (wxDC *) 0 ;
21637 int *arg2 = (int *) 0 ;
21638 int *arg3 = (int *) 0 ;
21639 void *argp1 = 0 ;
21640 int res1 = 0 ;
21641 int temp2 ;
21642 int res2 = SWIG_TMPOBJ ;
21643 int temp3 ;
21644 int res3 = SWIG_TMPOBJ ;
21645 PyObject *swig_obj[1] ;
21646
21647 arg2 = &temp2;
21648 arg3 = &temp3;
21649 if (!args) SWIG_fail;
21650 swig_obj[0] = args;
21651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21652 if (!SWIG_IsOK(res1)) {
21653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21654 }
21655 arg1 = reinterpret_cast< wxDC * >(argp1);
21656 {
21657 PyThreadState* __tstate = wxPyBeginAllowThreads();
21658 (arg1)->GetSize(arg2,arg3);
21659 wxPyEndAllowThreads(__tstate);
21660 if (PyErr_Occurred()) SWIG_fail;
21661 }
21662 resultobj = SWIG_Py_Void();
21663 if (SWIG_IsTmpObj(res2)) {
21664 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21665 } else {
21666 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21667 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21668 }
21669 if (SWIG_IsTmpObj(res3)) {
21670 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21671 } else {
21672 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21673 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21674 }
21675 return resultobj;
21676 fail:
21677 return NULL;
21678 }
21679
21680
21681 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21682 PyObject *resultobj = 0;
21683 wxDC *arg1 = (wxDC *) 0 ;
21684 wxSize result;
21685 void *argp1 = 0 ;
21686 int res1 = 0 ;
21687 PyObject *swig_obj[1] ;
21688
21689 if (!args) SWIG_fail;
21690 swig_obj[0] = args;
21691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21692 if (!SWIG_IsOK(res1)) {
21693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21694 }
21695 arg1 = reinterpret_cast< wxDC * >(argp1);
21696 {
21697 PyThreadState* __tstate = wxPyBeginAllowThreads();
21698 result = ((wxDC const *)arg1)->GetSizeMM();
21699 wxPyEndAllowThreads(__tstate);
21700 if (PyErr_Occurred()) SWIG_fail;
21701 }
21702 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21703 return resultobj;
21704 fail:
21705 return NULL;
21706 }
21707
21708
21709 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21710 PyObject *resultobj = 0;
21711 wxDC *arg1 = (wxDC *) 0 ;
21712 int *arg2 = (int *) 0 ;
21713 int *arg3 = (int *) 0 ;
21714 void *argp1 = 0 ;
21715 int res1 = 0 ;
21716 int temp2 ;
21717 int res2 = SWIG_TMPOBJ ;
21718 int temp3 ;
21719 int res3 = SWIG_TMPOBJ ;
21720 PyObject *swig_obj[1] ;
21721
21722 arg2 = &temp2;
21723 arg3 = &temp3;
21724 if (!args) SWIG_fail;
21725 swig_obj[0] = args;
21726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21727 if (!SWIG_IsOK(res1)) {
21728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21729 }
21730 arg1 = reinterpret_cast< wxDC * >(argp1);
21731 {
21732 PyThreadState* __tstate = wxPyBeginAllowThreads();
21733 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21734 wxPyEndAllowThreads(__tstate);
21735 if (PyErr_Occurred()) SWIG_fail;
21736 }
21737 resultobj = SWIG_Py_Void();
21738 if (SWIG_IsTmpObj(res2)) {
21739 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21740 } else {
21741 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21742 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21743 }
21744 if (SWIG_IsTmpObj(res3)) {
21745 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21746 } else {
21747 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21748 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21749 }
21750 return resultobj;
21751 fail:
21752 return NULL;
21753 }
21754
21755
21756 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21757 PyObject *resultobj = 0;
21758 wxDC *arg1 = (wxDC *) 0 ;
21759 int arg2 ;
21760 int result;
21761 void *argp1 = 0 ;
21762 int res1 = 0 ;
21763 int val2 ;
21764 int ecode2 = 0 ;
21765 PyObject * obj0 = 0 ;
21766 PyObject * obj1 = 0 ;
21767 char * kwnames[] = {
21768 (char *) "self",(char *) "x", NULL
21769 };
21770
21771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21773 if (!SWIG_IsOK(res1)) {
21774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21775 }
21776 arg1 = reinterpret_cast< wxDC * >(argp1);
21777 ecode2 = SWIG_AsVal_int(obj1, &val2);
21778 if (!SWIG_IsOK(ecode2)) {
21779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21780 }
21781 arg2 = static_cast< int >(val2);
21782 {
21783 PyThreadState* __tstate = wxPyBeginAllowThreads();
21784 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21785 wxPyEndAllowThreads(__tstate);
21786 if (PyErr_Occurred()) SWIG_fail;
21787 }
21788 resultobj = SWIG_From_int(static_cast< int >(result));
21789 return resultobj;
21790 fail:
21791 return NULL;
21792 }
21793
21794
21795 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21796 PyObject *resultobj = 0;
21797 wxDC *arg1 = (wxDC *) 0 ;
21798 int arg2 ;
21799 int result;
21800 void *argp1 = 0 ;
21801 int res1 = 0 ;
21802 int val2 ;
21803 int ecode2 = 0 ;
21804 PyObject * obj0 = 0 ;
21805 PyObject * obj1 = 0 ;
21806 char * kwnames[] = {
21807 (char *) "self",(char *) "y", NULL
21808 };
21809
21810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21812 if (!SWIG_IsOK(res1)) {
21813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21814 }
21815 arg1 = reinterpret_cast< wxDC * >(argp1);
21816 ecode2 = SWIG_AsVal_int(obj1, &val2);
21817 if (!SWIG_IsOK(ecode2)) {
21818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21819 }
21820 arg2 = static_cast< int >(val2);
21821 {
21822 PyThreadState* __tstate = wxPyBeginAllowThreads();
21823 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21824 wxPyEndAllowThreads(__tstate);
21825 if (PyErr_Occurred()) SWIG_fail;
21826 }
21827 resultobj = SWIG_From_int(static_cast< int >(result));
21828 return resultobj;
21829 fail:
21830 return NULL;
21831 }
21832
21833
21834 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21835 PyObject *resultobj = 0;
21836 wxDC *arg1 = (wxDC *) 0 ;
21837 int arg2 ;
21838 int result;
21839 void *argp1 = 0 ;
21840 int res1 = 0 ;
21841 int val2 ;
21842 int ecode2 = 0 ;
21843 PyObject * obj0 = 0 ;
21844 PyObject * obj1 = 0 ;
21845 char * kwnames[] = {
21846 (char *) "self",(char *) "x", NULL
21847 };
21848
21849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21851 if (!SWIG_IsOK(res1)) {
21852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21853 }
21854 arg1 = reinterpret_cast< wxDC * >(argp1);
21855 ecode2 = SWIG_AsVal_int(obj1, &val2);
21856 if (!SWIG_IsOK(ecode2)) {
21857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21858 }
21859 arg2 = static_cast< int >(val2);
21860 {
21861 PyThreadState* __tstate = wxPyBeginAllowThreads();
21862 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21863 wxPyEndAllowThreads(__tstate);
21864 if (PyErr_Occurred()) SWIG_fail;
21865 }
21866 resultobj = SWIG_From_int(static_cast< int >(result));
21867 return resultobj;
21868 fail:
21869 return NULL;
21870 }
21871
21872
21873 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21874 PyObject *resultobj = 0;
21875 wxDC *arg1 = (wxDC *) 0 ;
21876 int arg2 ;
21877 int result;
21878 void *argp1 = 0 ;
21879 int res1 = 0 ;
21880 int val2 ;
21881 int ecode2 = 0 ;
21882 PyObject * obj0 = 0 ;
21883 PyObject * obj1 = 0 ;
21884 char * kwnames[] = {
21885 (char *) "self",(char *) "y", NULL
21886 };
21887
21888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21890 if (!SWIG_IsOK(res1)) {
21891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21892 }
21893 arg1 = reinterpret_cast< wxDC * >(argp1);
21894 ecode2 = SWIG_AsVal_int(obj1, &val2);
21895 if (!SWIG_IsOK(ecode2)) {
21896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21897 }
21898 arg2 = static_cast< int >(val2);
21899 {
21900 PyThreadState* __tstate = wxPyBeginAllowThreads();
21901 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21902 wxPyEndAllowThreads(__tstate);
21903 if (PyErr_Occurred()) SWIG_fail;
21904 }
21905 resultobj = SWIG_From_int(static_cast< int >(result));
21906 return resultobj;
21907 fail:
21908 return NULL;
21909 }
21910
21911
21912 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21913 PyObject *resultobj = 0;
21914 wxDC *arg1 = (wxDC *) 0 ;
21915 int arg2 ;
21916 int result;
21917 void *argp1 = 0 ;
21918 int res1 = 0 ;
21919 int val2 ;
21920 int ecode2 = 0 ;
21921 PyObject * obj0 = 0 ;
21922 PyObject * obj1 = 0 ;
21923 char * kwnames[] = {
21924 (char *) "self",(char *) "x", NULL
21925 };
21926
21927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21929 if (!SWIG_IsOK(res1)) {
21930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21931 }
21932 arg1 = reinterpret_cast< wxDC * >(argp1);
21933 ecode2 = SWIG_AsVal_int(obj1, &val2);
21934 if (!SWIG_IsOK(ecode2)) {
21935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21936 }
21937 arg2 = static_cast< int >(val2);
21938 {
21939 PyThreadState* __tstate = wxPyBeginAllowThreads();
21940 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21941 wxPyEndAllowThreads(__tstate);
21942 if (PyErr_Occurred()) SWIG_fail;
21943 }
21944 resultobj = SWIG_From_int(static_cast< int >(result));
21945 return resultobj;
21946 fail:
21947 return NULL;
21948 }
21949
21950
21951 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21952 PyObject *resultobj = 0;
21953 wxDC *arg1 = (wxDC *) 0 ;
21954 int arg2 ;
21955 int result;
21956 void *argp1 = 0 ;
21957 int res1 = 0 ;
21958 int val2 ;
21959 int ecode2 = 0 ;
21960 PyObject * obj0 = 0 ;
21961 PyObject * obj1 = 0 ;
21962 char * kwnames[] = {
21963 (char *) "self",(char *) "y", NULL
21964 };
21965
21966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21968 if (!SWIG_IsOK(res1)) {
21969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21970 }
21971 arg1 = reinterpret_cast< wxDC * >(argp1);
21972 ecode2 = SWIG_AsVal_int(obj1, &val2);
21973 if (!SWIG_IsOK(ecode2)) {
21974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21975 }
21976 arg2 = static_cast< int >(val2);
21977 {
21978 PyThreadState* __tstate = wxPyBeginAllowThreads();
21979 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21980 wxPyEndAllowThreads(__tstate);
21981 if (PyErr_Occurred()) SWIG_fail;
21982 }
21983 resultobj = SWIG_From_int(static_cast< int >(result));
21984 return resultobj;
21985 fail:
21986 return NULL;
21987 }
21988
21989
21990 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21991 PyObject *resultobj = 0;
21992 wxDC *arg1 = (wxDC *) 0 ;
21993 int arg2 ;
21994 int result;
21995 void *argp1 = 0 ;
21996 int res1 = 0 ;
21997 int val2 ;
21998 int ecode2 = 0 ;
21999 PyObject * obj0 = 0 ;
22000 PyObject * obj1 = 0 ;
22001 char * kwnames[] = {
22002 (char *) "self",(char *) "x", NULL
22003 };
22004
22005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22007 if (!SWIG_IsOK(res1)) {
22008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22009 }
22010 arg1 = reinterpret_cast< wxDC * >(argp1);
22011 ecode2 = SWIG_AsVal_int(obj1, &val2);
22012 if (!SWIG_IsOK(ecode2)) {
22013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22014 }
22015 arg2 = static_cast< int >(val2);
22016 {
22017 PyThreadState* __tstate = wxPyBeginAllowThreads();
22018 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22019 wxPyEndAllowThreads(__tstate);
22020 if (PyErr_Occurred()) SWIG_fail;
22021 }
22022 resultobj = SWIG_From_int(static_cast< int >(result));
22023 return resultobj;
22024 fail:
22025 return NULL;
22026 }
22027
22028
22029 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22030 PyObject *resultobj = 0;
22031 wxDC *arg1 = (wxDC *) 0 ;
22032 int arg2 ;
22033 int result;
22034 void *argp1 = 0 ;
22035 int res1 = 0 ;
22036 int val2 ;
22037 int ecode2 = 0 ;
22038 PyObject * obj0 = 0 ;
22039 PyObject * obj1 = 0 ;
22040 char * kwnames[] = {
22041 (char *) "self",(char *) "y", NULL
22042 };
22043
22044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22046 if (!SWIG_IsOK(res1)) {
22047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22048 }
22049 arg1 = reinterpret_cast< wxDC * >(argp1);
22050 ecode2 = SWIG_AsVal_int(obj1, &val2);
22051 if (!SWIG_IsOK(ecode2)) {
22052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22053 }
22054 arg2 = static_cast< int >(val2);
22055 {
22056 PyThreadState* __tstate = wxPyBeginAllowThreads();
22057 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22058 wxPyEndAllowThreads(__tstate);
22059 if (PyErr_Occurred()) SWIG_fail;
22060 }
22061 resultobj = SWIG_From_int(static_cast< int >(result));
22062 return resultobj;
22063 fail:
22064 return NULL;
22065 }
22066
22067
22068 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22069 PyObject *resultobj = 0;
22070 wxDC *arg1 = (wxDC *) 0 ;
22071 bool result;
22072 void *argp1 = 0 ;
22073 int res1 = 0 ;
22074 PyObject *swig_obj[1] ;
22075
22076 if (!args) SWIG_fail;
22077 swig_obj[0] = args;
22078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22079 if (!SWIG_IsOK(res1)) {
22080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22081 }
22082 arg1 = reinterpret_cast< wxDC * >(argp1);
22083 {
22084 PyThreadState* __tstate = wxPyBeginAllowThreads();
22085 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22086 wxPyEndAllowThreads(__tstate);
22087 if (PyErr_Occurred()) SWIG_fail;
22088 }
22089 {
22090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22091 }
22092 return resultobj;
22093 fail:
22094 return NULL;
22095 }
22096
22097
22098 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22099 PyObject *resultobj = 0;
22100 wxDC *arg1 = (wxDC *) 0 ;
22101 bool result;
22102 void *argp1 = 0 ;
22103 int res1 = 0 ;
22104 PyObject *swig_obj[1] ;
22105
22106 if (!args) SWIG_fail;
22107 swig_obj[0] = args;
22108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22109 if (!SWIG_IsOK(res1)) {
22110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22111 }
22112 arg1 = reinterpret_cast< wxDC * >(argp1);
22113 {
22114 PyThreadState* __tstate = wxPyBeginAllowThreads();
22115 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22116 wxPyEndAllowThreads(__tstate);
22117 if (PyErr_Occurred()) SWIG_fail;
22118 }
22119 {
22120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22121 }
22122 return resultobj;
22123 fail:
22124 return NULL;
22125 }
22126
22127
22128 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22129 PyObject *resultobj = 0;
22130 wxDC *arg1 = (wxDC *) 0 ;
22131 int result;
22132 void *argp1 = 0 ;
22133 int res1 = 0 ;
22134 PyObject *swig_obj[1] ;
22135
22136 if (!args) SWIG_fail;
22137 swig_obj[0] = args;
22138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22139 if (!SWIG_IsOK(res1)) {
22140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22141 }
22142 arg1 = reinterpret_cast< wxDC * >(argp1);
22143 {
22144 PyThreadState* __tstate = wxPyBeginAllowThreads();
22145 result = (int)((wxDC const *)arg1)->GetDepth();
22146 wxPyEndAllowThreads(__tstate);
22147 if (PyErr_Occurred()) SWIG_fail;
22148 }
22149 resultobj = SWIG_From_int(static_cast< int >(result));
22150 return resultobj;
22151 fail:
22152 return NULL;
22153 }
22154
22155
22156 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22157 PyObject *resultobj = 0;
22158 wxDC *arg1 = (wxDC *) 0 ;
22159 wxSize result;
22160 void *argp1 = 0 ;
22161 int res1 = 0 ;
22162 PyObject *swig_obj[1] ;
22163
22164 if (!args) SWIG_fail;
22165 swig_obj[0] = args;
22166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22167 if (!SWIG_IsOK(res1)) {
22168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22169 }
22170 arg1 = reinterpret_cast< wxDC * >(argp1);
22171 {
22172 PyThreadState* __tstate = wxPyBeginAllowThreads();
22173 result = ((wxDC const *)arg1)->GetPPI();
22174 wxPyEndAllowThreads(__tstate);
22175 if (PyErr_Occurred()) SWIG_fail;
22176 }
22177 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22178 return resultobj;
22179 fail:
22180 return NULL;
22181 }
22182
22183
22184 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22185 PyObject *resultobj = 0;
22186 wxDC *arg1 = (wxDC *) 0 ;
22187 bool result;
22188 void *argp1 = 0 ;
22189 int res1 = 0 ;
22190 PyObject *swig_obj[1] ;
22191
22192 if (!args) SWIG_fail;
22193 swig_obj[0] = args;
22194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22195 if (!SWIG_IsOK(res1)) {
22196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
22197 }
22198 arg1 = reinterpret_cast< wxDC * >(argp1);
22199 {
22200 PyThreadState* __tstate = wxPyBeginAllowThreads();
22201 result = (bool)((wxDC const *)arg1)->IsOk();
22202 wxPyEndAllowThreads(__tstate);
22203 if (PyErr_Occurred()) SWIG_fail;
22204 }
22205 {
22206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22207 }
22208 return resultobj;
22209 fail:
22210 return NULL;
22211 }
22212
22213
22214 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22215 PyObject *resultobj = 0;
22216 wxDC *arg1 = (wxDC *) 0 ;
22217 int result;
22218 void *argp1 = 0 ;
22219 int res1 = 0 ;
22220 PyObject *swig_obj[1] ;
22221
22222 if (!args) SWIG_fail;
22223 swig_obj[0] = args;
22224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22225 if (!SWIG_IsOK(res1)) {
22226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22227 }
22228 arg1 = reinterpret_cast< wxDC * >(argp1);
22229 {
22230 PyThreadState* __tstate = wxPyBeginAllowThreads();
22231 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22232 wxPyEndAllowThreads(__tstate);
22233 if (PyErr_Occurred()) SWIG_fail;
22234 }
22235 resultobj = SWIG_From_int(static_cast< int >(result));
22236 return resultobj;
22237 fail:
22238 return NULL;
22239 }
22240
22241
22242 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22243 PyObject *resultobj = 0;
22244 wxDC *arg1 = (wxDC *) 0 ;
22245 wxBrush *result = 0 ;
22246 void *argp1 = 0 ;
22247 int res1 = 0 ;
22248 PyObject *swig_obj[1] ;
22249
22250 if (!args) SWIG_fail;
22251 swig_obj[0] = args;
22252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22253 if (!SWIG_IsOK(res1)) {
22254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22255 }
22256 arg1 = reinterpret_cast< wxDC * >(argp1);
22257 {
22258 PyThreadState* __tstate = wxPyBeginAllowThreads();
22259 {
22260 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22261 result = (wxBrush *) &_result_ref;
22262 }
22263 wxPyEndAllowThreads(__tstate);
22264 if (PyErr_Occurred()) SWIG_fail;
22265 }
22266 {
22267 wxBrush* resultptr = new wxBrush(*result);
22268 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22269 }
22270 return resultobj;
22271 fail:
22272 return NULL;
22273 }
22274
22275
22276 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22277 PyObject *resultobj = 0;
22278 wxDC *arg1 = (wxDC *) 0 ;
22279 wxBrush *result = 0 ;
22280 void *argp1 = 0 ;
22281 int res1 = 0 ;
22282 PyObject *swig_obj[1] ;
22283
22284 if (!args) SWIG_fail;
22285 swig_obj[0] = args;
22286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22287 if (!SWIG_IsOK(res1)) {
22288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22289 }
22290 arg1 = reinterpret_cast< wxDC * >(argp1);
22291 {
22292 PyThreadState* __tstate = wxPyBeginAllowThreads();
22293 {
22294 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22295 result = (wxBrush *) &_result_ref;
22296 }
22297 wxPyEndAllowThreads(__tstate);
22298 if (PyErr_Occurred()) SWIG_fail;
22299 }
22300 {
22301 wxBrush* resultptr = new wxBrush(*result);
22302 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22303 }
22304 return resultobj;
22305 fail:
22306 return NULL;
22307 }
22308
22309
22310 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22311 PyObject *resultobj = 0;
22312 wxDC *arg1 = (wxDC *) 0 ;
22313 wxFont *result = 0 ;
22314 void *argp1 = 0 ;
22315 int res1 = 0 ;
22316 PyObject *swig_obj[1] ;
22317
22318 if (!args) SWIG_fail;
22319 swig_obj[0] = args;
22320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22321 if (!SWIG_IsOK(res1)) {
22322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22323 }
22324 arg1 = reinterpret_cast< wxDC * >(argp1);
22325 {
22326 PyThreadState* __tstate = wxPyBeginAllowThreads();
22327 {
22328 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22329 result = (wxFont *) &_result_ref;
22330 }
22331 wxPyEndAllowThreads(__tstate);
22332 if (PyErr_Occurred()) SWIG_fail;
22333 }
22334 {
22335 wxFont* resultptr = new wxFont(*result);
22336 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22337 }
22338 return resultobj;
22339 fail:
22340 return NULL;
22341 }
22342
22343
22344 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22345 PyObject *resultobj = 0;
22346 wxDC *arg1 = (wxDC *) 0 ;
22347 wxPen *result = 0 ;
22348 void *argp1 = 0 ;
22349 int res1 = 0 ;
22350 PyObject *swig_obj[1] ;
22351
22352 if (!args) SWIG_fail;
22353 swig_obj[0] = args;
22354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22355 if (!SWIG_IsOK(res1)) {
22356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22357 }
22358 arg1 = reinterpret_cast< wxDC * >(argp1);
22359 {
22360 PyThreadState* __tstate = wxPyBeginAllowThreads();
22361 {
22362 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22363 result = (wxPen *) &_result_ref;
22364 }
22365 wxPyEndAllowThreads(__tstate);
22366 if (PyErr_Occurred()) SWIG_fail;
22367 }
22368 {
22369 wxPen* resultptr = new wxPen(*result);
22370 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22371 }
22372 return resultobj;
22373 fail:
22374 return NULL;
22375 }
22376
22377
22378 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22379 PyObject *resultobj = 0;
22380 wxDC *arg1 = (wxDC *) 0 ;
22381 wxColour *result = 0 ;
22382 void *argp1 = 0 ;
22383 int res1 = 0 ;
22384 PyObject *swig_obj[1] ;
22385
22386 if (!args) SWIG_fail;
22387 swig_obj[0] = args;
22388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22389 if (!SWIG_IsOK(res1)) {
22390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22391 }
22392 arg1 = reinterpret_cast< wxDC * >(argp1);
22393 {
22394 PyThreadState* __tstate = wxPyBeginAllowThreads();
22395 {
22396 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22397 result = (wxColour *) &_result_ref;
22398 }
22399 wxPyEndAllowThreads(__tstate);
22400 if (PyErr_Occurred()) SWIG_fail;
22401 }
22402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22403 return resultobj;
22404 fail:
22405 return NULL;
22406 }
22407
22408
22409 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22410 PyObject *resultobj = 0;
22411 wxDC *arg1 = (wxDC *) 0 ;
22412 wxColour *result = 0 ;
22413 void *argp1 = 0 ;
22414 int res1 = 0 ;
22415 PyObject *swig_obj[1] ;
22416
22417 if (!args) SWIG_fail;
22418 swig_obj[0] = args;
22419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22420 if (!SWIG_IsOK(res1)) {
22421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22422 }
22423 arg1 = reinterpret_cast< wxDC * >(argp1);
22424 {
22425 PyThreadState* __tstate = wxPyBeginAllowThreads();
22426 {
22427 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22428 result = (wxColour *) &_result_ref;
22429 }
22430 wxPyEndAllowThreads(__tstate);
22431 if (PyErr_Occurred()) SWIG_fail;
22432 }
22433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22434 return resultobj;
22435 fail:
22436 return NULL;
22437 }
22438
22439
22440 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22441 PyObject *resultobj = 0;
22442 wxDC *arg1 = (wxDC *) 0 ;
22443 wxColour *arg2 = 0 ;
22444 void *argp1 = 0 ;
22445 int res1 = 0 ;
22446 wxColour temp2 ;
22447 PyObject * obj0 = 0 ;
22448 PyObject * obj1 = 0 ;
22449 char * kwnames[] = {
22450 (char *) "self",(char *) "colour", NULL
22451 };
22452
22453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22455 if (!SWIG_IsOK(res1)) {
22456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22457 }
22458 arg1 = reinterpret_cast< wxDC * >(argp1);
22459 {
22460 arg2 = &temp2;
22461 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22462 }
22463 {
22464 PyThreadState* __tstate = wxPyBeginAllowThreads();
22465 (arg1)->SetTextForeground((wxColour const &)*arg2);
22466 wxPyEndAllowThreads(__tstate);
22467 if (PyErr_Occurred()) SWIG_fail;
22468 }
22469 resultobj = SWIG_Py_Void();
22470 return resultobj;
22471 fail:
22472 return NULL;
22473 }
22474
22475
22476 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22477 PyObject *resultobj = 0;
22478 wxDC *arg1 = (wxDC *) 0 ;
22479 wxColour *arg2 = 0 ;
22480 void *argp1 = 0 ;
22481 int res1 = 0 ;
22482 wxColour temp2 ;
22483 PyObject * obj0 = 0 ;
22484 PyObject * obj1 = 0 ;
22485 char * kwnames[] = {
22486 (char *) "self",(char *) "colour", NULL
22487 };
22488
22489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22491 if (!SWIG_IsOK(res1)) {
22492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22493 }
22494 arg1 = reinterpret_cast< wxDC * >(argp1);
22495 {
22496 arg2 = &temp2;
22497 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22498 }
22499 {
22500 PyThreadState* __tstate = wxPyBeginAllowThreads();
22501 (arg1)->SetTextBackground((wxColour const &)*arg2);
22502 wxPyEndAllowThreads(__tstate);
22503 if (PyErr_Occurred()) SWIG_fail;
22504 }
22505 resultobj = SWIG_Py_Void();
22506 return resultobj;
22507 fail:
22508 return NULL;
22509 }
22510
22511
22512 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22513 PyObject *resultobj = 0;
22514 wxDC *arg1 = (wxDC *) 0 ;
22515 int result;
22516 void *argp1 = 0 ;
22517 int res1 = 0 ;
22518 PyObject *swig_obj[1] ;
22519
22520 if (!args) SWIG_fail;
22521 swig_obj[0] = args;
22522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22523 if (!SWIG_IsOK(res1)) {
22524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22525 }
22526 arg1 = reinterpret_cast< wxDC * >(argp1);
22527 {
22528 PyThreadState* __tstate = wxPyBeginAllowThreads();
22529 result = (int)((wxDC const *)arg1)->GetMapMode();
22530 wxPyEndAllowThreads(__tstate);
22531 if (PyErr_Occurred()) SWIG_fail;
22532 }
22533 resultobj = SWIG_From_int(static_cast< int >(result));
22534 return resultobj;
22535 fail:
22536 return NULL;
22537 }
22538
22539
22540 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22541 PyObject *resultobj = 0;
22542 wxDC *arg1 = (wxDC *) 0 ;
22543 int arg2 ;
22544 void *argp1 = 0 ;
22545 int res1 = 0 ;
22546 int val2 ;
22547 int ecode2 = 0 ;
22548 PyObject * obj0 = 0 ;
22549 PyObject * obj1 = 0 ;
22550 char * kwnames[] = {
22551 (char *) "self",(char *) "mode", NULL
22552 };
22553
22554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22556 if (!SWIG_IsOK(res1)) {
22557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22558 }
22559 arg1 = reinterpret_cast< wxDC * >(argp1);
22560 ecode2 = SWIG_AsVal_int(obj1, &val2);
22561 if (!SWIG_IsOK(ecode2)) {
22562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22563 }
22564 arg2 = static_cast< int >(val2);
22565 {
22566 PyThreadState* __tstate = wxPyBeginAllowThreads();
22567 (arg1)->SetMapMode(arg2);
22568 wxPyEndAllowThreads(__tstate);
22569 if (PyErr_Occurred()) SWIG_fail;
22570 }
22571 resultobj = SWIG_Py_Void();
22572 return resultobj;
22573 fail:
22574 return NULL;
22575 }
22576
22577
22578 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22579 PyObject *resultobj = 0;
22580 wxDC *arg1 = (wxDC *) 0 ;
22581 double *arg2 = (double *) 0 ;
22582 double *arg3 = (double *) 0 ;
22583 void *argp1 = 0 ;
22584 int res1 = 0 ;
22585 double temp2 ;
22586 int res2 = SWIG_TMPOBJ ;
22587 double temp3 ;
22588 int res3 = SWIG_TMPOBJ ;
22589 PyObject *swig_obj[1] ;
22590
22591 arg2 = &temp2;
22592 arg3 = &temp3;
22593 if (!args) SWIG_fail;
22594 swig_obj[0] = args;
22595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22596 if (!SWIG_IsOK(res1)) {
22597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22598 }
22599 arg1 = reinterpret_cast< wxDC * >(argp1);
22600 {
22601 PyThreadState* __tstate = wxPyBeginAllowThreads();
22602 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22603 wxPyEndAllowThreads(__tstate);
22604 if (PyErr_Occurred()) SWIG_fail;
22605 }
22606 resultobj = SWIG_Py_Void();
22607 if (SWIG_IsTmpObj(res2)) {
22608 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22609 } else {
22610 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22611 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22612 }
22613 if (SWIG_IsTmpObj(res3)) {
22614 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22615 } else {
22616 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22617 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22618 }
22619 return resultobj;
22620 fail:
22621 return NULL;
22622 }
22623
22624
22625 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22626 PyObject *resultobj = 0;
22627 wxDC *arg1 = (wxDC *) 0 ;
22628 double arg2 ;
22629 double arg3 ;
22630 void *argp1 = 0 ;
22631 int res1 = 0 ;
22632 double val2 ;
22633 int ecode2 = 0 ;
22634 double val3 ;
22635 int ecode3 = 0 ;
22636 PyObject * obj0 = 0 ;
22637 PyObject * obj1 = 0 ;
22638 PyObject * obj2 = 0 ;
22639 char * kwnames[] = {
22640 (char *) "self",(char *) "x",(char *) "y", NULL
22641 };
22642
22643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22645 if (!SWIG_IsOK(res1)) {
22646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22647 }
22648 arg1 = reinterpret_cast< wxDC * >(argp1);
22649 ecode2 = SWIG_AsVal_double(obj1, &val2);
22650 if (!SWIG_IsOK(ecode2)) {
22651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22652 }
22653 arg2 = static_cast< double >(val2);
22654 ecode3 = SWIG_AsVal_double(obj2, &val3);
22655 if (!SWIG_IsOK(ecode3)) {
22656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22657 }
22658 arg3 = static_cast< double >(val3);
22659 {
22660 PyThreadState* __tstate = wxPyBeginAllowThreads();
22661 (arg1)->SetUserScale(arg2,arg3);
22662 wxPyEndAllowThreads(__tstate);
22663 if (PyErr_Occurred()) SWIG_fail;
22664 }
22665 resultobj = SWIG_Py_Void();
22666 return resultobj;
22667 fail:
22668 return NULL;
22669 }
22670
22671
22672 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22673 PyObject *resultobj = 0;
22674 wxDC *arg1 = (wxDC *) 0 ;
22675 double *arg2 = (double *) 0 ;
22676 double *arg3 = (double *) 0 ;
22677 void *argp1 = 0 ;
22678 int res1 = 0 ;
22679 double temp2 ;
22680 int res2 = SWIG_TMPOBJ ;
22681 double temp3 ;
22682 int res3 = SWIG_TMPOBJ ;
22683 PyObject *swig_obj[1] ;
22684
22685 arg2 = &temp2;
22686 arg3 = &temp3;
22687 if (!args) SWIG_fail;
22688 swig_obj[0] = args;
22689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22690 if (!SWIG_IsOK(res1)) {
22691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22692 }
22693 arg1 = reinterpret_cast< wxDC * >(argp1);
22694 {
22695 PyThreadState* __tstate = wxPyBeginAllowThreads();
22696 (arg1)->GetLogicalScale(arg2,arg3);
22697 wxPyEndAllowThreads(__tstate);
22698 if (PyErr_Occurred()) SWIG_fail;
22699 }
22700 resultobj = SWIG_Py_Void();
22701 if (SWIG_IsTmpObj(res2)) {
22702 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22703 } else {
22704 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22705 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22706 }
22707 if (SWIG_IsTmpObj(res3)) {
22708 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22709 } else {
22710 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22711 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22712 }
22713 return resultobj;
22714 fail:
22715 return NULL;
22716 }
22717
22718
22719 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22720 PyObject *resultobj = 0;
22721 wxDC *arg1 = (wxDC *) 0 ;
22722 double arg2 ;
22723 double arg3 ;
22724 void *argp1 = 0 ;
22725 int res1 = 0 ;
22726 double val2 ;
22727 int ecode2 = 0 ;
22728 double val3 ;
22729 int ecode3 = 0 ;
22730 PyObject * obj0 = 0 ;
22731 PyObject * obj1 = 0 ;
22732 PyObject * obj2 = 0 ;
22733 char * kwnames[] = {
22734 (char *) "self",(char *) "x",(char *) "y", NULL
22735 };
22736
22737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22739 if (!SWIG_IsOK(res1)) {
22740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22741 }
22742 arg1 = reinterpret_cast< wxDC * >(argp1);
22743 ecode2 = SWIG_AsVal_double(obj1, &val2);
22744 if (!SWIG_IsOK(ecode2)) {
22745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22746 }
22747 arg2 = static_cast< double >(val2);
22748 ecode3 = SWIG_AsVal_double(obj2, &val3);
22749 if (!SWIG_IsOK(ecode3)) {
22750 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22751 }
22752 arg3 = static_cast< double >(val3);
22753 {
22754 PyThreadState* __tstate = wxPyBeginAllowThreads();
22755 (arg1)->SetLogicalScale(arg2,arg3);
22756 wxPyEndAllowThreads(__tstate);
22757 if (PyErr_Occurred()) SWIG_fail;
22758 }
22759 resultobj = SWIG_Py_Void();
22760 return resultobj;
22761 fail:
22762 return NULL;
22763 }
22764
22765
22766 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22767 PyObject *resultobj = 0;
22768 wxDC *arg1 = (wxDC *) 0 ;
22769 wxPoint result;
22770 void *argp1 = 0 ;
22771 int res1 = 0 ;
22772 PyObject *swig_obj[1] ;
22773
22774 if (!args) SWIG_fail;
22775 swig_obj[0] = args;
22776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22777 if (!SWIG_IsOK(res1)) {
22778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22779 }
22780 arg1 = reinterpret_cast< wxDC * >(argp1);
22781 {
22782 PyThreadState* __tstate = wxPyBeginAllowThreads();
22783 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22784 wxPyEndAllowThreads(__tstate);
22785 if (PyErr_Occurred()) SWIG_fail;
22786 }
22787 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22788 return resultobj;
22789 fail:
22790 return NULL;
22791 }
22792
22793
22794 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22795 PyObject *resultobj = 0;
22796 wxDC *arg1 = (wxDC *) 0 ;
22797 int *arg2 = (int *) 0 ;
22798 int *arg3 = (int *) 0 ;
22799 void *argp1 = 0 ;
22800 int res1 = 0 ;
22801 int temp2 ;
22802 int res2 = SWIG_TMPOBJ ;
22803 int temp3 ;
22804 int res3 = SWIG_TMPOBJ ;
22805 PyObject *swig_obj[1] ;
22806
22807 arg2 = &temp2;
22808 arg3 = &temp3;
22809 if (!args) SWIG_fail;
22810 swig_obj[0] = args;
22811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22812 if (!SWIG_IsOK(res1)) {
22813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22814 }
22815 arg1 = reinterpret_cast< wxDC * >(argp1);
22816 {
22817 PyThreadState* __tstate = wxPyBeginAllowThreads();
22818 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22819 wxPyEndAllowThreads(__tstate);
22820 if (PyErr_Occurred()) SWIG_fail;
22821 }
22822 resultobj = SWIG_Py_Void();
22823 if (SWIG_IsTmpObj(res2)) {
22824 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22825 } else {
22826 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22827 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22828 }
22829 if (SWIG_IsTmpObj(res3)) {
22830 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22831 } else {
22832 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22833 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22834 }
22835 return resultobj;
22836 fail:
22837 return NULL;
22838 }
22839
22840
22841 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22842 PyObject *resultobj = 0;
22843 wxDC *arg1 = (wxDC *) 0 ;
22844 int arg2 ;
22845 int arg3 ;
22846 void *argp1 = 0 ;
22847 int res1 = 0 ;
22848 int val2 ;
22849 int ecode2 = 0 ;
22850 int val3 ;
22851 int ecode3 = 0 ;
22852 PyObject * obj0 = 0 ;
22853 PyObject * obj1 = 0 ;
22854 PyObject * obj2 = 0 ;
22855 char * kwnames[] = {
22856 (char *) "self",(char *) "x",(char *) "y", NULL
22857 };
22858
22859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22861 if (!SWIG_IsOK(res1)) {
22862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22863 }
22864 arg1 = reinterpret_cast< wxDC * >(argp1);
22865 ecode2 = SWIG_AsVal_int(obj1, &val2);
22866 if (!SWIG_IsOK(ecode2)) {
22867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22868 }
22869 arg2 = static_cast< int >(val2);
22870 ecode3 = SWIG_AsVal_int(obj2, &val3);
22871 if (!SWIG_IsOK(ecode3)) {
22872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22873 }
22874 arg3 = static_cast< int >(val3);
22875 {
22876 PyThreadState* __tstate = wxPyBeginAllowThreads();
22877 (arg1)->SetLogicalOrigin(arg2,arg3);
22878 wxPyEndAllowThreads(__tstate);
22879 if (PyErr_Occurred()) SWIG_fail;
22880 }
22881 resultobj = SWIG_Py_Void();
22882 return resultobj;
22883 fail:
22884 return NULL;
22885 }
22886
22887
22888 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22889 PyObject *resultobj = 0;
22890 wxDC *arg1 = (wxDC *) 0 ;
22891 wxPoint *arg2 = 0 ;
22892 void *argp1 = 0 ;
22893 int res1 = 0 ;
22894 wxPoint temp2 ;
22895 PyObject * obj0 = 0 ;
22896 PyObject * obj1 = 0 ;
22897 char * kwnames[] = {
22898 (char *) "self",(char *) "point", NULL
22899 };
22900
22901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22903 if (!SWIG_IsOK(res1)) {
22904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22905 }
22906 arg1 = reinterpret_cast< wxDC * >(argp1);
22907 {
22908 arg2 = &temp2;
22909 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22910 }
22911 {
22912 PyThreadState* __tstate = wxPyBeginAllowThreads();
22913 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22914 wxPyEndAllowThreads(__tstate);
22915 if (PyErr_Occurred()) SWIG_fail;
22916 }
22917 resultobj = SWIG_Py_Void();
22918 return resultobj;
22919 fail:
22920 return NULL;
22921 }
22922
22923
22924 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22925 PyObject *resultobj = 0;
22926 wxDC *arg1 = (wxDC *) 0 ;
22927 wxPoint result;
22928 void *argp1 = 0 ;
22929 int res1 = 0 ;
22930 PyObject *swig_obj[1] ;
22931
22932 if (!args) SWIG_fail;
22933 swig_obj[0] = args;
22934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22935 if (!SWIG_IsOK(res1)) {
22936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22937 }
22938 arg1 = reinterpret_cast< wxDC * >(argp1);
22939 {
22940 PyThreadState* __tstate = wxPyBeginAllowThreads();
22941 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22942 wxPyEndAllowThreads(__tstate);
22943 if (PyErr_Occurred()) SWIG_fail;
22944 }
22945 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22946 return resultobj;
22947 fail:
22948 return NULL;
22949 }
22950
22951
22952 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22953 PyObject *resultobj = 0;
22954 wxDC *arg1 = (wxDC *) 0 ;
22955 int *arg2 = (int *) 0 ;
22956 int *arg3 = (int *) 0 ;
22957 void *argp1 = 0 ;
22958 int res1 = 0 ;
22959 int temp2 ;
22960 int res2 = SWIG_TMPOBJ ;
22961 int temp3 ;
22962 int res3 = SWIG_TMPOBJ ;
22963 PyObject *swig_obj[1] ;
22964
22965 arg2 = &temp2;
22966 arg3 = &temp3;
22967 if (!args) SWIG_fail;
22968 swig_obj[0] = args;
22969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22970 if (!SWIG_IsOK(res1)) {
22971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22972 }
22973 arg1 = reinterpret_cast< wxDC * >(argp1);
22974 {
22975 PyThreadState* __tstate = wxPyBeginAllowThreads();
22976 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22977 wxPyEndAllowThreads(__tstate);
22978 if (PyErr_Occurred()) SWIG_fail;
22979 }
22980 resultobj = SWIG_Py_Void();
22981 if (SWIG_IsTmpObj(res2)) {
22982 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22983 } else {
22984 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22985 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22986 }
22987 if (SWIG_IsTmpObj(res3)) {
22988 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22989 } else {
22990 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22991 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22992 }
22993 return resultobj;
22994 fail:
22995 return NULL;
22996 }
22997
22998
22999 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23000 PyObject *resultobj = 0;
23001 wxDC *arg1 = (wxDC *) 0 ;
23002 int arg2 ;
23003 int arg3 ;
23004 void *argp1 = 0 ;
23005 int res1 = 0 ;
23006 int val2 ;
23007 int ecode2 = 0 ;
23008 int val3 ;
23009 int ecode3 = 0 ;
23010 PyObject * obj0 = 0 ;
23011 PyObject * obj1 = 0 ;
23012 PyObject * obj2 = 0 ;
23013 char * kwnames[] = {
23014 (char *) "self",(char *) "x",(char *) "y", NULL
23015 };
23016
23017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23019 if (!SWIG_IsOK(res1)) {
23020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23021 }
23022 arg1 = reinterpret_cast< wxDC * >(argp1);
23023 ecode2 = SWIG_AsVal_int(obj1, &val2);
23024 if (!SWIG_IsOK(ecode2)) {
23025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23026 }
23027 arg2 = static_cast< int >(val2);
23028 ecode3 = SWIG_AsVal_int(obj2, &val3);
23029 if (!SWIG_IsOK(ecode3)) {
23030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23031 }
23032 arg3 = static_cast< int >(val3);
23033 {
23034 PyThreadState* __tstate = wxPyBeginAllowThreads();
23035 (arg1)->SetDeviceOrigin(arg2,arg3);
23036 wxPyEndAllowThreads(__tstate);
23037 if (PyErr_Occurred()) SWIG_fail;
23038 }
23039 resultobj = SWIG_Py_Void();
23040 return resultobj;
23041 fail:
23042 return NULL;
23043 }
23044
23045
23046 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23047 PyObject *resultobj = 0;
23048 wxDC *arg1 = (wxDC *) 0 ;
23049 wxPoint *arg2 = 0 ;
23050 void *argp1 = 0 ;
23051 int res1 = 0 ;
23052 wxPoint temp2 ;
23053 PyObject * obj0 = 0 ;
23054 PyObject * obj1 = 0 ;
23055 char * kwnames[] = {
23056 (char *) "self",(char *) "point", NULL
23057 };
23058
23059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23061 if (!SWIG_IsOK(res1)) {
23062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23063 }
23064 arg1 = reinterpret_cast< wxDC * >(argp1);
23065 {
23066 arg2 = &temp2;
23067 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23068 }
23069 {
23070 PyThreadState* __tstate = wxPyBeginAllowThreads();
23071 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23072 wxPyEndAllowThreads(__tstate);
23073 if (PyErr_Occurred()) SWIG_fail;
23074 }
23075 resultobj = SWIG_Py_Void();
23076 return resultobj;
23077 fail:
23078 return NULL;
23079 }
23080
23081
23082 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23083 PyObject *resultobj = 0;
23084 wxDC *arg1 = (wxDC *) 0 ;
23085 bool arg2 ;
23086 bool arg3 ;
23087 void *argp1 = 0 ;
23088 int res1 = 0 ;
23089 bool val2 ;
23090 int ecode2 = 0 ;
23091 bool val3 ;
23092 int ecode3 = 0 ;
23093 PyObject * obj0 = 0 ;
23094 PyObject * obj1 = 0 ;
23095 PyObject * obj2 = 0 ;
23096 char * kwnames[] = {
23097 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23098 };
23099
23100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23102 if (!SWIG_IsOK(res1)) {
23103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23104 }
23105 arg1 = reinterpret_cast< wxDC * >(argp1);
23106 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23107 if (!SWIG_IsOK(ecode2)) {
23108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23109 }
23110 arg2 = static_cast< bool >(val2);
23111 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23112 if (!SWIG_IsOK(ecode3)) {
23113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23114 }
23115 arg3 = static_cast< bool >(val3);
23116 {
23117 PyThreadState* __tstate = wxPyBeginAllowThreads();
23118 (arg1)->SetAxisOrientation(arg2,arg3);
23119 wxPyEndAllowThreads(__tstate);
23120 if (PyErr_Occurred()) SWIG_fail;
23121 }
23122 resultobj = SWIG_Py_Void();
23123 return resultobj;
23124 fail:
23125 return NULL;
23126 }
23127
23128
23129 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23130 PyObject *resultobj = 0;
23131 wxDC *arg1 = (wxDC *) 0 ;
23132 int result;
23133 void *argp1 = 0 ;
23134 int res1 = 0 ;
23135 PyObject *swig_obj[1] ;
23136
23137 if (!args) SWIG_fail;
23138 swig_obj[0] = args;
23139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23140 if (!SWIG_IsOK(res1)) {
23141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23142 }
23143 arg1 = reinterpret_cast< wxDC * >(argp1);
23144 {
23145 PyThreadState* __tstate = wxPyBeginAllowThreads();
23146 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23147 wxPyEndAllowThreads(__tstate);
23148 if (PyErr_Occurred()) SWIG_fail;
23149 }
23150 resultobj = SWIG_From_int(static_cast< int >(result));
23151 return resultobj;
23152 fail:
23153 return NULL;
23154 }
23155
23156
23157 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23158 PyObject *resultobj = 0;
23159 wxDC *arg1 = (wxDC *) 0 ;
23160 int arg2 ;
23161 void *argp1 = 0 ;
23162 int res1 = 0 ;
23163 int val2 ;
23164 int ecode2 = 0 ;
23165 PyObject * obj0 = 0 ;
23166 PyObject * obj1 = 0 ;
23167 char * kwnames[] = {
23168 (char *) "self",(char *) "function", NULL
23169 };
23170
23171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23173 if (!SWIG_IsOK(res1)) {
23174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23175 }
23176 arg1 = reinterpret_cast< wxDC * >(argp1);
23177 ecode2 = SWIG_AsVal_int(obj1, &val2);
23178 if (!SWIG_IsOK(ecode2)) {
23179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23180 }
23181 arg2 = static_cast< int >(val2);
23182 {
23183 PyThreadState* __tstate = wxPyBeginAllowThreads();
23184 (arg1)->SetLogicalFunction(arg2);
23185 wxPyEndAllowThreads(__tstate);
23186 if (PyErr_Occurred()) SWIG_fail;
23187 }
23188 resultobj = SWIG_Py_Void();
23189 return resultobj;
23190 fail:
23191 return NULL;
23192 }
23193
23194
23195 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23196 PyObject *resultobj = 0;
23197 wxDC *arg1 = (wxDC *) 0 ;
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_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23207 }
23208 arg1 = reinterpret_cast< wxDC * >(argp1);
23209 {
23210 PyThreadState* __tstate = wxPyBeginAllowThreads();
23211 (arg1)->ComputeScaleAndOrigin();
23212 wxPyEndAllowThreads(__tstate);
23213 if (PyErr_Occurred()) SWIG_fail;
23214 }
23215 resultobj = SWIG_Py_Void();
23216 return resultobj;
23217 fail:
23218 return NULL;
23219 }
23220
23221
23222 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23223 PyObject *resultobj = 0;
23224 wxDC *arg1 = (wxDC *) 0 ;
23225 int arg2 ;
23226 int arg3 ;
23227 void *argp1 = 0 ;
23228 int res1 = 0 ;
23229 int val2 ;
23230 int ecode2 = 0 ;
23231 int val3 ;
23232 int ecode3 = 0 ;
23233 PyObject * obj0 = 0 ;
23234 PyObject * obj1 = 0 ;
23235 PyObject * obj2 = 0 ;
23236 char * kwnames[] = {
23237 (char *) "self",(char *) "x",(char *) "y", NULL
23238 };
23239
23240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23242 if (!SWIG_IsOK(res1)) {
23243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23244 }
23245 arg1 = reinterpret_cast< wxDC * >(argp1);
23246 ecode2 = SWIG_AsVal_int(obj1, &val2);
23247 if (!SWIG_IsOK(ecode2)) {
23248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23249 }
23250 arg2 = static_cast< int >(val2);
23251 ecode3 = SWIG_AsVal_int(obj2, &val3);
23252 if (!SWIG_IsOK(ecode3)) {
23253 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23254 }
23255 arg3 = static_cast< int >(val3);
23256 {
23257 PyThreadState* __tstate = wxPyBeginAllowThreads();
23258 (arg1)->CalcBoundingBox(arg2,arg3);
23259 wxPyEndAllowThreads(__tstate);
23260 if (PyErr_Occurred()) SWIG_fail;
23261 }
23262 resultobj = SWIG_Py_Void();
23263 return resultobj;
23264 fail:
23265 return NULL;
23266 }
23267
23268
23269 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23270 PyObject *resultobj = 0;
23271 wxDC *arg1 = (wxDC *) 0 ;
23272 wxPoint *arg2 = 0 ;
23273 void *argp1 = 0 ;
23274 int res1 = 0 ;
23275 wxPoint temp2 ;
23276 PyObject * obj0 = 0 ;
23277 PyObject * obj1 = 0 ;
23278 char * kwnames[] = {
23279 (char *) "self",(char *) "point", NULL
23280 };
23281
23282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23284 if (!SWIG_IsOK(res1)) {
23285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23286 }
23287 arg1 = reinterpret_cast< wxDC * >(argp1);
23288 {
23289 arg2 = &temp2;
23290 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23291 }
23292 {
23293 PyThreadState* __tstate = wxPyBeginAllowThreads();
23294 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23295 wxPyEndAllowThreads(__tstate);
23296 if (PyErr_Occurred()) SWIG_fail;
23297 }
23298 resultobj = SWIG_Py_Void();
23299 return resultobj;
23300 fail:
23301 return NULL;
23302 }
23303
23304
23305 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23306 PyObject *resultobj = 0;
23307 wxDC *arg1 = (wxDC *) 0 ;
23308 void *argp1 = 0 ;
23309 int res1 = 0 ;
23310 PyObject *swig_obj[1] ;
23311
23312 if (!args) SWIG_fail;
23313 swig_obj[0] = args;
23314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23315 if (!SWIG_IsOK(res1)) {
23316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23317 }
23318 arg1 = reinterpret_cast< wxDC * >(argp1);
23319 {
23320 PyThreadState* __tstate = wxPyBeginAllowThreads();
23321 (arg1)->ResetBoundingBox();
23322 wxPyEndAllowThreads(__tstate);
23323 if (PyErr_Occurred()) SWIG_fail;
23324 }
23325 resultobj = SWIG_Py_Void();
23326 return resultobj;
23327 fail:
23328 return NULL;
23329 }
23330
23331
23332 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23333 PyObject *resultobj = 0;
23334 wxDC *arg1 = (wxDC *) 0 ;
23335 int result;
23336 void *argp1 = 0 ;
23337 int res1 = 0 ;
23338 PyObject *swig_obj[1] ;
23339
23340 if (!args) SWIG_fail;
23341 swig_obj[0] = args;
23342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23343 if (!SWIG_IsOK(res1)) {
23344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23345 }
23346 arg1 = reinterpret_cast< wxDC * >(argp1);
23347 {
23348 PyThreadState* __tstate = wxPyBeginAllowThreads();
23349 result = (int)((wxDC const *)arg1)->MinX();
23350 wxPyEndAllowThreads(__tstate);
23351 if (PyErr_Occurred()) SWIG_fail;
23352 }
23353 resultobj = SWIG_From_int(static_cast< int >(result));
23354 return resultobj;
23355 fail:
23356 return NULL;
23357 }
23358
23359
23360 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23361 PyObject *resultobj = 0;
23362 wxDC *arg1 = (wxDC *) 0 ;
23363 int result;
23364 void *argp1 = 0 ;
23365 int res1 = 0 ;
23366 PyObject *swig_obj[1] ;
23367
23368 if (!args) SWIG_fail;
23369 swig_obj[0] = args;
23370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23371 if (!SWIG_IsOK(res1)) {
23372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23373 }
23374 arg1 = reinterpret_cast< wxDC * >(argp1);
23375 {
23376 PyThreadState* __tstate = wxPyBeginAllowThreads();
23377 result = (int)((wxDC const *)arg1)->MaxX();
23378 wxPyEndAllowThreads(__tstate);
23379 if (PyErr_Occurred()) SWIG_fail;
23380 }
23381 resultobj = SWIG_From_int(static_cast< int >(result));
23382 return resultobj;
23383 fail:
23384 return NULL;
23385 }
23386
23387
23388 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23389 PyObject *resultobj = 0;
23390 wxDC *arg1 = (wxDC *) 0 ;
23391 int result;
23392 void *argp1 = 0 ;
23393 int res1 = 0 ;
23394 PyObject *swig_obj[1] ;
23395
23396 if (!args) SWIG_fail;
23397 swig_obj[0] = args;
23398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23399 if (!SWIG_IsOK(res1)) {
23400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23401 }
23402 arg1 = reinterpret_cast< wxDC * >(argp1);
23403 {
23404 PyThreadState* __tstate = wxPyBeginAllowThreads();
23405 result = (int)((wxDC const *)arg1)->MinY();
23406 wxPyEndAllowThreads(__tstate);
23407 if (PyErr_Occurred()) SWIG_fail;
23408 }
23409 resultobj = SWIG_From_int(static_cast< int >(result));
23410 return resultobj;
23411 fail:
23412 return NULL;
23413 }
23414
23415
23416 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23417 PyObject *resultobj = 0;
23418 wxDC *arg1 = (wxDC *) 0 ;
23419 int result;
23420 void *argp1 = 0 ;
23421 int res1 = 0 ;
23422 PyObject *swig_obj[1] ;
23423
23424 if (!args) SWIG_fail;
23425 swig_obj[0] = args;
23426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23427 if (!SWIG_IsOK(res1)) {
23428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23429 }
23430 arg1 = reinterpret_cast< wxDC * >(argp1);
23431 {
23432 PyThreadState* __tstate = wxPyBeginAllowThreads();
23433 result = (int)((wxDC const *)arg1)->MaxY();
23434 wxPyEndAllowThreads(__tstate);
23435 if (PyErr_Occurred()) SWIG_fail;
23436 }
23437 resultobj = SWIG_From_int(static_cast< int >(result));
23438 return resultobj;
23439 fail:
23440 return NULL;
23441 }
23442
23443
23444 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23445 PyObject *resultobj = 0;
23446 wxDC *arg1 = (wxDC *) 0 ;
23447 int *arg2 = (int *) 0 ;
23448 int *arg3 = (int *) 0 ;
23449 int *arg4 = (int *) 0 ;
23450 int *arg5 = (int *) 0 ;
23451 void *argp1 = 0 ;
23452 int res1 = 0 ;
23453 int temp2 ;
23454 int res2 = SWIG_TMPOBJ ;
23455 int temp3 ;
23456 int res3 = SWIG_TMPOBJ ;
23457 int temp4 ;
23458 int res4 = SWIG_TMPOBJ ;
23459 int temp5 ;
23460 int res5 = SWIG_TMPOBJ ;
23461 PyObject *swig_obj[1] ;
23462
23463 arg2 = &temp2;
23464 arg3 = &temp3;
23465 arg4 = &temp4;
23466 arg5 = &temp5;
23467 if (!args) SWIG_fail;
23468 swig_obj[0] = args;
23469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23470 if (!SWIG_IsOK(res1)) {
23471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23472 }
23473 arg1 = reinterpret_cast< wxDC * >(argp1);
23474 {
23475 PyThreadState* __tstate = wxPyBeginAllowThreads();
23476 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23477 wxPyEndAllowThreads(__tstate);
23478 if (PyErr_Occurred()) SWIG_fail;
23479 }
23480 resultobj = SWIG_Py_Void();
23481 if (SWIG_IsTmpObj(res2)) {
23482 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23483 } else {
23484 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23485 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23486 }
23487 if (SWIG_IsTmpObj(res3)) {
23488 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23489 } else {
23490 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23491 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23492 }
23493 if (SWIG_IsTmpObj(res4)) {
23494 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23495 } else {
23496 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23497 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23498 }
23499 if (SWIG_IsTmpObj(res5)) {
23500 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23501 } else {
23502 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23503 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23504 }
23505 return resultobj;
23506 fail:
23507 return NULL;
23508 }
23509
23510
23511 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23512 PyObject *resultobj = 0;
23513 wxDC *arg1 = (wxDC *) 0 ;
23514 wxLayoutDirection result;
23515 void *argp1 = 0 ;
23516 int res1 = 0 ;
23517 PyObject *swig_obj[1] ;
23518
23519 if (!args) SWIG_fail;
23520 swig_obj[0] = args;
23521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23522 if (!SWIG_IsOK(res1)) {
23523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23524 }
23525 arg1 = reinterpret_cast< wxDC * >(argp1);
23526 {
23527 PyThreadState* __tstate = wxPyBeginAllowThreads();
23528 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23529 wxPyEndAllowThreads(__tstate);
23530 if (PyErr_Occurred()) SWIG_fail;
23531 }
23532 resultobj = SWIG_From_int(static_cast< int >(result));
23533 return resultobj;
23534 fail:
23535 return NULL;
23536 }
23537
23538
23539 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23540 PyObject *resultobj = 0;
23541 wxDC *arg1 = (wxDC *) 0 ;
23542 wxLayoutDirection arg2 ;
23543 void *argp1 = 0 ;
23544 int res1 = 0 ;
23545 int val2 ;
23546 int ecode2 = 0 ;
23547 PyObject * obj0 = 0 ;
23548 PyObject * obj1 = 0 ;
23549 char * kwnames[] = {
23550 (char *) "self",(char *) "dir", NULL
23551 };
23552
23553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23555 if (!SWIG_IsOK(res1)) {
23556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23557 }
23558 arg1 = reinterpret_cast< wxDC * >(argp1);
23559 ecode2 = SWIG_AsVal_int(obj1, &val2);
23560 if (!SWIG_IsOK(ecode2)) {
23561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23562 }
23563 arg2 = static_cast< wxLayoutDirection >(val2);
23564 {
23565 PyThreadState* __tstate = wxPyBeginAllowThreads();
23566 (arg1)->SetLayoutDirection(arg2);
23567 wxPyEndAllowThreads(__tstate);
23568 if (PyErr_Occurred()) SWIG_fail;
23569 }
23570 resultobj = SWIG_Py_Void();
23571 return resultobj;
23572 fail:
23573 return NULL;
23574 }
23575
23576
23577 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23578 PyObject *resultobj = 0;
23579 wxDC *arg1 = (wxDC *) 0 ;
23580 PyObject *arg2 = (PyObject *) 0 ;
23581 PyObject *arg3 = (PyObject *) 0 ;
23582 PyObject *arg4 = (PyObject *) 0 ;
23583 PyObject *result = 0 ;
23584 void *argp1 = 0 ;
23585 int res1 = 0 ;
23586 PyObject * obj0 = 0 ;
23587 PyObject * obj1 = 0 ;
23588 PyObject * obj2 = 0 ;
23589 PyObject * obj3 = 0 ;
23590 char * kwnames[] = {
23591 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23592 };
23593
23594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23596 if (!SWIG_IsOK(res1)) {
23597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23598 }
23599 arg1 = reinterpret_cast< wxDC * >(argp1);
23600 arg2 = obj1;
23601 arg3 = obj2;
23602 arg4 = obj3;
23603 {
23604 PyThreadState* __tstate = wxPyBeginAllowThreads();
23605 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23606 wxPyEndAllowThreads(__tstate);
23607 if (PyErr_Occurred()) SWIG_fail;
23608 }
23609 resultobj = result;
23610 return resultobj;
23611 fail:
23612 return NULL;
23613 }
23614
23615
23616 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23617 PyObject *resultobj = 0;
23618 wxDC *arg1 = (wxDC *) 0 ;
23619 PyObject *arg2 = (PyObject *) 0 ;
23620 PyObject *arg3 = (PyObject *) 0 ;
23621 PyObject *arg4 = (PyObject *) 0 ;
23622 PyObject *result = 0 ;
23623 void *argp1 = 0 ;
23624 int res1 = 0 ;
23625 PyObject * obj0 = 0 ;
23626 PyObject * obj1 = 0 ;
23627 PyObject * obj2 = 0 ;
23628 PyObject * obj3 = 0 ;
23629 char * kwnames[] = {
23630 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23631 };
23632
23633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23635 if (!SWIG_IsOK(res1)) {
23636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23637 }
23638 arg1 = reinterpret_cast< wxDC * >(argp1);
23639 arg2 = obj1;
23640 arg3 = obj2;
23641 arg4 = obj3;
23642 {
23643 PyThreadState* __tstate = wxPyBeginAllowThreads();
23644 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23645 wxPyEndAllowThreads(__tstate);
23646 if (PyErr_Occurred()) SWIG_fail;
23647 }
23648 resultobj = result;
23649 return resultobj;
23650 fail:
23651 return NULL;
23652 }
23653
23654
23655 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23656 PyObject *resultobj = 0;
23657 wxDC *arg1 = (wxDC *) 0 ;
23658 PyObject *arg2 = (PyObject *) 0 ;
23659 PyObject *arg3 = (PyObject *) 0 ;
23660 PyObject *arg4 = (PyObject *) 0 ;
23661 PyObject *result = 0 ;
23662 void *argp1 = 0 ;
23663 int res1 = 0 ;
23664 PyObject * obj0 = 0 ;
23665 PyObject * obj1 = 0 ;
23666 PyObject * obj2 = 0 ;
23667 PyObject * obj3 = 0 ;
23668 char * kwnames[] = {
23669 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23670 };
23671
23672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23674 if (!SWIG_IsOK(res1)) {
23675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23676 }
23677 arg1 = reinterpret_cast< wxDC * >(argp1);
23678 arg2 = obj1;
23679 arg3 = obj2;
23680 arg4 = obj3;
23681 {
23682 PyThreadState* __tstate = wxPyBeginAllowThreads();
23683 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23684 wxPyEndAllowThreads(__tstate);
23685 if (PyErr_Occurred()) SWIG_fail;
23686 }
23687 resultobj = result;
23688 return resultobj;
23689 fail:
23690 return NULL;
23691 }
23692
23693
23694 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23695 PyObject *resultobj = 0;
23696 wxDC *arg1 = (wxDC *) 0 ;
23697 PyObject *arg2 = (PyObject *) 0 ;
23698 PyObject *arg3 = (PyObject *) 0 ;
23699 PyObject *arg4 = (PyObject *) 0 ;
23700 PyObject *result = 0 ;
23701 void *argp1 = 0 ;
23702 int res1 = 0 ;
23703 PyObject * obj0 = 0 ;
23704 PyObject * obj1 = 0 ;
23705 PyObject * obj2 = 0 ;
23706 PyObject * obj3 = 0 ;
23707 char * kwnames[] = {
23708 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23709 };
23710
23711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23713 if (!SWIG_IsOK(res1)) {
23714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23715 }
23716 arg1 = reinterpret_cast< wxDC * >(argp1);
23717 arg2 = obj1;
23718 arg3 = obj2;
23719 arg4 = obj3;
23720 {
23721 PyThreadState* __tstate = wxPyBeginAllowThreads();
23722 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23723 wxPyEndAllowThreads(__tstate);
23724 if (PyErr_Occurred()) SWIG_fail;
23725 }
23726 resultobj = result;
23727 return resultobj;
23728 fail:
23729 return NULL;
23730 }
23731
23732
23733 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23734 PyObject *resultobj = 0;
23735 wxDC *arg1 = (wxDC *) 0 ;
23736 PyObject *arg2 = (PyObject *) 0 ;
23737 PyObject *arg3 = (PyObject *) 0 ;
23738 PyObject *arg4 = (PyObject *) 0 ;
23739 PyObject *result = 0 ;
23740 void *argp1 = 0 ;
23741 int res1 = 0 ;
23742 PyObject * obj0 = 0 ;
23743 PyObject * obj1 = 0 ;
23744 PyObject * obj2 = 0 ;
23745 PyObject * obj3 = 0 ;
23746 char * kwnames[] = {
23747 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23748 };
23749
23750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23752 if (!SWIG_IsOK(res1)) {
23753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23754 }
23755 arg1 = reinterpret_cast< wxDC * >(argp1);
23756 arg2 = obj1;
23757 arg3 = obj2;
23758 arg4 = obj3;
23759 {
23760 PyThreadState* __tstate = wxPyBeginAllowThreads();
23761 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23762 wxPyEndAllowThreads(__tstate);
23763 if (PyErr_Occurred()) SWIG_fail;
23764 }
23765 resultobj = result;
23766 return resultobj;
23767 fail:
23768 return NULL;
23769 }
23770
23771
23772 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23773 PyObject *resultobj = 0;
23774 wxDC *arg1 = (wxDC *) 0 ;
23775 PyObject *arg2 = (PyObject *) 0 ;
23776 PyObject *arg3 = (PyObject *) 0 ;
23777 PyObject *arg4 = (PyObject *) 0 ;
23778 PyObject *arg5 = (PyObject *) 0 ;
23779 PyObject *result = 0 ;
23780 void *argp1 = 0 ;
23781 int res1 = 0 ;
23782 PyObject * obj0 = 0 ;
23783 PyObject * obj1 = 0 ;
23784 PyObject * obj2 = 0 ;
23785 PyObject * obj3 = 0 ;
23786 PyObject * obj4 = 0 ;
23787 char * kwnames[] = {
23788 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23789 };
23790
23791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23793 if (!SWIG_IsOK(res1)) {
23794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23795 }
23796 arg1 = reinterpret_cast< wxDC * >(argp1);
23797 arg2 = obj1;
23798 arg3 = obj2;
23799 arg4 = obj3;
23800 arg5 = obj4;
23801 {
23802 PyThreadState* __tstate = wxPyBeginAllowThreads();
23803 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23804 wxPyEndAllowThreads(__tstate);
23805 if (PyErr_Occurred()) SWIG_fail;
23806 }
23807 resultobj = result;
23808 return resultobj;
23809 fail:
23810 return NULL;
23811 }
23812
23813
23814 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23815 PyObject *obj;
23816 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23817 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23818 return SWIG_Py_Void();
23819 }
23820
23821 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23822 PyObject *resultobj = 0;
23823 wxDC *arg1 = 0 ;
23824 wxColour *arg2 = 0 ;
23825 wxDCTextColourChanger *result = 0 ;
23826 void *argp1 = 0 ;
23827 int res1 = 0 ;
23828 wxColour temp2 ;
23829 PyObject * obj0 = 0 ;
23830 PyObject * obj1 = 0 ;
23831 char * kwnames[] = {
23832 (char *) "dc",(char *) "col", NULL
23833 };
23834
23835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23836 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23837 if (!SWIG_IsOK(res1)) {
23838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23839 }
23840 if (!argp1) {
23841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23842 }
23843 arg1 = reinterpret_cast< wxDC * >(argp1);
23844 {
23845 arg2 = &temp2;
23846 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23847 }
23848 {
23849 PyThreadState* __tstate = wxPyBeginAllowThreads();
23850 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23851 wxPyEndAllowThreads(__tstate);
23852 if (PyErr_Occurred()) SWIG_fail;
23853 }
23854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23855 return resultobj;
23856 fail:
23857 return NULL;
23858 }
23859
23860
23861 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23862 PyObject *resultobj = 0;
23863 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23864 void *argp1 = 0 ;
23865 int res1 = 0 ;
23866 PyObject *swig_obj[1] ;
23867
23868 if (!args) SWIG_fail;
23869 swig_obj[0] = args;
23870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23871 if (!SWIG_IsOK(res1)) {
23872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23873 }
23874 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23875 {
23876 PyThreadState* __tstate = wxPyBeginAllowThreads();
23877 delete arg1;
23878
23879 wxPyEndAllowThreads(__tstate);
23880 if (PyErr_Occurred()) SWIG_fail;
23881 }
23882 resultobj = SWIG_Py_Void();
23883 return resultobj;
23884 fail:
23885 return NULL;
23886 }
23887
23888
23889 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23890 PyObject *obj;
23891 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23892 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23893 return SWIG_Py_Void();
23894 }
23895
23896 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23897 return SWIG_Python_InitShadowInstance(args);
23898 }
23899
23900 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23901 PyObject *resultobj = 0;
23902 wxDC *arg1 = 0 ;
23903 wxPen *arg2 = 0 ;
23904 wxDCPenChanger *result = 0 ;
23905 void *argp1 = 0 ;
23906 int res1 = 0 ;
23907 void *argp2 = 0 ;
23908 int res2 = 0 ;
23909 PyObject * obj0 = 0 ;
23910 PyObject * obj1 = 0 ;
23911 char * kwnames[] = {
23912 (char *) "dc",(char *) "pen", NULL
23913 };
23914
23915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23916 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23917 if (!SWIG_IsOK(res1)) {
23918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23919 }
23920 if (!argp1) {
23921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23922 }
23923 arg1 = reinterpret_cast< wxDC * >(argp1);
23924 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23925 if (!SWIG_IsOK(res2)) {
23926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23927 }
23928 if (!argp2) {
23929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23930 }
23931 arg2 = reinterpret_cast< wxPen * >(argp2);
23932 {
23933 PyThreadState* __tstate = wxPyBeginAllowThreads();
23934 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23935 wxPyEndAllowThreads(__tstate);
23936 if (PyErr_Occurred()) SWIG_fail;
23937 }
23938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23939 return resultobj;
23940 fail:
23941 return NULL;
23942 }
23943
23944
23945 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23946 PyObject *resultobj = 0;
23947 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23948 void *argp1 = 0 ;
23949 int res1 = 0 ;
23950 PyObject *swig_obj[1] ;
23951
23952 if (!args) SWIG_fail;
23953 swig_obj[0] = args;
23954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23955 if (!SWIG_IsOK(res1)) {
23956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23957 }
23958 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23959 {
23960 PyThreadState* __tstate = wxPyBeginAllowThreads();
23961 delete arg1;
23962
23963 wxPyEndAllowThreads(__tstate);
23964 if (PyErr_Occurred()) SWIG_fail;
23965 }
23966 resultobj = SWIG_Py_Void();
23967 return resultobj;
23968 fail:
23969 return NULL;
23970 }
23971
23972
23973 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23974 PyObject *obj;
23975 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23976 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23977 return SWIG_Py_Void();
23978 }
23979
23980 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23981 return SWIG_Python_InitShadowInstance(args);
23982 }
23983
23984 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23985 PyObject *resultobj = 0;
23986 wxDC *arg1 = 0 ;
23987 wxBrush *arg2 = 0 ;
23988 wxDCBrushChanger *result = 0 ;
23989 void *argp1 = 0 ;
23990 int res1 = 0 ;
23991 void *argp2 = 0 ;
23992 int res2 = 0 ;
23993 PyObject * obj0 = 0 ;
23994 PyObject * obj1 = 0 ;
23995 char * kwnames[] = {
23996 (char *) "dc",(char *) "brush", NULL
23997 };
23998
23999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24000 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24001 if (!SWIG_IsOK(res1)) {
24002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24003 }
24004 if (!argp1) {
24005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24006 }
24007 arg1 = reinterpret_cast< wxDC * >(argp1);
24008 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24009 if (!SWIG_IsOK(res2)) {
24010 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24011 }
24012 if (!argp2) {
24013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24014 }
24015 arg2 = reinterpret_cast< wxBrush * >(argp2);
24016 {
24017 PyThreadState* __tstate = wxPyBeginAllowThreads();
24018 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24019 wxPyEndAllowThreads(__tstate);
24020 if (PyErr_Occurred()) SWIG_fail;
24021 }
24022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24023 return resultobj;
24024 fail:
24025 return NULL;
24026 }
24027
24028
24029 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24030 PyObject *resultobj = 0;
24031 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24032 void *argp1 = 0 ;
24033 int res1 = 0 ;
24034 PyObject *swig_obj[1] ;
24035
24036 if (!args) SWIG_fail;
24037 swig_obj[0] = args;
24038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24039 if (!SWIG_IsOK(res1)) {
24040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24041 }
24042 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24043 {
24044 PyThreadState* __tstate = wxPyBeginAllowThreads();
24045 delete arg1;
24046
24047 wxPyEndAllowThreads(__tstate);
24048 if (PyErr_Occurred()) SWIG_fail;
24049 }
24050 resultobj = SWIG_Py_Void();
24051 return resultobj;
24052 fail:
24053 return NULL;
24054 }
24055
24056
24057 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24058 PyObject *obj;
24059 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24060 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24061 return SWIG_Py_Void();
24062 }
24063
24064 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24065 return SWIG_Python_InitShadowInstance(args);
24066 }
24067
24068 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24069 PyObject *resultobj = 0;
24070 wxDC *arg1 = 0 ;
24071 wxRegion *arg2 = 0 ;
24072 wxDCClipper *result = 0 ;
24073 void *argp1 = 0 ;
24074 int res1 = 0 ;
24075 void *argp2 = 0 ;
24076 int res2 = 0 ;
24077
24078 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24080 if (!SWIG_IsOK(res1)) {
24081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24082 }
24083 if (!argp1) {
24084 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24085 }
24086 arg1 = reinterpret_cast< wxDC * >(argp1);
24087 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24088 if (!SWIG_IsOK(res2)) {
24089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24090 }
24091 if (!argp2) {
24092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24093 }
24094 arg2 = reinterpret_cast< wxRegion * >(argp2);
24095 {
24096 PyThreadState* __tstate = wxPyBeginAllowThreads();
24097 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24098 wxPyEndAllowThreads(__tstate);
24099 if (PyErr_Occurred()) SWIG_fail;
24100 }
24101 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24102 return resultobj;
24103 fail:
24104 return NULL;
24105 }
24106
24107
24108 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24109 PyObject *resultobj = 0;
24110 wxDC *arg1 = 0 ;
24111 wxRect *arg2 = 0 ;
24112 wxDCClipper *result = 0 ;
24113 void *argp1 = 0 ;
24114 int res1 = 0 ;
24115 wxRect temp2 ;
24116
24117 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24119 if (!SWIG_IsOK(res1)) {
24120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24121 }
24122 if (!argp1) {
24123 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24124 }
24125 arg1 = reinterpret_cast< wxDC * >(argp1);
24126 {
24127 arg2 = &temp2;
24128 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24129 }
24130 {
24131 PyThreadState* __tstate = wxPyBeginAllowThreads();
24132 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24133 wxPyEndAllowThreads(__tstate);
24134 if (PyErr_Occurred()) SWIG_fail;
24135 }
24136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24137 return resultobj;
24138 fail:
24139 return NULL;
24140 }
24141
24142
24143 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24144 PyObject *resultobj = 0;
24145 wxDC *arg1 = 0 ;
24146 int arg2 ;
24147 int arg3 ;
24148 int arg4 ;
24149 int arg5 ;
24150 wxDCClipper *result = 0 ;
24151 void *argp1 = 0 ;
24152 int res1 = 0 ;
24153 int val2 ;
24154 int ecode2 = 0 ;
24155 int val3 ;
24156 int ecode3 = 0 ;
24157 int val4 ;
24158 int ecode4 = 0 ;
24159 int val5 ;
24160 int ecode5 = 0 ;
24161
24162 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24164 if (!SWIG_IsOK(res1)) {
24165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24166 }
24167 if (!argp1) {
24168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24169 }
24170 arg1 = reinterpret_cast< wxDC * >(argp1);
24171 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24172 if (!SWIG_IsOK(ecode2)) {
24173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
24174 }
24175 arg2 = static_cast< int >(val2);
24176 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24177 if (!SWIG_IsOK(ecode3)) {
24178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
24179 }
24180 arg3 = static_cast< int >(val3);
24181 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24182 if (!SWIG_IsOK(ecode4)) {
24183 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
24184 }
24185 arg4 = static_cast< int >(val4);
24186 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
24187 if (!SWIG_IsOK(ecode5)) {
24188 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
24189 }
24190 arg5 = static_cast< int >(val5);
24191 {
24192 PyThreadState* __tstate = wxPyBeginAllowThreads();
24193 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
24194 wxPyEndAllowThreads(__tstate);
24195 if (PyErr_Occurred()) SWIG_fail;
24196 }
24197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24198 return resultobj;
24199 fail:
24200 return NULL;
24201 }
24202
24203
24204 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
24205 int argc;
24206 PyObject *argv[6];
24207
24208 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
24209 --argc;
24210 if (argc == 2) {
24211 int _v = 0;
24212 {
24213 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
24214 _v = SWIG_CheckState(res);
24215 }
24216 if (!_v) goto check_1;
24217 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
24218 }
24219 check_1:
24220
24221 if (argc == 2) {
24222 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
24223 }
24224 if (argc == 5) {
24225 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
24226 }
24227
24228 fail:
24229 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
24230 return NULL;
24231 }
24232
24233
24234 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24235 PyObject *resultobj = 0;
24236 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
24237 void *argp1 = 0 ;
24238 int res1 = 0 ;
24239 PyObject *swig_obj[1] ;
24240
24241 if (!args) SWIG_fail;
24242 swig_obj[0] = args;
24243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
24244 if (!SWIG_IsOK(res1)) {
24245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
24246 }
24247 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
24248 {
24249 PyThreadState* __tstate = wxPyBeginAllowThreads();
24250 delete arg1;
24251
24252 wxPyEndAllowThreads(__tstate);
24253 if (PyErr_Occurred()) SWIG_fail;
24254 }
24255 resultobj = SWIG_Py_Void();
24256 return resultobj;
24257 fail:
24258 return NULL;
24259 }
24260
24261
24262 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24263 PyObject *obj;
24264 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24265 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
24266 return SWIG_Py_Void();
24267 }
24268
24269 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24270 return SWIG_Python_InitShadowInstance(args);
24271 }
24272
24273 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24274 PyObject *resultobj = 0;
24275 wxScreenDC *result = 0 ;
24276
24277 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24278 {
24279 if (!wxPyCheckForApp()) SWIG_fail;
24280 PyThreadState* __tstate = wxPyBeginAllowThreads();
24281 result = (wxScreenDC *)new wxScreenDC();
24282 wxPyEndAllowThreads(__tstate);
24283 if (PyErr_Occurred()) SWIG_fail;
24284 }
24285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24286 return resultobj;
24287 fail:
24288 return NULL;
24289 }
24290
24291
24292 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24293 PyObject *resultobj = 0;
24294 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24295 wxWindow *arg2 = (wxWindow *) 0 ;
24296 bool result;
24297 void *argp1 = 0 ;
24298 int res1 = 0 ;
24299 void *argp2 = 0 ;
24300 int res2 = 0 ;
24301 PyObject * obj0 = 0 ;
24302 PyObject * obj1 = 0 ;
24303 char * kwnames[] = {
24304 (char *) "self",(char *) "window", NULL
24305 };
24306
24307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24309 if (!SWIG_IsOK(res1)) {
24310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24311 }
24312 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24313 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24314 if (!SWIG_IsOK(res2)) {
24315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24316 }
24317 arg2 = reinterpret_cast< wxWindow * >(argp2);
24318 {
24319 PyThreadState* __tstate = wxPyBeginAllowThreads();
24320 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24321 wxPyEndAllowThreads(__tstate);
24322 if (PyErr_Occurred()) SWIG_fail;
24323 }
24324 {
24325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24326 }
24327 return resultobj;
24328 fail:
24329 return NULL;
24330 }
24331
24332
24333 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24334 PyObject *resultobj = 0;
24335 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24336 wxRect *arg2 = (wxRect *) NULL ;
24337 bool result;
24338 void *argp1 = 0 ;
24339 int res1 = 0 ;
24340 void *argp2 = 0 ;
24341 int res2 = 0 ;
24342 PyObject * obj0 = 0 ;
24343 PyObject * obj1 = 0 ;
24344 char * kwnames[] = {
24345 (char *) "self",(char *) "rect", NULL
24346 };
24347
24348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24350 if (!SWIG_IsOK(res1)) {
24351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24352 }
24353 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24354 if (obj1) {
24355 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24356 if (!SWIG_IsOK(res2)) {
24357 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24358 }
24359 arg2 = reinterpret_cast< wxRect * >(argp2);
24360 }
24361 {
24362 PyThreadState* __tstate = wxPyBeginAllowThreads();
24363 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24364 wxPyEndAllowThreads(__tstate);
24365 if (PyErr_Occurred()) SWIG_fail;
24366 }
24367 {
24368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24369 }
24370 return resultobj;
24371 fail:
24372 return NULL;
24373 }
24374
24375
24376 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24377 PyObject *resultobj = 0;
24378 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24379 bool result;
24380 void *argp1 = 0 ;
24381 int res1 = 0 ;
24382 PyObject *swig_obj[1] ;
24383
24384 if (!args) SWIG_fail;
24385 swig_obj[0] = args;
24386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24387 if (!SWIG_IsOK(res1)) {
24388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24389 }
24390 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24391 {
24392 PyThreadState* __tstate = wxPyBeginAllowThreads();
24393 result = (bool)(arg1)->EndDrawingOnTop();
24394 wxPyEndAllowThreads(__tstate);
24395 if (PyErr_Occurred()) SWIG_fail;
24396 }
24397 {
24398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24399 }
24400 return resultobj;
24401 fail:
24402 return NULL;
24403 }
24404
24405
24406 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24407 PyObject *obj;
24408 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24409 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24410 return SWIG_Py_Void();
24411 }
24412
24413 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24414 return SWIG_Python_InitShadowInstance(args);
24415 }
24416
24417 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24418 PyObject *resultobj = 0;
24419 wxWindow *arg1 = (wxWindow *) 0 ;
24420 wxWindowDC *result = 0 ;
24421 void *argp1 = 0 ;
24422 int res1 = 0 ;
24423 PyObject * obj0 = 0 ;
24424 char * kwnames[] = {
24425 (char *) "win", NULL
24426 };
24427
24428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24430 if (!SWIG_IsOK(res1)) {
24431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24432 }
24433 arg1 = reinterpret_cast< wxWindow * >(argp1);
24434 {
24435 if (!wxPyCheckForApp()) SWIG_fail;
24436 PyThreadState* __tstate = wxPyBeginAllowThreads();
24437 result = (wxWindowDC *)new wxWindowDC(arg1);
24438 wxPyEndAllowThreads(__tstate);
24439 if (PyErr_Occurred()) SWIG_fail;
24440 }
24441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24442 return resultobj;
24443 fail:
24444 return NULL;
24445 }
24446
24447
24448 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24449 PyObject *obj;
24450 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24451 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24452 return SWIG_Py_Void();
24453 }
24454
24455 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24456 return SWIG_Python_InitShadowInstance(args);
24457 }
24458
24459 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24460 PyObject *resultobj = 0;
24461 wxWindow *arg1 = (wxWindow *) 0 ;
24462 wxClientDC *result = 0 ;
24463 void *argp1 = 0 ;
24464 int res1 = 0 ;
24465 PyObject * obj0 = 0 ;
24466 char * kwnames[] = {
24467 (char *) "win", NULL
24468 };
24469
24470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24472 if (!SWIG_IsOK(res1)) {
24473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24474 }
24475 arg1 = reinterpret_cast< wxWindow * >(argp1);
24476 {
24477 if (!wxPyCheckForApp()) SWIG_fail;
24478 PyThreadState* __tstate = wxPyBeginAllowThreads();
24479 result = (wxClientDC *)new wxClientDC(arg1);
24480 wxPyEndAllowThreads(__tstate);
24481 if (PyErr_Occurred()) SWIG_fail;
24482 }
24483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24484 return resultobj;
24485 fail:
24486 return NULL;
24487 }
24488
24489
24490 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24491 PyObject *obj;
24492 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24493 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24494 return SWIG_Py_Void();
24495 }
24496
24497 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24498 return SWIG_Python_InitShadowInstance(args);
24499 }
24500
24501 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24502 PyObject *resultobj = 0;
24503 wxWindow *arg1 = (wxWindow *) 0 ;
24504 wxPaintDC *result = 0 ;
24505 void *argp1 = 0 ;
24506 int res1 = 0 ;
24507 PyObject * obj0 = 0 ;
24508 char * kwnames[] = {
24509 (char *) "win", NULL
24510 };
24511
24512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24514 if (!SWIG_IsOK(res1)) {
24515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24516 }
24517 arg1 = reinterpret_cast< wxWindow * >(argp1);
24518 {
24519 if (!wxPyCheckForApp()) SWIG_fail;
24520 PyThreadState* __tstate = wxPyBeginAllowThreads();
24521 result = (wxPaintDC *)new wxPaintDC(arg1);
24522 wxPyEndAllowThreads(__tstate);
24523 if (PyErr_Occurred()) SWIG_fail;
24524 }
24525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24526 return resultobj;
24527 fail:
24528 return NULL;
24529 }
24530
24531
24532 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24533 PyObject *obj;
24534 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24535 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24536 return SWIG_Py_Void();
24537 }
24538
24539 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24540 return SWIG_Python_InitShadowInstance(args);
24541 }
24542
24543 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24544 PyObject *resultobj = 0;
24545 wxBitmap &arg1_defvalue = wxNullBitmap ;
24546 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24547 wxMemoryDC *result = 0 ;
24548 void *argp1 = 0 ;
24549 int res1 = 0 ;
24550 PyObject * obj0 = 0 ;
24551 char * kwnames[] = {
24552 (char *) "bitmap", NULL
24553 };
24554
24555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24556 if (obj0) {
24557 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24558 if (!SWIG_IsOK(res1)) {
24559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24560 }
24561 if (!argp1) {
24562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24563 }
24564 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24565 }
24566 {
24567 if (!wxPyCheckForApp()) SWIG_fail;
24568 PyThreadState* __tstate = wxPyBeginAllowThreads();
24569 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24570 wxPyEndAllowThreads(__tstate);
24571 if (PyErr_Occurred()) SWIG_fail;
24572 }
24573 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24574 return resultobj;
24575 fail:
24576 return NULL;
24577 }
24578
24579
24580 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24581 PyObject *resultobj = 0;
24582 wxDC *arg1 = (wxDC *) 0 ;
24583 wxMemoryDC *result = 0 ;
24584 void *argp1 = 0 ;
24585 int res1 = 0 ;
24586 PyObject * obj0 = 0 ;
24587 char * kwnames[] = {
24588 (char *) "oldDC", NULL
24589 };
24590
24591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24593 if (!SWIG_IsOK(res1)) {
24594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24595 }
24596 arg1 = reinterpret_cast< wxDC * >(argp1);
24597 {
24598 if (!wxPyCheckForApp()) SWIG_fail;
24599 PyThreadState* __tstate = wxPyBeginAllowThreads();
24600 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24601 wxPyEndAllowThreads(__tstate);
24602 if (PyErr_Occurred()) SWIG_fail;
24603 }
24604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24605 return resultobj;
24606 fail:
24607 return NULL;
24608 }
24609
24610
24611 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24612 PyObject *resultobj = 0;
24613 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24614 wxBitmap *arg2 = 0 ;
24615 void *argp1 = 0 ;
24616 int res1 = 0 ;
24617 void *argp2 = 0 ;
24618 int res2 = 0 ;
24619 PyObject * obj0 = 0 ;
24620 PyObject * obj1 = 0 ;
24621 char * kwnames[] = {
24622 (char *) "self",(char *) "bitmap", NULL
24623 };
24624
24625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24627 if (!SWIG_IsOK(res1)) {
24628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24629 }
24630 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24631 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24632 if (!SWIG_IsOK(res2)) {
24633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24634 }
24635 if (!argp2) {
24636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24637 }
24638 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24639 {
24640 PyThreadState* __tstate = wxPyBeginAllowThreads();
24641 (arg1)->SelectObject(*arg2);
24642 wxPyEndAllowThreads(__tstate);
24643 if (PyErr_Occurred()) SWIG_fail;
24644 }
24645 resultobj = SWIG_Py_Void();
24646 return resultobj;
24647 fail:
24648 return NULL;
24649 }
24650
24651
24652 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24653 PyObject *resultobj = 0;
24654 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24655 wxBitmap *arg2 = 0 ;
24656 void *argp1 = 0 ;
24657 int res1 = 0 ;
24658 void *argp2 = 0 ;
24659 int res2 = 0 ;
24660 PyObject * obj0 = 0 ;
24661 PyObject * obj1 = 0 ;
24662 char * kwnames[] = {
24663 (char *) "self",(char *) "bmp", NULL
24664 };
24665
24666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24668 if (!SWIG_IsOK(res1)) {
24669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24670 }
24671 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24672 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24673 if (!SWIG_IsOK(res2)) {
24674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24675 }
24676 if (!argp2) {
24677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24678 }
24679 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24680 {
24681 PyThreadState* __tstate = wxPyBeginAllowThreads();
24682 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24683 wxPyEndAllowThreads(__tstate);
24684 if (PyErr_Occurred()) SWIG_fail;
24685 }
24686 resultobj = SWIG_Py_Void();
24687 return resultobj;
24688 fail:
24689 return NULL;
24690 }
24691
24692
24693 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24694 PyObject *obj;
24695 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24696 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24697 return SWIG_Py_Void();
24698 }
24699
24700 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24701 return SWIG_Python_InitShadowInstance(args);
24702 }
24703
24704 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24705 PyObject *resultobj = 0;
24706 wxDC *arg1 = (wxDC *) 0 ;
24707 wxBitmap &arg2_defvalue = wxNullBitmap ;
24708 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24709 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24710 wxBufferedDC *result = 0 ;
24711 void *argp1 = 0 ;
24712 int res1 = 0 ;
24713 void *argp2 = 0 ;
24714 int res2 = 0 ;
24715 int val3 ;
24716 int ecode3 = 0 ;
24717
24718 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24720 if (!SWIG_IsOK(res1)) {
24721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24722 }
24723 arg1 = reinterpret_cast< wxDC * >(argp1);
24724 if (swig_obj[1]) {
24725 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
24726 if (!SWIG_IsOK(res2)) {
24727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24728 }
24729 if (!argp2) {
24730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24731 }
24732 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24733 }
24734 if (swig_obj[2]) {
24735 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24736 if (!SWIG_IsOK(ecode3)) {
24737 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24738 }
24739 arg3 = static_cast< int >(val3);
24740 }
24741 {
24742 if (!wxPyCheckForApp()) SWIG_fail;
24743 PyThreadState* __tstate = wxPyBeginAllowThreads();
24744 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
24745 wxPyEndAllowThreads(__tstate);
24746 if (PyErr_Occurred()) SWIG_fail;
24747 }
24748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24749 return resultobj;
24750 fail:
24751 return NULL;
24752 }
24753
24754
24755 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24756 PyObject *resultobj = 0;
24757 wxDC *arg1 = (wxDC *) 0 ;
24758 wxSize *arg2 = 0 ;
24759 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24760 wxBufferedDC *result = 0 ;
24761 void *argp1 = 0 ;
24762 int res1 = 0 ;
24763 wxSize temp2 ;
24764 int val3 ;
24765 int ecode3 = 0 ;
24766
24767 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24769 if (!SWIG_IsOK(res1)) {
24770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24771 }
24772 arg1 = reinterpret_cast< wxDC * >(argp1);
24773 {
24774 arg2 = &temp2;
24775 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24776 }
24777 if (swig_obj[2]) {
24778 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24779 if (!SWIG_IsOK(ecode3)) {
24780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24781 }
24782 arg3 = static_cast< int >(val3);
24783 }
24784 {
24785 if (!wxPyCheckForApp()) SWIG_fail;
24786 PyThreadState* __tstate = wxPyBeginAllowThreads();
24787 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24788 wxPyEndAllowThreads(__tstate);
24789 if (PyErr_Occurred()) SWIG_fail;
24790 }
24791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24792 return resultobj;
24793 fail:
24794 return NULL;
24795 }
24796
24797
24798 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24799 int argc;
24800 PyObject *argv[4];
24801
24802 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
24803 --argc;
24804 if ((argc >= 1) && (argc <= 3)) {
24805 int _v = 0;
24806 if (argc > 1) {
24807 {
24808 void *vptr = 0;
24809 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
24810 _v = SWIG_CheckState(res);
24811 }
24812 if (!_v) goto check_1;
24813 }
24814 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24815 }
24816 check_1:
24817
24818 if ((argc >= 2) && (argc <= 3)) {
24819 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24820 }
24821
24822 fail:
24823 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24824 return NULL;
24825 }
24826
24827
24828 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24829 PyObject *resultobj = 0;
24830 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24831 void *argp1 = 0 ;
24832 int res1 = 0 ;
24833 PyObject *swig_obj[1] ;
24834
24835 if (!args) SWIG_fail;
24836 swig_obj[0] = args;
24837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24838 if (!SWIG_IsOK(res1)) {
24839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24840 }
24841 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24842 {
24843 PyThreadState* __tstate = wxPyBeginAllowThreads();
24844 delete arg1;
24845
24846 wxPyEndAllowThreads(__tstate);
24847 if (PyErr_Occurred()) SWIG_fail;
24848 }
24849 resultobj = SWIG_Py_Void();
24850 return resultobj;
24851 fail:
24852 return NULL;
24853 }
24854
24855
24856 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24857 PyObject *resultobj = 0;
24858 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24859 void *argp1 = 0 ;
24860 int res1 = 0 ;
24861 PyObject *swig_obj[1] ;
24862
24863 if (!args) SWIG_fail;
24864 swig_obj[0] = args;
24865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24866 if (!SWIG_IsOK(res1)) {
24867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24868 }
24869 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24870 {
24871 PyThreadState* __tstate = wxPyBeginAllowThreads();
24872 (arg1)->UnMask();
24873 wxPyEndAllowThreads(__tstate);
24874 if (PyErr_Occurred()) SWIG_fail;
24875 }
24876 resultobj = SWIG_Py_Void();
24877 return resultobj;
24878 fail:
24879 return NULL;
24880 }
24881
24882
24883 SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24884 PyObject *resultobj = 0;
24885 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24886 int arg2 ;
24887 void *argp1 = 0 ;
24888 int res1 = 0 ;
24889 int val2 ;
24890 int ecode2 = 0 ;
24891 PyObject * obj0 = 0 ;
24892 PyObject * obj1 = 0 ;
24893 char * kwnames[] = {
24894 (char *) "self",(char *) "style", NULL
24895 };
24896
24897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24899 if (!SWIG_IsOK(res1)) {
24900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24901 }
24902 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24903 ecode2 = SWIG_AsVal_int(obj1, &val2);
24904 if (!SWIG_IsOK(ecode2)) {
24905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24906 }
24907 arg2 = static_cast< int >(val2);
24908 {
24909 PyThreadState* __tstate = wxPyBeginAllowThreads();
24910 (arg1)->SetStyle(arg2);
24911 wxPyEndAllowThreads(__tstate);
24912 if (PyErr_Occurred()) SWIG_fail;
24913 }
24914 resultobj = SWIG_Py_Void();
24915 return resultobj;
24916 fail:
24917 return NULL;
24918 }
24919
24920
24921 SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24922 PyObject *resultobj = 0;
24923 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24924 int result;
24925 void *argp1 = 0 ;
24926 int res1 = 0 ;
24927 PyObject *swig_obj[1] ;
24928
24929 if (!args) SWIG_fail;
24930 swig_obj[0] = args;
24931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24932 if (!SWIG_IsOK(res1)) {
24933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24934 }
24935 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24936 {
24937 PyThreadState* __tstate = wxPyBeginAllowThreads();
24938 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24939 wxPyEndAllowThreads(__tstate);
24940 if (PyErr_Occurred()) SWIG_fail;
24941 }
24942 resultobj = SWIG_From_int(static_cast< int >(result));
24943 return resultobj;
24944 fail:
24945 return NULL;
24946 }
24947
24948
24949 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24950 PyObject *obj;
24951 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24952 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24953 return SWIG_Py_Void();
24954 }
24955
24956 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24957 return SWIG_Python_InitShadowInstance(args);
24958 }
24959
24960 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24961 PyObject *resultobj = 0;
24962 wxWindow *arg1 = (wxWindow *) 0 ;
24963 wxBitmap &arg2_defvalue = wxNullBitmap ;
24964 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24965 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24966 wxBufferedPaintDC *result = 0 ;
24967 void *argp1 = 0 ;
24968 int res1 = 0 ;
24969 void *argp2 = 0 ;
24970 int res2 = 0 ;
24971 int val3 ;
24972 int ecode3 = 0 ;
24973 PyObject * obj0 = 0 ;
24974 PyObject * obj1 = 0 ;
24975 PyObject * obj2 = 0 ;
24976 char * kwnames[] = {
24977 (char *) "window",(char *) "buffer",(char *) "style", NULL
24978 };
24979
24980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24982 if (!SWIG_IsOK(res1)) {
24983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24984 }
24985 arg1 = reinterpret_cast< wxWindow * >(argp1);
24986 if (obj1) {
24987 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24988 if (!SWIG_IsOK(res2)) {
24989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24990 }
24991 if (!argp2) {
24992 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24993 }
24994 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24995 }
24996 if (obj2) {
24997 ecode3 = SWIG_AsVal_int(obj2, &val3);
24998 if (!SWIG_IsOK(ecode3)) {
24999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25000 }
25001 arg3 = static_cast< int >(val3);
25002 }
25003 {
25004 if (!wxPyCheckForApp()) SWIG_fail;
25005 PyThreadState* __tstate = wxPyBeginAllowThreads();
25006 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
25007 wxPyEndAllowThreads(__tstate);
25008 if (PyErr_Occurred()) SWIG_fail;
25009 }
25010 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25011 return resultobj;
25012 fail:
25013 return NULL;
25014 }
25015
25016
25017 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25018 PyObject *obj;
25019 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25020 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25021 return SWIG_Py_Void();
25022 }
25023
25024 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25025 return SWIG_Python_InitShadowInstance(args);
25026 }
25027
25028 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25029 PyObject *resultobj = 0;
25030 wxWindow *arg1 = (wxWindow *) 0 ;
25031 wxAutoBufferedPaintDC *result = 0 ;
25032 void *argp1 = 0 ;
25033 int res1 = 0 ;
25034 PyObject * obj0 = 0 ;
25035 char * kwnames[] = {
25036 (char *) "win", NULL
25037 };
25038
25039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
25040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25041 if (!SWIG_IsOK(res1)) {
25042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25043 }
25044 arg1 = reinterpret_cast< wxWindow * >(argp1);
25045 {
25046 PyThreadState* __tstate = wxPyBeginAllowThreads();
25047 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
25048 wxPyEndAllowThreads(__tstate);
25049 if (PyErr_Occurred()) SWIG_fail;
25050 }
25051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25052 return resultobj;
25053 fail:
25054 return NULL;
25055 }
25056
25057
25058 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25059 PyObject *obj;
25060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25061 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
25062 return SWIG_Py_Void();
25063 }
25064
25065 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25066 return SWIG_Python_InitShadowInstance(args);
25067 }
25068
25069 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25070 PyObject *resultobj = 0;
25071 wxWindow *arg1 = (wxWindow *) 0 ;
25072 wxDC *result = 0 ;
25073 void *argp1 = 0 ;
25074 int res1 = 0 ;
25075 PyObject * obj0 = 0 ;
25076 char * kwnames[] = {
25077 (char *) "window", NULL
25078 };
25079
25080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25082 if (!SWIG_IsOK(res1)) {
25083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25084 }
25085 arg1 = reinterpret_cast< wxWindow * >(argp1);
25086 {
25087 PyThreadState* __tstate = wxPyBeginAllowThreads();
25088 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25089 wxPyEndAllowThreads(__tstate);
25090 if (PyErr_Occurred()) SWIG_fail;
25091 }
25092 {
25093 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25094 }
25095 return resultobj;
25096 fail:
25097 return NULL;
25098 }
25099
25100
25101 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25102 PyObject *resultobj = 0;
25103 wxDC *arg1 = 0 ;
25104 bool arg2 ;
25105 wxMirrorDC *result = 0 ;
25106 void *argp1 = 0 ;
25107 int res1 = 0 ;
25108 bool val2 ;
25109 int ecode2 = 0 ;
25110 PyObject * obj0 = 0 ;
25111 PyObject * obj1 = 0 ;
25112 char * kwnames[] = {
25113 (char *) "dc",(char *) "mirror", NULL
25114 };
25115
25116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25117 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25118 if (!SWIG_IsOK(res1)) {
25119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25120 }
25121 if (!argp1) {
25122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25123 }
25124 arg1 = reinterpret_cast< wxDC * >(argp1);
25125 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25126 if (!SWIG_IsOK(ecode2)) {
25127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25128 }
25129 arg2 = static_cast< bool >(val2);
25130 {
25131 if (!wxPyCheckForApp()) SWIG_fail;
25132 PyThreadState* __tstate = wxPyBeginAllowThreads();
25133 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25134 wxPyEndAllowThreads(__tstate);
25135 if (PyErr_Occurred()) SWIG_fail;
25136 }
25137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25138 return resultobj;
25139 fail:
25140 return NULL;
25141 }
25142
25143
25144 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25145 PyObject *obj;
25146 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25147 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
25148 return SWIG_Py_Void();
25149 }
25150
25151 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25152 return SWIG_Python_InitShadowInstance(args);
25153 }
25154
25155 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25156 PyObject *resultobj = 0;
25157 wxPrintData *arg1 = 0 ;
25158 wxPostScriptDC *result = 0 ;
25159 void *argp1 = 0 ;
25160 int res1 = 0 ;
25161 PyObject * obj0 = 0 ;
25162 char * kwnames[] = {
25163 (char *) "printData", NULL
25164 };
25165
25166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
25167 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25168 if (!SWIG_IsOK(res1)) {
25169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25170 }
25171 if (!argp1) {
25172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25173 }
25174 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25175 {
25176 if (!wxPyCheckForApp()) SWIG_fail;
25177 PyThreadState* __tstate = wxPyBeginAllowThreads();
25178 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
25179 wxPyEndAllowThreads(__tstate);
25180 if (PyErr_Occurred()) SWIG_fail;
25181 }
25182 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
25183 return resultobj;
25184 fail:
25185 return NULL;
25186 }
25187
25188
25189 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25190 PyObject *resultobj = 0;
25191 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25192 wxPrintData *result = 0 ;
25193 void *argp1 = 0 ;
25194 int res1 = 0 ;
25195 PyObject *swig_obj[1] ;
25196
25197 if (!args) SWIG_fail;
25198 swig_obj[0] = args;
25199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25200 if (!SWIG_IsOK(res1)) {
25201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25202 }
25203 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25204 {
25205 PyThreadState* __tstate = wxPyBeginAllowThreads();
25206 {
25207 wxPrintData &_result_ref = (arg1)->GetPrintData();
25208 result = (wxPrintData *) &_result_ref;
25209 }
25210 wxPyEndAllowThreads(__tstate);
25211 if (PyErr_Occurred()) SWIG_fail;
25212 }
25213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
25214 return resultobj;
25215 fail:
25216 return NULL;
25217 }
25218
25219
25220 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25221 PyObject *resultobj = 0;
25222 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25223 wxPrintData *arg2 = 0 ;
25224 void *argp1 = 0 ;
25225 int res1 = 0 ;
25226 void *argp2 = 0 ;
25227 int res2 = 0 ;
25228 PyObject * obj0 = 0 ;
25229 PyObject * obj1 = 0 ;
25230 char * kwnames[] = {
25231 (char *) "self",(char *) "data", NULL
25232 };
25233
25234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
25235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25236 if (!SWIG_IsOK(res1)) {
25237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25238 }
25239 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25240 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
25241 if (!SWIG_IsOK(res2)) {
25242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25243 }
25244 if (!argp2) {
25245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25246 }
25247 arg2 = reinterpret_cast< wxPrintData * >(argp2);
25248 {
25249 PyThreadState* __tstate = wxPyBeginAllowThreads();
25250 (arg1)->SetPrintData((wxPrintData const &)*arg2);
25251 wxPyEndAllowThreads(__tstate);
25252 if (PyErr_Occurred()) SWIG_fail;
25253 }
25254 resultobj = SWIG_Py_Void();
25255 return resultobj;
25256 fail:
25257 return NULL;
25258 }
25259
25260
25261 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25262 PyObject *resultobj = 0;
25263 int arg1 ;
25264 int val1 ;
25265 int ecode1 = 0 ;
25266 PyObject * obj0 = 0 ;
25267 char * kwnames[] = {
25268 (char *) "ppi", NULL
25269 };
25270
25271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
25272 ecode1 = SWIG_AsVal_int(obj0, &val1);
25273 if (!SWIG_IsOK(ecode1)) {
25274 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
25275 }
25276 arg1 = static_cast< int >(val1);
25277 {
25278 PyThreadState* __tstate = wxPyBeginAllowThreads();
25279 wxPostScriptDC::SetResolution(arg1);
25280 wxPyEndAllowThreads(__tstate);
25281 if (PyErr_Occurred()) SWIG_fail;
25282 }
25283 resultobj = SWIG_Py_Void();
25284 return resultobj;
25285 fail:
25286 return NULL;
25287 }
25288
25289
25290 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25291 PyObject *resultobj = 0;
25292 int result;
25293
25294 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
25295 {
25296 PyThreadState* __tstate = wxPyBeginAllowThreads();
25297 result = (int)wxPostScriptDC::GetResolution();
25298 wxPyEndAllowThreads(__tstate);
25299 if (PyErr_Occurred()) SWIG_fail;
25300 }
25301 resultobj = SWIG_From_int(static_cast< int >(result));
25302 return resultobj;
25303 fail:
25304 return NULL;
25305 }
25306
25307
25308 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25309 PyObject *obj;
25310 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25311 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
25312 return SWIG_Py_Void();
25313 }
25314
25315 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25316 return SWIG_Python_InitShadowInstance(args);
25317 }
25318
25319 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25320 PyObject *resultobj = 0;
25321 wxString const &arg1_defvalue = wxPyEmptyString ;
25322 wxString *arg1 = (wxString *) &arg1_defvalue ;
25323 wxMetaFile *result = 0 ;
25324 bool temp1 = false ;
25325 PyObject * obj0 = 0 ;
25326 char * kwnames[] = {
25327 (char *) "filename", NULL
25328 };
25329
25330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25331 if (obj0) {
25332 {
25333 arg1 = wxString_in_helper(obj0);
25334 if (arg1 == NULL) SWIG_fail;
25335 temp1 = true;
25336 }
25337 }
25338 {
25339 if (!wxPyCheckForApp()) SWIG_fail;
25340 PyThreadState* __tstate = wxPyBeginAllowThreads();
25341 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25342 wxPyEndAllowThreads(__tstate);
25343 if (PyErr_Occurred()) SWIG_fail;
25344 }
25345 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25346 {
25347 if (temp1)
25348 delete arg1;
25349 }
25350 return resultobj;
25351 fail:
25352 {
25353 if (temp1)
25354 delete arg1;
25355 }
25356 return NULL;
25357 }
25358
25359
25360 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25361 PyObject *obj;
25362 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25363 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25364 return SWIG_Py_Void();
25365 }
25366
25367 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25368 return SWIG_Python_InitShadowInstance(args);
25369 }
25370
25371 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25372 PyObject *resultobj = 0;
25373 wxString const &arg1_defvalue = wxPyEmptyString ;
25374 wxString *arg1 = (wxString *) &arg1_defvalue ;
25375 int arg2 = (int) 0 ;
25376 int arg3 = (int) 0 ;
25377 wxString const &arg4_defvalue = wxPyEmptyString ;
25378 wxString *arg4 = (wxString *) &arg4_defvalue ;
25379 wxMetaFileDC *result = 0 ;
25380 bool temp1 = false ;
25381 int val2 ;
25382 int ecode2 = 0 ;
25383 int val3 ;
25384 int ecode3 = 0 ;
25385 bool temp4 = false ;
25386 PyObject * obj0 = 0 ;
25387 PyObject * obj1 = 0 ;
25388 PyObject * obj2 = 0 ;
25389 PyObject * obj3 = 0 ;
25390 char * kwnames[] = {
25391 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25392 };
25393
25394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25395 if (obj0) {
25396 {
25397 arg1 = wxString_in_helper(obj0);
25398 if (arg1 == NULL) SWIG_fail;
25399 temp1 = true;
25400 }
25401 }
25402 if (obj1) {
25403 ecode2 = SWIG_AsVal_int(obj1, &val2);
25404 if (!SWIG_IsOK(ecode2)) {
25405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25406 }
25407 arg2 = static_cast< int >(val2);
25408 }
25409 if (obj2) {
25410 ecode3 = SWIG_AsVal_int(obj2, &val3);
25411 if (!SWIG_IsOK(ecode3)) {
25412 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25413 }
25414 arg3 = static_cast< int >(val3);
25415 }
25416 if (obj3) {
25417 {
25418 arg4 = wxString_in_helper(obj3);
25419 if (arg4 == NULL) SWIG_fail;
25420 temp4 = true;
25421 }
25422 }
25423 {
25424 if (!wxPyCheckForApp()) SWIG_fail;
25425 PyThreadState* __tstate = wxPyBeginAllowThreads();
25426 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25427 wxPyEndAllowThreads(__tstate);
25428 if (PyErr_Occurred()) SWIG_fail;
25429 }
25430 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25431 {
25432 if (temp1)
25433 delete arg1;
25434 }
25435 {
25436 if (temp4)
25437 delete arg4;
25438 }
25439 return resultobj;
25440 fail:
25441 {
25442 if (temp1)
25443 delete arg1;
25444 }
25445 {
25446 if (temp4)
25447 delete arg4;
25448 }
25449 return NULL;
25450 }
25451
25452
25453 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25454 PyObject *obj;
25455 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25456 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25457 return SWIG_Py_Void();
25458 }
25459
25460 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25461 return SWIG_Python_InitShadowInstance(args);
25462 }
25463
25464 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25465 PyObject *resultobj = 0;
25466 wxPrintData *arg1 = 0 ;
25467 wxPrinterDC *result = 0 ;
25468 void *argp1 = 0 ;
25469 int res1 = 0 ;
25470 PyObject * obj0 = 0 ;
25471 char * kwnames[] = {
25472 (char *) "printData", NULL
25473 };
25474
25475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25476 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25477 if (!SWIG_IsOK(res1)) {
25478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25479 }
25480 if (!argp1) {
25481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25482 }
25483 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25484 {
25485 if (!wxPyCheckForApp()) SWIG_fail;
25486 PyThreadState* __tstate = wxPyBeginAllowThreads();
25487 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25488 wxPyEndAllowThreads(__tstate);
25489 if (PyErr_Occurred()) SWIG_fail;
25490 }
25491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25492 return resultobj;
25493 fail:
25494 return NULL;
25495 }
25496
25497
25498 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25499 PyObject *obj;
25500 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25501 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25502 return SWIG_Py_Void();
25503 }
25504
25505 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25506 return SWIG_Python_InitShadowInstance(args);
25507 }
25508
25509 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25510 PyObject *resultobj = 0;
25511 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25512 wxGraphicsObject *result = 0 ;
25513 void *argp1 = 0 ;
25514 int res1 = 0 ;
25515 PyObject * obj0 = 0 ;
25516 char * kwnames[] = {
25517 (char *) "renderer", NULL
25518 };
25519
25520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25521 if (obj0) {
25522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25523 if (!SWIG_IsOK(res1)) {
25524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25525 }
25526 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25527 }
25528 {
25529 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25530 if (PyErr_Occurred()) SWIG_fail;
25531 }
25532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25533 return resultobj;
25534 fail:
25535 return NULL;
25536 }
25537
25538
25539 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25540 PyObject *resultobj = 0;
25541 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25542 void *argp1 = 0 ;
25543 int res1 = 0 ;
25544 PyObject *swig_obj[1] ;
25545
25546 if (!args) SWIG_fail;
25547 swig_obj[0] = args;
25548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25549 if (!SWIG_IsOK(res1)) {
25550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25551 }
25552 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25553 {
25554 delete arg1;
25555
25556 if (PyErr_Occurred()) SWIG_fail;
25557 }
25558 resultobj = SWIG_Py_Void();
25559 return resultobj;
25560 fail:
25561 return NULL;
25562 }
25563
25564
25565 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25566 PyObject *resultobj = 0;
25567 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25568 bool result;
25569 void *argp1 = 0 ;
25570 int res1 = 0 ;
25571 PyObject *swig_obj[1] ;
25572
25573 if (!args) SWIG_fail;
25574 swig_obj[0] = args;
25575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25576 if (!SWIG_IsOK(res1)) {
25577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25578 }
25579 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25580 {
25581 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25582 if (PyErr_Occurred()) SWIG_fail;
25583 }
25584 {
25585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25586 }
25587 return resultobj;
25588 fail:
25589 return NULL;
25590 }
25591
25592
25593 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25594 PyObject *resultobj = 0;
25595 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25596 wxGraphicsRenderer *result = 0 ;
25597 void *argp1 = 0 ;
25598 int res1 = 0 ;
25599 PyObject *swig_obj[1] ;
25600
25601 if (!args) SWIG_fail;
25602 swig_obj[0] = args;
25603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25604 if (!SWIG_IsOK(res1)) {
25605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25606 }
25607 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25608 {
25609 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25610 if (PyErr_Occurred()) SWIG_fail;
25611 }
25612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25613 return resultobj;
25614 fail:
25615 return NULL;
25616 }
25617
25618
25619 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25620 PyObject *obj;
25621 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25622 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25623 return SWIG_Py_Void();
25624 }
25625
25626 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25627 return SWIG_Python_InitShadowInstance(args);
25628 }
25629
25630 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25631 PyObject *resultobj = 0;
25632 wxGraphicsPen *result = 0 ;
25633
25634 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25635 {
25636 result = (wxGraphicsPen *)new wxGraphicsPen();
25637 if (PyErr_Occurred()) SWIG_fail;
25638 }
25639 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25640 return resultobj;
25641 fail:
25642 return NULL;
25643 }
25644
25645
25646 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25647 PyObject *resultobj = 0;
25648 wxGraphicsPen *arg1 = (wxGraphicsPen *) 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_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25656 if (!SWIG_IsOK(res1)) {
25657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25658 }
25659 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25660 {
25661 delete arg1;
25662
25663 if (PyErr_Occurred()) SWIG_fail;
25664 }
25665 resultobj = SWIG_Py_Void();
25666 return resultobj;
25667 fail:
25668 return NULL;
25669 }
25670
25671
25672 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25673 PyObject *obj;
25674 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25675 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25676 return SWIG_Py_Void();
25677 }
25678
25679 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25680 return SWIG_Python_InitShadowInstance(args);
25681 }
25682
25683 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25684 PyObject *resultobj = 0;
25685 wxGraphicsBrush *result = 0 ;
25686
25687 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25688 {
25689 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25690 if (PyErr_Occurred()) SWIG_fail;
25691 }
25692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25693 return resultobj;
25694 fail:
25695 return NULL;
25696 }
25697
25698
25699 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25700 PyObject *resultobj = 0;
25701 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25702 void *argp1 = 0 ;
25703 int res1 = 0 ;
25704 PyObject *swig_obj[1] ;
25705
25706 if (!args) SWIG_fail;
25707 swig_obj[0] = args;
25708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25709 if (!SWIG_IsOK(res1)) {
25710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25711 }
25712 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25713 {
25714 delete arg1;
25715
25716 if (PyErr_Occurred()) SWIG_fail;
25717 }
25718 resultobj = SWIG_Py_Void();
25719 return resultobj;
25720 fail:
25721 return NULL;
25722 }
25723
25724
25725 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25726 PyObject *obj;
25727 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25728 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25729 return SWIG_Py_Void();
25730 }
25731
25732 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25733 return SWIG_Python_InitShadowInstance(args);
25734 }
25735
25736 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25737 PyObject *resultobj = 0;
25738 wxGraphicsFont *result = 0 ;
25739
25740 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25741 {
25742 result = (wxGraphicsFont *)new wxGraphicsFont();
25743 if (PyErr_Occurred()) SWIG_fail;
25744 }
25745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25746 return resultobj;
25747 fail:
25748 return NULL;
25749 }
25750
25751
25752 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25753 PyObject *resultobj = 0;
25754 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25755 void *argp1 = 0 ;
25756 int res1 = 0 ;
25757 PyObject *swig_obj[1] ;
25758
25759 if (!args) SWIG_fail;
25760 swig_obj[0] = args;
25761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25762 if (!SWIG_IsOK(res1)) {
25763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25764 }
25765 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25766 {
25767 delete arg1;
25768
25769 if (PyErr_Occurred()) SWIG_fail;
25770 }
25771 resultobj = SWIG_Py_Void();
25772 return resultobj;
25773 fail:
25774 return NULL;
25775 }
25776
25777
25778 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25779 PyObject *obj;
25780 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25781 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25782 return SWIG_Py_Void();
25783 }
25784
25785 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25786 return SWIG_Python_InitShadowInstance(args);
25787 }
25788
25789 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25790 PyObject *resultobj = 0;
25791 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25792 void *argp1 = 0 ;
25793 int res1 = 0 ;
25794 PyObject *swig_obj[1] ;
25795
25796 if (!args) SWIG_fail;
25797 swig_obj[0] = args;
25798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
25799 if (!SWIG_IsOK(res1)) {
25800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25801 }
25802 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25803 {
25804 delete arg1;
25805
25806 if (PyErr_Occurred()) SWIG_fail;
25807 }
25808 resultobj = SWIG_Py_Void();
25809 return resultobj;
25810 fail:
25811 return NULL;
25812 }
25813
25814
25815 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25816 PyObject *resultobj = 0;
25817 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25818 wxGraphicsMatrix *arg2 = 0 ;
25819 void *argp1 = 0 ;
25820 int res1 = 0 ;
25821 void *argp2 = 0 ;
25822 int res2 = 0 ;
25823 PyObject * obj0 = 0 ;
25824 PyObject * obj1 = 0 ;
25825 char * kwnames[] = {
25826 (char *) "self",(char *) "t", NULL
25827 };
25828
25829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25831 if (!SWIG_IsOK(res1)) {
25832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25833 }
25834 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25835 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25836 if (!SWIG_IsOK(res2)) {
25837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25838 }
25839 if (!argp2) {
25840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25841 }
25842 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
25843 {
25844 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
25845 if (PyErr_Occurred()) SWIG_fail;
25846 }
25847 resultobj = SWIG_Py_Void();
25848 return resultobj;
25849 fail:
25850 return NULL;
25851 }
25852
25853
25854 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25855 PyObject *resultobj = 0;
25856 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25857 wxDouble arg2 = (wxDouble) 1.0 ;
25858 wxDouble arg3 = (wxDouble) 0.0 ;
25859 wxDouble arg4 = (wxDouble) 0.0 ;
25860 wxDouble arg5 = (wxDouble) 1.0 ;
25861 wxDouble arg6 = (wxDouble) 0.0 ;
25862 wxDouble arg7 = (wxDouble) 0.0 ;
25863 void *argp1 = 0 ;
25864 int res1 = 0 ;
25865 double val2 ;
25866 int ecode2 = 0 ;
25867 double val3 ;
25868 int ecode3 = 0 ;
25869 double val4 ;
25870 int ecode4 = 0 ;
25871 double val5 ;
25872 int ecode5 = 0 ;
25873 double val6 ;
25874 int ecode6 = 0 ;
25875 double val7 ;
25876 int ecode7 = 0 ;
25877 PyObject * obj0 = 0 ;
25878 PyObject * obj1 = 0 ;
25879 PyObject * obj2 = 0 ;
25880 PyObject * obj3 = 0 ;
25881 PyObject * obj4 = 0 ;
25882 PyObject * obj5 = 0 ;
25883 PyObject * obj6 = 0 ;
25884 char * kwnames[] = {
25885 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25886 };
25887
25888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25890 if (!SWIG_IsOK(res1)) {
25891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25892 }
25893 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25894 if (obj1) {
25895 ecode2 = SWIG_AsVal_double(obj1, &val2);
25896 if (!SWIG_IsOK(ecode2)) {
25897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25898 }
25899 arg2 = static_cast< wxDouble >(val2);
25900 }
25901 if (obj2) {
25902 ecode3 = SWIG_AsVal_double(obj2, &val3);
25903 if (!SWIG_IsOK(ecode3)) {
25904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25905 }
25906 arg3 = static_cast< wxDouble >(val3);
25907 }
25908 if (obj3) {
25909 ecode4 = SWIG_AsVal_double(obj3, &val4);
25910 if (!SWIG_IsOK(ecode4)) {
25911 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25912 }
25913 arg4 = static_cast< wxDouble >(val4);
25914 }
25915 if (obj4) {
25916 ecode5 = SWIG_AsVal_double(obj4, &val5);
25917 if (!SWIG_IsOK(ecode5)) {
25918 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25919 }
25920 arg5 = static_cast< wxDouble >(val5);
25921 }
25922 if (obj5) {
25923 ecode6 = SWIG_AsVal_double(obj5, &val6);
25924 if (!SWIG_IsOK(ecode6)) {
25925 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25926 }
25927 arg6 = static_cast< wxDouble >(val6);
25928 }
25929 if (obj6) {
25930 ecode7 = SWIG_AsVal_double(obj6, &val7);
25931 if (!SWIG_IsOK(ecode7)) {
25932 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25933 }
25934 arg7 = static_cast< wxDouble >(val7);
25935 }
25936 {
25937 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
25938 if (PyErr_Occurred()) SWIG_fail;
25939 }
25940 resultobj = SWIG_Py_Void();
25941 return resultobj;
25942 fail:
25943 return NULL;
25944 }
25945
25946
25947 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25948 PyObject *resultobj = 0;
25949 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25950 wxDouble *arg2 = (wxDouble *) 0 ;
25951 wxDouble *arg3 = (wxDouble *) 0 ;
25952 wxDouble *arg4 = (wxDouble *) 0 ;
25953 wxDouble *arg5 = (wxDouble *) 0 ;
25954 wxDouble *arg6 = (wxDouble *) 0 ;
25955 wxDouble *arg7 = (wxDouble *) 0 ;
25956 void *argp1 = 0 ;
25957 int res1 = 0 ;
25958 wxDouble temp2 ;
25959 int res2 = SWIG_TMPOBJ ;
25960 wxDouble temp3 ;
25961 int res3 = SWIG_TMPOBJ ;
25962 wxDouble temp4 ;
25963 int res4 = SWIG_TMPOBJ ;
25964 wxDouble temp5 ;
25965 int res5 = SWIG_TMPOBJ ;
25966 wxDouble temp6 ;
25967 int res6 = SWIG_TMPOBJ ;
25968 wxDouble temp7 ;
25969 int res7 = SWIG_TMPOBJ ;
25970 PyObject *swig_obj[1] ;
25971
25972 arg2 = &temp2;
25973 arg3 = &temp3;
25974 arg4 = &temp4;
25975 arg5 = &temp5;
25976 arg6 = &temp6;
25977 arg7 = &temp7;
25978 if (!args) SWIG_fail;
25979 swig_obj[0] = args;
25980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25981 if (!SWIG_IsOK(res1)) {
25982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25983 }
25984 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25985 {
25986 (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7);
25987 if (PyErr_Occurred()) SWIG_fail;
25988 }
25989 resultobj = SWIG_Py_Void();
25990 if (SWIG_IsTmpObj(res2)) {
25991 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25992 } else {
25993 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25994 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25995 }
25996 if (SWIG_IsTmpObj(res3)) {
25997 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25998 } else {
25999 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26000 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26001 }
26002 if (SWIG_IsTmpObj(res4)) {
26003 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26004 } else {
26005 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26006 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26007 }
26008 if (SWIG_IsTmpObj(res5)) {
26009 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26010 } else {
26011 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26012 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26013 }
26014 if (SWIG_IsTmpObj(res6)) {
26015 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26016 } else {
26017 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26018 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26019 }
26020 if (SWIG_IsTmpObj(res7)) {
26021 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
26022 } else {
26023 int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26024 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
26025 }
26026 return resultobj;
26027 fail:
26028 return NULL;
26029 }
26030
26031
26032 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26033 PyObject *resultobj = 0;
26034 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26035 void *argp1 = 0 ;
26036 int res1 = 0 ;
26037 PyObject *swig_obj[1] ;
26038
26039 if (!args) SWIG_fail;
26040 swig_obj[0] = args;
26041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26042 if (!SWIG_IsOK(res1)) {
26043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26044 }
26045 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26046 {
26047 (arg1)->Invert();
26048 if (PyErr_Occurred()) SWIG_fail;
26049 }
26050 resultobj = SWIG_Py_Void();
26051 return resultobj;
26052 fail:
26053 return NULL;
26054 }
26055
26056
26057 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26058 PyObject *resultobj = 0;
26059 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26060 wxGraphicsMatrix *arg2 = 0 ;
26061 bool result;
26062 void *argp1 = 0 ;
26063 int res1 = 0 ;
26064 void *argp2 = 0 ;
26065 int res2 = 0 ;
26066 PyObject * obj0 = 0 ;
26067 PyObject * obj1 = 0 ;
26068 char * kwnames[] = {
26069 (char *) "self",(char *) "t", NULL
26070 };
26071
26072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
26073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26074 if (!SWIG_IsOK(res1)) {
26075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26076 }
26077 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26078 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26079 if (!SWIG_IsOK(res2)) {
26080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26081 }
26082 if (!argp2) {
26083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26084 }
26085 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26086 {
26087 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
26088 if (PyErr_Occurred()) SWIG_fail;
26089 }
26090 {
26091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26092 }
26093 return resultobj;
26094 fail:
26095 return NULL;
26096 }
26097
26098
26099 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26100 PyObject *resultobj = 0;
26101 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26102 bool result;
26103 void *argp1 = 0 ;
26104 int res1 = 0 ;
26105 PyObject *swig_obj[1] ;
26106
26107 if (!args) SWIG_fail;
26108 swig_obj[0] = args;
26109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26110 if (!SWIG_IsOK(res1)) {
26111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26112 }
26113 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26114 {
26115 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
26116 if (PyErr_Occurred()) SWIG_fail;
26117 }
26118 {
26119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26120 }
26121 return resultobj;
26122 fail:
26123 return NULL;
26124 }
26125
26126
26127 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26128 PyObject *resultobj = 0;
26129 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26130 wxDouble arg2 ;
26131 wxDouble arg3 ;
26132 void *argp1 = 0 ;
26133 int res1 = 0 ;
26134 double val2 ;
26135 int ecode2 = 0 ;
26136 double val3 ;
26137 int ecode3 = 0 ;
26138 PyObject * obj0 = 0 ;
26139 PyObject * obj1 = 0 ;
26140 PyObject * obj2 = 0 ;
26141 char * kwnames[] = {
26142 (char *) "self",(char *) "dx",(char *) "dy", NULL
26143 };
26144
26145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26147 if (!SWIG_IsOK(res1)) {
26148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26149 }
26150 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26151 ecode2 = SWIG_AsVal_double(obj1, &val2);
26152 if (!SWIG_IsOK(ecode2)) {
26153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
26154 }
26155 arg2 = static_cast< wxDouble >(val2);
26156 ecode3 = SWIG_AsVal_double(obj2, &val3);
26157 if (!SWIG_IsOK(ecode3)) {
26158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
26159 }
26160 arg3 = static_cast< wxDouble >(val3);
26161 {
26162 (arg1)->Translate(arg2,arg3);
26163 if (PyErr_Occurred()) SWIG_fail;
26164 }
26165 resultobj = SWIG_Py_Void();
26166 return resultobj;
26167 fail:
26168 return NULL;
26169 }
26170
26171
26172 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26173 PyObject *resultobj = 0;
26174 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26175 wxDouble arg2 ;
26176 wxDouble arg3 ;
26177 void *argp1 = 0 ;
26178 int res1 = 0 ;
26179 double val2 ;
26180 int ecode2 = 0 ;
26181 double val3 ;
26182 int ecode3 = 0 ;
26183 PyObject * obj0 = 0 ;
26184 PyObject * obj1 = 0 ;
26185 PyObject * obj2 = 0 ;
26186 char * kwnames[] = {
26187 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26188 };
26189
26190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26192 if (!SWIG_IsOK(res1)) {
26193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26194 }
26195 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26196 ecode2 = SWIG_AsVal_double(obj1, &val2);
26197 if (!SWIG_IsOK(ecode2)) {
26198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26199 }
26200 arg2 = static_cast< wxDouble >(val2);
26201 ecode3 = SWIG_AsVal_double(obj2, &val3);
26202 if (!SWIG_IsOK(ecode3)) {
26203 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26204 }
26205 arg3 = static_cast< wxDouble >(val3);
26206 {
26207 (arg1)->Scale(arg2,arg3);
26208 if (PyErr_Occurred()) SWIG_fail;
26209 }
26210 resultobj = SWIG_Py_Void();
26211 return resultobj;
26212 fail:
26213 return NULL;
26214 }
26215
26216
26217 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26218 PyObject *resultobj = 0;
26219 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26220 wxDouble arg2 ;
26221 void *argp1 = 0 ;
26222 int res1 = 0 ;
26223 double val2 ;
26224 int ecode2 = 0 ;
26225 PyObject * obj0 = 0 ;
26226 PyObject * obj1 = 0 ;
26227 char * kwnames[] = {
26228 (char *) "self",(char *) "angle", NULL
26229 };
26230
26231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26233 if (!SWIG_IsOK(res1)) {
26234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26235 }
26236 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26237 ecode2 = SWIG_AsVal_double(obj1, &val2);
26238 if (!SWIG_IsOK(ecode2)) {
26239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26240 }
26241 arg2 = static_cast< wxDouble >(val2);
26242 {
26243 (arg1)->Rotate(arg2);
26244 if (PyErr_Occurred()) SWIG_fail;
26245 }
26246 resultobj = SWIG_Py_Void();
26247 return resultobj;
26248 fail:
26249 return NULL;
26250 }
26251
26252
26253 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26254 PyObject *resultobj = 0;
26255 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26256 wxDouble *arg2 = (wxDouble *) 0 ;
26257 wxDouble *arg3 = (wxDouble *) 0 ;
26258 void *argp1 = 0 ;
26259 int res1 = 0 ;
26260 wxDouble temp2 ;
26261 int res2 = 0 ;
26262 wxDouble temp3 ;
26263 int res3 = 0 ;
26264 PyObject * obj0 = 0 ;
26265 PyObject * obj1 = 0 ;
26266 PyObject * obj2 = 0 ;
26267 char * kwnames[] = {
26268 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26269 };
26270
26271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26273 if (!SWIG_IsOK(res1)) {
26274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26275 }
26276 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26277 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26278 double val;
26279 int ecode = SWIG_AsVal_double(obj1, &val);
26280 if (!SWIG_IsOK(ecode)) {
26281 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26282 }
26283 temp2 = static_cast< wxDouble >(val);
26284 arg2 = &temp2;
26285 res2 = SWIG_AddTmpMask(ecode);
26286 }
26287 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26288 double val;
26289 int ecode = SWIG_AsVal_double(obj2, &val);
26290 if (!SWIG_IsOK(ecode)) {
26291 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26292 }
26293 temp3 = static_cast< wxDouble >(val);
26294 arg3 = &temp3;
26295 res3 = SWIG_AddTmpMask(ecode);
26296 }
26297 {
26298 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
26299 if (PyErr_Occurred()) SWIG_fail;
26300 }
26301 resultobj = SWIG_Py_Void();
26302 if (SWIG_IsTmpObj(res2)) {
26303 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26304 } else {
26305 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26306 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26307 }
26308 if (SWIG_IsTmpObj(res3)) {
26309 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26310 } else {
26311 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26312 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26313 }
26314 return resultobj;
26315 fail:
26316 return NULL;
26317 }
26318
26319
26320 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26321 PyObject *resultobj = 0;
26322 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26323 wxDouble *arg2 = (wxDouble *) 0 ;
26324 wxDouble *arg3 = (wxDouble *) 0 ;
26325 void *argp1 = 0 ;
26326 int res1 = 0 ;
26327 wxDouble temp2 ;
26328 int res2 = 0 ;
26329 wxDouble temp3 ;
26330 int res3 = 0 ;
26331 PyObject * obj0 = 0 ;
26332 PyObject * obj1 = 0 ;
26333 PyObject * obj2 = 0 ;
26334 char * kwnames[] = {
26335 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26336 };
26337
26338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26340 if (!SWIG_IsOK(res1)) {
26341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26342 }
26343 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26344 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26345 double val;
26346 int ecode = SWIG_AsVal_double(obj1, &val);
26347 if (!SWIG_IsOK(ecode)) {
26348 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26349 }
26350 temp2 = static_cast< wxDouble >(val);
26351 arg2 = &temp2;
26352 res2 = SWIG_AddTmpMask(ecode);
26353 }
26354 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26355 double val;
26356 int ecode = SWIG_AsVal_double(obj2, &val);
26357 if (!SWIG_IsOK(ecode)) {
26358 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26359 }
26360 temp3 = static_cast< wxDouble >(val);
26361 arg3 = &temp3;
26362 res3 = SWIG_AddTmpMask(ecode);
26363 }
26364 {
26365 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
26366 if (PyErr_Occurred()) SWIG_fail;
26367 }
26368 resultobj = SWIG_Py_Void();
26369 if (SWIG_IsTmpObj(res2)) {
26370 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26371 } else {
26372 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26373 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26374 }
26375 if (SWIG_IsTmpObj(res3)) {
26376 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26377 } else {
26378 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26379 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26380 }
26381 return resultobj;
26382 fail:
26383 return NULL;
26384 }
26385
26386
26387 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26388 PyObject *resultobj = 0;
26389 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26390 void *result = 0 ;
26391 void *argp1 = 0 ;
26392 int res1 = 0 ;
26393 PyObject *swig_obj[1] ;
26394
26395 if (!args) SWIG_fail;
26396 swig_obj[0] = args;
26397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26398 if (!SWIG_IsOK(res1)) {
26399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26400 }
26401 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26402 {
26403 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26404 if (PyErr_Occurred()) SWIG_fail;
26405 }
26406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26407 return resultobj;
26408 fail:
26409 return NULL;
26410 }
26411
26412
26413 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26414 PyObject *obj;
26415 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26416 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26417 return SWIG_Py_Void();
26418 }
26419
26420 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26421 PyObject *resultobj = 0;
26422 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26423 void *argp1 = 0 ;
26424 int res1 = 0 ;
26425 PyObject *swig_obj[1] ;
26426
26427 if (!args) SWIG_fail;
26428 swig_obj[0] = args;
26429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
26430 if (!SWIG_IsOK(res1)) {
26431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26432 }
26433 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26434 {
26435 delete arg1;
26436
26437 if (PyErr_Occurred()) SWIG_fail;
26438 }
26439 resultobj = SWIG_Py_Void();
26440 return resultobj;
26441 fail:
26442 return NULL;
26443 }
26444
26445
26446 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26447 PyObject *resultobj = 0;
26448 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26449 wxDouble arg2 ;
26450 wxDouble arg3 ;
26451 void *argp1 = 0 ;
26452 int res1 = 0 ;
26453 double val2 ;
26454 int ecode2 = 0 ;
26455 double val3 ;
26456 int ecode3 = 0 ;
26457
26458 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26460 if (!SWIG_IsOK(res1)) {
26461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26462 }
26463 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26464 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26465 if (!SWIG_IsOK(ecode2)) {
26466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26467 }
26468 arg2 = static_cast< wxDouble >(val2);
26469 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26470 if (!SWIG_IsOK(ecode3)) {
26471 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26472 }
26473 arg3 = static_cast< wxDouble >(val3);
26474 {
26475 (arg1)->MoveToPoint(arg2,arg3);
26476 if (PyErr_Occurred()) SWIG_fail;
26477 }
26478 resultobj = SWIG_Py_Void();
26479 return resultobj;
26480 fail:
26481 return NULL;
26482 }
26483
26484
26485 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26486 PyObject *resultobj = 0;
26487 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26488 wxPoint2D *arg2 = 0 ;
26489 void *argp1 = 0 ;
26490 int res1 = 0 ;
26491 wxPoint2D temp2 ;
26492
26493 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26495 if (!SWIG_IsOK(res1)) {
26496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26497 }
26498 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26499 {
26500 arg2 = &temp2;
26501 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26502 }
26503 {
26504 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
26505 if (PyErr_Occurred()) SWIG_fail;
26506 }
26507 resultobj = SWIG_Py_Void();
26508 return resultobj;
26509 fail:
26510 return NULL;
26511 }
26512
26513
26514 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
26515 int argc;
26516 PyObject *argv[4];
26517
26518 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
26519 --argc;
26520 if (argc == 2) {
26521 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
26522 }
26523 if (argc == 3) {
26524 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
26525 }
26526
26527 fail:
26528 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
26529 return NULL;
26530 }
26531
26532
26533 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26534 PyObject *resultobj = 0;
26535 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26536 wxDouble arg2 ;
26537 wxDouble arg3 ;
26538 void *argp1 = 0 ;
26539 int res1 = 0 ;
26540 double val2 ;
26541 int ecode2 = 0 ;
26542 double val3 ;
26543 int ecode3 = 0 ;
26544
26545 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26547 if (!SWIG_IsOK(res1)) {
26548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26549 }
26550 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26551 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26552 if (!SWIG_IsOK(ecode2)) {
26553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26554 }
26555 arg2 = static_cast< wxDouble >(val2);
26556 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26557 if (!SWIG_IsOK(ecode3)) {
26558 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26559 }
26560 arg3 = static_cast< wxDouble >(val3);
26561 {
26562 (arg1)->AddLineToPoint(arg2,arg3);
26563 if (PyErr_Occurred()) SWIG_fail;
26564 }
26565 resultobj = SWIG_Py_Void();
26566 return resultobj;
26567 fail:
26568 return NULL;
26569 }
26570
26571
26572 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26573 PyObject *resultobj = 0;
26574 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26575 wxPoint2D *arg2 = 0 ;
26576 void *argp1 = 0 ;
26577 int res1 = 0 ;
26578 wxPoint2D temp2 ;
26579
26580 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26582 if (!SWIG_IsOK(res1)) {
26583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26584 }
26585 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26586 {
26587 arg2 = &temp2;
26588 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26589 }
26590 {
26591 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
26592 if (PyErr_Occurred()) SWIG_fail;
26593 }
26594 resultobj = SWIG_Py_Void();
26595 return resultobj;
26596 fail:
26597 return NULL;
26598 }
26599
26600
26601 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26602 int argc;
26603 PyObject *argv[4];
26604
26605 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26606 --argc;
26607 if (argc == 2) {
26608 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
26609 }
26610 if (argc == 3) {
26611 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
26612 }
26613
26614 fail:
26615 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
26616 return NULL;
26617 }
26618
26619
26620 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26621 PyObject *resultobj = 0;
26622 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26623 wxDouble arg2 ;
26624 wxDouble arg3 ;
26625 wxDouble arg4 ;
26626 wxDouble arg5 ;
26627 wxDouble arg6 ;
26628 wxDouble arg7 ;
26629 void *argp1 = 0 ;
26630 int res1 = 0 ;
26631 double val2 ;
26632 int ecode2 = 0 ;
26633 double val3 ;
26634 int ecode3 = 0 ;
26635 double val4 ;
26636 int ecode4 = 0 ;
26637 double val5 ;
26638 int ecode5 = 0 ;
26639 double val6 ;
26640 int ecode6 = 0 ;
26641 double val7 ;
26642 int ecode7 = 0 ;
26643
26644 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26646 if (!SWIG_IsOK(res1)) {
26647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26648 }
26649 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26650 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26651 if (!SWIG_IsOK(ecode2)) {
26652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26653 }
26654 arg2 = static_cast< wxDouble >(val2);
26655 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26656 if (!SWIG_IsOK(ecode3)) {
26657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26658 }
26659 arg3 = static_cast< wxDouble >(val3);
26660 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26661 if (!SWIG_IsOK(ecode4)) {
26662 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26663 }
26664 arg4 = static_cast< wxDouble >(val4);
26665 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26666 if (!SWIG_IsOK(ecode5)) {
26667 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26668 }
26669 arg5 = static_cast< wxDouble >(val5);
26670 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26671 if (!SWIG_IsOK(ecode6)) {
26672 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26673 }
26674 arg6 = static_cast< wxDouble >(val6);
26675 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26676 if (!SWIG_IsOK(ecode7)) {
26677 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26678 }
26679 arg7 = static_cast< wxDouble >(val7);
26680 {
26681 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
26682 if (PyErr_Occurred()) SWIG_fail;
26683 }
26684 resultobj = SWIG_Py_Void();
26685 return resultobj;
26686 fail:
26687 return NULL;
26688 }
26689
26690
26691 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26692 PyObject *resultobj = 0;
26693 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26694 wxPoint2D *arg2 = 0 ;
26695 wxPoint2D *arg3 = 0 ;
26696 wxPoint2D *arg4 = 0 ;
26697 void *argp1 = 0 ;
26698 int res1 = 0 ;
26699 wxPoint2D temp2 ;
26700 wxPoint2D temp3 ;
26701 wxPoint2D temp4 ;
26702
26703 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26705 if (!SWIG_IsOK(res1)) {
26706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26707 }
26708 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26709 {
26710 arg2 = &temp2;
26711 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26712 }
26713 {
26714 arg3 = &temp3;
26715 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
26716 }
26717 {
26718 arg4 = &temp4;
26719 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26720 }
26721 {
26722 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
26723 if (PyErr_Occurred()) SWIG_fail;
26724 }
26725 resultobj = SWIG_Py_Void();
26726 return resultobj;
26727 fail:
26728 return NULL;
26729 }
26730
26731
26732 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26733 int argc;
26734 PyObject *argv[8];
26735
26736 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26737 --argc;
26738 if (argc == 4) {
26739 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
26740 }
26741 if (argc == 7) {
26742 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
26743 }
26744
26745 fail:
26746 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
26747 return NULL;
26748 }
26749
26750
26751 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26752 PyObject *resultobj = 0;
26753 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26754 wxGraphicsPath *arg2 = 0 ;
26755 void *argp1 = 0 ;
26756 int res1 = 0 ;
26757 void *argp2 = 0 ;
26758 int res2 = 0 ;
26759 PyObject * obj0 = 0 ;
26760 PyObject * obj1 = 0 ;
26761 char * kwnames[] = {
26762 (char *) "self",(char *) "path", NULL
26763 };
26764
26765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
26766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26767 if (!SWIG_IsOK(res1)) {
26768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26769 }
26770 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26771 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
26772 if (!SWIG_IsOK(res2)) {
26773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26774 }
26775 if (!argp2) {
26776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26777 }
26778 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26779 {
26780 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
26781 if (PyErr_Occurred()) SWIG_fail;
26782 }
26783 resultobj = SWIG_Py_Void();
26784 return resultobj;
26785 fail:
26786 return NULL;
26787 }
26788
26789
26790 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26791 PyObject *resultobj = 0;
26792 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26793 void *argp1 = 0 ;
26794 int res1 = 0 ;
26795 PyObject *swig_obj[1] ;
26796
26797 if (!args) SWIG_fail;
26798 swig_obj[0] = args;
26799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26800 if (!SWIG_IsOK(res1)) {
26801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26802 }
26803 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26804 {
26805 (arg1)->CloseSubpath();
26806 if (PyErr_Occurred()) SWIG_fail;
26807 }
26808 resultobj = SWIG_Py_Void();
26809 return resultobj;
26810 fail:
26811 return NULL;
26812 }
26813
26814
26815 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26816 PyObject *resultobj = 0;
26817 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26818 wxPoint2D result;
26819 void *argp1 = 0 ;
26820 int res1 = 0 ;
26821 PyObject *swig_obj[1] ;
26822
26823 if (!args) SWIG_fail;
26824 swig_obj[0] = args;
26825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26826 if (!SWIG_IsOK(res1)) {
26827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
26828 }
26829 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26830 {
26831 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
26832 if (PyErr_Occurred()) SWIG_fail;
26833 }
26834 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
26835 return resultobj;
26836 fail:
26837 return NULL;
26838 }
26839
26840
26841 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26842 PyObject *resultobj = 0;
26843 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26844 wxDouble arg2 ;
26845 wxDouble arg3 ;
26846 wxDouble arg4 ;
26847 wxDouble arg5 ;
26848 wxDouble arg6 ;
26849 bool arg7 = (bool) true ;
26850 void *argp1 = 0 ;
26851 int res1 = 0 ;
26852 double val2 ;
26853 int ecode2 = 0 ;
26854 double val3 ;
26855 int ecode3 = 0 ;
26856 double val4 ;
26857 int ecode4 = 0 ;
26858 double val5 ;
26859 int ecode5 = 0 ;
26860 double val6 ;
26861 int ecode6 = 0 ;
26862 bool val7 ;
26863 int ecode7 = 0 ;
26864
26865 if ((nobjs < 6) || (nobjs > 7)) SWIG_fail;
26866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26867 if (!SWIG_IsOK(res1)) {
26868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26869 }
26870 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26871 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26872 if (!SWIG_IsOK(ecode2)) {
26873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
26874 }
26875 arg2 = static_cast< wxDouble >(val2);
26876 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26877 if (!SWIG_IsOK(ecode3)) {
26878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26879 }
26880 arg3 = static_cast< wxDouble >(val3);
26881 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26882 if (!SWIG_IsOK(ecode4)) {
26883 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26884 }
26885 arg4 = static_cast< wxDouble >(val4);
26886 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26887 if (!SWIG_IsOK(ecode5)) {
26888 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26889 }
26890 arg5 = static_cast< wxDouble >(val5);
26891 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26892 if (!SWIG_IsOK(ecode6)) {
26893 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26894 }
26895 arg6 = static_cast< wxDouble >(val6);
26896 if (swig_obj[6]) {
26897 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26898 if (!SWIG_IsOK(ecode7)) {
26899 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26900 }
26901 arg7 = static_cast< bool >(val7);
26902 }
26903 {
26904 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
26905 if (PyErr_Occurred()) SWIG_fail;
26906 }
26907 resultobj = SWIG_Py_Void();
26908 return resultobj;
26909 fail:
26910 return NULL;
26911 }
26912
26913
26914 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26915 PyObject *resultobj = 0;
26916 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26917 wxPoint2D *arg2 = 0 ;
26918 wxDouble arg3 ;
26919 wxDouble arg4 ;
26920 wxDouble arg5 ;
26921 bool arg6 = (bool) true ;
26922 void *argp1 = 0 ;
26923 int res1 = 0 ;
26924 wxPoint2D temp2 ;
26925 double val3 ;
26926 int ecode3 = 0 ;
26927 double val4 ;
26928 int ecode4 = 0 ;
26929 double val5 ;
26930 int ecode5 = 0 ;
26931 bool val6 ;
26932 int ecode6 = 0 ;
26933
26934 if ((nobjs < 5) || (nobjs > 6)) SWIG_fail;
26935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26936 if (!SWIG_IsOK(res1)) {
26937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26938 }
26939 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26940 {
26941 arg2 = &temp2;
26942 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26943 }
26944 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26945 if (!SWIG_IsOK(ecode3)) {
26946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26947 }
26948 arg3 = static_cast< wxDouble >(val3);
26949 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26950 if (!SWIG_IsOK(ecode4)) {
26951 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26952 }
26953 arg4 = static_cast< wxDouble >(val4);
26954 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26955 if (!SWIG_IsOK(ecode5)) {
26956 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26957 }
26958 arg5 = static_cast< wxDouble >(val5);
26959 if (swig_obj[5]) {
26960 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26961 if (!SWIG_IsOK(ecode6)) {
26962 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26963 }
26964 arg6 = static_cast< bool >(val6);
26965 }
26966 {
26967 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26968 if (PyErr_Occurred()) SWIG_fail;
26969 }
26970 resultobj = SWIG_Py_Void();
26971 return resultobj;
26972 fail:
26973 return NULL;
26974 }
26975
26976
26977 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
26978 int argc;
26979 PyObject *argv[8];
26980
26981 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
26982 --argc;
26983 if ((argc >= 5) && (argc <= 6)) {
26984 int _v = 0;
26985 {
26986 {
26987 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
26988 }
26989 }
26990 if (!_v) goto check_1;
26991 if (argc > 5) {
26992 {
26993 {
26994 int res = SWIG_AsVal_bool(argv[5], NULL);
26995 _v = SWIG_CheckState(res);
26996 }
26997 }
26998 if (!_v) goto check_1;
26999 }
27000 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
27001 }
27002 check_1:
27003
27004 if ((argc >= 6) && (argc <= 7)) {
27005 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
27006 }
27007
27008 fail:
27009 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
27010 return NULL;
27011 }
27012
27013
27014 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27015 PyObject *resultobj = 0;
27016 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27017 wxDouble arg2 ;
27018 wxDouble arg3 ;
27019 wxDouble arg4 ;
27020 wxDouble arg5 ;
27021 void *argp1 = 0 ;
27022 int res1 = 0 ;
27023 double val2 ;
27024 int ecode2 = 0 ;
27025 double val3 ;
27026 int ecode3 = 0 ;
27027 double val4 ;
27028 int ecode4 = 0 ;
27029 double val5 ;
27030 int ecode5 = 0 ;
27031 PyObject * obj0 = 0 ;
27032 PyObject * obj1 = 0 ;
27033 PyObject * obj2 = 0 ;
27034 PyObject * obj3 = 0 ;
27035 PyObject * obj4 = 0 ;
27036 char * kwnames[] = {
27037 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
27038 };
27039
27040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27042 if (!SWIG_IsOK(res1)) {
27043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27044 }
27045 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27046 ecode2 = SWIG_AsVal_double(obj1, &val2);
27047 if (!SWIG_IsOK(ecode2)) {
27048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27049 }
27050 arg2 = static_cast< wxDouble >(val2);
27051 ecode3 = SWIG_AsVal_double(obj2, &val3);
27052 if (!SWIG_IsOK(ecode3)) {
27053 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27054 }
27055 arg3 = static_cast< wxDouble >(val3);
27056 ecode4 = SWIG_AsVal_double(obj3, &val4);
27057 if (!SWIG_IsOK(ecode4)) {
27058 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27059 }
27060 arg4 = static_cast< wxDouble >(val4);
27061 ecode5 = SWIG_AsVal_double(obj4, &val5);
27062 if (!SWIG_IsOK(ecode5)) {
27063 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27064 }
27065 arg5 = static_cast< wxDouble >(val5);
27066 {
27067 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
27068 if (PyErr_Occurred()) SWIG_fail;
27069 }
27070 resultobj = SWIG_Py_Void();
27071 return resultobj;
27072 fail:
27073 return NULL;
27074 }
27075
27076
27077 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27078 PyObject *resultobj = 0;
27079 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27080 wxDouble arg2 ;
27081 wxDouble arg3 ;
27082 wxDouble arg4 ;
27083 wxDouble arg5 ;
27084 void *argp1 = 0 ;
27085 int res1 = 0 ;
27086 double val2 ;
27087 int ecode2 = 0 ;
27088 double val3 ;
27089 int ecode3 = 0 ;
27090 double val4 ;
27091 int ecode4 = 0 ;
27092 double val5 ;
27093 int ecode5 = 0 ;
27094 PyObject * obj0 = 0 ;
27095 PyObject * obj1 = 0 ;
27096 PyObject * obj2 = 0 ;
27097 PyObject * obj3 = 0 ;
27098 PyObject * obj4 = 0 ;
27099 char * kwnames[] = {
27100 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27101 };
27102
27103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27105 if (!SWIG_IsOK(res1)) {
27106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27107 }
27108 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27109 ecode2 = SWIG_AsVal_double(obj1, &val2);
27110 if (!SWIG_IsOK(ecode2)) {
27111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27112 }
27113 arg2 = static_cast< wxDouble >(val2);
27114 ecode3 = SWIG_AsVal_double(obj2, &val3);
27115 if (!SWIG_IsOK(ecode3)) {
27116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27117 }
27118 arg3 = static_cast< wxDouble >(val3);
27119 ecode4 = SWIG_AsVal_double(obj3, &val4);
27120 if (!SWIG_IsOK(ecode4)) {
27121 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27122 }
27123 arg4 = static_cast< wxDouble >(val4);
27124 ecode5 = SWIG_AsVal_double(obj4, &val5);
27125 if (!SWIG_IsOK(ecode5)) {
27126 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27127 }
27128 arg5 = static_cast< wxDouble >(val5);
27129 {
27130 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
27131 if (PyErr_Occurred()) SWIG_fail;
27132 }
27133 resultobj = SWIG_Py_Void();
27134 return resultobj;
27135 fail:
27136 return NULL;
27137 }
27138
27139
27140 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27141 PyObject *resultobj = 0;
27142 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27143 wxDouble arg2 ;
27144 wxDouble arg3 ;
27145 wxDouble arg4 ;
27146 void *argp1 = 0 ;
27147 int res1 = 0 ;
27148 double val2 ;
27149 int ecode2 = 0 ;
27150 double val3 ;
27151 int ecode3 = 0 ;
27152 double val4 ;
27153 int ecode4 = 0 ;
27154 PyObject * obj0 = 0 ;
27155 PyObject * obj1 = 0 ;
27156 PyObject * obj2 = 0 ;
27157 PyObject * obj3 = 0 ;
27158 char * kwnames[] = {
27159 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
27160 };
27161
27162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27164 if (!SWIG_IsOK(res1)) {
27165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27166 }
27167 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27168 ecode2 = SWIG_AsVal_double(obj1, &val2);
27169 if (!SWIG_IsOK(ecode2)) {
27170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27171 }
27172 arg2 = static_cast< wxDouble >(val2);
27173 ecode3 = SWIG_AsVal_double(obj2, &val3);
27174 if (!SWIG_IsOK(ecode3)) {
27175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27176 }
27177 arg3 = static_cast< wxDouble >(val3);
27178 ecode4 = SWIG_AsVal_double(obj3, &val4);
27179 if (!SWIG_IsOK(ecode4)) {
27180 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27181 }
27182 arg4 = static_cast< wxDouble >(val4);
27183 {
27184 (arg1)->AddCircle(arg2,arg3,arg4);
27185 if (PyErr_Occurred()) SWIG_fail;
27186 }
27187 resultobj = SWIG_Py_Void();
27188 return resultobj;
27189 fail:
27190 return NULL;
27191 }
27192
27193
27194 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27195 PyObject *resultobj = 0;
27196 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27197 wxDouble arg2 ;
27198 wxDouble arg3 ;
27199 wxDouble arg4 ;
27200 wxDouble arg5 ;
27201 wxDouble arg6 ;
27202 void *argp1 = 0 ;
27203 int res1 = 0 ;
27204 double val2 ;
27205 int ecode2 = 0 ;
27206 double val3 ;
27207 int ecode3 = 0 ;
27208 double val4 ;
27209 int ecode4 = 0 ;
27210 double val5 ;
27211 int ecode5 = 0 ;
27212 double val6 ;
27213 int ecode6 = 0 ;
27214 PyObject * obj0 = 0 ;
27215 PyObject * obj1 = 0 ;
27216 PyObject * obj2 = 0 ;
27217 PyObject * obj3 = 0 ;
27218 PyObject * obj4 = 0 ;
27219 PyObject * obj5 = 0 ;
27220 char * kwnames[] = {
27221 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
27222 };
27223
27224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27226 if (!SWIG_IsOK(res1)) {
27227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27228 }
27229 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27230 ecode2 = SWIG_AsVal_double(obj1, &val2);
27231 if (!SWIG_IsOK(ecode2)) {
27232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27233 }
27234 arg2 = static_cast< wxDouble >(val2);
27235 ecode3 = SWIG_AsVal_double(obj2, &val3);
27236 if (!SWIG_IsOK(ecode3)) {
27237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27238 }
27239 arg3 = static_cast< wxDouble >(val3);
27240 ecode4 = SWIG_AsVal_double(obj3, &val4);
27241 if (!SWIG_IsOK(ecode4)) {
27242 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27243 }
27244 arg4 = static_cast< wxDouble >(val4);
27245 ecode5 = SWIG_AsVal_double(obj4, &val5);
27246 if (!SWIG_IsOK(ecode5)) {
27247 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27248 }
27249 arg5 = static_cast< wxDouble >(val5);
27250 ecode6 = SWIG_AsVal_double(obj5, &val6);
27251 if (!SWIG_IsOK(ecode6)) {
27252 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27253 }
27254 arg6 = static_cast< wxDouble >(val6);
27255 {
27256 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
27257 if (PyErr_Occurred()) SWIG_fail;
27258 }
27259 resultobj = SWIG_Py_Void();
27260 return resultobj;
27261 fail:
27262 return NULL;
27263 }
27264
27265
27266 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27267 PyObject *resultobj = 0;
27268 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27269 wxDouble arg2 ;
27270 wxDouble arg3 ;
27271 wxDouble arg4 ;
27272 wxDouble arg5 ;
27273 void *argp1 = 0 ;
27274 int res1 = 0 ;
27275 double val2 ;
27276 int ecode2 = 0 ;
27277 double val3 ;
27278 int ecode3 = 0 ;
27279 double val4 ;
27280 int ecode4 = 0 ;
27281 double val5 ;
27282 int ecode5 = 0 ;
27283 PyObject * obj0 = 0 ;
27284 PyObject * obj1 = 0 ;
27285 PyObject * obj2 = 0 ;
27286 PyObject * obj3 = 0 ;
27287 PyObject * obj4 = 0 ;
27288 char * kwnames[] = {
27289 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27290 };
27291
27292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27294 if (!SWIG_IsOK(res1)) {
27295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27296 }
27297 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27298 ecode2 = SWIG_AsVal_double(obj1, &val2);
27299 if (!SWIG_IsOK(ecode2)) {
27300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27301 }
27302 arg2 = static_cast< wxDouble >(val2);
27303 ecode3 = SWIG_AsVal_double(obj2, &val3);
27304 if (!SWIG_IsOK(ecode3)) {
27305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27306 }
27307 arg3 = static_cast< wxDouble >(val3);
27308 ecode4 = SWIG_AsVal_double(obj3, &val4);
27309 if (!SWIG_IsOK(ecode4)) {
27310 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27311 }
27312 arg4 = static_cast< wxDouble >(val4);
27313 ecode5 = SWIG_AsVal_double(obj4, &val5);
27314 if (!SWIG_IsOK(ecode5)) {
27315 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27316 }
27317 arg5 = static_cast< wxDouble >(val5);
27318 {
27319 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
27320 if (PyErr_Occurred()) SWIG_fail;
27321 }
27322 resultobj = SWIG_Py_Void();
27323 return resultobj;
27324 fail:
27325 return NULL;
27326 }
27327
27328
27329 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27330 PyObject *resultobj = 0;
27331 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27332 wxDouble arg2 ;
27333 wxDouble arg3 ;
27334 wxDouble arg4 ;
27335 wxDouble arg5 ;
27336 wxDouble arg6 ;
27337 void *argp1 = 0 ;
27338 int res1 = 0 ;
27339 double val2 ;
27340 int ecode2 = 0 ;
27341 double val3 ;
27342 int ecode3 = 0 ;
27343 double val4 ;
27344 int ecode4 = 0 ;
27345 double val5 ;
27346 int ecode5 = 0 ;
27347 double val6 ;
27348 int ecode6 = 0 ;
27349 PyObject * obj0 = 0 ;
27350 PyObject * obj1 = 0 ;
27351 PyObject * obj2 = 0 ;
27352 PyObject * obj3 = 0 ;
27353 PyObject * obj4 = 0 ;
27354 PyObject * obj5 = 0 ;
27355 char * kwnames[] = {
27356 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27357 };
27358
27359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27361 if (!SWIG_IsOK(res1)) {
27362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27363 }
27364 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27365 ecode2 = SWIG_AsVal_double(obj1, &val2);
27366 if (!SWIG_IsOK(ecode2)) {
27367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27368 }
27369 arg2 = static_cast< wxDouble >(val2);
27370 ecode3 = SWIG_AsVal_double(obj2, &val3);
27371 if (!SWIG_IsOK(ecode3)) {
27372 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27373 }
27374 arg3 = static_cast< wxDouble >(val3);
27375 ecode4 = SWIG_AsVal_double(obj3, &val4);
27376 if (!SWIG_IsOK(ecode4)) {
27377 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27378 }
27379 arg4 = static_cast< wxDouble >(val4);
27380 ecode5 = SWIG_AsVal_double(obj4, &val5);
27381 if (!SWIG_IsOK(ecode5)) {
27382 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27383 }
27384 arg5 = static_cast< wxDouble >(val5);
27385 ecode6 = SWIG_AsVal_double(obj5, &val6);
27386 if (!SWIG_IsOK(ecode6)) {
27387 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27388 }
27389 arg6 = static_cast< wxDouble >(val6);
27390 {
27391 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27392 if (PyErr_Occurred()) SWIG_fail;
27393 }
27394 resultobj = SWIG_Py_Void();
27395 return resultobj;
27396 fail:
27397 return NULL;
27398 }
27399
27400
27401 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27402 PyObject *resultobj = 0;
27403 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27404 void *result = 0 ;
27405 void *argp1 = 0 ;
27406 int res1 = 0 ;
27407 PyObject *swig_obj[1] ;
27408
27409 if (!args) SWIG_fail;
27410 swig_obj[0] = args;
27411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27412 if (!SWIG_IsOK(res1)) {
27413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27414 }
27415 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27416 {
27417 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
27418 if (PyErr_Occurred()) SWIG_fail;
27419 }
27420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27421 return resultobj;
27422 fail:
27423 return NULL;
27424 }
27425
27426
27427 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27428 PyObject *resultobj = 0;
27429 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27430 void *arg2 = (void *) 0 ;
27431 void *argp1 = 0 ;
27432 int res1 = 0 ;
27433 int res2 ;
27434 PyObject * obj0 = 0 ;
27435 PyObject * obj1 = 0 ;
27436 char * kwnames[] = {
27437 (char *) "self",(char *) "p", NULL
27438 };
27439
27440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27442 if (!SWIG_IsOK(res1)) {
27443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27444 }
27445 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27446 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27447 if (!SWIG_IsOK(res2)) {
27448 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
27449 }
27450 {
27451 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
27452 if (PyErr_Occurred()) SWIG_fail;
27453 }
27454 resultobj = SWIG_Py_Void();
27455 return resultobj;
27456 fail:
27457 return NULL;
27458 }
27459
27460
27461 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27462 PyObject *resultobj = 0;
27463 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27464 wxGraphicsMatrix *arg2 = 0 ;
27465 void *argp1 = 0 ;
27466 int res1 = 0 ;
27467 void *argp2 = 0 ;
27468 int res2 = 0 ;
27469 PyObject * obj0 = 0 ;
27470 PyObject * obj1 = 0 ;
27471 char * kwnames[] = {
27472 (char *) "self",(char *) "matrix", NULL
27473 };
27474
27475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27477 if (!SWIG_IsOK(res1)) {
27478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27479 }
27480 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27481 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27482 if (!SWIG_IsOK(res2)) {
27483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27484 }
27485 if (!argp2) {
27486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27487 }
27488 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
27489 {
27490 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
27491 if (PyErr_Occurred()) SWIG_fail;
27492 }
27493 resultobj = SWIG_Py_Void();
27494 return resultobj;
27495 fail:
27496 return NULL;
27497 }
27498
27499
27500 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27501 PyObject *resultobj = 0;
27502 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27503 wxRect2D result;
27504 void *argp1 = 0 ;
27505 int res1 = 0 ;
27506 PyObject *swig_obj[1] ;
27507
27508 if (!args) SWIG_fail;
27509 swig_obj[0] = args;
27510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27511 if (!SWIG_IsOK(res1)) {
27512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27513 }
27514 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27515 {
27516 result = ((wxGraphicsPath const *)arg1)->GetBox();
27517 if (PyErr_Occurred()) SWIG_fail;
27518 }
27519 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
27520 return resultobj;
27521 fail:
27522 return NULL;
27523 }
27524
27525
27526 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27527 PyObject *resultobj = 0;
27528 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27529 wxDouble arg2 ;
27530 wxDouble arg3 ;
27531 int arg4 = (int) wxODDEVEN_RULE ;
27532 bool result;
27533 void *argp1 = 0 ;
27534 int res1 = 0 ;
27535 double val2 ;
27536 int ecode2 = 0 ;
27537 double val3 ;
27538 int ecode3 = 0 ;
27539 int val4 ;
27540 int ecode4 = 0 ;
27541
27542 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27544 if (!SWIG_IsOK(res1)) {
27545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27546 }
27547 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27548 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27549 if (!SWIG_IsOK(ecode2)) {
27550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27551 }
27552 arg2 = static_cast< wxDouble >(val2);
27553 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27554 if (!SWIG_IsOK(ecode3)) {
27555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27556 }
27557 arg3 = static_cast< wxDouble >(val3);
27558 if (swig_obj[3]) {
27559 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27560 if (!SWIG_IsOK(ecode4)) {
27561 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27562 }
27563 arg4 = static_cast< int >(val4);
27564 }
27565 {
27566 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
27567 if (PyErr_Occurred()) SWIG_fail;
27568 }
27569 {
27570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27571 }
27572 return resultobj;
27573 fail:
27574 return NULL;
27575 }
27576
27577
27578 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27579 PyObject *resultobj = 0;
27580 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27581 wxPoint2D *arg2 = 0 ;
27582 int arg3 = (int) wxODDEVEN_RULE ;
27583 bool result;
27584 void *argp1 = 0 ;
27585 int res1 = 0 ;
27586 wxPoint2D temp2 ;
27587 int val3 ;
27588 int ecode3 = 0 ;
27589
27590 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27592 if (!SWIG_IsOK(res1)) {
27593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27594 }
27595 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27596 {
27597 arg2 = &temp2;
27598 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27599 }
27600 if (swig_obj[2]) {
27601 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27602 if (!SWIG_IsOK(ecode3)) {
27603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27604 }
27605 arg3 = static_cast< int >(val3);
27606 }
27607 {
27608 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3);
27609 if (PyErr_Occurred()) SWIG_fail;
27610 }
27611 {
27612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27613 }
27614 return resultobj;
27615 fail:
27616 return NULL;
27617 }
27618
27619
27620 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27621 int argc;
27622 PyObject *argv[5];
27623
27624 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27625 --argc;
27626 if ((argc >= 2) && (argc <= 3)) {
27627 int _v = 0;
27628 {
27629 {
27630 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
27631 }
27632 }
27633 if (!_v) goto check_1;
27634 if (argc > 2) {
27635 {
27636 {
27637 int res = SWIG_AsVal_int(argv[2], NULL);
27638 _v = SWIG_CheckState(res);
27639 }
27640 }
27641 if (!_v) goto check_1;
27642 }
27643 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
27644 }
27645 check_1:
27646
27647 if ((argc >= 3) && (argc <= 4)) {
27648 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
27649 }
27650
27651 fail:
27652 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
27653 return NULL;
27654 }
27655
27656
27657 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27658 PyObject *obj;
27659 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27660 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
27661 return SWIG_Py_Void();
27662 }
27663
27664 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27665 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27666 return 1;
27667 }
27668
27669
27670 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27671 PyObject *pyobj = 0;
27672
27673 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27674 return pyobj;
27675 }
27676
27677
27678 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27679 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27680 return 1;
27681 }
27682
27683
27684 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27685 PyObject *pyobj = 0;
27686
27687 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27688 return pyobj;
27689 }
27690
27691
27692 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27693 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27694 return 1;
27695 }
27696
27697
27698 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27699 PyObject *pyobj = 0;
27700
27701 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27702 return pyobj;
27703 }
27704
27705
27706 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27707 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27708 return 1;
27709 }
27710
27711
27712 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27713 PyObject *pyobj = 0;
27714
27715 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27716 return pyobj;
27717 }
27718
27719
27720 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27721 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27722 return 1;
27723 }
27724
27725
27726 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27727 PyObject *pyobj = 0;
27728
27729 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27730 return pyobj;
27731 }
27732
27733
27734 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27735 PyObject *resultobj = 0;
27736 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27737 void *argp1 = 0 ;
27738 int res1 = 0 ;
27739 PyObject *swig_obj[1] ;
27740
27741 if (!args) SWIG_fail;
27742 swig_obj[0] = args;
27743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27744 if (!SWIG_IsOK(res1)) {
27745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27746 }
27747 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27748 {
27749 delete arg1;
27750
27751 if (PyErr_Occurred()) SWIG_fail;
27752 }
27753 resultobj = SWIG_Py_Void();
27754 return resultobj;
27755 fail:
27756 return NULL;
27757 }
27758
27759
27760 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27761 PyObject *resultobj = 0;
27762 wxWindowDC *arg1 = 0 ;
27763 wxGraphicsContext *result = 0 ;
27764 void *argp1 = 0 ;
27765 int res1 = 0 ;
27766
27767 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27769 if (!SWIG_IsOK(res1)) {
27770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27771 }
27772 if (!argp1) {
27773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27774 }
27775 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27776 {
27777 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27778 if (PyErr_Occurred()) SWIG_fail;
27779 }
27780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27781 return resultobj;
27782 fail:
27783 return NULL;
27784 }
27785
27786
27787 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27788 PyObject *resultobj = 0;
27789 wxWindow *arg1 = (wxWindow *) 0 ;
27790 wxGraphicsContext *result = 0 ;
27791 void *argp1 = 0 ;
27792 int res1 = 0 ;
27793
27794 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27796 if (!SWIG_IsOK(res1)) {
27797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27798 }
27799 arg1 = reinterpret_cast< wxWindow * >(argp1);
27800 {
27801 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27802 if (PyErr_Occurred()) SWIG_fail;
27803 }
27804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27805 return resultobj;
27806 fail:
27807 return NULL;
27808 }
27809
27810
27811 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27812 int argc;
27813 PyObject *argv[2];
27814
27815 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27816 --argc;
27817 if (argc == 1) {
27818 int _v = 0;
27819 {
27820 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27821 _v = SWIG_CheckState(res);
27822 }
27823 if (!_v) goto check_1;
27824 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27825 }
27826 check_1:
27827
27828 if (argc == 1) {
27829 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27830 }
27831
27832 fail:
27833 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27834 return NULL;
27835 }
27836
27837
27838 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27839 PyObject *resultobj = 0;
27840 wxGraphicsContext *result = 0 ;
27841
27842 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
27843 {
27844 result = (wxGraphicsContext *)wxGraphicsContext::Create();
27845 if (PyErr_Occurred()) SWIG_fail;
27846 }
27847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27848 return resultobj;
27849 fail:
27850 return NULL;
27851 }
27852
27853
27854 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27855 PyObject *resultobj = 0;
27856 void *arg1 = (void *) 0 ;
27857 wxGraphicsContext *result = 0 ;
27858 int res1 ;
27859 PyObject * obj0 = 0 ;
27860 char * kwnames[] = {
27861 (char *) "context", NULL
27862 };
27863
27864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27865 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27866 if (!SWIG_IsOK(res1)) {
27867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27868 }
27869 {
27870 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27871 if (PyErr_Occurred()) SWIG_fail;
27872 }
27873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27874 return resultobj;
27875 fail:
27876 return NULL;
27877 }
27878
27879
27880 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27881 PyObject *resultobj = 0;
27882 void *arg1 = (void *) 0 ;
27883 wxGraphicsContext *result = 0 ;
27884 int res1 ;
27885 PyObject * obj0 = 0 ;
27886 char * kwnames[] = {
27887 (char *) "window", NULL
27888 };
27889
27890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27891 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27892 if (!SWIG_IsOK(res1)) {
27893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27894 }
27895 {
27896 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27897 if (PyErr_Occurred()) SWIG_fail;
27898 }
27899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27900 return resultobj;
27901 fail:
27902 return NULL;
27903 }
27904
27905
27906 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27907 PyObject *resultobj = 0;
27908 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27909 wxGraphicsPath result;
27910 void *argp1 = 0 ;
27911 int res1 = 0 ;
27912 PyObject *swig_obj[1] ;
27913
27914 if (!args) SWIG_fail;
27915 swig_obj[0] = args;
27916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27917 if (!SWIG_IsOK(res1)) {
27918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27919 }
27920 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27921 {
27922 result = (arg1)->CreatePath();
27923 if (PyErr_Occurred()) SWIG_fail;
27924 }
27925 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
27926 return resultobj;
27927 fail:
27928 return NULL;
27929 }
27930
27931
27932 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27933 PyObject *resultobj = 0;
27934 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27935 wxPen *arg2 = 0 ;
27936 wxGraphicsPen result;
27937 void *argp1 = 0 ;
27938 int res1 = 0 ;
27939 void *argp2 = 0 ;
27940 int res2 = 0 ;
27941 PyObject * obj0 = 0 ;
27942 PyObject * obj1 = 0 ;
27943 char * kwnames[] = {
27944 (char *) "self",(char *) "pen", NULL
27945 };
27946
27947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27949 if (!SWIG_IsOK(res1)) {
27950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27951 }
27952 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27953 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27954 if (!SWIG_IsOK(res2)) {
27955 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27956 }
27957 if (!argp2) {
27958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27959 }
27960 arg2 = reinterpret_cast< wxPen * >(argp2);
27961 {
27962 result = (arg1)->CreatePen((wxPen const &)*arg2);
27963 if (PyErr_Occurred()) SWIG_fail;
27964 }
27965 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
27966 return resultobj;
27967 fail:
27968 return NULL;
27969 }
27970
27971
27972 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27973 PyObject *resultobj = 0;
27974 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27975 wxBrush *arg2 = 0 ;
27976 wxGraphicsBrush result;
27977 void *argp1 = 0 ;
27978 int res1 = 0 ;
27979 void *argp2 = 0 ;
27980 int res2 = 0 ;
27981 PyObject * obj0 = 0 ;
27982 PyObject * obj1 = 0 ;
27983 char * kwnames[] = {
27984 (char *) "self",(char *) "brush", NULL
27985 };
27986
27987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27989 if (!SWIG_IsOK(res1)) {
27990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27991 }
27992 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27993 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27994 if (!SWIG_IsOK(res2)) {
27995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27996 }
27997 if (!argp2) {
27998 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27999 }
28000 arg2 = reinterpret_cast< wxBrush * >(argp2);
28001 {
28002 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
28003 if (PyErr_Occurred()) SWIG_fail;
28004 }
28005 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28006 return resultobj;
28007 fail:
28008 return NULL;
28009 }
28010
28011
28012 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28013 PyObject *resultobj = 0;
28014 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28015 wxDouble arg2 ;
28016 wxDouble arg3 ;
28017 wxDouble arg4 ;
28018 wxDouble arg5 ;
28019 wxColour *arg6 = 0 ;
28020 wxColour *arg7 = 0 ;
28021 wxGraphicsBrush result;
28022 void *argp1 = 0 ;
28023 int res1 = 0 ;
28024 double val2 ;
28025 int ecode2 = 0 ;
28026 double val3 ;
28027 int ecode3 = 0 ;
28028 double val4 ;
28029 int ecode4 = 0 ;
28030 double val5 ;
28031 int ecode5 = 0 ;
28032 wxColour temp6 ;
28033 wxColour temp7 ;
28034 PyObject * obj0 = 0 ;
28035 PyObject * obj1 = 0 ;
28036 PyObject * obj2 = 0 ;
28037 PyObject * obj3 = 0 ;
28038 PyObject * obj4 = 0 ;
28039 PyObject * obj5 = 0 ;
28040 PyObject * obj6 = 0 ;
28041 char * kwnames[] = {
28042 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
28043 };
28044
28045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28047 if (!SWIG_IsOK(res1)) {
28048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28049 }
28050 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28051 ecode2 = SWIG_AsVal_double(obj1, &val2);
28052 if (!SWIG_IsOK(ecode2)) {
28053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28054 }
28055 arg2 = static_cast< wxDouble >(val2);
28056 ecode3 = SWIG_AsVal_double(obj2, &val3);
28057 if (!SWIG_IsOK(ecode3)) {
28058 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28059 }
28060 arg3 = static_cast< wxDouble >(val3);
28061 ecode4 = SWIG_AsVal_double(obj3, &val4);
28062 if (!SWIG_IsOK(ecode4)) {
28063 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28064 }
28065 arg4 = static_cast< wxDouble >(val4);
28066 ecode5 = SWIG_AsVal_double(obj4, &val5);
28067 if (!SWIG_IsOK(ecode5)) {
28068 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28069 }
28070 arg5 = static_cast< wxDouble >(val5);
28071 {
28072 arg6 = &temp6;
28073 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
28074 }
28075 {
28076 arg7 = &temp7;
28077 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28078 }
28079 {
28080 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
28081 if (PyErr_Occurred()) SWIG_fail;
28082 }
28083 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28084 return resultobj;
28085 fail:
28086 return NULL;
28087 }
28088
28089
28090 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28091 PyObject *resultobj = 0;
28092 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28093 wxDouble arg2 ;
28094 wxDouble arg3 ;
28095 wxDouble arg4 ;
28096 wxDouble arg5 ;
28097 wxDouble arg6 ;
28098 wxColour *arg7 = 0 ;
28099 wxColour *arg8 = 0 ;
28100 wxGraphicsBrush result;
28101 void *argp1 = 0 ;
28102 int res1 = 0 ;
28103 double val2 ;
28104 int ecode2 = 0 ;
28105 double val3 ;
28106 int ecode3 = 0 ;
28107 double val4 ;
28108 int ecode4 = 0 ;
28109 double val5 ;
28110 int ecode5 = 0 ;
28111 double val6 ;
28112 int ecode6 = 0 ;
28113 wxColour temp7 ;
28114 wxColour temp8 ;
28115 PyObject * obj0 = 0 ;
28116 PyObject * obj1 = 0 ;
28117 PyObject * obj2 = 0 ;
28118 PyObject * obj3 = 0 ;
28119 PyObject * obj4 = 0 ;
28120 PyObject * obj5 = 0 ;
28121 PyObject * obj6 = 0 ;
28122 PyObject * obj7 = 0 ;
28123 char * kwnames[] = {
28124 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
28125 };
28126
28127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28129 if (!SWIG_IsOK(res1)) {
28130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28131 }
28132 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28133 ecode2 = SWIG_AsVal_double(obj1, &val2);
28134 if (!SWIG_IsOK(ecode2)) {
28135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28136 }
28137 arg2 = static_cast< wxDouble >(val2);
28138 ecode3 = SWIG_AsVal_double(obj2, &val3);
28139 if (!SWIG_IsOK(ecode3)) {
28140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28141 }
28142 arg3 = static_cast< wxDouble >(val3);
28143 ecode4 = SWIG_AsVal_double(obj3, &val4);
28144 if (!SWIG_IsOK(ecode4)) {
28145 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28146 }
28147 arg4 = static_cast< wxDouble >(val4);
28148 ecode5 = SWIG_AsVal_double(obj4, &val5);
28149 if (!SWIG_IsOK(ecode5)) {
28150 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28151 }
28152 arg5 = static_cast< wxDouble >(val5);
28153 ecode6 = SWIG_AsVal_double(obj5, &val6);
28154 if (!SWIG_IsOK(ecode6)) {
28155 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
28156 }
28157 arg6 = static_cast< wxDouble >(val6);
28158 {
28159 arg7 = &temp7;
28160 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28161 }
28162 {
28163 arg8 = &temp8;
28164 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28165 }
28166 {
28167 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
28168 if (PyErr_Occurred()) SWIG_fail;
28169 }
28170 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28171 return resultobj;
28172 fail:
28173 return NULL;
28174 }
28175
28176
28177 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28178 PyObject *resultobj = 0;
28179 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28180 wxFont *arg2 = 0 ;
28181 wxColour const &arg3_defvalue = *wxBLACK ;
28182 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28183 wxGraphicsFont result;
28184 void *argp1 = 0 ;
28185 int res1 = 0 ;
28186 void *argp2 = 0 ;
28187 int res2 = 0 ;
28188 wxColour temp3 ;
28189 PyObject * obj0 = 0 ;
28190 PyObject * obj1 = 0 ;
28191 PyObject * obj2 = 0 ;
28192 char * kwnames[] = {
28193 (char *) "self",(char *) "font",(char *) "col", NULL
28194 };
28195
28196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28198 if (!SWIG_IsOK(res1)) {
28199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28200 }
28201 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28202 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28203 if (!SWIG_IsOK(res2)) {
28204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28205 }
28206 if (!argp2) {
28207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28208 }
28209 arg2 = reinterpret_cast< wxFont * >(argp2);
28210 if (obj2) {
28211 {
28212 arg3 = &temp3;
28213 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28214 }
28215 }
28216 {
28217 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28218 if (PyErr_Occurred()) SWIG_fail;
28219 }
28220 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
28221 return resultobj;
28222 fail:
28223 return NULL;
28224 }
28225
28226
28227 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28228 PyObject *resultobj = 0;
28229 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28230 wxDouble arg2 = (wxDouble) 1.0 ;
28231 wxDouble arg3 = (wxDouble) 0.0 ;
28232 wxDouble arg4 = (wxDouble) 0.0 ;
28233 wxDouble arg5 = (wxDouble) 1.0 ;
28234 wxDouble arg6 = (wxDouble) 0.0 ;
28235 wxDouble arg7 = (wxDouble) 0.0 ;
28236 wxGraphicsMatrix result;
28237 void *argp1 = 0 ;
28238 int res1 = 0 ;
28239 double val2 ;
28240 int ecode2 = 0 ;
28241 double val3 ;
28242 int ecode3 = 0 ;
28243 double val4 ;
28244 int ecode4 = 0 ;
28245 double val5 ;
28246 int ecode5 = 0 ;
28247 double val6 ;
28248 int ecode6 = 0 ;
28249 double val7 ;
28250 int ecode7 = 0 ;
28251 PyObject * obj0 = 0 ;
28252 PyObject * obj1 = 0 ;
28253 PyObject * obj2 = 0 ;
28254 PyObject * obj3 = 0 ;
28255 PyObject * obj4 = 0 ;
28256 PyObject * obj5 = 0 ;
28257 PyObject * obj6 = 0 ;
28258 char * kwnames[] = {
28259 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28260 };
28261
28262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28264 if (!SWIG_IsOK(res1)) {
28265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28266 }
28267 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28268 if (obj1) {
28269 ecode2 = SWIG_AsVal_double(obj1, &val2);
28270 if (!SWIG_IsOK(ecode2)) {
28271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28272 }
28273 arg2 = static_cast< wxDouble >(val2);
28274 }
28275 if (obj2) {
28276 ecode3 = SWIG_AsVal_double(obj2, &val3);
28277 if (!SWIG_IsOK(ecode3)) {
28278 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28279 }
28280 arg3 = static_cast< wxDouble >(val3);
28281 }
28282 if (obj3) {
28283 ecode4 = SWIG_AsVal_double(obj3, &val4);
28284 if (!SWIG_IsOK(ecode4)) {
28285 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28286 }
28287 arg4 = static_cast< wxDouble >(val4);
28288 }
28289 if (obj4) {
28290 ecode5 = SWIG_AsVal_double(obj4, &val5);
28291 if (!SWIG_IsOK(ecode5)) {
28292 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28293 }
28294 arg5 = static_cast< wxDouble >(val5);
28295 }
28296 if (obj5) {
28297 ecode6 = SWIG_AsVal_double(obj5, &val6);
28298 if (!SWIG_IsOK(ecode6)) {
28299 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28300 }
28301 arg6 = static_cast< wxDouble >(val6);
28302 }
28303 if (obj6) {
28304 ecode7 = SWIG_AsVal_double(obj6, &val7);
28305 if (!SWIG_IsOK(ecode7)) {
28306 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28307 }
28308 arg7 = static_cast< wxDouble >(val7);
28309 }
28310 {
28311 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
28312 if (PyErr_Occurred()) SWIG_fail;
28313 }
28314 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28315 return resultobj;
28316 fail:
28317 return NULL;
28318 }
28319
28320
28321 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28322 PyObject *resultobj = 0;
28323 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28324 void *argp1 = 0 ;
28325 int res1 = 0 ;
28326 PyObject *swig_obj[1] ;
28327
28328 if (!args) SWIG_fail;
28329 swig_obj[0] = args;
28330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28331 if (!SWIG_IsOK(res1)) {
28332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28333 }
28334 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28335 {
28336 (arg1)->PushState();
28337 if (PyErr_Occurred()) SWIG_fail;
28338 }
28339 resultobj = SWIG_Py_Void();
28340 return resultobj;
28341 fail:
28342 return NULL;
28343 }
28344
28345
28346 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28347 PyObject *resultobj = 0;
28348 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28349 void *argp1 = 0 ;
28350 int res1 = 0 ;
28351 PyObject *swig_obj[1] ;
28352
28353 if (!args) SWIG_fail;
28354 swig_obj[0] = args;
28355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28356 if (!SWIG_IsOK(res1)) {
28357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28358 }
28359 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28360 {
28361 (arg1)->PopState();
28362 if (PyErr_Occurred()) SWIG_fail;
28363 }
28364 resultobj = SWIG_Py_Void();
28365 return resultobj;
28366 fail:
28367 return NULL;
28368 }
28369
28370
28371 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28372 PyObject *resultobj = 0;
28373 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28374 wxRegion *arg2 = 0 ;
28375 void *argp1 = 0 ;
28376 int res1 = 0 ;
28377 void *argp2 = 0 ;
28378 int res2 = 0 ;
28379 PyObject * obj0 = 0 ;
28380 PyObject * obj1 = 0 ;
28381 char * kwnames[] = {
28382 (char *) "self",(char *) "region", NULL
28383 };
28384
28385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
28386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28387 if (!SWIG_IsOK(res1)) {
28388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28389 }
28390 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28391 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28392 if (!SWIG_IsOK(res2)) {
28393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28394 }
28395 if (!argp2) {
28396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28397 }
28398 arg2 = reinterpret_cast< wxRegion * >(argp2);
28399 {
28400 (arg1)->Clip((wxRegion const &)*arg2);
28401 if (PyErr_Occurred()) SWIG_fail;
28402 }
28403 resultobj = SWIG_Py_Void();
28404 return resultobj;
28405 fail:
28406 return NULL;
28407 }
28408
28409
28410 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28411 PyObject *resultobj = 0;
28412 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28413 wxDouble arg2 ;
28414 wxDouble arg3 ;
28415 wxDouble arg4 ;
28416 wxDouble arg5 ;
28417 void *argp1 = 0 ;
28418 int res1 = 0 ;
28419 double val2 ;
28420 int ecode2 = 0 ;
28421 double val3 ;
28422 int ecode3 = 0 ;
28423 double val4 ;
28424 int ecode4 = 0 ;
28425 double val5 ;
28426 int ecode5 = 0 ;
28427 PyObject * obj0 = 0 ;
28428 PyObject * obj1 = 0 ;
28429 PyObject * obj2 = 0 ;
28430 PyObject * obj3 = 0 ;
28431 PyObject * obj4 = 0 ;
28432 char * kwnames[] = {
28433 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28434 };
28435
28436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28438 if (!SWIG_IsOK(res1)) {
28439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28440 }
28441 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28442 ecode2 = SWIG_AsVal_double(obj1, &val2);
28443 if (!SWIG_IsOK(ecode2)) {
28444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28445 }
28446 arg2 = static_cast< wxDouble >(val2);
28447 ecode3 = SWIG_AsVal_double(obj2, &val3);
28448 if (!SWIG_IsOK(ecode3)) {
28449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28450 }
28451 arg3 = static_cast< wxDouble >(val3);
28452 ecode4 = SWIG_AsVal_double(obj3, &val4);
28453 if (!SWIG_IsOK(ecode4)) {
28454 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28455 }
28456 arg4 = static_cast< wxDouble >(val4);
28457 ecode5 = SWIG_AsVal_double(obj4, &val5);
28458 if (!SWIG_IsOK(ecode5)) {
28459 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28460 }
28461 arg5 = static_cast< wxDouble >(val5);
28462 {
28463 (arg1)->Clip(arg2,arg3,arg4,arg5);
28464 if (PyErr_Occurred()) SWIG_fail;
28465 }
28466 resultobj = SWIG_Py_Void();
28467 return resultobj;
28468 fail:
28469 return NULL;
28470 }
28471
28472
28473 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28474 PyObject *resultobj = 0;
28475 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28476 void *argp1 = 0 ;
28477 int res1 = 0 ;
28478 PyObject *swig_obj[1] ;
28479
28480 if (!args) SWIG_fail;
28481 swig_obj[0] = args;
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_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28485 }
28486 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28487 {
28488 (arg1)->ResetClip();
28489 if (PyErr_Occurred()) SWIG_fail;
28490 }
28491 resultobj = SWIG_Py_Void();
28492 return resultobj;
28493 fail:
28494 return NULL;
28495 }
28496
28497
28498 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28499 PyObject *resultobj = 0;
28500 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28501 void *result = 0 ;
28502 void *argp1 = 0 ;
28503 int res1 = 0 ;
28504 PyObject *swig_obj[1] ;
28505
28506 if (!args) SWIG_fail;
28507 swig_obj[0] = args;
28508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28509 if (!SWIG_IsOK(res1)) {
28510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28511 }
28512 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28513 {
28514 result = (void *)(arg1)->GetNativeContext();
28515 if (PyErr_Occurred()) SWIG_fail;
28516 }
28517 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28518 return resultobj;
28519 fail:
28520 return NULL;
28521 }
28522
28523
28524 SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28525 PyObject *resultobj = 0;
28526 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28527 int result;
28528 void *argp1 = 0 ;
28529 int res1 = 0 ;
28530 PyObject *swig_obj[1] ;
28531
28532 if (!args) SWIG_fail;
28533 swig_obj[0] = args;
28534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28535 if (!SWIG_IsOK(res1)) {
28536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28537 }
28538 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28539 {
28540 result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction();
28541 if (PyErr_Occurred()) SWIG_fail;
28542 }
28543 resultobj = SWIG_From_int(static_cast< int >(result));
28544 return resultobj;
28545 fail:
28546 return NULL;
28547 }
28548
28549
28550 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28551 PyObject *resultobj = 0;
28552 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28553 int arg2 ;
28554 bool result;
28555 void *argp1 = 0 ;
28556 int res1 = 0 ;
28557 int val2 ;
28558 int ecode2 = 0 ;
28559 PyObject * obj0 = 0 ;
28560 PyObject * obj1 = 0 ;
28561 char * kwnames[] = {
28562 (char *) "self",(char *) "function", NULL
28563 };
28564
28565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
28566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28567 if (!SWIG_IsOK(res1)) {
28568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28569 }
28570 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28571 ecode2 = SWIG_AsVal_int(obj1, &val2);
28572 if (!SWIG_IsOK(ecode2)) {
28573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
28574 }
28575 arg2 = static_cast< int >(val2);
28576 {
28577 result = (bool)(arg1)->SetLogicalFunction(arg2);
28578 if (PyErr_Occurred()) SWIG_fail;
28579 }
28580 {
28581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28582 }
28583 return resultobj;
28584 fail:
28585 return NULL;
28586 }
28587
28588
28589 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28590 PyObject *resultobj = 0;
28591 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28592 wxDouble arg2 ;
28593 wxDouble arg3 ;
28594 void *argp1 = 0 ;
28595 int res1 = 0 ;
28596 double val2 ;
28597 int ecode2 = 0 ;
28598 double val3 ;
28599 int ecode3 = 0 ;
28600 PyObject * obj0 = 0 ;
28601 PyObject * obj1 = 0 ;
28602 PyObject * obj2 = 0 ;
28603 char * kwnames[] = {
28604 (char *) "self",(char *) "dx",(char *) "dy", NULL
28605 };
28606
28607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28609 if (!SWIG_IsOK(res1)) {
28610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28611 }
28612 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28613 ecode2 = SWIG_AsVal_double(obj1, &val2);
28614 if (!SWIG_IsOK(ecode2)) {
28615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28616 }
28617 arg2 = static_cast< wxDouble >(val2);
28618 ecode3 = SWIG_AsVal_double(obj2, &val3);
28619 if (!SWIG_IsOK(ecode3)) {
28620 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28621 }
28622 arg3 = static_cast< wxDouble >(val3);
28623 {
28624 (arg1)->Translate(arg2,arg3);
28625 if (PyErr_Occurred()) SWIG_fail;
28626 }
28627 resultobj = SWIG_Py_Void();
28628 return resultobj;
28629 fail:
28630 return NULL;
28631 }
28632
28633
28634 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28635 PyObject *resultobj = 0;
28636 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28637 wxDouble arg2 ;
28638 wxDouble arg3 ;
28639 void *argp1 = 0 ;
28640 int res1 = 0 ;
28641 double val2 ;
28642 int ecode2 = 0 ;
28643 double val3 ;
28644 int ecode3 = 0 ;
28645 PyObject * obj0 = 0 ;
28646 PyObject * obj1 = 0 ;
28647 PyObject * obj2 = 0 ;
28648 char * kwnames[] = {
28649 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28650 };
28651
28652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28654 if (!SWIG_IsOK(res1)) {
28655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28656 }
28657 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28658 ecode2 = SWIG_AsVal_double(obj1, &val2);
28659 if (!SWIG_IsOK(ecode2)) {
28660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28661 }
28662 arg2 = static_cast< wxDouble >(val2);
28663 ecode3 = SWIG_AsVal_double(obj2, &val3);
28664 if (!SWIG_IsOK(ecode3)) {
28665 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28666 }
28667 arg3 = static_cast< wxDouble >(val3);
28668 {
28669 (arg1)->Scale(arg2,arg3);
28670 if (PyErr_Occurred()) SWIG_fail;
28671 }
28672 resultobj = SWIG_Py_Void();
28673 return resultobj;
28674 fail:
28675 return NULL;
28676 }
28677
28678
28679 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28680 PyObject *resultobj = 0;
28681 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28682 wxDouble arg2 ;
28683 void *argp1 = 0 ;
28684 int res1 = 0 ;
28685 double val2 ;
28686 int ecode2 = 0 ;
28687 PyObject * obj0 = 0 ;
28688 PyObject * obj1 = 0 ;
28689 char * kwnames[] = {
28690 (char *) "self",(char *) "angle", NULL
28691 };
28692
28693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28695 if (!SWIG_IsOK(res1)) {
28696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28697 }
28698 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28699 ecode2 = SWIG_AsVal_double(obj1, &val2);
28700 if (!SWIG_IsOK(ecode2)) {
28701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28702 }
28703 arg2 = static_cast< wxDouble >(val2);
28704 {
28705 (arg1)->Rotate(arg2);
28706 if (PyErr_Occurred()) SWIG_fail;
28707 }
28708 resultobj = SWIG_Py_Void();
28709 return resultobj;
28710 fail:
28711 return NULL;
28712 }
28713
28714
28715 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28716 PyObject *resultobj = 0;
28717 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28718 wxGraphicsMatrix *arg2 = 0 ;
28719 void *argp1 = 0 ;
28720 int res1 = 0 ;
28721 void *argp2 = 0 ;
28722 int res2 = 0 ;
28723 PyObject * obj0 = 0 ;
28724 PyObject * obj1 = 0 ;
28725 char * kwnames[] = {
28726 (char *) "self",(char *) "matrix", NULL
28727 };
28728
28729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28731 if (!SWIG_IsOK(res1)) {
28732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28733 }
28734 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28735 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28736 if (!SWIG_IsOK(res2)) {
28737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28738 }
28739 if (!argp2) {
28740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28741 }
28742 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28743 {
28744 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28745 if (PyErr_Occurred()) SWIG_fail;
28746 }
28747 resultobj = SWIG_Py_Void();
28748 return resultobj;
28749 fail:
28750 return NULL;
28751 }
28752
28753
28754 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28755 PyObject *resultobj = 0;
28756 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28757 wxGraphicsMatrix *arg2 = 0 ;
28758 void *argp1 = 0 ;
28759 int res1 = 0 ;
28760 void *argp2 = 0 ;
28761 int res2 = 0 ;
28762 PyObject * obj0 = 0 ;
28763 PyObject * obj1 = 0 ;
28764 char * kwnames[] = {
28765 (char *) "self",(char *) "matrix", NULL
28766 };
28767
28768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28770 if (!SWIG_IsOK(res1)) {
28771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28772 }
28773 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28774 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28775 if (!SWIG_IsOK(res2)) {
28776 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28777 }
28778 if (!argp2) {
28779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28780 }
28781 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28782 {
28783 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28784 if (PyErr_Occurred()) SWIG_fail;
28785 }
28786 resultobj = SWIG_Py_Void();
28787 return resultobj;
28788 fail:
28789 return NULL;
28790 }
28791
28792
28793 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28794 PyObject *resultobj = 0;
28795 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28796 wxGraphicsMatrix result;
28797 void *argp1 = 0 ;
28798 int res1 = 0 ;
28799 PyObject *swig_obj[1] ;
28800
28801 if (!args) SWIG_fail;
28802 swig_obj[0] = args;
28803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28804 if (!SWIG_IsOK(res1)) {
28805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28806 }
28807 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28808 {
28809 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28810 if (PyErr_Occurred()) SWIG_fail;
28811 }
28812 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28813 return resultobj;
28814 fail:
28815 return NULL;
28816 }
28817
28818
28819 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28820 PyObject *resultobj = 0;
28821 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28822 wxGraphicsPen *arg2 = 0 ;
28823 void *argp1 = 0 ;
28824 int res1 = 0 ;
28825 void *argp2 = 0 ;
28826 int res2 = 0 ;
28827
28828 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28830 if (!SWIG_IsOK(res1)) {
28831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28832 }
28833 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28834 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28835 if (!SWIG_IsOK(res2)) {
28836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28837 }
28838 if (!argp2) {
28839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28840 }
28841 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28842 {
28843 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28844 if (PyErr_Occurred()) SWIG_fail;
28845 }
28846 resultobj = SWIG_Py_Void();
28847 return resultobj;
28848 fail:
28849 return NULL;
28850 }
28851
28852
28853 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28854 PyObject *resultobj = 0;
28855 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28856 wxPen *arg2 = 0 ;
28857 void *argp1 = 0 ;
28858 int res1 = 0 ;
28859 void *argp2 = 0 ;
28860 int res2 = 0 ;
28861
28862 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28864 if (!SWIG_IsOK(res1)) {
28865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28866 }
28867 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28868 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28869 if (!SWIG_IsOK(res2)) {
28870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28871 }
28872 if (!argp2) {
28873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28874 }
28875 arg2 = reinterpret_cast< wxPen * >(argp2);
28876 {
28877 (arg1)->SetPen((wxPen const &)*arg2);
28878 if (PyErr_Occurred()) SWIG_fail;
28879 }
28880 resultobj = SWIG_Py_Void();
28881 return resultobj;
28882 fail:
28883 return NULL;
28884 }
28885
28886
28887 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28888 int argc;
28889 PyObject *argv[3];
28890
28891 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28892 --argc;
28893 if (argc == 2) {
28894 int _v = 0;
28895 {
28896 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28897 _v = SWIG_CheckState(res);
28898 }
28899 if (!_v) goto check_1;
28900 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28901 }
28902 check_1:
28903
28904 if (argc == 2) {
28905 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28906 }
28907
28908 fail:
28909 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28910 return NULL;
28911 }
28912
28913
28914 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28915 PyObject *resultobj = 0;
28916 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28917 wxGraphicsBrush *arg2 = 0 ;
28918 void *argp1 = 0 ;
28919 int res1 = 0 ;
28920 void *argp2 = 0 ;
28921 int res2 = 0 ;
28922
28923 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28925 if (!SWIG_IsOK(res1)) {
28926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28927 }
28928 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28929 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28930 if (!SWIG_IsOK(res2)) {
28931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28932 }
28933 if (!argp2) {
28934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28935 }
28936 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28937 {
28938 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28939 if (PyErr_Occurred()) SWIG_fail;
28940 }
28941 resultobj = SWIG_Py_Void();
28942 return resultobj;
28943 fail:
28944 return NULL;
28945 }
28946
28947
28948 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28949 PyObject *resultobj = 0;
28950 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28951 wxBrush *arg2 = 0 ;
28952 void *argp1 = 0 ;
28953 int res1 = 0 ;
28954 void *argp2 = 0 ;
28955 int res2 = 0 ;
28956
28957 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28959 if (!SWIG_IsOK(res1)) {
28960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28961 }
28962 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28963 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28964 if (!SWIG_IsOK(res2)) {
28965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28966 }
28967 if (!argp2) {
28968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28969 }
28970 arg2 = reinterpret_cast< wxBrush * >(argp2);
28971 {
28972 (arg1)->SetBrush((wxBrush const &)*arg2);
28973 if (PyErr_Occurred()) SWIG_fail;
28974 }
28975 resultobj = SWIG_Py_Void();
28976 return resultobj;
28977 fail:
28978 return NULL;
28979 }
28980
28981
28982 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28983 int argc;
28984 PyObject *argv[3];
28985
28986 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28987 --argc;
28988 if (argc == 2) {
28989 int _v = 0;
28990 {
28991 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28992 _v = SWIG_CheckState(res);
28993 }
28994 if (!_v) goto check_1;
28995 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
28996 }
28997 check_1:
28998
28999 if (argc == 2) {
29000 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
29001 }
29002
29003 fail:
29004 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
29005 return NULL;
29006 }
29007
29008
29009 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29010 PyObject *resultobj = 0;
29011 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29012 wxGraphicsFont *arg2 = 0 ;
29013 void *argp1 = 0 ;
29014 int res1 = 0 ;
29015 void *argp2 = 0 ;
29016 int res2 = 0 ;
29017
29018 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29020 if (!SWIG_IsOK(res1)) {
29021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29022 }
29023 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29024 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
29025 if (!SWIG_IsOK(res2)) {
29026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29027 }
29028 if (!argp2) {
29029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29030 }
29031 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
29032 {
29033 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
29034 if (PyErr_Occurred()) SWIG_fail;
29035 }
29036 resultobj = SWIG_Py_Void();
29037 return resultobj;
29038 fail:
29039 return NULL;
29040 }
29041
29042
29043 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29044 PyObject *resultobj = 0;
29045 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29046 wxFont *arg2 = 0 ;
29047 wxColour const &arg3_defvalue = *wxBLACK ;
29048 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
29049 void *argp1 = 0 ;
29050 int res1 = 0 ;
29051 void *argp2 = 0 ;
29052 int res2 = 0 ;
29053 wxColour temp3 ;
29054
29055 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
29056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29057 if (!SWIG_IsOK(res1)) {
29058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29059 }
29060 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29061 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
29062 if (!SWIG_IsOK(res2)) {
29063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29064 }
29065 if (!argp2) {
29066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29067 }
29068 arg2 = reinterpret_cast< wxFont * >(argp2);
29069 if (swig_obj[2]) {
29070 {
29071 arg3 = &temp3;
29072 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29073 }
29074 }
29075 {
29076 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
29077 if (PyErr_Occurred()) SWIG_fail;
29078 }
29079 resultobj = SWIG_Py_Void();
29080 return resultobj;
29081 fail:
29082 return NULL;
29083 }
29084
29085
29086 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29087 int argc;
29088 PyObject *argv[4];
29089
29090 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29091 --argc;
29092 if (argc == 2) {
29093 int _v = 0;
29094 {
29095 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29096 _v = SWIG_CheckState(res);
29097 }
29098 if (!_v) goto check_1;
29099 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
29100 }
29101 check_1:
29102
29103 if ((argc >= 2) && (argc <= 3)) {
29104 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
29105 }
29106
29107 fail:
29108 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
29109 return NULL;
29110 }
29111
29112
29113 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29114 PyObject *resultobj = 0;
29115 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29116 wxGraphicsPath *arg2 = 0 ;
29117 void *argp1 = 0 ;
29118 int res1 = 0 ;
29119 void *argp2 = 0 ;
29120 int res2 = 0 ;
29121 PyObject * obj0 = 0 ;
29122 PyObject * obj1 = 0 ;
29123 char * kwnames[] = {
29124 (char *) "self",(char *) "path", NULL
29125 };
29126
29127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29129 if (!SWIG_IsOK(res1)) {
29130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29131 }
29132 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29133 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29134 if (!SWIG_IsOK(res2)) {
29135 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29136 }
29137 if (!argp2) {
29138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29139 }
29140 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29141 {
29142 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
29143 if (PyErr_Occurred()) SWIG_fail;
29144 }
29145 resultobj = SWIG_Py_Void();
29146 return resultobj;
29147 fail:
29148 return NULL;
29149 }
29150
29151
29152 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29153 PyObject *resultobj = 0;
29154 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29155 wxGraphicsPath *arg2 = 0 ;
29156 int arg3 = (int) wxODDEVEN_RULE ;
29157 void *argp1 = 0 ;
29158 int res1 = 0 ;
29159 void *argp2 = 0 ;
29160 int res2 = 0 ;
29161 int val3 ;
29162 int ecode3 = 0 ;
29163 PyObject * obj0 = 0 ;
29164 PyObject * obj1 = 0 ;
29165 PyObject * obj2 = 0 ;
29166 char * kwnames[] = {
29167 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29168 };
29169
29170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29172 if (!SWIG_IsOK(res1)) {
29173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29174 }
29175 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29177 if (!SWIG_IsOK(res2)) {
29178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29179 }
29180 if (!argp2) {
29181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29182 }
29183 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29184 if (obj2) {
29185 ecode3 = SWIG_AsVal_int(obj2, &val3);
29186 if (!SWIG_IsOK(ecode3)) {
29187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29188 }
29189 arg3 = static_cast< int >(val3);
29190 }
29191 {
29192 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
29193 if (PyErr_Occurred()) SWIG_fail;
29194 }
29195 resultobj = SWIG_Py_Void();
29196 return resultobj;
29197 fail:
29198 return NULL;
29199 }
29200
29201
29202 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29203 PyObject *resultobj = 0;
29204 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29205 wxGraphicsPath *arg2 = 0 ;
29206 int arg3 = (int) wxODDEVEN_RULE ;
29207 void *argp1 = 0 ;
29208 int res1 = 0 ;
29209 void *argp2 = 0 ;
29210 int res2 = 0 ;
29211 int val3 ;
29212 int ecode3 = 0 ;
29213 PyObject * obj0 = 0 ;
29214 PyObject * obj1 = 0 ;
29215 PyObject * obj2 = 0 ;
29216 char * kwnames[] = {
29217 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29218 };
29219
29220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29222 if (!SWIG_IsOK(res1)) {
29223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29224 }
29225 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29226 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29227 if (!SWIG_IsOK(res2)) {
29228 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29229 }
29230 if (!argp2) {
29231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29232 }
29233 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29234 if (obj2) {
29235 ecode3 = SWIG_AsVal_int(obj2, &val3);
29236 if (!SWIG_IsOK(ecode3)) {
29237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29238 }
29239 arg3 = static_cast< int >(val3);
29240 }
29241 {
29242 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
29243 if (PyErr_Occurred()) SWIG_fail;
29244 }
29245 resultobj = SWIG_Py_Void();
29246 return resultobj;
29247 fail:
29248 return NULL;
29249 }
29250
29251
29252 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29253 PyObject *resultobj = 0;
29254 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29255 wxString *arg2 = 0 ;
29256 wxDouble arg3 ;
29257 wxDouble arg4 ;
29258 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
29259 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
29260 void *argp1 = 0 ;
29261 int res1 = 0 ;
29262 bool temp2 = false ;
29263 double val3 ;
29264 int ecode3 = 0 ;
29265 double val4 ;
29266 int ecode4 = 0 ;
29267 void *argp5 = 0 ;
29268 int res5 = 0 ;
29269 PyObject * obj0 = 0 ;
29270 PyObject * obj1 = 0 ;
29271 PyObject * obj2 = 0 ;
29272 PyObject * obj3 = 0 ;
29273 PyObject * obj4 = 0 ;
29274 char * kwnames[] = {
29275 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
29276 };
29277
29278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29280 if (!SWIG_IsOK(res1)) {
29281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29282 }
29283 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29284 {
29285 arg2 = wxString_in_helper(obj1);
29286 if (arg2 == NULL) SWIG_fail;
29287 temp2 = true;
29288 }
29289 ecode3 = SWIG_AsVal_double(obj2, &val3);
29290 if (!SWIG_IsOK(ecode3)) {
29291 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29292 }
29293 arg3 = static_cast< wxDouble >(val3);
29294 ecode4 = SWIG_AsVal_double(obj3, &val4);
29295 if (!SWIG_IsOK(ecode4)) {
29296 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29297 }
29298 arg4 = static_cast< wxDouble >(val4);
29299 if (obj4) {
29300 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29301 if (!SWIG_IsOK(res5)) {
29302 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29303 }
29304 if (!argp5) {
29305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29306 }
29307 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29308 }
29309 {
29310 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
29311 if (PyErr_Occurred()) SWIG_fail;
29312 }
29313 resultobj = SWIG_Py_Void();
29314 {
29315 if (temp2)
29316 delete arg2;
29317 }
29318 return resultobj;
29319 fail:
29320 {
29321 if (temp2)
29322 delete arg2;
29323 }
29324 return NULL;
29325 }
29326
29327
29328 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29329 PyObject *resultobj = 0;
29330 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29331 wxString *arg2 = 0 ;
29332 wxDouble arg3 ;
29333 wxDouble arg4 ;
29334 wxDouble arg5 ;
29335 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29336 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
29337 void *argp1 = 0 ;
29338 int res1 = 0 ;
29339 bool temp2 = false ;
29340 double val3 ;
29341 int ecode3 = 0 ;
29342 double val4 ;
29343 int ecode4 = 0 ;
29344 double val5 ;
29345 int ecode5 = 0 ;
29346 void *argp6 = 0 ;
29347 int res6 = 0 ;
29348 PyObject * obj0 = 0 ;
29349 PyObject * obj1 = 0 ;
29350 PyObject * obj2 = 0 ;
29351 PyObject * obj3 = 0 ;
29352 PyObject * obj4 = 0 ;
29353 PyObject * obj5 = 0 ;
29354 char * kwnames[] = {
29355 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
29356 };
29357
29358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29360 if (!SWIG_IsOK(res1)) {
29361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29362 }
29363 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29364 {
29365 arg2 = wxString_in_helper(obj1);
29366 if (arg2 == NULL) SWIG_fail;
29367 temp2 = true;
29368 }
29369 ecode3 = SWIG_AsVal_double(obj2, &val3);
29370 if (!SWIG_IsOK(ecode3)) {
29371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
29372 }
29373 arg3 = static_cast< wxDouble >(val3);
29374 ecode4 = SWIG_AsVal_double(obj3, &val4);
29375 if (!SWIG_IsOK(ecode4)) {
29376 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
29377 }
29378 arg4 = static_cast< wxDouble >(val4);
29379 ecode5 = SWIG_AsVal_double(obj4, &val5);
29380 if (!SWIG_IsOK(ecode5)) {
29381 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
29382 }
29383 arg5 = static_cast< wxDouble >(val5);
29384 if (obj5) {
29385 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29386 if (!SWIG_IsOK(res6)) {
29387 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29388 }
29389 if (!argp6) {
29390 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29391 }
29392 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
29393 }
29394 {
29395 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
29396 if (PyErr_Occurred()) SWIG_fail;
29397 }
29398 resultobj = SWIG_Py_Void();
29399 {
29400 if (temp2)
29401 delete arg2;
29402 }
29403 return resultobj;
29404 fail:
29405 {
29406 if (temp2)
29407 delete arg2;
29408 }
29409 return NULL;
29410 }
29411
29412
29413 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29414 PyObject *resultobj = 0;
29415 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29416 wxString *arg2 = 0 ;
29417 wxDouble *arg3 = (wxDouble *) 0 ;
29418 wxDouble *arg4 = (wxDouble *) 0 ;
29419 wxDouble *arg5 = (wxDouble *) 0 ;
29420 wxDouble *arg6 = (wxDouble *) 0 ;
29421 void *argp1 = 0 ;
29422 int res1 = 0 ;
29423 bool temp2 = false ;
29424 wxDouble temp3 ;
29425 int res3 = SWIG_TMPOBJ ;
29426 wxDouble temp4 ;
29427 int res4 = SWIG_TMPOBJ ;
29428 wxDouble temp5 ;
29429 int res5 = SWIG_TMPOBJ ;
29430 wxDouble temp6 ;
29431 int res6 = SWIG_TMPOBJ ;
29432 PyObject * obj0 = 0 ;
29433 PyObject * obj1 = 0 ;
29434 char * kwnames[] = {
29435 (char *) "self",(char *) "text", NULL
29436 };
29437
29438 arg3 = &temp3;
29439 arg4 = &temp4;
29440 arg5 = &temp5;
29441 arg6 = &temp6;
29442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29444 if (!SWIG_IsOK(res1)) {
29445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29446 }
29447 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29448 {
29449 arg2 = wxString_in_helper(obj1);
29450 if (arg2 == NULL) SWIG_fail;
29451 temp2 = true;
29452 }
29453 {
29454 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
29455 if (PyErr_Occurred()) SWIG_fail;
29456 }
29457 resultobj = SWIG_Py_Void();
29458 if (SWIG_IsTmpObj(res3)) {
29459 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29460 } else {
29461 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29462 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29463 }
29464 if (SWIG_IsTmpObj(res4)) {
29465 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29466 } else {
29467 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29468 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29469 }
29470 if (SWIG_IsTmpObj(res5)) {
29471 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29472 } else {
29473 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29474 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29475 }
29476 if (SWIG_IsTmpObj(res6)) {
29477 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29478 } else {
29479 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29480 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29481 }
29482 {
29483 if (temp2)
29484 delete arg2;
29485 }
29486 return resultobj;
29487 fail:
29488 {
29489 if (temp2)
29490 delete arg2;
29491 }
29492 return NULL;
29493 }
29494
29495
29496 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29497 PyObject *resultobj = 0;
29498 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29499 wxString *arg2 = 0 ;
29500 PyObject *result = 0 ;
29501 void *argp1 = 0 ;
29502 int res1 = 0 ;
29503 bool temp2 = false ;
29504 PyObject * obj0 = 0 ;
29505 PyObject * obj1 = 0 ;
29506 char * kwnames[] = {
29507 (char *) "self",(char *) "text", NULL
29508 };
29509
29510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29512 if (!SWIG_IsOK(res1)) {
29513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29514 }
29515 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29516 {
29517 arg2 = wxString_in_helper(obj1);
29518 if (arg2 == NULL) SWIG_fail;
29519 temp2 = true;
29520 }
29521 {
29522 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29523 if (PyErr_Occurred()) SWIG_fail;
29524 }
29525 resultobj = result;
29526 {
29527 if (temp2)
29528 delete arg2;
29529 }
29530 return resultobj;
29531 fail:
29532 {
29533 if (temp2)
29534 delete arg2;
29535 }
29536 return NULL;
29537 }
29538
29539
29540 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29541 PyObject *resultobj = 0;
29542 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29543 wxString *arg2 = 0 ;
29544 wxArrayDouble result;
29545 void *argp1 = 0 ;
29546 int res1 = 0 ;
29547 bool temp2 = false ;
29548 PyObject * obj0 = 0 ;
29549 PyObject * obj1 = 0 ;
29550 char * kwnames[] = {
29551 (char *) "self",(char *) "text", NULL
29552 };
29553
29554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
29555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29556 if (!SWIG_IsOK(res1)) {
29557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29558 }
29559 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29560 {
29561 arg2 = wxString_in_helper(obj1);
29562 if (arg2 == NULL) SWIG_fail;
29563 temp2 = true;
29564 }
29565 {
29566 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
29567 if (PyErr_Occurred()) SWIG_fail;
29568 }
29569 {
29570 resultobj = wxArrayDouble2PyList_helper(result);
29571 }
29572 {
29573 if (temp2)
29574 delete arg2;
29575 }
29576 return resultobj;
29577 fail:
29578 {
29579 if (temp2)
29580 delete arg2;
29581 }
29582 return NULL;
29583 }
29584
29585
29586 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29587 PyObject *resultobj = 0;
29588 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29589 wxBitmap *arg2 = 0 ;
29590 wxDouble arg3 ;
29591 wxDouble arg4 ;
29592 wxDouble arg5 ;
29593 wxDouble arg6 ;
29594 void *argp1 = 0 ;
29595 int res1 = 0 ;
29596 void *argp2 = 0 ;
29597 int res2 = 0 ;
29598 double val3 ;
29599 int ecode3 = 0 ;
29600 double val4 ;
29601 int ecode4 = 0 ;
29602 double val5 ;
29603 int ecode5 = 0 ;
29604 double val6 ;
29605 int ecode6 = 0 ;
29606 PyObject * obj0 = 0 ;
29607 PyObject * obj1 = 0 ;
29608 PyObject * obj2 = 0 ;
29609 PyObject * obj3 = 0 ;
29610 PyObject * obj4 = 0 ;
29611 PyObject * obj5 = 0 ;
29612 char * kwnames[] = {
29613 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29614 };
29615
29616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29618 if (!SWIG_IsOK(res1)) {
29619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29620 }
29621 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29622 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29623 if (!SWIG_IsOK(res2)) {
29624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29625 }
29626 if (!argp2) {
29627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29628 }
29629 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29630 ecode3 = SWIG_AsVal_double(obj2, &val3);
29631 if (!SWIG_IsOK(ecode3)) {
29632 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29633 }
29634 arg3 = static_cast< wxDouble >(val3);
29635 ecode4 = SWIG_AsVal_double(obj3, &val4);
29636 if (!SWIG_IsOK(ecode4)) {
29637 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29638 }
29639 arg4 = static_cast< wxDouble >(val4);
29640 ecode5 = SWIG_AsVal_double(obj4, &val5);
29641 if (!SWIG_IsOK(ecode5)) {
29642 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29643 }
29644 arg5 = static_cast< wxDouble >(val5);
29645 ecode6 = SWIG_AsVal_double(obj5, &val6);
29646 if (!SWIG_IsOK(ecode6)) {
29647 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29648 }
29649 arg6 = static_cast< wxDouble >(val6);
29650 {
29651 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
29652 if (PyErr_Occurred()) SWIG_fail;
29653 }
29654 resultobj = SWIG_Py_Void();
29655 return resultobj;
29656 fail:
29657 return NULL;
29658 }
29659
29660
29661 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29662 PyObject *resultobj = 0;
29663 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29664 wxIcon *arg2 = 0 ;
29665 wxDouble arg3 ;
29666 wxDouble arg4 ;
29667 wxDouble arg5 ;
29668 wxDouble arg6 ;
29669 void *argp1 = 0 ;
29670 int res1 = 0 ;
29671 void *argp2 = 0 ;
29672 int res2 = 0 ;
29673 double val3 ;
29674 int ecode3 = 0 ;
29675 double val4 ;
29676 int ecode4 = 0 ;
29677 double val5 ;
29678 int ecode5 = 0 ;
29679 double val6 ;
29680 int ecode6 = 0 ;
29681 PyObject * obj0 = 0 ;
29682 PyObject * obj1 = 0 ;
29683 PyObject * obj2 = 0 ;
29684 PyObject * obj3 = 0 ;
29685 PyObject * obj4 = 0 ;
29686 PyObject * obj5 = 0 ;
29687 char * kwnames[] = {
29688 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29689 };
29690
29691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29693 if (!SWIG_IsOK(res1)) {
29694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29695 }
29696 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29697 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29698 if (!SWIG_IsOK(res2)) {
29699 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29700 }
29701 if (!argp2) {
29702 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29703 }
29704 arg2 = reinterpret_cast< wxIcon * >(argp2);
29705 ecode3 = SWIG_AsVal_double(obj2, &val3);
29706 if (!SWIG_IsOK(ecode3)) {
29707 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29708 }
29709 arg3 = static_cast< wxDouble >(val3);
29710 ecode4 = SWIG_AsVal_double(obj3, &val4);
29711 if (!SWIG_IsOK(ecode4)) {
29712 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29713 }
29714 arg4 = static_cast< wxDouble >(val4);
29715 ecode5 = SWIG_AsVal_double(obj4, &val5);
29716 if (!SWIG_IsOK(ecode5)) {
29717 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29718 }
29719 arg5 = static_cast< wxDouble >(val5);
29720 ecode6 = SWIG_AsVal_double(obj5, &val6);
29721 if (!SWIG_IsOK(ecode6)) {
29722 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29723 }
29724 arg6 = static_cast< wxDouble >(val6);
29725 {
29726 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29727 if (PyErr_Occurred()) SWIG_fail;
29728 }
29729 resultobj = SWIG_Py_Void();
29730 return resultobj;
29731 fail:
29732 return NULL;
29733 }
29734
29735
29736 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29737 PyObject *resultobj = 0;
29738 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29739 wxDouble arg2 ;
29740 wxDouble arg3 ;
29741 wxDouble arg4 ;
29742 wxDouble arg5 ;
29743 void *argp1 = 0 ;
29744 int res1 = 0 ;
29745 double val2 ;
29746 int ecode2 = 0 ;
29747 double val3 ;
29748 int ecode3 = 0 ;
29749 double val4 ;
29750 int ecode4 = 0 ;
29751 double val5 ;
29752 int ecode5 = 0 ;
29753 PyObject * obj0 = 0 ;
29754 PyObject * obj1 = 0 ;
29755 PyObject * obj2 = 0 ;
29756 PyObject * obj3 = 0 ;
29757 PyObject * obj4 = 0 ;
29758 char * kwnames[] = {
29759 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29760 };
29761
29762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29764 if (!SWIG_IsOK(res1)) {
29765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29766 }
29767 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29768 ecode2 = SWIG_AsVal_double(obj1, &val2);
29769 if (!SWIG_IsOK(ecode2)) {
29770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29771 }
29772 arg2 = static_cast< wxDouble >(val2);
29773 ecode3 = SWIG_AsVal_double(obj2, &val3);
29774 if (!SWIG_IsOK(ecode3)) {
29775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29776 }
29777 arg3 = static_cast< wxDouble >(val3);
29778 ecode4 = SWIG_AsVal_double(obj3, &val4);
29779 if (!SWIG_IsOK(ecode4)) {
29780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29781 }
29782 arg4 = static_cast< wxDouble >(val4);
29783 ecode5 = SWIG_AsVal_double(obj4, &val5);
29784 if (!SWIG_IsOK(ecode5)) {
29785 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29786 }
29787 arg5 = static_cast< wxDouble >(val5);
29788 {
29789 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29790 if (PyErr_Occurred()) SWIG_fail;
29791 }
29792 resultobj = SWIG_Py_Void();
29793 return resultobj;
29794 fail:
29795 return NULL;
29796 }
29797
29798
29799 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29800 PyObject *resultobj = 0;
29801 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29802 size_t arg2 ;
29803 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29804 void *argp1 = 0 ;
29805 int res1 = 0 ;
29806 PyObject * obj0 = 0 ;
29807 PyObject * obj1 = 0 ;
29808 char * kwnames[] = {
29809 (char *) "self",(char *) "points", NULL
29810 };
29811
29812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29814 if (!SWIG_IsOK(res1)) {
29815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29816 }
29817 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29818 {
29819 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29820 if (arg3 == NULL) SWIG_fail;
29821 }
29822 {
29823 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29824 if (PyErr_Occurred()) SWIG_fail;
29825 }
29826 resultobj = SWIG_Py_Void();
29827 {
29828 if (arg3) delete [] arg3;
29829 }
29830 return resultobj;
29831 fail:
29832 {
29833 if (arg3) delete [] arg3;
29834 }
29835 return NULL;
29836 }
29837
29838
29839 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29840 PyObject *resultobj = 0;
29841 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29842 PyObject *arg2 = (PyObject *) 0 ;
29843 PyObject *arg3 = (PyObject *) 0 ;
29844 void *argp1 = 0 ;
29845 int res1 = 0 ;
29846 PyObject * obj0 = 0 ;
29847 PyObject * obj1 = 0 ;
29848 PyObject * obj2 = 0 ;
29849 char * kwnames[] = {
29850 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29851 };
29852
29853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29855 if (!SWIG_IsOK(res1)) {
29856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29857 }
29858 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29859 arg2 = obj1;
29860 arg3 = obj2;
29861 {
29862 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29863 if (PyErr_Occurred()) SWIG_fail;
29864 }
29865 resultobj = SWIG_Py_Void();
29866 return resultobj;
29867 fail:
29868 return NULL;
29869 }
29870
29871
29872 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29873 PyObject *resultobj = 0;
29874 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29875 size_t arg2 ;
29876 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29877 int arg4 = (int) wxODDEVEN_RULE ;
29878 void *argp1 = 0 ;
29879 int res1 = 0 ;
29880 int val4 ;
29881 int ecode4 = 0 ;
29882 PyObject * obj0 = 0 ;
29883 PyObject * obj1 = 0 ;
29884 PyObject * obj2 = 0 ;
29885 char * kwnames[] = {
29886 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29887 };
29888
29889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29891 if (!SWIG_IsOK(res1)) {
29892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29893 }
29894 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29895 {
29896 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29897 if (arg3 == NULL) SWIG_fail;
29898 }
29899 if (obj2) {
29900 ecode4 = SWIG_AsVal_int(obj2, &val4);
29901 if (!SWIG_IsOK(ecode4)) {
29902 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29903 }
29904 arg4 = static_cast< int >(val4);
29905 }
29906 {
29907 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29908 if (PyErr_Occurred()) SWIG_fail;
29909 }
29910 resultobj = SWIG_Py_Void();
29911 {
29912 if (arg3) delete [] arg3;
29913 }
29914 return resultobj;
29915 fail:
29916 {
29917 if (arg3) delete [] arg3;
29918 }
29919 return NULL;
29920 }
29921
29922
29923 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29924 PyObject *resultobj = 0;
29925 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29926 wxDouble arg2 ;
29927 wxDouble arg3 ;
29928 wxDouble arg4 ;
29929 wxDouble arg5 ;
29930 void *argp1 = 0 ;
29931 int res1 = 0 ;
29932 double val2 ;
29933 int ecode2 = 0 ;
29934 double val3 ;
29935 int ecode3 = 0 ;
29936 double val4 ;
29937 int ecode4 = 0 ;
29938 double val5 ;
29939 int ecode5 = 0 ;
29940 PyObject * obj0 = 0 ;
29941 PyObject * obj1 = 0 ;
29942 PyObject * obj2 = 0 ;
29943 PyObject * obj3 = 0 ;
29944 PyObject * obj4 = 0 ;
29945 char * kwnames[] = {
29946 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29947 };
29948
29949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29951 if (!SWIG_IsOK(res1)) {
29952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29953 }
29954 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29955 ecode2 = SWIG_AsVal_double(obj1, &val2);
29956 if (!SWIG_IsOK(ecode2)) {
29957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29958 }
29959 arg2 = static_cast< wxDouble >(val2);
29960 ecode3 = SWIG_AsVal_double(obj2, &val3);
29961 if (!SWIG_IsOK(ecode3)) {
29962 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29963 }
29964 arg3 = static_cast< wxDouble >(val3);
29965 ecode4 = SWIG_AsVal_double(obj3, &val4);
29966 if (!SWIG_IsOK(ecode4)) {
29967 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29968 }
29969 arg4 = static_cast< wxDouble >(val4);
29970 ecode5 = SWIG_AsVal_double(obj4, &val5);
29971 if (!SWIG_IsOK(ecode5)) {
29972 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29973 }
29974 arg5 = static_cast< wxDouble >(val5);
29975 {
29976 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29977 if (PyErr_Occurred()) SWIG_fail;
29978 }
29979 resultobj = SWIG_Py_Void();
29980 return resultobj;
29981 fail:
29982 return NULL;
29983 }
29984
29985
29986 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29987 PyObject *resultobj = 0;
29988 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29989 wxDouble arg2 ;
29990 wxDouble arg3 ;
29991 wxDouble arg4 ;
29992 wxDouble arg5 ;
29993 void *argp1 = 0 ;
29994 int res1 = 0 ;
29995 double val2 ;
29996 int ecode2 = 0 ;
29997 double val3 ;
29998 int ecode3 = 0 ;
29999 double val4 ;
30000 int ecode4 = 0 ;
30001 double val5 ;
30002 int ecode5 = 0 ;
30003 PyObject * obj0 = 0 ;
30004 PyObject * obj1 = 0 ;
30005 PyObject * obj2 = 0 ;
30006 PyObject * obj3 = 0 ;
30007 PyObject * obj4 = 0 ;
30008 char * kwnames[] = {
30009 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30010 };
30011
30012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30014 if (!SWIG_IsOK(res1)) {
30015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30016 }
30017 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30018 ecode2 = SWIG_AsVal_double(obj1, &val2);
30019 if (!SWIG_IsOK(ecode2)) {
30020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
30021 }
30022 arg2 = static_cast< wxDouble >(val2);
30023 ecode3 = SWIG_AsVal_double(obj2, &val3);
30024 if (!SWIG_IsOK(ecode3)) {
30025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
30026 }
30027 arg3 = static_cast< wxDouble >(val3);
30028 ecode4 = SWIG_AsVal_double(obj3, &val4);
30029 if (!SWIG_IsOK(ecode4)) {
30030 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
30031 }
30032 arg4 = static_cast< wxDouble >(val4);
30033 ecode5 = SWIG_AsVal_double(obj4, &val5);
30034 if (!SWIG_IsOK(ecode5)) {
30035 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
30036 }
30037 arg5 = static_cast< wxDouble >(val5);
30038 {
30039 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
30040 if (PyErr_Occurred()) SWIG_fail;
30041 }
30042 resultobj = SWIG_Py_Void();
30043 return resultobj;
30044 fail:
30045 return NULL;
30046 }
30047
30048
30049 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30050 PyObject *resultobj = 0;
30051 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30052 wxDouble arg2 ;
30053 wxDouble arg3 ;
30054 wxDouble arg4 ;
30055 wxDouble arg5 ;
30056 wxDouble arg6 ;
30057 void *argp1 = 0 ;
30058 int res1 = 0 ;
30059 double val2 ;
30060 int ecode2 = 0 ;
30061 double val3 ;
30062 int ecode3 = 0 ;
30063 double val4 ;
30064 int ecode4 = 0 ;
30065 double val5 ;
30066 int ecode5 = 0 ;
30067 double val6 ;
30068 int ecode6 = 0 ;
30069 PyObject * obj0 = 0 ;
30070 PyObject * obj1 = 0 ;
30071 PyObject * obj2 = 0 ;
30072 PyObject * obj3 = 0 ;
30073 PyObject * obj4 = 0 ;
30074 PyObject * obj5 = 0 ;
30075 char * kwnames[] = {
30076 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
30077 };
30078
30079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30081 if (!SWIG_IsOK(res1)) {
30082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30083 }
30084 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30085 ecode2 = SWIG_AsVal_double(obj1, &val2);
30086 if (!SWIG_IsOK(ecode2)) {
30087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30088 }
30089 arg2 = static_cast< wxDouble >(val2);
30090 ecode3 = SWIG_AsVal_double(obj2, &val3);
30091 if (!SWIG_IsOK(ecode3)) {
30092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30093 }
30094 arg3 = static_cast< wxDouble >(val3);
30095 ecode4 = SWIG_AsVal_double(obj3, &val4);
30096 if (!SWIG_IsOK(ecode4)) {
30097 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30098 }
30099 arg4 = static_cast< wxDouble >(val4);
30100 ecode5 = SWIG_AsVal_double(obj4, &val5);
30101 if (!SWIG_IsOK(ecode5)) {
30102 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30103 }
30104 arg5 = static_cast< wxDouble >(val5);
30105 ecode6 = SWIG_AsVal_double(obj5, &val6);
30106 if (!SWIG_IsOK(ecode6)) {
30107 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30108 }
30109 arg6 = static_cast< wxDouble >(val6);
30110 {
30111 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
30112 if (PyErr_Occurred()) SWIG_fail;
30113 }
30114 resultobj = SWIG_Py_Void();
30115 return resultobj;
30116 fail:
30117 return NULL;
30118 }
30119
30120
30121 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30122 PyObject *resultobj = 0;
30123 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30124 bool result;
30125 void *argp1 = 0 ;
30126 int res1 = 0 ;
30127 PyObject *swig_obj[1] ;
30128
30129 if (!args) SWIG_fail;
30130 swig_obj[0] = args;
30131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30132 if (!SWIG_IsOK(res1)) {
30133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
30134 }
30135 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30136 {
30137 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30138 if (PyErr_Occurred()) SWIG_fail;
30139 }
30140 {
30141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30142 }
30143 return resultobj;
30144 fail:
30145 return NULL;
30146 }
30147
30148
30149 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30150 PyObject *obj;
30151 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30152 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30153 return SWIG_Py_Void();
30154 }
30155
30156 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30157 PyObject *resultobj = 0;
30158 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30159 void *argp1 = 0 ;
30160 int res1 = 0 ;
30161 PyObject *swig_obj[1] ;
30162
30163 if (!args) SWIG_fail;
30164 swig_obj[0] = args;
30165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30166 if (!SWIG_IsOK(res1)) {
30167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30168 }
30169 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30170 {
30171 delete arg1;
30172
30173 if (PyErr_Occurred()) SWIG_fail;
30174 }
30175 resultobj = SWIG_Py_Void();
30176 return resultobj;
30177 fail:
30178 return NULL;
30179 }
30180
30181
30182 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30183 PyObject *resultobj = 0;
30184 wxGraphicsRenderer *result = 0 ;
30185
30186 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
30187 {
30188 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30189 if (PyErr_Occurred()) SWIG_fail;
30190 }
30191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30192 return resultobj;
30193 fail:
30194 return NULL;
30195 }
30196
30197
30198 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30199 PyObject *resultobj = 0;
30200 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30201 wxWindowDC *arg2 = 0 ;
30202 wxGraphicsContext *result = 0 ;
30203 void *argp1 = 0 ;
30204 int res1 = 0 ;
30205 void *argp2 = 0 ;
30206 int res2 = 0 ;
30207
30208 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30210 if (!SWIG_IsOK(res1)) {
30211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30212 }
30213 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30214 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30215 if (!SWIG_IsOK(res2)) {
30216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30217 }
30218 if (!argp2) {
30219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30220 }
30221 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30222 {
30223 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30224 if (PyErr_Occurred()) SWIG_fail;
30225 }
30226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30227 return resultobj;
30228 fail:
30229 return NULL;
30230 }
30231
30232
30233 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30234 PyObject *resultobj = 0;
30235 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30236 wxWindow *arg2 = (wxWindow *) 0 ;
30237 wxGraphicsContext *result = 0 ;
30238 void *argp1 = 0 ;
30239 int res1 = 0 ;
30240 void *argp2 = 0 ;
30241 int res2 = 0 ;
30242
30243 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30245 if (!SWIG_IsOK(res1)) {
30246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30247 }
30248 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30249 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30250 if (!SWIG_IsOK(res2)) {
30251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30252 }
30253 arg2 = reinterpret_cast< wxWindow * >(argp2);
30254 {
30255 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30256 if (PyErr_Occurred()) SWIG_fail;
30257 }
30258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30259 return resultobj;
30260 fail:
30261 return NULL;
30262 }
30263
30264
30265 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30266 int argc;
30267 PyObject *argv[3];
30268
30269 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30270 --argc;
30271 if (argc == 2) {
30272 int _v = 0;
30273 {
30274 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30275 _v = SWIG_CheckState(res);
30276 }
30277 if (!_v) goto check_1;
30278 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30279 }
30280 check_1:
30281
30282 if (argc == 2) {
30283 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30284 }
30285
30286 fail:
30287 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30288 return NULL;
30289 }
30290
30291
30292 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30293 PyObject *resultobj = 0;
30294 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30295 wxGraphicsContext *result = 0 ;
30296 void *argp1 = 0 ;
30297 int res1 = 0 ;
30298 PyObject *swig_obj[1] ;
30299
30300 if (!args) SWIG_fail;
30301 swig_obj[0] = args;
30302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30303 if (!SWIG_IsOK(res1)) {
30304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30305 }
30306 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30307 {
30308 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30309 if (PyErr_Occurred()) SWIG_fail;
30310 }
30311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30312 return resultobj;
30313 fail:
30314 return NULL;
30315 }
30316
30317
30318 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30319 PyObject *resultobj = 0;
30320 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30321 void *arg2 = (void *) 0 ;
30322 wxGraphicsContext *result = 0 ;
30323 void *argp1 = 0 ;
30324 int res1 = 0 ;
30325 int res2 ;
30326 PyObject * obj0 = 0 ;
30327 PyObject * obj1 = 0 ;
30328 char * kwnames[] = {
30329 (char *) "self",(char *) "context", NULL
30330 };
30331
30332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30334 if (!SWIG_IsOK(res1)) {
30335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30336 }
30337 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30338 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30339 if (!SWIG_IsOK(res2)) {
30340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
30341 }
30342 {
30343 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
30344 if (PyErr_Occurred()) SWIG_fail;
30345 }
30346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30347 return resultobj;
30348 fail:
30349 return NULL;
30350 }
30351
30352
30353 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30354 PyObject *resultobj = 0;
30355 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30356 void *arg2 = (void *) 0 ;
30357 wxGraphicsContext *result = 0 ;
30358 void *argp1 = 0 ;
30359 int res1 = 0 ;
30360 int res2 ;
30361 PyObject * obj0 = 0 ;
30362 PyObject * obj1 = 0 ;
30363 char * kwnames[] = {
30364 (char *) "self",(char *) "window", NULL
30365 };
30366
30367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30369 if (!SWIG_IsOK(res1)) {
30370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30371 }
30372 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30373 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30374 if (!SWIG_IsOK(res2)) {
30375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
30376 }
30377 {
30378 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
30379 if (PyErr_Occurred()) SWIG_fail;
30380 }
30381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30382 return resultobj;
30383 fail:
30384 return NULL;
30385 }
30386
30387
30388 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30389 PyObject *resultobj = 0;
30390 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30391 wxGraphicsPath result;
30392 void *argp1 = 0 ;
30393 int res1 = 0 ;
30394 PyObject *swig_obj[1] ;
30395
30396 if (!args) SWIG_fail;
30397 swig_obj[0] = args;
30398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30399 if (!SWIG_IsOK(res1)) {
30400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30401 }
30402 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30403 {
30404 result = (arg1)->CreatePath();
30405 if (PyErr_Occurred()) SWIG_fail;
30406 }
30407 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
30408 return resultobj;
30409 fail:
30410 return NULL;
30411 }
30412
30413
30414 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30415 PyObject *resultobj = 0;
30416 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30417 wxDouble arg2 = (wxDouble) 1.0 ;
30418 wxDouble arg3 = (wxDouble) 0.0 ;
30419 wxDouble arg4 = (wxDouble) 0.0 ;
30420 wxDouble arg5 = (wxDouble) 1.0 ;
30421 wxDouble arg6 = (wxDouble) 0.0 ;
30422 wxDouble arg7 = (wxDouble) 0.0 ;
30423 wxGraphicsMatrix result;
30424 void *argp1 = 0 ;
30425 int res1 = 0 ;
30426 double val2 ;
30427 int ecode2 = 0 ;
30428 double val3 ;
30429 int ecode3 = 0 ;
30430 double val4 ;
30431 int ecode4 = 0 ;
30432 double val5 ;
30433 int ecode5 = 0 ;
30434 double val6 ;
30435 int ecode6 = 0 ;
30436 double val7 ;
30437 int ecode7 = 0 ;
30438 PyObject * obj0 = 0 ;
30439 PyObject * obj1 = 0 ;
30440 PyObject * obj2 = 0 ;
30441 PyObject * obj3 = 0 ;
30442 PyObject * obj4 = 0 ;
30443 PyObject * obj5 = 0 ;
30444 PyObject * obj6 = 0 ;
30445 char * kwnames[] = {
30446 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
30447 };
30448
30449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30451 if (!SWIG_IsOK(res1)) {
30452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30453 }
30454 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30455 if (obj1) {
30456 ecode2 = SWIG_AsVal_double(obj1, &val2);
30457 if (!SWIG_IsOK(ecode2)) {
30458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30459 }
30460 arg2 = static_cast< wxDouble >(val2);
30461 }
30462 if (obj2) {
30463 ecode3 = SWIG_AsVal_double(obj2, &val3);
30464 if (!SWIG_IsOK(ecode3)) {
30465 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30466 }
30467 arg3 = static_cast< wxDouble >(val3);
30468 }
30469 if (obj3) {
30470 ecode4 = SWIG_AsVal_double(obj3, &val4);
30471 if (!SWIG_IsOK(ecode4)) {
30472 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30473 }
30474 arg4 = static_cast< wxDouble >(val4);
30475 }
30476 if (obj4) {
30477 ecode5 = SWIG_AsVal_double(obj4, &val5);
30478 if (!SWIG_IsOK(ecode5)) {
30479 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30480 }
30481 arg5 = static_cast< wxDouble >(val5);
30482 }
30483 if (obj5) {
30484 ecode6 = SWIG_AsVal_double(obj5, &val6);
30485 if (!SWIG_IsOK(ecode6)) {
30486 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30487 }
30488 arg6 = static_cast< wxDouble >(val6);
30489 }
30490 if (obj6) {
30491 ecode7 = SWIG_AsVal_double(obj6, &val7);
30492 if (!SWIG_IsOK(ecode7)) {
30493 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30494 }
30495 arg7 = static_cast< wxDouble >(val7);
30496 }
30497 {
30498 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
30499 if (PyErr_Occurred()) SWIG_fail;
30500 }
30501 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
30502 return resultobj;
30503 fail:
30504 return NULL;
30505 }
30506
30507
30508 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30509 PyObject *resultobj = 0;
30510 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30511 wxPen *arg2 = 0 ;
30512 wxGraphicsPen result;
30513 void *argp1 = 0 ;
30514 int res1 = 0 ;
30515 void *argp2 = 0 ;
30516 int res2 = 0 ;
30517 PyObject * obj0 = 0 ;
30518 PyObject * obj1 = 0 ;
30519 char * kwnames[] = {
30520 (char *) "self",(char *) "pen", NULL
30521 };
30522
30523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30525 if (!SWIG_IsOK(res1)) {
30526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30527 }
30528 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30529 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30530 if (!SWIG_IsOK(res2)) {
30531 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30532 }
30533 if (!argp2) {
30534 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30535 }
30536 arg2 = reinterpret_cast< wxPen * >(argp2);
30537 {
30538 result = (arg1)->CreatePen((wxPen const &)*arg2);
30539 if (PyErr_Occurred()) SWIG_fail;
30540 }
30541 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30542 return resultobj;
30543 fail:
30544 return NULL;
30545 }
30546
30547
30548 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30549 PyObject *resultobj = 0;
30550 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30551 wxBrush *arg2 = 0 ;
30552 wxGraphicsBrush result;
30553 void *argp1 = 0 ;
30554 int res1 = 0 ;
30555 void *argp2 = 0 ;
30556 int res2 = 0 ;
30557 PyObject * obj0 = 0 ;
30558 PyObject * obj1 = 0 ;
30559 char * kwnames[] = {
30560 (char *) "self",(char *) "brush", NULL
30561 };
30562
30563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30565 if (!SWIG_IsOK(res1)) {
30566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30567 }
30568 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30569 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30570 if (!SWIG_IsOK(res2)) {
30571 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30572 }
30573 if (!argp2) {
30574 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30575 }
30576 arg2 = reinterpret_cast< wxBrush * >(argp2);
30577 {
30578 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30579 if (PyErr_Occurred()) SWIG_fail;
30580 }
30581 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30582 return resultobj;
30583 fail:
30584 return NULL;
30585 }
30586
30587
30588 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30589 PyObject *resultobj = 0;
30590 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30591 wxDouble arg2 ;
30592 wxDouble arg3 ;
30593 wxDouble arg4 ;
30594 wxDouble arg5 ;
30595 wxColour *arg6 = 0 ;
30596 wxColour *arg7 = 0 ;
30597 wxGraphicsBrush result;
30598 void *argp1 = 0 ;
30599 int res1 = 0 ;
30600 double val2 ;
30601 int ecode2 = 0 ;
30602 double val3 ;
30603 int ecode3 = 0 ;
30604 double val4 ;
30605 int ecode4 = 0 ;
30606 double val5 ;
30607 int ecode5 = 0 ;
30608 wxColour temp6 ;
30609 wxColour temp7 ;
30610 PyObject * obj0 = 0 ;
30611 PyObject * obj1 = 0 ;
30612 PyObject * obj2 = 0 ;
30613 PyObject * obj3 = 0 ;
30614 PyObject * obj4 = 0 ;
30615 PyObject * obj5 = 0 ;
30616 PyObject * obj6 = 0 ;
30617 char * kwnames[] = {
30618 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
30619 };
30620
30621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30623 if (!SWIG_IsOK(res1)) {
30624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30625 }
30626 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30627 ecode2 = SWIG_AsVal_double(obj1, &val2);
30628 if (!SWIG_IsOK(ecode2)) {
30629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30630 }
30631 arg2 = static_cast< wxDouble >(val2);
30632 ecode3 = SWIG_AsVal_double(obj2, &val3);
30633 if (!SWIG_IsOK(ecode3)) {
30634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30635 }
30636 arg3 = static_cast< wxDouble >(val3);
30637 ecode4 = SWIG_AsVal_double(obj3, &val4);
30638 if (!SWIG_IsOK(ecode4)) {
30639 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30640 }
30641 arg4 = static_cast< wxDouble >(val4);
30642 ecode5 = SWIG_AsVal_double(obj4, &val5);
30643 if (!SWIG_IsOK(ecode5)) {
30644 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30645 }
30646 arg5 = static_cast< wxDouble >(val5);
30647 {
30648 arg6 = &temp6;
30649 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30650 }
30651 {
30652 arg7 = &temp7;
30653 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30654 }
30655 {
30656 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
30657 if (PyErr_Occurred()) SWIG_fail;
30658 }
30659 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30660 return resultobj;
30661 fail:
30662 return NULL;
30663 }
30664
30665
30666 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30667 PyObject *resultobj = 0;
30668 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30669 wxDouble arg2 ;
30670 wxDouble arg3 ;
30671 wxDouble arg4 ;
30672 wxDouble arg5 ;
30673 wxDouble arg6 ;
30674 wxColour *arg7 = 0 ;
30675 wxColour *arg8 = 0 ;
30676 wxGraphicsBrush result;
30677 void *argp1 = 0 ;
30678 int res1 = 0 ;
30679 double val2 ;
30680 int ecode2 = 0 ;
30681 double val3 ;
30682 int ecode3 = 0 ;
30683 double val4 ;
30684 int ecode4 = 0 ;
30685 double val5 ;
30686 int ecode5 = 0 ;
30687 double val6 ;
30688 int ecode6 = 0 ;
30689 wxColour temp7 ;
30690 wxColour temp8 ;
30691 PyObject * obj0 = 0 ;
30692 PyObject * obj1 = 0 ;
30693 PyObject * obj2 = 0 ;
30694 PyObject * obj3 = 0 ;
30695 PyObject * obj4 = 0 ;
30696 PyObject * obj5 = 0 ;
30697 PyObject * obj6 = 0 ;
30698 PyObject * obj7 = 0 ;
30699 char * kwnames[] = {
30700 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
30701 };
30702
30703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30705 if (!SWIG_IsOK(res1)) {
30706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30707 }
30708 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30709 ecode2 = SWIG_AsVal_double(obj1, &val2);
30710 if (!SWIG_IsOK(ecode2)) {
30711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30712 }
30713 arg2 = static_cast< wxDouble >(val2);
30714 ecode3 = SWIG_AsVal_double(obj2, &val3);
30715 if (!SWIG_IsOK(ecode3)) {
30716 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30717 }
30718 arg3 = static_cast< wxDouble >(val3);
30719 ecode4 = SWIG_AsVal_double(obj3, &val4);
30720 if (!SWIG_IsOK(ecode4)) {
30721 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30722 }
30723 arg4 = static_cast< wxDouble >(val4);
30724 ecode5 = SWIG_AsVal_double(obj4, &val5);
30725 if (!SWIG_IsOK(ecode5)) {
30726 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30727 }
30728 arg5 = static_cast< wxDouble >(val5);
30729 ecode6 = SWIG_AsVal_double(obj5, &val6);
30730 if (!SWIG_IsOK(ecode6)) {
30731 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
30732 }
30733 arg6 = static_cast< wxDouble >(val6);
30734 {
30735 arg7 = &temp7;
30736 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30737 }
30738 {
30739 arg8 = &temp8;
30740 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30741 }
30742 {
30743 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
30744 if (PyErr_Occurred()) SWIG_fail;
30745 }
30746 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30747 return resultobj;
30748 fail:
30749 return NULL;
30750 }
30751
30752
30753 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30754 PyObject *resultobj = 0;
30755 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30756 wxFont *arg2 = 0 ;
30757 wxColour const &arg3_defvalue = *wxBLACK ;
30758 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30759 wxGraphicsFont result;
30760 void *argp1 = 0 ;
30761 int res1 = 0 ;
30762 void *argp2 = 0 ;
30763 int res2 = 0 ;
30764 wxColour temp3 ;
30765 PyObject * obj0 = 0 ;
30766 PyObject * obj1 = 0 ;
30767 PyObject * obj2 = 0 ;
30768 char * kwnames[] = {
30769 (char *) "self",(char *) "font",(char *) "col", NULL
30770 };
30771
30772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30774 if (!SWIG_IsOK(res1)) {
30775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30776 }
30777 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30778 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30779 if (!SWIG_IsOK(res2)) {
30780 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30781 }
30782 if (!argp2) {
30783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30784 }
30785 arg2 = reinterpret_cast< wxFont * >(argp2);
30786 if (obj2) {
30787 {
30788 arg3 = &temp3;
30789 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30790 }
30791 }
30792 {
30793 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30794 if (PyErr_Occurred()) SWIG_fail;
30795 }
30796 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30797 return resultobj;
30798 fail:
30799 return NULL;
30800 }
30801
30802
30803 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30804 PyObject *obj;
30805 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30806 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
30807 return SWIG_Py_Void();
30808 }
30809
30810 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30811 PyObject *resultobj = 0;
30812 wxWindowDC *arg1 = 0 ;
30813 wxGCDC *result = 0 ;
30814 void *argp1 = 0 ;
30815 int res1 = 0 ;
30816
30817 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30819 if (!SWIG_IsOK(res1)) {
30820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30821 }
30822 if (!argp1) {
30823 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30824 }
30825 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30826 {
30827 if (!wxPyCheckForApp()) SWIG_fail;
30828 PyThreadState* __tstate = wxPyBeginAllowThreads();
30829 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30830 wxPyEndAllowThreads(__tstate);
30831 if (PyErr_Occurred()) SWIG_fail;
30832 }
30833 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30834 return resultobj;
30835 fail:
30836 return NULL;
30837 }
30838
30839
30840 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30841 PyObject *resultobj = 0;
30842 wxWindow *arg1 = (wxWindow *) 0 ;
30843 wxGCDC *result = 0 ;
30844 void *argp1 = 0 ;
30845 int res1 = 0 ;
30846
30847 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
30849 if (!SWIG_IsOK(res1)) {
30850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
30851 }
30852 arg1 = reinterpret_cast< wxWindow * >(argp1);
30853 {
30854 if (!wxPyCheckForApp()) SWIG_fail;
30855 PyThreadState* __tstate = wxPyBeginAllowThreads();
30856 result = (wxGCDC *)new wxGCDC(arg1);
30857 wxPyEndAllowThreads(__tstate);
30858 if (PyErr_Occurred()) SWIG_fail;
30859 }
30860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30861 return resultobj;
30862 fail:
30863 return NULL;
30864 }
30865
30866
30867 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
30868 int argc;
30869 PyObject *argv[2];
30870
30871 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
30872 --argc;
30873 if (argc == 1) {
30874 int _v = 0;
30875 {
30876 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
30877 _v = SWIG_CheckState(res);
30878 }
30879 if (!_v) goto check_1;
30880 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
30881 }
30882 check_1:
30883
30884 if (argc == 1) {
30885 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
30886 }
30887
30888 fail:
30889 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
30890 return NULL;
30891 }
30892
30893
30894 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30895 PyObject *resultobj = 0;
30896 wxGCDC *arg1 = (wxGCDC *) 0 ;
30897 void *argp1 = 0 ;
30898 int res1 = 0 ;
30899 PyObject *swig_obj[1] ;
30900
30901 if (!args) SWIG_fail;
30902 swig_obj[0] = args;
30903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30904 if (!SWIG_IsOK(res1)) {
30905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30906 }
30907 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30908 {
30909 delete arg1;
30910
30911 if (PyErr_Occurred()) SWIG_fail;
30912 }
30913 resultobj = SWIG_Py_Void();
30914 return resultobj;
30915 fail:
30916 return NULL;
30917 }
30918
30919
30920 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30921 PyObject *resultobj = 0;
30922 wxGCDC *arg1 = (wxGCDC *) 0 ;
30923 wxGraphicsContext *result = 0 ;
30924 void *argp1 = 0 ;
30925 int res1 = 0 ;
30926 PyObject *swig_obj[1] ;
30927
30928 if (!args) SWIG_fail;
30929 swig_obj[0] = args;
30930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30931 if (!SWIG_IsOK(res1)) {
30932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30933 }
30934 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30935 {
30936 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
30937 if (PyErr_Occurred()) SWIG_fail;
30938 }
30939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30940 return resultobj;
30941 fail:
30942 return NULL;
30943 }
30944
30945
30946 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30947 PyObject *resultobj = 0;
30948 wxGCDC *arg1 = (wxGCDC *) 0 ;
30949 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30950 void *argp1 = 0 ;
30951 int res1 = 0 ;
30952 void *argp2 = 0 ;
30953 int res2 = 0 ;
30954 PyObject * obj0 = 0 ;
30955 PyObject * obj1 = 0 ;
30956 char * kwnames[] = {
30957 (char *) "self",(char *) "ctx", NULL
30958 };
30959
30960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30962 if (!SWIG_IsOK(res1)) {
30963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30964 }
30965 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30966 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30967 if (!SWIG_IsOK(res2)) {
30968 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30969 }
30970 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30971 {
30972 (arg1)->SetGraphicsContext(arg2);
30973 if (PyErr_Occurred()) SWIG_fail;
30974 }
30975 resultobj = SWIG_Py_Void();
30976 return resultobj;
30977 fail:
30978 return NULL;
30979 }
30980
30981
30982 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30983 PyObject *obj;
30984 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30985 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30986 return SWIG_Py_Void();
30987 }
30988
30989 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30990 return SWIG_Python_InitShadowInstance(args);
30991 }
30992
30993 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30994 PyObject *resultobj = 0;
30995 wxOverlay *result = 0 ;
30996
30997 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30998 {
30999 PyThreadState* __tstate = wxPyBeginAllowThreads();
31000 result = (wxOverlay *)new wxOverlay();
31001 wxPyEndAllowThreads(__tstate);
31002 if (PyErr_Occurred()) SWIG_fail;
31003 }
31004 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
31005 return resultobj;
31006 fail:
31007 return NULL;
31008 }
31009
31010
31011 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31012 PyObject *resultobj = 0;
31013 wxOverlay *arg1 = (wxOverlay *) 0 ;
31014 void *argp1 = 0 ;
31015 int res1 = 0 ;
31016 PyObject *swig_obj[1] ;
31017
31018 if (!args) SWIG_fail;
31019 swig_obj[0] = args;
31020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
31021 if (!SWIG_IsOK(res1)) {
31022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
31023 }
31024 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31025 {
31026 PyThreadState* __tstate = wxPyBeginAllowThreads();
31027 delete arg1;
31028
31029 wxPyEndAllowThreads(__tstate);
31030 if (PyErr_Occurred()) SWIG_fail;
31031 }
31032 resultobj = SWIG_Py_Void();
31033 return resultobj;
31034 fail:
31035 return NULL;
31036 }
31037
31038
31039 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31040 PyObject *resultobj = 0;
31041 wxOverlay *arg1 = (wxOverlay *) 0 ;
31042 void *argp1 = 0 ;
31043 int res1 = 0 ;
31044 PyObject *swig_obj[1] ;
31045
31046 if (!args) SWIG_fail;
31047 swig_obj[0] = args;
31048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
31049 if (!SWIG_IsOK(res1)) {
31050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
31051 }
31052 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31053 {
31054 PyThreadState* __tstate = wxPyBeginAllowThreads();
31055 (arg1)->Reset();
31056 wxPyEndAllowThreads(__tstate);
31057 if (PyErr_Occurred()) SWIG_fail;
31058 }
31059 resultobj = SWIG_Py_Void();
31060 return resultobj;
31061 fail:
31062 return NULL;
31063 }
31064
31065
31066 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31067 PyObject *obj;
31068 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31069 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31070 return SWIG_Py_Void();
31071 }
31072
31073 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31074 return SWIG_Python_InitShadowInstance(args);
31075 }
31076
31077 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31078 PyObject *resultobj = 0;
31079 wxOverlay *arg1 = 0 ;
31080 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31081 int arg3 ;
31082 int arg4 ;
31083 int arg5 ;
31084 int arg6 ;
31085 wxDCOverlay *result = 0 ;
31086 void *argp1 = 0 ;
31087 int res1 = 0 ;
31088 void *argp2 = 0 ;
31089 int res2 = 0 ;
31090 int val3 ;
31091 int ecode3 = 0 ;
31092 int val4 ;
31093 int ecode4 = 0 ;
31094 int val5 ;
31095 int ecode5 = 0 ;
31096 int val6 ;
31097 int ecode6 = 0 ;
31098
31099 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31101 if (!SWIG_IsOK(res1)) {
31102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31103 }
31104 if (!argp1) {
31105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31106 }
31107 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31108 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31109 if (!SWIG_IsOK(res2)) {
31110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31111 }
31112 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31113 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31114 if (!SWIG_IsOK(ecode3)) {
31115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31116 }
31117 arg3 = static_cast< int >(val3);
31118 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31119 if (!SWIG_IsOK(ecode4)) {
31120 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31121 }
31122 arg4 = static_cast< int >(val4);
31123 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31124 if (!SWIG_IsOK(ecode5)) {
31125 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31126 }
31127 arg5 = static_cast< int >(val5);
31128 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31129 if (!SWIG_IsOK(ecode6)) {
31130 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31131 }
31132 arg6 = static_cast< int >(val6);
31133 {
31134 PyThreadState* __tstate = wxPyBeginAllowThreads();
31135 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31136 wxPyEndAllowThreads(__tstate);
31137 if (PyErr_Occurred()) SWIG_fail;
31138 }
31139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31140 return resultobj;
31141 fail:
31142 return NULL;
31143 }
31144
31145
31146 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31147 PyObject *resultobj = 0;
31148 wxOverlay *arg1 = 0 ;
31149 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31150 wxDCOverlay *result = 0 ;
31151 void *argp1 = 0 ;
31152 int res1 = 0 ;
31153 void *argp2 = 0 ;
31154 int res2 = 0 ;
31155
31156 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31158 if (!SWIG_IsOK(res1)) {
31159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31160 }
31161 if (!argp1) {
31162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31163 }
31164 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31165 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31166 if (!SWIG_IsOK(res2)) {
31167 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31168 }
31169 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31170 {
31171 PyThreadState* __tstate = wxPyBeginAllowThreads();
31172 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31173 wxPyEndAllowThreads(__tstate);
31174 if (PyErr_Occurred()) SWIG_fail;
31175 }
31176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31177 return resultobj;
31178 fail:
31179 return NULL;
31180 }
31181
31182
31183 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31184 int argc;
31185 PyObject *argv[7];
31186
31187 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31188 --argc;
31189 if (argc == 2) {
31190 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31191 }
31192 if (argc == 6) {
31193 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31194 }
31195
31196 fail:
31197 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31198 return NULL;
31199 }
31200
31201
31202 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31203 PyObject *resultobj = 0;
31204 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31205 void *argp1 = 0 ;
31206 int res1 = 0 ;
31207 PyObject *swig_obj[1] ;
31208
31209 if (!args) SWIG_fail;
31210 swig_obj[0] = args;
31211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31212 if (!SWIG_IsOK(res1)) {
31213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31214 }
31215 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31216 {
31217 PyThreadState* __tstate = wxPyBeginAllowThreads();
31218 delete arg1;
31219
31220 wxPyEndAllowThreads(__tstate);
31221 if (PyErr_Occurred()) SWIG_fail;
31222 }
31223 resultobj = SWIG_Py_Void();
31224 return resultobj;
31225 fail:
31226 return NULL;
31227 }
31228
31229
31230 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31231 PyObject *resultobj = 0;
31232 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31233 void *argp1 = 0 ;
31234 int res1 = 0 ;
31235 PyObject *swig_obj[1] ;
31236
31237 if (!args) SWIG_fail;
31238 swig_obj[0] = args;
31239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31240 if (!SWIG_IsOK(res1)) {
31241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31242 }
31243 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31244 {
31245 PyThreadState* __tstate = wxPyBeginAllowThreads();
31246 (arg1)->Clear();
31247 wxPyEndAllowThreads(__tstate);
31248 if (PyErr_Occurred()) SWIG_fail;
31249 }
31250 resultobj = SWIG_Py_Void();
31251 return resultobj;
31252 fail:
31253 return NULL;
31254 }
31255
31256
31257 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31258 PyObject *obj;
31259 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31260 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31261 return SWIG_Py_Void();
31262 }
31263
31264 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31265 return SWIG_Python_InitShadowInstance(args);
31266 }
31267
31268 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31269 PyObject *resultobj = 0;
31270 int arg1 ;
31271 int arg2 ;
31272 int arg3 = (int) true ;
31273 int arg4 = (int) 1 ;
31274 wxImageList *result = 0 ;
31275 int val1 ;
31276 int ecode1 = 0 ;
31277 int val2 ;
31278 int ecode2 = 0 ;
31279 int val3 ;
31280 int ecode3 = 0 ;
31281 int val4 ;
31282 int ecode4 = 0 ;
31283 PyObject * obj0 = 0 ;
31284 PyObject * obj1 = 0 ;
31285 PyObject * obj2 = 0 ;
31286 PyObject * obj3 = 0 ;
31287 char * kwnames[] = {
31288 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31289 };
31290
31291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31292 ecode1 = SWIG_AsVal_int(obj0, &val1);
31293 if (!SWIG_IsOK(ecode1)) {
31294 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31295 }
31296 arg1 = static_cast< int >(val1);
31297 ecode2 = SWIG_AsVal_int(obj1, &val2);
31298 if (!SWIG_IsOK(ecode2)) {
31299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31300 }
31301 arg2 = static_cast< int >(val2);
31302 if (obj2) {
31303 ecode3 = SWIG_AsVal_int(obj2, &val3);
31304 if (!SWIG_IsOK(ecode3)) {
31305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31306 }
31307 arg3 = static_cast< int >(val3);
31308 }
31309 if (obj3) {
31310 ecode4 = SWIG_AsVal_int(obj3, &val4);
31311 if (!SWIG_IsOK(ecode4)) {
31312 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31313 }
31314 arg4 = static_cast< int >(val4);
31315 }
31316 {
31317 if (!wxPyCheckForApp()) SWIG_fail;
31318 PyThreadState* __tstate = wxPyBeginAllowThreads();
31319 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31320 wxPyEndAllowThreads(__tstate);
31321 if (PyErr_Occurred()) SWIG_fail;
31322 }
31323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
31324 return resultobj;
31325 fail:
31326 return NULL;
31327 }
31328
31329
31330 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31331 PyObject *resultobj = 0;
31332 wxImageList *arg1 = (wxImageList *) 0 ;
31333 void *argp1 = 0 ;
31334 int res1 = 0 ;
31335 PyObject *swig_obj[1] ;
31336
31337 if (!args) SWIG_fail;
31338 swig_obj[0] = args;
31339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31340 if (!SWIG_IsOK(res1)) {
31341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31342 }
31343 arg1 = reinterpret_cast< wxImageList * >(argp1);
31344 {
31345 PyThreadState* __tstate = wxPyBeginAllowThreads();
31346 delete arg1;
31347
31348 wxPyEndAllowThreads(__tstate);
31349 if (PyErr_Occurred()) SWIG_fail;
31350 }
31351 resultobj = SWIG_Py_Void();
31352 return resultobj;
31353 fail:
31354 return NULL;
31355 }
31356
31357
31358 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31359 PyObject *resultobj = 0;
31360 wxImageList *arg1 = (wxImageList *) 0 ;
31361 wxBitmap *arg2 = 0 ;
31362 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31363 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31364 int result;
31365 void *argp1 = 0 ;
31366 int res1 = 0 ;
31367 void *argp2 = 0 ;
31368 int res2 = 0 ;
31369 void *argp3 = 0 ;
31370 int res3 = 0 ;
31371 PyObject * obj0 = 0 ;
31372 PyObject * obj1 = 0 ;
31373 PyObject * obj2 = 0 ;
31374 char * kwnames[] = {
31375 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31376 };
31377
31378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31380 if (!SWIG_IsOK(res1)) {
31381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31382 }
31383 arg1 = reinterpret_cast< wxImageList * >(argp1);
31384 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31385 if (!SWIG_IsOK(res2)) {
31386 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31387 }
31388 if (!argp2) {
31389 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31390 }
31391 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31392 if (obj2) {
31393 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31394 if (!SWIG_IsOK(res3)) {
31395 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31396 }
31397 if (!argp3) {
31398 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31399 }
31400 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31401 }
31402 {
31403 PyThreadState* __tstate = wxPyBeginAllowThreads();
31404 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31405 wxPyEndAllowThreads(__tstate);
31406 if (PyErr_Occurred()) SWIG_fail;
31407 }
31408 resultobj = SWIG_From_int(static_cast< int >(result));
31409 return resultobj;
31410 fail:
31411 return NULL;
31412 }
31413
31414
31415 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31416 PyObject *resultobj = 0;
31417 wxImageList *arg1 = (wxImageList *) 0 ;
31418 wxBitmap *arg2 = 0 ;
31419 wxColour *arg3 = 0 ;
31420 int result;
31421 void *argp1 = 0 ;
31422 int res1 = 0 ;
31423 void *argp2 = 0 ;
31424 int res2 = 0 ;
31425 wxColour temp3 ;
31426 PyObject * obj0 = 0 ;
31427 PyObject * obj1 = 0 ;
31428 PyObject * obj2 = 0 ;
31429 char * kwnames[] = {
31430 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31431 };
31432
31433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31435 if (!SWIG_IsOK(res1)) {
31436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31437 }
31438 arg1 = reinterpret_cast< wxImageList * >(argp1);
31439 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31440 if (!SWIG_IsOK(res2)) {
31441 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31442 }
31443 if (!argp2) {
31444 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31445 }
31446 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31447 {
31448 arg3 = &temp3;
31449 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31450 }
31451 {
31452 PyThreadState* __tstate = wxPyBeginAllowThreads();
31453 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31454 wxPyEndAllowThreads(__tstate);
31455 if (PyErr_Occurred()) SWIG_fail;
31456 }
31457 resultobj = SWIG_From_int(static_cast< int >(result));
31458 return resultobj;
31459 fail:
31460 return NULL;
31461 }
31462
31463
31464 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31465 PyObject *resultobj = 0;
31466 wxImageList *arg1 = (wxImageList *) 0 ;
31467 wxIcon *arg2 = 0 ;
31468 int result;
31469 void *argp1 = 0 ;
31470 int res1 = 0 ;
31471 void *argp2 = 0 ;
31472 int res2 = 0 ;
31473 PyObject * obj0 = 0 ;
31474 PyObject * obj1 = 0 ;
31475 char * kwnames[] = {
31476 (char *) "self",(char *) "icon", NULL
31477 };
31478
31479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31481 if (!SWIG_IsOK(res1)) {
31482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31483 }
31484 arg1 = reinterpret_cast< wxImageList * >(argp1);
31485 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31486 if (!SWIG_IsOK(res2)) {
31487 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31488 }
31489 if (!argp2) {
31490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31491 }
31492 arg2 = reinterpret_cast< wxIcon * >(argp2);
31493 {
31494 PyThreadState* __tstate = wxPyBeginAllowThreads();
31495 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31496 wxPyEndAllowThreads(__tstate);
31497 if (PyErr_Occurred()) SWIG_fail;
31498 }
31499 resultobj = SWIG_From_int(static_cast< int >(result));
31500 return resultobj;
31501 fail:
31502 return NULL;
31503 }
31504
31505
31506 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31507 PyObject *resultobj = 0;
31508 wxImageList *arg1 = (wxImageList *) 0 ;
31509 int arg2 ;
31510 SwigValueWrapper<wxBitmap > result;
31511 void *argp1 = 0 ;
31512 int res1 = 0 ;
31513 int val2 ;
31514 int ecode2 = 0 ;
31515 PyObject * obj0 = 0 ;
31516 PyObject * obj1 = 0 ;
31517 char * kwnames[] = {
31518 (char *) "self",(char *) "index", NULL
31519 };
31520
31521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31523 if (!SWIG_IsOK(res1)) {
31524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31525 }
31526 arg1 = reinterpret_cast< wxImageList * >(argp1);
31527 ecode2 = SWIG_AsVal_int(obj1, &val2);
31528 if (!SWIG_IsOK(ecode2)) {
31529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31530 }
31531 arg2 = static_cast< int >(val2);
31532 {
31533 PyThreadState* __tstate = wxPyBeginAllowThreads();
31534 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31535 wxPyEndAllowThreads(__tstate);
31536 if (PyErr_Occurred()) SWIG_fail;
31537 }
31538 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31539 return resultobj;
31540 fail:
31541 return NULL;
31542 }
31543
31544
31545 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31546 PyObject *resultobj = 0;
31547 wxImageList *arg1 = (wxImageList *) 0 ;
31548 int arg2 ;
31549 wxIcon result;
31550 void *argp1 = 0 ;
31551 int res1 = 0 ;
31552 int val2 ;
31553 int ecode2 = 0 ;
31554 PyObject * obj0 = 0 ;
31555 PyObject * obj1 = 0 ;
31556 char * kwnames[] = {
31557 (char *) "self",(char *) "index", NULL
31558 };
31559
31560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31562 if (!SWIG_IsOK(res1)) {
31563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31564 }
31565 arg1 = reinterpret_cast< wxImageList * >(argp1);
31566 ecode2 = SWIG_AsVal_int(obj1, &val2);
31567 if (!SWIG_IsOK(ecode2)) {
31568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31569 }
31570 arg2 = static_cast< int >(val2);
31571 {
31572 PyThreadState* __tstate = wxPyBeginAllowThreads();
31573 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31574 wxPyEndAllowThreads(__tstate);
31575 if (PyErr_Occurred()) SWIG_fail;
31576 }
31577 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31578 return resultobj;
31579 fail:
31580 return NULL;
31581 }
31582
31583
31584 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31585 PyObject *resultobj = 0;
31586 wxImageList *arg1 = (wxImageList *) 0 ;
31587 int arg2 ;
31588 wxBitmap *arg3 = 0 ;
31589 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31590 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
31591 bool result;
31592 void *argp1 = 0 ;
31593 int res1 = 0 ;
31594 int val2 ;
31595 int ecode2 = 0 ;
31596 void *argp3 = 0 ;
31597 int res3 = 0 ;
31598 void *argp4 = 0 ;
31599 int res4 = 0 ;
31600 PyObject * obj0 = 0 ;
31601 PyObject * obj1 = 0 ;
31602 PyObject * obj2 = 0 ;
31603 PyObject * obj3 = 0 ;
31604 char * kwnames[] = {
31605 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
31606 };
31607
31608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31610 if (!SWIG_IsOK(res1)) {
31611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31612 }
31613 arg1 = reinterpret_cast< wxImageList * >(argp1);
31614 ecode2 = SWIG_AsVal_int(obj1, &val2);
31615 if (!SWIG_IsOK(ecode2)) {
31616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31617 }
31618 arg2 = static_cast< int >(val2);
31619 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31620 if (!SWIG_IsOK(res3)) {
31621 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31622 }
31623 if (!argp3) {
31624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31625 }
31626 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31627 if (obj3) {
31628 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31629 if (!SWIG_IsOK(res4)) {
31630 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31631 }
31632 if (!argp4) {
31633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31634 }
31635 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31636 }
31637 {
31638 PyThreadState* __tstate = wxPyBeginAllowThreads();
31639 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
31640 wxPyEndAllowThreads(__tstate);
31641 if (PyErr_Occurred()) SWIG_fail;
31642 }
31643 {
31644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31645 }
31646 return resultobj;
31647 fail:
31648 return NULL;
31649 }
31650
31651
31652 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31653 PyObject *resultobj = 0;
31654 wxImageList *arg1 = (wxImageList *) 0 ;
31655 int arg2 ;
31656 wxDC *arg3 = 0 ;
31657 int arg4 ;
31658 int arg5 ;
31659 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31660 bool arg7 = (bool) (bool)false ;
31661 bool result;
31662 void *argp1 = 0 ;
31663 int res1 = 0 ;
31664 int val2 ;
31665 int ecode2 = 0 ;
31666 void *argp3 = 0 ;
31667 int res3 = 0 ;
31668 int val4 ;
31669 int ecode4 = 0 ;
31670 int val5 ;
31671 int ecode5 = 0 ;
31672 int val6 ;
31673 int ecode6 = 0 ;
31674 bool val7 ;
31675 int ecode7 = 0 ;
31676 PyObject * obj0 = 0 ;
31677 PyObject * obj1 = 0 ;
31678 PyObject * obj2 = 0 ;
31679 PyObject * obj3 = 0 ;
31680 PyObject * obj4 = 0 ;
31681 PyObject * obj5 = 0 ;
31682 PyObject * obj6 = 0 ;
31683 char * kwnames[] = {
31684 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31685 };
31686
31687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31689 if (!SWIG_IsOK(res1)) {
31690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31691 }
31692 arg1 = reinterpret_cast< wxImageList * >(argp1);
31693 ecode2 = SWIG_AsVal_int(obj1, &val2);
31694 if (!SWIG_IsOK(ecode2)) {
31695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31696 }
31697 arg2 = static_cast< int >(val2);
31698 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31699 if (!SWIG_IsOK(res3)) {
31700 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31701 }
31702 if (!argp3) {
31703 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31704 }
31705 arg3 = reinterpret_cast< wxDC * >(argp3);
31706 ecode4 = SWIG_AsVal_int(obj3, &val4);
31707 if (!SWIG_IsOK(ecode4)) {
31708 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31709 }
31710 arg4 = static_cast< int >(val4);
31711 ecode5 = SWIG_AsVal_int(obj4, &val5);
31712 if (!SWIG_IsOK(ecode5)) {
31713 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31714 }
31715 arg5 = static_cast< int >(val5);
31716 if (obj5) {
31717 ecode6 = SWIG_AsVal_int(obj5, &val6);
31718 if (!SWIG_IsOK(ecode6)) {
31719 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31720 }
31721 arg6 = static_cast< int >(val6);
31722 }
31723 if (obj6) {
31724 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31725 if (!SWIG_IsOK(ecode7)) {
31726 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31727 }
31728 arg7 = static_cast< bool >(val7);
31729 }
31730 {
31731 PyThreadState* __tstate = wxPyBeginAllowThreads();
31732 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31733 wxPyEndAllowThreads(__tstate);
31734 if (PyErr_Occurred()) SWIG_fail;
31735 }
31736 {
31737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31738 }
31739 return resultobj;
31740 fail:
31741 return NULL;
31742 }
31743
31744
31745 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31746 PyObject *resultobj = 0;
31747 wxImageList *arg1 = (wxImageList *) 0 ;
31748 int result;
31749 void *argp1 = 0 ;
31750 int res1 = 0 ;
31751 PyObject *swig_obj[1] ;
31752
31753 if (!args) SWIG_fail;
31754 swig_obj[0] = args;
31755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31756 if (!SWIG_IsOK(res1)) {
31757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31758 }
31759 arg1 = reinterpret_cast< wxImageList * >(argp1);
31760 {
31761 PyThreadState* __tstate = wxPyBeginAllowThreads();
31762 result = (int)(arg1)->GetImageCount();
31763 wxPyEndAllowThreads(__tstate);
31764 if (PyErr_Occurred()) SWIG_fail;
31765 }
31766 resultobj = SWIG_From_int(static_cast< int >(result));
31767 return resultobj;
31768 fail:
31769 return NULL;
31770 }
31771
31772
31773 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31774 PyObject *resultobj = 0;
31775 wxImageList *arg1 = (wxImageList *) 0 ;
31776 int arg2 ;
31777 bool result;
31778 void *argp1 = 0 ;
31779 int res1 = 0 ;
31780 int val2 ;
31781 int ecode2 = 0 ;
31782 PyObject * obj0 = 0 ;
31783 PyObject * obj1 = 0 ;
31784 char * kwnames[] = {
31785 (char *) "self",(char *) "index", NULL
31786 };
31787
31788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31790 if (!SWIG_IsOK(res1)) {
31791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31792 }
31793 arg1 = reinterpret_cast< wxImageList * >(argp1);
31794 ecode2 = SWIG_AsVal_int(obj1, &val2);
31795 if (!SWIG_IsOK(ecode2)) {
31796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31797 }
31798 arg2 = static_cast< int >(val2);
31799 {
31800 PyThreadState* __tstate = wxPyBeginAllowThreads();
31801 result = (bool)(arg1)->Remove(arg2);
31802 wxPyEndAllowThreads(__tstate);
31803 if (PyErr_Occurred()) SWIG_fail;
31804 }
31805 {
31806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31807 }
31808 return resultobj;
31809 fail:
31810 return NULL;
31811 }
31812
31813
31814 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31815 PyObject *resultobj = 0;
31816 wxImageList *arg1 = (wxImageList *) 0 ;
31817 bool result;
31818 void *argp1 = 0 ;
31819 int res1 = 0 ;
31820 PyObject *swig_obj[1] ;
31821
31822 if (!args) SWIG_fail;
31823 swig_obj[0] = args;
31824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31825 if (!SWIG_IsOK(res1)) {
31826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31827 }
31828 arg1 = reinterpret_cast< wxImageList * >(argp1);
31829 {
31830 PyThreadState* __tstate = wxPyBeginAllowThreads();
31831 result = (bool)(arg1)->RemoveAll();
31832 wxPyEndAllowThreads(__tstate);
31833 if (PyErr_Occurred()) SWIG_fail;
31834 }
31835 {
31836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31837 }
31838 return resultobj;
31839 fail:
31840 return NULL;
31841 }
31842
31843
31844 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31845 PyObject *resultobj = 0;
31846 wxImageList *arg1 = (wxImageList *) 0 ;
31847 int arg2 ;
31848 int *arg3 = 0 ;
31849 int *arg4 = 0 ;
31850 void *argp1 = 0 ;
31851 int res1 = 0 ;
31852 int val2 ;
31853 int ecode2 = 0 ;
31854 int temp3 ;
31855 int res3 = SWIG_TMPOBJ ;
31856 int temp4 ;
31857 int res4 = SWIG_TMPOBJ ;
31858 PyObject * obj0 = 0 ;
31859 PyObject * obj1 = 0 ;
31860 char * kwnames[] = {
31861 (char *) "self",(char *) "index", NULL
31862 };
31863
31864 arg3 = &temp3;
31865 arg4 = &temp4;
31866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31868 if (!SWIG_IsOK(res1)) {
31869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31870 }
31871 arg1 = reinterpret_cast< wxImageList * >(argp1);
31872 ecode2 = SWIG_AsVal_int(obj1, &val2);
31873 if (!SWIG_IsOK(ecode2)) {
31874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31875 }
31876 arg2 = static_cast< int >(val2);
31877 {
31878 PyThreadState* __tstate = wxPyBeginAllowThreads();
31879 (arg1)->GetSize(arg2,*arg3,*arg4);
31880 wxPyEndAllowThreads(__tstate);
31881 if (PyErr_Occurred()) SWIG_fail;
31882 }
31883 resultobj = SWIG_Py_Void();
31884 if (SWIG_IsTmpObj(res3)) {
31885 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31886 } else {
31887 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31888 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31889 }
31890 if (SWIG_IsTmpObj(res4)) {
31891 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31892 } else {
31893 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31894 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31895 }
31896 return resultobj;
31897 fail:
31898 return NULL;
31899 }
31900
31901
31902 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31903 PyObject *obj;
31904 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31905 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31906 return SWIG_Py_Void();
31907 }
31908
31909 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31910 return SWIG_Python_InitShadowInstance(args);
31911 }
31912
31913 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31914 PyObject *resultobj = 0;
31915 wxStockGDI *result = 0 ;
31916
31917 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31918 {
31919 PyThreadState* __tstate = wxPyBeginAllowThreads();
31920 result = (wxStockGDI *)new wxStockGDI();
31921 wxPyEndAllowThreads(__tstate);
31922 if (PyErr_Occurred()) SWIG_fail;
31923 }
31924 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31925 return resultobj;
31926 fail:
31927 return NULL;
31928 }
31929
31930
31931 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31932 PyObject *resultobj = 0;
31933 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31934 void *argp1 = 0 ;
31935 int res1 = 0 ;
31936 PyObject *swig_obj[1] ;
31937
31938 if (!args) SWIG_fail;
31939 swig_obj[0] = args;
31940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31941 if (!SWIG_IsOK(res1)) {
31942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31943 }
31944 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31945 {
31946 PyThreadState* __tstate = wxPyBeginAllowThreads();
31947 delete arg1;
31948
31949 wxPyEndAllowThreads(__tstate);
31950 if (PyErr_Occurred()) SWIG_fail;
31951 }
31952 resultobj = SWIG_Py_Void();
31953 return resultobj;
31954 fail:
31955 return NULL;
31956 }
31957
31958
31959 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31960 PyObject *resultobj = 0;
31961
31962 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31963 {
31964 PyThreadState* __tstate = wxPyBeginAllowThreads();
31965 wxStockGDI::DeleteAll();
31966 wxPyEndAllowThreads(__tstate);
31967 if (PyErr_Occurred()) SWIG_fail;
31968 }
31969 resultobj = SWIG_Py_Void();
31970 return resultobj;
31971 fail:
31972 return NULL;
31973 }
31974
31975
31976 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31977 PyObject *resultobj = 0;
31978 wxStockGDI *result = 0 ;
31979
31980 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31981 {
31982 PyThreadState* __tstate = wxPyBeginAllowThreads();
31983 {
31984 wxStockGDI &_result_ref = wxStockGDI::instance();
31985 result = (wxStockGDI *) &_result_ref;
31986 }
31987 wxPyEndAllowThreads(__tstate);
31988 if (PyErr_Occurred()) SWIG_fail;
31989 }
31990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31991 return resultobj;
31992 fail:
31993 return NULL;
31994 }
31995
31996
31997 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31998 PyObject *resultobj = 0;
31999 wxStockGDI::Item arg1 ;
32000 wxBrush *result = 0 ;
32001 int val1 ;
32002 int ecode1 = 0 ;
32003 PyObject * obj0 = 0 ;
32004 char * kwnames[] = {
32005 (char *) "item", NULL
32006 };
32007
32008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
32009 ecode1 = SWIG_AsVal_int(obj0, &val1);
32010 if (!SWIG_IsOK(ecode1)) {
32011 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32012 }
32013 arg1 = static_cast< wxStockGDI::Item >(val1);
32014 {
32015 PyThreadState* __tstate = wxPyBeginAllowThreads();
32016 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
32017 wxPyEndAllowThreads(__tstate);
32018 if (PyErr_Occurred()) SWIG_fail;
32019 }
32020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32021 return resultobj;
32022 fail:
32023 return NULL;
32024 }
32025
32026
32027 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32028 PyObject *resultobj = 0;
32029 wxStockGDI::Item arg1 ;
32030 wxColour *result = 0 ;
32031 int val1 ;
32032 int ecode1 = 0 ;
32033 PyObject * obj0 = 0 ;
32034 char * kwnames[] = {
32035 (char *) "item", NULL
32036 };
32037
32038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
32039 ecode1 = SWIG_AsVal_int(obj0, &val1);
32040 if (!SWIG_IsOK(ecode1)) {
32041 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32042 }
32043 arg1 = static_cast< wxStockGDI::Item >(val1);
32044 {
32045 PyThreadState* __tstate = wxPyBeginAllowThreads();
32046 result = (wxColour *)wxStockGDI::GetColour(arg1);
32047 wxPyEndAllowThreads(__tstate);
32048 if (PyErr_Occurred()) SWIG_fail;
32049 }
32050 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32051 return resultobj;
32052 fail:
32053 return NULL;
32054 }
32055
32056
32057 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32058 PyObject *resultobj = 0;
32059 wxStockGDI::Item arg1 ;
32060 wxCursor *result = 0 ;
32061 int val1 ;
32062 int ecode1 = 0 ;
32063 PyObject * obj0 = 0 ;
32064 char * kwnames[] = {
32065 (char *) "item", NULL
32066 };
32067
32068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32069 ecode1 = SWIG_AsVal_int(obj0, &val1);
32070 if (!SWIG_IsOK(ecode1)) {
32071 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32072 }
32073 arg1 = static_cast< wxStockGDI::Item >(val1);
32074 {
32075 PyThreadState* __tstate = wxPyBeginAllowThreads();
32076 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32077 wxPyEndAllowThreads(__tstate);
32078 if (PyErr_Occurred()) SWIG_fail;
32079 }
32080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32081 return resultobj;
32082 fail:
32083 return NULL;
32084 }
32085
32086
32087 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32088 PyObject *resultobj = 0;
32089 wxStockGDI::Item arg1 ;
32090 wxPen *result = 0 ;
32091 int val1 ;
32092 int ecode1 = 0 ;
32093 PyObject * obj0 = 0 ;
32094 char * kwnames[] = {
32095 (char *) "item", NULL
32096 };
32097
32098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32099 ecode1 = SWIG_AsVal_int(obj0, &val1);
32100 if (!SWIG_IsOK(ecode1)) {
32101 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32102 }
32103 arg1 = static_cast< wxStockGDI::Item >(val1);
32104 {
32105 PyThreadState* __tstate = wxPyBeginAllowThreads();
32106 result = (wxPen *)wxStockGDI::GetPen(arg1);
32107 wxPyEndAllowThreads(__tstate);
32108 if (PyErr_Occurred()) SWIG_fail;
32109 }
32110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32111 return resultobj;
32112 fail:
32113 return NULL;
32114 }
32115
32116
32117 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32118 PyObject *resultobj = 0;
32119 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32120 wxStockGDI::Item arg2 ;
32121 wxFont *result = 0 ;
32122 void *argp1 = 0 ;
32123 int res1 = 0 ;
32124 int val2 ;
32125 int ecode2 = 0 ;
32126 PyObject * obj0 = 0 ;
32127 PyObject * obj1 = 0 ;
32128 char * kwnames[] = {
32129 (char *) "self",(char *) "item", NULL
32130 };
32131
32132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32134 if (!SWIG_IsOK(res1)) {
32135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32136 }
32137 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32138 ecode2 = SWIG_AsVal_int(obj1, &val2);
32139 if (!SWIG_IsOK(ecode2)) {
32140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32141 }
32142 arg2 = static_cast< wxStockGDI::Item >(val2);
32143 {
32144 PyThreadState* __tstate = wxPyBeginAllowThreads();
32145 result = (wxFont *)(arg1)->GetFont(arg2);
32146 wxPyEndAllowThreads(__tstate);
32147 if (PyErr_Occurred()) SWIG_fail;
32148 }
32149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32150 return resultobj;
32151 fail:
32152 return NULL;
32153 }
32154
32155
32156 SWIGINTERN PyObject *StockGDI_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_wxStockGDI, SWIG_NewClientData(obj));
32160 return SWIG_Py_Void();
32161 }
32162
32163 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32164 return SWIG_Python_InitShadowInstance(args);
32165 }
32166
32167 SWIGINTERN int NullBitmap_set(PyObject *) {
32168 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32169 return 1;
32170 }
32171
32172
32173 SWIGINTERN PyObject *NullBitmap_get(void) {
32174 PyObject *pyobj = 0;
32175
32176 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32177 return pyobj;
32178 }
32179
32180
32181 SWIGINTERN int NullIcon_set(PyObject *) {
32182 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32183 return 1;
32184 }
32185
32186
32187 SWIGINTERN PyObject *NullIcon_get(void) {
32188 PyObject *pyobj = 0;
32189
32190 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32191 return pyobj;
32192 }
32193
32194
32195 SWIGINTERN int NullCursor_set(PyObject *) {
32196 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32197 return 1;
32198 }
32199
32200
32201 SWIGINTERN PyObject *NullCursor_get(void) {
32202 PyObject *pyobj = 0;
32203
32204 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32205 return pyobj;
32206 }
32207
32208
32209 SWIGINTERN int NullPen_set(PyObject *) {
32210 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32211 return 1;
32212 }
32213
32214
32215 SWIGINTERN PyObject *NullPen_get(void) {
32216 PyObject *pyobj = 0;
32217
32218 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32219 return pyobj;
32220 }
32221
32222
32223 SWIGINTERN int NullBrush_set(PyObject *) {
32224 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32225 return 1;
32226 }
32227
32228
32229 SWIGINTERN PyObject *NullBrush_get(void) {
32230 PyObject *pyobj = 0;
32231
32232 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32233 return pyobj;
32234 }
32235
32236
32237 SWIGINTERN int NullPalette_set(PyObject *) {
32238 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32239 return 1;
32240 }
32241
32242
32243 SWIGINTERN PyObject *NullPalette_get(void) {
32244 PyObject *pyobj = 0;
32245
32246 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32247 return pyobj;
32248 }
32249
32250
32251 SWIGINTERN int NullFont_set(PyObject *) {
32252 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32253 return 1;
32254 }
32255
32256
32257 SWIGINTERN PyObject *NullFont_get(void) {
32258 PyObject *pyobj = 0;
32259
32260 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32261 return pyobj;
32262 }
32263
32264
32265 SWIGINTERN int NullColour_set(PyObject *) {
32266 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32267 return 1;
32268 }
32269
32270
32271 SWIGINTERN PyObject *NullColour_get(void) {
32272 PyObject *pyobj = 0;
32273
32274 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32275 return pyobj;
32276 }
32277
32278
32279 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32280 PyObject *resultobj = 0;
32281 wxGDIObjListBase *result = 0 ;
32282
32283 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32284 {
32285 PyThreadState* __tstate = wxPyBeginAllowThreads();
32286 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32287 wxPyEndAllowThreads(__tstate);
32288 if (PyErr_Occurred()) SWIG_fail;
32289 }
32290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32291 return resultobj;
32292 fail:
32293 return NULL;
32294 }
32295
32296
32297 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32298 PyObject *resultobj = 0;
32299 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
32300 void *argp1 = 0 ;
32301 int res1 = 0 ;
32302 PyObject *swig_obj[1] ;
32303
32304 if (!args) SWIG_fail;
32305 swig_obj[0] = args;
32306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
32307 if (!SWIG_IsOK(res1)) {
32308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
32309 }
32310 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
32311 {
32312 PyThreadState* __tstate = wxPyBeginAllowThreads();
32313 delete arg1;
32314
32315 wxPyEndAllowThreads(__tstate);
32316 if (PyErr_Occurred()) SWIG_fail;
32317 }
32318 resultobj = SWIG_Py_Void();
32319 return resultobj;
32320 fail:
32321 return NULL;
32322 }
32323
32324
32325 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32326 PyObject *obj;
32327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32328 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32329 return SWIG_Py_Void();
32330 }
32331
32332 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32333 return SWIG_Python_InitShadowInstance(args);
32334 }
32335
32336 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32337 PyObject *resultobj = 0;
32338 wxPenList *arg1 = (wxPenList *) 0 ;
32339 wxColour *arg2 = 0 ;
32340 int arg3 ;
32341 int arg4 ;
32342 wxPen *result = 0 ;
32343 void *argp1 = 0 ;
32344 int res1 = 0 ;
32345 wxColour temp2 ;
32346 int val3 ;
32347 int ecode3 = 0 ;
32348 int val4 ;
32349 int ecode4 = 0 ;
32350 PyObject * obj0 = 0 ;
32351 PyObject * obj1 = 0 ;
32352 PyObject * obj2 = 0 ;
32353 PyObject * obj3 = 0 ;
32354 char * kwnames[] = {
32355 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32356 };
32357
32358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32360 if (!SWIG_IsOK(res1)) {
32361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32362 }
32363 arg1 = reinterpret_cast< wxPenList * >(argp1);
32364 {
32365 arg2 = &temp2;
32366 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32367 }
32368 ecode3 = SWIG_AsVal_int(obj2, &val3);
32369 if (!SWIG_IsOK(ecode3)) {
32370 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32371 }
32372 arg3 = static_cast< int >(val3);
32373 ecode4 = SWIG_AsVal_int(obj3, &val4);
32374 if (!SWIG_IsOK(ecode4)) {
32375 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32376 }
32377 arg4 = static_cast< int >(val4);
32378 {
32379 PyThreadState* __tstate = wxPyBeginAllowThreads();
32380 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32381 wxPyEndAllowThreads(__tstate);
32382 if (PyErr_Occurred()) SWIG_fail;
32383 }
32384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32385 return resultobj;
32386 fail:
32387 return NULL;
32388 }
32389
32390
32391 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32392 PyObject *obj;
32393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32394 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32395 return SWIG_Py_Void();
32396 }
32397
32398 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32399 PyObject *resultobj = 0;
32400 wxBrushList *arg1 = (wxBrushList *) 0 ;
32401 wxColour *arg2 = 0 ;
32402 int arg3 = (int) wxSOLID ;
32403 wxBrush *result = 0 ;
32404 void *argp1 = 0 ;
32405 int res1 = 0 ;
32406 wxColour temp2 ;
32407 int val3 ;
32408 int ecode3 = 0 ;
32409 PyObject * obj0 = 0 ;
32410 PyObject * obj1 = 0 ;
32411 PyObject * obj2 = 0 ;
32412 char * kwnames[] = {
32413 (char *) "self",(char *) "colour",(char *) "style", NULL
32414 };
32415
32416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32418 if (!SWIG_IsOK(res1)) {
32419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32420 }
32421 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32422 {
32423 arg2 = &temp2;
32424 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32425 }
32426 if (obj2) {
32427 ecode3 = SWIG_AsVal_int(obj2, &val3);
32428 if (!SWIG_IsOK(ecode3)) {
32429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32430 }
32431 arg3 = static_cast< int >(val3);
32432 }
32433 {
32434 PyThreadState* __tstate = wxPyBeginAllowThreads();
32435 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32436 wxPyEndAllowThreads(__tstate);
32437 if (PyErr_Occurred()) SWIG_fail;
32438 }
32439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32440 return resultobj;
32441 fail:
32442 return NULL;
32443 }
32444
32445
32446 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32447 PyObject *obj;
32448 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32449 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32450 return SWIG_Py_Void();
32451 }
32452
32453 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32454 PyObject *resultobj = 0;
32455 wxFontList *arg1 = (wxFontList *) 0 ;
32456 int arg2 ;
32457 int arg3 ;
32458 int arg4 ;
32459 int arg5 ;
32460 bool arg6 = (bool) false ;
32461 wxString const &arg7_defvalue = wxPyEmptyString ;
32462 wxString *arg7 = (wxString *) &arg7_defvalue ;
32463 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32464 wxFont *result = 0 ;
32465 void *argp1 = 0 ;
32466 int res1 = 0 ;
32467 int val2 ;
32468 int ecode2 = 0 ;
32469 int val3 ;
32470 int ecode3 = 0 ;
32471 int val4 ;
32472 int ecode4 = 0 ;
32473 int val5 ;
32474 int ecode5 = 0 ;
32475 bool val6 ;
32476 int ecode6 = 0 ;
32477 bool temp7 = false ;
32478 int val8 ;
32479 int ecode8 = 0 ;
32480 PyObject * obj0 = 0 ;
32481 PyObject * obj1 = 0 ;
32482 PyObject * obj2 = 0 ;
32483 PyObject * obj3 = 0 ;
32484 PyObject * obj4 = 0 ;
32485 PyObject * obj5 = 0 ;
32486 PyObject * obj6 = 0 ;
32487 PyObject * obj7 = 0 ;
32488 char * kwnames[] = {
32489 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
32490 };
32491
32492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32494 if (!SWIG_IsOK(res1)) {
32495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32496 }
32497 arg1 = reinterpret_cast< wxFontList * >(argp1);
32498 ecode2 = SWIG_AsVal_int(obj1, &val2);
32499 if (!SWIG_IsOK(ecode2)) {
32500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32501 }
32502 arg2 = static_cast< int >(val2);
32503 ecode3 = SWIG_AsVal_int(obj2, &val3);
32504 if (!SWIG_IsOK(ecode3)) {
32505 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32506 }
32507 arg3 = static_cast< int >(val3);
32508 ecode4 = SWIG_AsVal_int(obj3, &val4);
32509 if (!SWIG_IsOK(ecode4)) {
32510 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32511 }
32512 arg4 = static_cast< int >(val4);
32513 ecode5 = SWIG_AsVal_int(obj4, &val5);
32514 if (!SWIG_IsOK(ecode5)) {
32515 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32516 }
32517 arg5 = static_cast< int >(val5);
32518 if (obj5) {
32519 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32520 if (!SWIG_IsOK(ecode6)) {
32521 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32522 }
32523 arg6 = static_cast< bool >(val6);
32524 }
32525 if (obj6) {
32526 {
32527 arg7 = wxString_in_helper(obj6);
32528 if (arg7 == NULL) SWIG_fail;
32529 temp7 = true;
32530 }
32531 }
32532 if (obj7) {
32533 ecode8 = SWIG_AsVal_int(obj7, &val8);
32534 if (!SWIG_IsOK(ecode8)) {
32535 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
32536 }
32537 arg8 = static_cast< wxFontEncoding >(val8);
32538 }
32539 {
32540 PyThreadState* __tstate = wxPyBeginAllowThreads();
32541 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
32542 wxPyEndAllowThreads(__tstate);
32543 if (PyErr_Occurred()) SWIG_fail;
32544 }
32545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32546 {
32547 if (temp7)
32548 delete arg7;
32549 }
32550 return resultobj;
32551 fail:
32552 {
32553 if (temp7)
32554 delete arg7;
32555 }
32556 return NULL;
32557 }
32558
32559
32560 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32561 PyObject *obj;
32562 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32563 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
32564 return SWIG_Py_Void();
32565 }
32566
32567 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32568 PyObject *resultobj = 0;
32569 wxColourDatabase *result = 0 ;
32570
32571 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32572 {
32573 if (!wxPyCheckForApp()) SWIG_fail;
32574 PyThreadState* __tstate = wxPyBeginAllowThreads();
32575 result = (wxColourDatabase *)new wxColourDatabase();
32576 wxPyEndAllowThreads(__tstate);
32577 if (PyErr_Occurred()) SWIG_fail;
32578 }
32579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32580 return resultobj;
32581 fail:
32582 return NULL;
32583 }
32584
32585
32586 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32587 PyObject *resultobj = 0;
32588 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32589 void *argp1 = 0 ;
32590 int res1 = 0 ;
32591 PyObject *swig_obj[1] ;
32592
32593 if (!args) SWIG_fail;
32594 swig_obj[0] = args;
32595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32596 if (!SWIG_IsOK(res1)) {
32597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32598 }
32599 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32600 {
32601 PyThreadState* __tstate = wxPyBeginAllowThreads();
32602 delete arg1;
32603
32604 wxPyEndAllowThreads(__tstate);
32605 if (PyErr_Occurred()) SWIG_fail;
32606 }
32607 resultobj = SWIG_Py_Void();
32608 return resultobj;
32609 fail:
32610 return NULL;
32611 }
32612
32613
32614 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32615 PyObject *resultobj = 0;
32616 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32617 wxString *arg2 = 0 ;
32618 wxColour result;
32619 void *argp1 = 0 ;
32620 int res1 = 0 ;
32621 bool temp2 = false ;
32622 PyObject * obj0 = 0 ;
32623 PyObject * obj1 = 0 ;
32624 char * kwnames[] = {
32625 (char *) "self",(char *) "name", NULL
32626 };
32627
32628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32630 if (!SWIG_IsOK(res1)) {
32631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32632 }
32633 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32634 {
32635 arg2 = wxString_in_helper(obj1);
32636 if (arg2 == NULL) SWIG_fail;
32637 temp2 = true;
32638 }
32639 {
32640 PyThreadState* __tstate = wxPyBeginAllowThreads();
32641 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32642 wxPyEndAllowThreads(__tstate);
32643 if (PyErr_Occurred()) SWIG_fail;
32644 }
32645 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32646 {
32647 if (temp2)
32648 delete arg2;
32649 }
32650 return resultobj;
32651 fail:
32652 {
32653 if (temp2)
32654 delete arg2;
32655 }
32656 return NULL;
32657 }
32658
32659
32660 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32661 PyObject *resultobj = 0;
32662 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32663 wxColour *arg2 = 0 ;
32664 wxString result;
32665 void *argp1 = 0 ;
32666 int res1 = 0 ;
32667 wxColour temp2 ;
32668 PyObject * obj0 = 0 ;
32669 PyObject * obj1 = 0 ;
32670 char * kwnames[] = {
32671 (char *) "self",(char *) "colour", NULL
32672 };
32673
32674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32676 if (!SWIG_IsOK(res1)) {
32677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32678 }
32679 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32680 {
32681 arg2 = &temp2;
32682 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32683 }
32684 {
32685 PyThreadState* __tstate = wxPyBeginAllowThreads();
32686 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32687 wxPyEndAllowThreads(__tstate);
32688 if (PyErr_Occurred()) SWIG_fail;
32689 }
32690 {
32691 #if wxUSE_UNICODE
32692 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32693 #else
32694 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32695 #endif
32696 }
32697 return resultobj;
32698 fail:
32699 return NULL;
32700 }
32701
32702
32703 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32704 PyObject *resultobj = 0;
32705 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32706 wxString *arg2 = 0 ;
32707 wxColour *arg3 = 0 ;
32708 void *argp1 = 0 ;
32709 int res1 = 0 ;
32710 bool temp2 = false ;
32711 wxColour temp3 ;
32712 PyObject * obj0 = 0 ;
32713 PyObject * obj1 = 0 ;
32714 PyObject * obj2 = 0 ;
32715 char * kwnames[] = {
32716 (char *) "self",(char *) "name",(char *) "colour", NULL
32717 };
32718
32719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32721 if (!SWIG_IsOK(res1)) {
32722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32723 }
32724 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32725 {
32726 arg2 = wxString_in_helper(obj1);
32727 if (arg2 == NULL) SWIG_fail;
32728 temp2 = true;
32729 }
32730 {
32731 arg3 = &temp3;
32732 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32733 }
32734 {
32735 PyThreadState* __tstate = wxPyBeginAllowThreads();
32736 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32737 wxPyEndAllowThreads(__tstate);
32738 if (PyErr_Occurred()) SWIG_fail;
32739 }
32740 resultobj = SWIG_Py_Void();
32741 {
32742 if (temp2)
32743 delete arg2;
32744 }
32745 return resultobj;
32746 fail:
32747 {
32748 if (temp2)
32749 delete arg2;
32750 }
32751 return NULL;
32752 }
32753
32754
32755 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32756 PyObject *resultobj = 0;
32757 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32758 wxString *arg2 = 0 ;
32759 int arg3 ;
32760 int arg4 ;
32761 int arg5 ;
32762 void *argp1 = 0 ;
32763 int res1 = 0 ;
32764 bool temp2 = false ;
32765 int val3 ;
32766 int ecode3 = 0 ;
32767 int val4 ;
32768 int ecode4 = 0 ;
32769 int val5 ;
32770 int ecode5 = 0 ;
32771 PyObject * obj0 = 0 ;
32772 PyObject * obj1 = 0 ;
32773 PyObject * obj2 = 0 ;
32774 PyObject * obj3 = 0 ;
32775 PyObject * obj4 = 0 ;
32776 char * kwnames[] = {
32777 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
32778 };
32779
32780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32782 if (!SWIG_IsOK(res1)) {
32783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32784 }
32785 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32786 {
32787 arg2 = wxString_in_helper(obj1);
32788 if (arg2 == NULL) SWIG_fail;
32789 temp2 = true;
32790 }
32791 ecode3 = SWIG_AsVal_int(obj2, &val3);
32792 if (!SWIG_IsOK(ecode3)) {
32793 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
32794 }
32795 arg3 = static_cast< int >(val3);
32796 ecode4 = SWIG_AsVal_int(obj3, &val4);
32797 if (!SWIG_IsOK(ecode4)) {
32798 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
32799 }
32800 arg4 = static_cast< int >(val4);
32801 ecode5 = SWIG_AsVal_int(obj4, &val5);
32802 if (!SWIG_IsOK(ecode5)) {
32803 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
32804 }
32805 arg5 = static_cast< int >(val5);
32806 {
32807 PyThreadState* __tstate = wxPyBeginAllowThreads();
32808 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
32809 wxPyEndAllowThreads(__tstate);
32810 if (PyErr_Occurred()) SWIG_fail;
32811 }
32812 resultobj = SWIG_Py_Void();
32813 {
32814 if (temp2)
32815 delete arg2;
32816 }
32817 return resultobj;
32818 fail:
32819 {
32820 if (temp2)
32821 delete arg2;
32822 }
32823 return NULL;
32824 }
32825
32826
32827 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32828 PyObject *obj;
32829 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32830 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32831 return SWIG_Py_Void();
32832 }
32833
32834 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32835 return SWIG_Python_InitShadowInstance(args);
32836 }
32837
32838 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32839 PyObject *resultobj = 0;
32840 wxFontList *result = 0 ;
32841
32842 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
32843 {
32844 PyThreadState* __tstate = wxPyBeginAllowThreads();
32845 result = (wxFontList *)_wxPyInitTheFontList();
32846 wxPyEndAllowThreads(__tstate);
32847 if (PyErr_Occurred()) SWIG_fail;
32848 }
32849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
32850 return resultobj;
32851 fail:
32852 return NULL;
32853 }
32854
32855
32856 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32857 PyObject *resultobj = 0;
32858 wxPenList *result = 0 ;
32859
32860 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
32861 {
32862 PyThreadState* __tstate = wxPyBeginAllowThreads();
32863 result = (wxPenList *)_wxPyInitThePenList();
32864 wxPyEndAllowThreads(__tstate);
32865 if (PyErr_Occurred()) SWIG_fail;
32866 }
32867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
32868 return resultobj;
32869 fail:
32870 return NULL;
32871 }
32872
32873
32874 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32875 PyObject *resultobj = 0;
32876 wxBrushList *result = 0 ;
32877
32878 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32879 {
32880 PyThreadState* __tstate = wxPyBeginAllowThreads();
32881 result = (wxBrushList *)_wxPyInitTheBrushList();
32882 wxPyEndAllowThreads(__tstate);
32883 if (PyErr_Occurred()) SWIG_fail;
32884 }
32885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32886 return resultobj;
32887 fail:
32888 return NULL;
32889 }
32890
32891
32892 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32893 PyObject *resultobj = 0;
32894 wxColourDatabase *result = 0 ;
32895
32896 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32897 {
32898 PyThreadState* __tstate = wxPyBeginAllowThreads();
32899 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32900 wxPyEndAllowThreads(__tstate);
32901 if (PyErr_Occurred()) SWIG_fail;
32902 }
32903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32904 return resultobj;
32905 fail:
32906 return NULL;
32907 }
32908
32909
32910 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32911 PyObject *resultobj = 0;
32912 wxEffects *result = 0 ;
32913
32914 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32915 {
32916 PyThreadState* __tstate = wxPyBeginAllowThreads();
32917 result = (wxEffects *)new wxEffects();
32918 wxPyEndAllowThreads(__tstate);
32919 if (PyErr_Occurred()) SWIG_fail;
32920 }
32921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32922 return resultobj;
32923 fail:
32924 return NULL;
32925 }
32926
32927
32928 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32929 PyObject *resultobj = 0;
32930 wxEffects *arg1 = (wxEffects *) 0 ;
32931 wxColour result;
32932 void *argp1 = 0 ;
32933 int res1 = 0 ;
32934 PyObject *swig_obj[1] ;
32935
32936 if (!args) SWIG_fail;
32937 swig_obj[0] = args;
32938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32939 if (!SWIG_IsOK(res1)) {
32940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32941 }
32942 arg1 = reinterpret_cast< wxEffects * >(argp1);
32943 {
32944 PyThreadState* __tstate = wxPyBeginAllowThreads();
32945 result = ((wxEffects const *)arg1)->GetHighlightColour();
32946 wxPyEndAllowThreads(__tstate);
32947 if (PyErr_Occurred()) SWIG_fail;
32948 }
32949 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32950 return resultobj;
32951 fail:
32952 return NULL;
32953 }
32954
32955
32956 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32957 PyObject *resultobj = 0;
32958 wxEffects *arg1 = (wxEffects *) 0 ;
32959 wxColour result;
32960 void *argp1 = 0 ;
32961 int res1 = 0 ;
32962 PyObject *swig_obj[1] ;
32963
32964 if (!args) SWIG_fail;
32965 swig_obj[0] = args;
32966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32967 if (!SWIG_IsOK(res1)) {
32968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32969 }
32970 arg1 = reinterpret_cast< wxEffects * >(argp1);
32971 {
32972 PyThreadState* __tstate = wxPyBeginAllowThreads();
32973 result = ((wxEffects const *)arg1)->GetLightShadow();
32974 wxPyEndAllowThreads(__tstate);
32975 if (PyErr_Occurred()) SWIG_fail;
32976 }
32977 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32978 return resultobj;
32979 fail:
32980 return NULL;
32981 }
32982
32983
32984 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32985 PyObject *resultobj = 0;
32986 wxEffects *arg1 = (wxEffects *) 0 ;
32987 wxColour result;
32988 void *argp1 = 0 ;
32989 int res1 = 0 ;
32990 PyObject *swig_obj[1] ;
32991
32992 if (!args) SWIG_fail;
32993 swig_obj[0] = args;
32994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32995 if (!SWIG_IsOK(res1)) {
32996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32997 }
32998 arg1 = reinterpret_cast< wxEffects * >(argp1);
32999 {
33000 PyThreadState* __tstate = wxPyBeginAllowThreads();
33001 result = ((wxEffects const *)arg1)->GetFaceColour();
33002 wxPyEndAllowThreads(__tstate);
33003 if (PyErr_Occurred()) SWIG_fail;
33004 }
33005 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33006 return resultobj;
33007 fail:
33008 return NULL;
33009 }
33010
33011
33012 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33013 PyObject *resultobj = 0;
33014 wxEffects *arg1 = (wxEffects *) 0 ;
33015 wxColour result;
33016 void *argp1 = 0 ;
33017 int res1 = 0 ;
33018 PyObject *swig_obj[1] ;
33019
33020 if (!args) SWIG_fail;
33021 swig_obj[0] = args;
33022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33023 if (!SWIG_IsOK(res1)) {
33024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33025 }
33026 arg1 = reinterpret_cast< wxEffects * >(argp1);
33027 {
33028 PyThreadState* __tstate = wxPyBeginAllowThreads();
33029 result = ((wxEffects const *)arg1)->GetMediumShadow();
33030 wxPyEndAllowThreads(__tstate);
33031 if (PyErr_Occurred()) SWIG_fail;
33032 }
33033 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33034 return resultobj;
33035 fail:
33036 return NULL;
33037 }
33038
33039
33040 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33041 PyObject *resultobj = 0;
33042 wxEffects *arg1 = (wxEffects *) 0 ;
33043 wxColour result;
33044 void *argp1 = 0 ;
33045 int res1 = 0 ;
33046 PyObject *swig_obj[1] ;
33047
33048 if (!args) SWIG_fail;
33049 swig_obj[0] = args;
33050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33051 if (!SWIG_IsOK(res1)) {
33052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33053 }
33054 arg1 = reinterpret_cast< wxEffects * >(argp1);
33055 {
33056 PyThreadState* __tstate = wxPyBeginAllowThreads();
33057 result = ((wxEffects const *)arg1)->GetDarkShadow();
33058 wxPyEndAllowThreads(__tstate);
33059 if (PyErr_Occurred()) SWIG_fail;
33060 }
33061 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33062 return resultobj;
33063 fail:
33064 return NULL;
33065 }
33066
33067
33068 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33069 PyObject *resultobj = 0;
33070 wxEffects *arg1 = (wxEffects *) 0 ;
33071 wxColour *arg2 = 0 ;
33072 void *argp1 = 0 ;
33073 int res1 = 0 ;
33074 wxColour temp2 ;
33075 PyObject * obj0 = 0 ;
33076 PyObject * obj1 = 0 ;
33077 char * kwnames[] = {
33078 (char *) "self",(char *) "c", NULL
33079 };
33080
33081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33083 if (!SWIG_IsOK(res1)) {
33084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33085 }
33086 arg1 = reinterpret_cast< wxEffects * >(argp1);
33087 {
33088 arg2 = &temp2;
33089 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33090 }
33091 {
33092 PyThreadState* __tstate = wxPyBeginAllowThreads();
33093 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33094 wxPyEndAllowThreads(__tstate);
33095 if (PyErr_Occurred()) SWIG_fail;
33096 }
33097 resultobj = SWIG_Py_Void();
33098 return resultobj;
33099 fail:
33100 return NULL;
33101 }
33102
33103
33104 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33105 PyObject *resultobj = 0;
33106 wxEffects *arg1 = (wxEffects *) 0 ;
33107 wxColour *arg2 = 0 ;
33108 void *argp1 = 0 ;
33109 int res1 = 0 ;
33110 wxColour temp2 ;
33111 PyObject * obj0 = 0 ;
33112 PyObject * obj1 = 0 ;
33113 char * kwnames[] = {
33114 (char *) "self",(char *) "c", NULL
33115 };
33116
33117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33119 if (!SWIG_IsOK(res1)) {
33120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33121 }
33122 arg1 = reinterpret_cast< wxEffects * >(argp1);
33123 {
33124 arg2 = &temp2;
33125 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33126 }
33127 {
33128 PyThreadState* __tstate = wxPyBeginAllowThreads();
33129 (arg1)->SetLightShadow((wxColour const &)*arg2);
33130 wxPyEndAllowThreads(__tstate);
33131 if (PyErr_Occurred()) SWIG_fail;
33132 }
33133 resultobj = SWIG_Py_Void();
33134 return resultobj;
33135 fail:
33136 return NULL;
33137 }
33138
33139
33140 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33141 PyObject *resultobj = 0;
33142 wxEffects *arg1 = (wxEffects *) 0 ;
33143 wxColour *arg2 = 0 ;
33144 void *argp1 = 0 ;
33145 int res1 = 0 ;
33146 wxColour temp2 ;
33147 PyObject * obj0 = 0 ;
33148 PyObject * obj1 = 0 ;
33149 char * kwnames[] = {
33150 (char *) "self",(char *) "c", NULL
33151 };
33152
33153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33155 if (!SWIG_IsOK(res1)) {
33156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33157 }
33158 arg1 = reinterpret_cast< wxEffects * >(argp1);
33159 {
33160 arg2 = &temp2;
33161 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33162 }
33163 {
33164 PyThreadState* __tstate = wxPyBeginAllowThreads();
33165 (arg1)->SetFaceColour((wxColour const &)*arg2);
33166 wxPyEndAllowThreads(__tstate);
33167 if (PyErr_Occurred()) SWIG_fail;
33168 }
33169 resultobj = SWIG_Py_Void();
33170 return resultobj;
33171 fail:
33172 return NULL;
33173 }
33174
33175
33176 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33177 PyObject *resultobj = 0;
33178 wxEffects *arg1 = (wxEffects *) 0 ;
33179 wxColour *arg2 = 0 ;
33180 void *argp1 = 0 ;
33181 int res1 = 0 ;
33182 wxColour temp2 ;
33183 PyObject * obj0 = 0 ;
33184 PyObject * obj1 = 0 ;
33185 char * kwnames[] = {
33186 (char *) "self",(char *) "c", NULL
33187 };
33188
33189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33191 if (!SWIG_IsOK(res1)) {
33192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33193 }
33194 arg1 = reinterpret_cast< wxEffects * >(argp1);
33195 {
33196 arg2 = &temp2;
33197 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33198 }
33199 {
33200 PyThreadState* __tstate = wxPyBeginAllowThreads();
33201 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33202 wxPyEndAllowThreads(__tstate);
33203 if (PyErr_Occurred()) SWIG_fail;
33204 }
33205 resultobj = SWIG_Py_Void();
33206 return resultobj;
33207 fail:
33208 return NULL;
33209 }
33210
33211
33212 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33213 PyObject *resultobj = 0;
33214 wxEffects *arg1 = (wxEffects *) 0 ;
33215 wxColour *arg2 = 0 ;
33216 void *argp1 = 0 ;
33217 int res1 = 0 ;
33218 wxColour temp2 ;
33219 PyObject * obj0 = 0 ;
33220 PyObject * obj1 = 0 ;
33221 char * kwnames[] = {
33222 (char *) "self",(char *) "c", NULL
33223 };
33224
33225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33227 if (!SWIG_IsOK(res1)) {
33228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33229 }
33230 arg1 = reinterpret_cast< wxEffects * >(argp1);
33231 {
33232 arg2 = &temp2;
33233 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33234 }
33235 {
33236 PyThreadState* __tstate = wxPyBeginAllowThreads();
33237 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33238 wxPyEndAllowThreads(__tstate);
33239 if (PyErr_Occurred()) SWIG_fail;
33240 }
33241 resultobj = SWIG_Py_Void();
33242 return resultobj;
33243 fail:
33244 return NULL;
33245 }
33246
33247
33248 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33249 PyObject *resultobj = 0;
33250 wxEffects *arg1 = (wxEffects *) 0 ;
33251 wxColour *arg2 = 0 ;
33252 wxColour *arg3 = 0 ;
33253 wxColour *arg4 = 0 ;
33254 wxColour *arg5 = 0 ;
33255 wxColour *arg6 = 0 ;
33256 void *argp1 = 0 ;
33257 int res1 = 0 ;
33258 wxColour temp2 ;
33259 wxColour temp3 ;
33260 wxColour temp4 ;
33261 wxColour temp5 ;
33262 wxColour temp6 ;
33263 PyObject * obj0 = 0 ;
33264 PyObject * obj1 = 0 ;
33265 PyObject * obj2 = 0 ;
33266 PyObject * obj3 = 0 ;
33267 PyObject * obj4 = 0 ;
33268 PyObject * obj5 = 0 ;
33269 char * kwnames[] = {
33270 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33271 };
33272
33273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33275 if (!SWIG_IsOK(res1)) {
33276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33277 }
33278 arg1 = reinterpret_cast< wxEffects * >(argp1);
33279 {
33280 arg2 = &temp2;
33281 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33282 }
33283 {
33284 arg3 = &temp3;
33285 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33286 }
33287 {
33288 arg4 = &temp4;
33289 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33290 }
33291 {
33292 arg5 = &temp5;
33293 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33294 }
33295 {
33296 arg6 = &temp6;
33297 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33298 }
33299 {
33300 PyThreadState* __tstate = wxPyBeginAllowThreads();
33301 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33302 wxPyEndAllowThreads(__tstate);
33303 if (PyErr_Occurred()) SWIG_fail;
33304 }
33305 resultobj = SWIG_Py_Void();
33306 return resultobj;
33307 fail:
33308 return NULL;
33309 }
33310
33311
33312 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33313 PyObject *resultobj = 0;
33314 wxEffects *arg1 = (wxEffects *) 0 ;
33315 wxDC *arg2 = 0 ;
33316 wxRect *arg3 = 0 ;
33317 int arg4 = (int) 1 ;
33318 void *argp1 = 0 ;
33319 int res1 = 0 ;
33320 void *argp2 = 0 ;
33321 int res2 = 0 ;
33322 wxRect temp3 ;
33323 int val4 ;
33324 int ecode4 = 0 ;
33325 PyObject * obj0 = 0 ;
33326 PyObject * obj1 = 0 ;
33327 PyObject * obj2 = 0 ;
33328 PyObject * obj3 = 0 ;
33329 char * kwnames[] = {
33330 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33331 };
33332
33333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33335 if (!SWIG_IsOK(res1)) {
33336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33337 }
33338 arg1 = reinterpret_cast< wxEffects * >(argp1);
33339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33340 if (!SWIG_IsOK(res2)) {
33341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33342 }
33343 if (!argp2) {
33344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33345 }
33346 arg2 = reinterpret_cast< wxDC * >(argp2);
33347 {
33348 arg3 = &temp3;
33349 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33350 }
33351 if (obj3) {
33352 ecode4 = SWIG_AsVal_int(obj3, &val4);
33353 if (!SWIG_IsOK(ecode4)) {
33354 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33355 }
33356 arg4 = static_cast< int >(val4);
33357 }
33358 {
33359 PyThreadState* __tstate = wxPyBeginAllowThreads();
33360 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33361 wxPyEndAllowThreads(__tstate);
33362 if (PyErr_Occurred()) SWIG_fail;
33363 }
33364 resultobj = SWIG_Py_Void();
33365 return resultobj;
33366 fail:
33367 return NULL;
33368 }
33369
33370
33371 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33372 PyObject *resultobj = 0;
33373 wxEffects *arg1 = (wxEffects *) 0 ;
33374 wxRect *arg2 = 0 ;
33375 wxDC *arg3 = 0 ;
33376 wxBitmap *arg4 = 0 ;
33377 bool result;
33378 void *argp1 = 0 ;
33379 int res1 = 0 ;
33380 wxRect temp2 ;
33381 void *argp3 = 0 ;
33382 int res3 = 0 ;
33383 void *argp4 = 0 ;
33384 int res4 = 0 ;
33385 PyObject * obj0 = 0 ;
33386 PyObject * obj1 = 0 ;
33387 PyObject * obj2 = 0 ;
33388 PyObject * obj3 = 0 ;
33389 char * kwnames[] = {
33390 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33391 };
33392
33393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33395 if (!SWIG_IsOK(res1)) {
33396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33397 }
33398 arg1 = reinterpret_cast< wxEffects * >(argp1);
33399 {
33400 arg2 = &temp2;
33401 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33402 }
33403 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33404 if (!SWIG_IsOK(res3)) {
33405 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33406 }
33407 if (!argp3) {
33408 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33409 }
33410 arg3 = reinterpret_cast< wxDC * >(argp3);
33411 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33412 if (!SWIG_IsOK(res4)) {
33413 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33414 }
33415 if (!argp4) {
33416 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33417 }
33418 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33419 {
33420 PyThreadState* __tstate = wxPyBeginAllowThreads();
33421 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33422 wxPyEndAllowThreads(__tstate);
33423 if (PyErr_Occurred()) SWIG_fail;
33424 }
33425 {
33426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33427 }
33428 return resultobj;
33429 fail:
33430 return NULL;
33431 }
33432
33433
33434 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33435 PyObject *obj;
33436 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33437 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33438 return SWIG_Py_Void();
33439 }
33440
33441 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33442 return SWIG_Python_InitShadowInstance(args);
33443 }
33444
33445 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33446 PyObject *resultobj = 0;
33447 int arg1 ;
33448 int arg2 ;
33449 bool arg3 ;
33450 wxSplitterRenderParams *result = 0 ;
33451 int val1 ;
33452 int ecode1 = 0 ;
33453 int val2 ;
33454 int ecode2 = 0 ;
33455 bool val3 ;
33456 int ecode3 = 0 ;
33457 PyObject * obj0 = 0 ;
33458 PyObject * obj1 = 0 ;
33459 PyObject * obj2 = 0 ;
33460 char * kwnames[] = {
33461 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33462 };
33463
33464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33465 ecode1 = SWIG_AsVal_int(obj0, &val1);
33466 if (!SWIG_IsOK(ecode1)) {
33467 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33468 }
33469 arg1 = static_cast< int >(val1);
33470 ecode2 = SWIG_AsVal_int(obj1, &val2);
33471 if (!SWIG_IsOK(ecode2)) {
33472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33473 }
33474 arg2 = static_cast< int >(val2);
33475 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33476 if (!SWIG_IsOK(ecode3)) {
33477 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33478 }
33479 arg3 = static_cast< bool >(val3);
33480 {
33481 PyThreadState* __tstate = wxPyBeginAllowThreads();
33482 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33483 wxPyEndAllowThreads(__tstate);
33484 if (PyErr_Occurred()) SWIG_fail;
33485 }
33486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33487 return resultobj;
33488 fail:
33489 return NULL;
33490 }
33491
33492
33493 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33494 PyObject *resultobj = 0;
33495 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33496 void *argp1 = 0 ;
33497 int res1 = 0 ;
33498 PyObject *swig_obj[1] ;
33499
33500 if (!args) SWIG_fail;
33501 swig_obj[0] = args;
33502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33503 if (!SWIG_IsOK(res1)) {
33504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33505 }
33506 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33507 {
33508 PyThreadState* __tstate = wxPyBeginAllowThreads();
33509 delete arg1;
33510
33511 wxPyEndAllowThreads(__tstate);
33512 if (PyErr_Occurred()) SWIG_fail;
33513 }
33514 resultobj = SWIG_Py_Void();
33515 return resultobj;
33516 fail:
33517 return NULL;
33518 }
33519
33520
33521 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33522 PyObject *resultobj = 0;
33523 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33524 int result;
33525 void *argp1 = 0 ;
33526 int res1 = 0 ;
33527 PyObject *swig_obj[1] ;
33528
33529 if (!args) SWIG_fail;
33530 swig_obj[0] = args;
33531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33532 if (!SWIG_IsOK(res1)) {
33533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33534 }
33535 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33536 result = (int)(int) ((arg1)->widthSash);
33537 resultobj = SWIG_From_int(static_cast< int >(result));
33538 return resultobj;
33539 fail:
33540 return NULL;
33541 }
33542
33543
33544 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33545 PyObject *resultobj = 0;
33546 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33547 int result;
33548 void *argp1 = 0 ;
33549 int res1 = 0 ;
33550 PyObject *swig_obj[1] ;
33551
33552 if (!args) SWIG_fail;
33553 swig_obj[0] = args;
33554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33555 if (!SWIG_IsOK(res1)) {
33556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33557 }
33558 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33559 result = (int)(int) ((arg1)->border);
33560 resultobj = SWIG_From_int(static_cast< int >(result));
33561 return resultobj;
33562 fail:
33563 return NULL;
33564 }
33565
33566
33567 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33568 PyObject *resultobj = 0;
33569 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33570 bool result;
33571 void *argp1 = 0 ;
33572 int res1 = 0 ;
33573 PyObject *swig_obj[1] ;
33574
33575 if (!args) SWIG_fail;
33576 swig_obj[0] = args;
33577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33578 if (!SWIG_IsOK(res1)) {
33579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33580 }
33581 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33582 result = (bool)(bool) ((arg1)->isHotSensitive);
33583 resultobj = SWIG_From_bool(static_cast< bool >(result));
33584 return resultobj;
33585 fail:
33586 return NULL;
33587 }
33588
33589
33590 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33591 PyObject *obj;
33592 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33593 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33594 return SWIG_Py_Void();
33595 }
33596
33597 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33598 return SWIG_Python_InitShadowInstance(args);
33599 }
33600
33601 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33602 PyObject *resultobj = 0;
33603 wxHeaderButtonParams *result = 0 ;
33604
33605 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33606 {
33607 PyThreadState* __tstate = wxPyBeginAllowThreads();
33608 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33609 wxPyEndAllowThreads(__tstate);
33610 if (PyErr_Occurred()) SWIG_fail;
33611 }
33612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33613 return resultobj;
33614 fail:
33615 return NULL;
33616 }
33617
33618
33619 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33620 PyObject *resultobj = 0;
33621 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33622 void *argp1 = 0 ;
33623 int res1 = 0 ;
33624 PyObject *swig_obj[1] ;
33625
33626 if (!args) SWIG_fail;
33627 swig_obj[0] = args;
33628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33629 if (!SWIG_IsOK(res1)) {
33630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33631 }
33632 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33633 {
33634 PyThreadState* __tstate = wxPyBeginAllowThreads();
33635 delete arg1;
33636
33637 wxPyEndAllowThreads(__tstate);
33638 if (PyErr_Occurred()) SWIG_fail;
33639 }
33640 resultobj = SWIG_Py_Void();
33641 return resultobj;
33642 fail:
33643 return NULL;
33644 }
33645
33646
33647 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33648 PyObject *resultobj = 0;
33649 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33650 wxColour *arg2 = (wxColour *) 0 ;
33651 void *argp1 = 0 ;
33652 int res1 = 0 ;
33653 wxColour temp2 ;
33654 PyObject *swig_obj[2] ;
33655
33656 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33658 if (!SWIG_IsOK(res1)) {
33659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33660 }
33661 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33662 {
33663 arg2 = &temp2;
33664 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33665 }
33666 if (arg1) (arg1)->m_arrowColour = *arg2;
33667
33668 resultobj = SWIG_Py_Void();
33669 return resultobj;
33670 fail:
33671 return NULL;
33672 }
33673
33674
33675 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33676 PyObject *resultobj = 0;
33677 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33678 wxColour *result = 0 ;
33679 void *argp1 = 0 ;
33680 int res1 = 0 ;
33681 PyObject *swig_obj[1] ;
33682
33683 if (!args) SWIG_fail;
33684 swig_obj[0] = args;
33685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33686 if (!SWIG_IsOK(res1)) {
33687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33688 }
33689 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33690 result = (wxColour *)& ((arg1)->m_arrowColour);
33691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33692 return resultobj;
33693 fail:
33694 return NULL;
33695 }
33696
33697
33698 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33699 PyObject *resultobj = 0;
33700 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33701 wxColour *arg2 = (wxColour *) 0 ;
33702 void *argp1 = 0 ;
33703 int res1 = 0 ;
33704 wxColour temp2 ;
33705 PyObject *swig_obj[2] ;
33706
33707 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33709 if (!SWIG_IsOK(res1)) {
33710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33711 }
33712 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33713 {
33714 arg2 = &temp2;
33715 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33716 }
33717 if (arg1) (arg1)->m_selectionColour = *arg2;
33718
33719 resultobj = SWIG_Py_Void();
33720 return resultobj;
33721 fail:
33722 return NULL;
33723 }
33724
33725
33726 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33727 PyObject *resultobj = 0;
33728 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33729 wxColour *result = 0 ;
33730 void *argp1 = 0 ;
33731 int res1 = 0 ;
33732 PyObject *swig_obj[1] ;
33733
33734 if (!args) SWIG_fail;
33735 swig_obj[0] = args;
33736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33737 if (!SWIG_IsOK(res1)) {
33738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33739 }
33740 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33741 result = (wxColour *)& ((arg1)->m_selectionColour);
33742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33743 return resultobj;
33744 fail:
33745 return NULL;
33746 }
33747
33748
33749 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33750 PyObject *resultobj = 0;
33751 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33752 wxString *arg2 = (wxString *) 0 ;
33753 void *argp1 = 0 ;
33754 int res1 = 0 ;
33755 bool temp2 = false ;
33756 PyObject *swig_obj[2] ;
33757
33758 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33760 if (!SWIG_IsOK(res1)) {
33761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33762 }
33763 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33764 {
33765 arg2 = wxString_in_helper(swig_obj[1]);
33766 if (arg2 == NULL) SWIG_fail;
33767 temp2 = true;
33768 }
33769 if (arg1) (arg1)->m_labelText = *arg2;
33770
33771 resultobj = SWIG_Py_Void();
33772 {
33773 if (temp2)
33774 delete arg2;
33775 }
33776 return resultobj;
33777 fail:
33778 {
33779 if (temp2)
33780 delete arg2;
33781 }
33782 return NULL;
33783 }
33784
33785
33786 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33787 PyObject *resultobj = 0;
33788 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33789 wxString *result = 0 ;
33790 void *argp1 = 0 ;
33791 int res1 = 0 ;
33792 PyObject *swig_obj[1] ;
33793
33794 if (!args) SWIG_fail;
33795 swig_obj[0] = args;
33796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33797 if (!SWIG_IsOK(res1)) {
33798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33799 }
33800 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33801 result = (wxString *)& ((arg1)->m_labelText);
33802 {
33803 #if wxUSE_UNICODE
33804 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33805 #else
33806 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33807 #endif
33808 }
33809 return resultobj;
33810 fail:
33811 return NULL;
33812 }
33813
33814
33815 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33816 PyObject *resultobj = 0;
33817 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33818 wxFont *arg2 = (wxFont *) 0 ;
33819 void *argp1 = 0 ;
33820 int res1 = 0 ;
33821 void *argp2 = 0 ;
33822 int res2 = 0 ;
33823 PyObject *swig_obj[2] ;
33824
33825 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33827 if (!SWIG_IsOK(res1)) {
33828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33829 }
33830 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33831 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33832 if (!SWIG_IsOK(res2)) {
33833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33834 }
33835 arg2 = reinterpret_cast< wxFont * >(argp2);
33836 if (arg1) (arg1)->m_labelFont = *arg2;
33837
33838 resultobj = SWIG_Py_Void();
33839 return resultobj;
33840 fail:
33841 return NULL;
33842 }
33843
33844
33845 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33846 PyObject *resultobj = 0;
33847 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33848 wxFont *result = 0 ;
33849 void *argp1 = 0 ;
33850 int res1 = 0 ;
33851 PyObject *swig_obj[1] ;
33852
33853 if (!args) SWIG_fail;
33854 swig_obj[0] = args;
33855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33856 if (!SWIG_IsOK(res1)) {
33857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33858 }
33859 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33860 result = (wxFont *)& ((arg1)->m_labelFont);
33861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33862 return resultobj;
33863 fail:
33864 return NULL;
33865 }
33866
33867
33868 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33869 PyObject *resultobj = 0;
33870 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33871 wxColour *arg2 = (wxColour *) 0 ;
33872 void *argp1 = 0 ;
33873 int res1 = 0 ;
33874 wxColour temp2 ;
33875 PyObject *swig_obj[2] ;
33876
33877 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33879 if (!SWIG_IsOK(res1)) {
33880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33881 }
33882 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33883 {
33884 arg2 = &temp2;
33885 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33886 }
33887 if (arg1) (arg1)->m_labelColour = *arg2;
33888
33889 resultobj = SWIG_Py_Void();
33890 return resultobj;
33891 fail:
33892 return NULL;
33893 }
33894
33895
33896 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33897 PyObject *resultobj = 0;
33898 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33899 wxColour *result = 0 ;
33900 void *argp1 = 0 ;
33901 int res1 = 0 ;
33902 PyObject *swig_obj[1] ;
33903
33904 if (!args) SWIG_fail;
33905 swig_obj[0] = args;
33906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33907 if (!SWIG_IsOK(res1)) {
33908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33909 }
33910 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33911 result = (wxColour *)& ((arg1)->m_labelColour);
33912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33913 return resultobj;
33914 fail:
33915 return NULL;
33916 }
33917
33918
33919 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33920 PyObject *resultobj = 0;
33921 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33922 wxBitmap *arg2 = (wxBitmap *) 0 ;
33923 void *argp1 = 0 ;
33924 int res1 = 0 ;
33925 void *argp2 = 0 ;
33926 int res2 = 0 ;
33927 PyObject *swig_obj[2] ;
33928
33929 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33931 if (!SWIG_IsOK(res1)) {
33932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33933 }
33934 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33935 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33936 if (!SWIG_IsOK(res2)) {
33937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33938 }
33939 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33940 if (arg1) (arg1)->m_labelBitmap = *arg2;
33941
33942 resultobj = SWIG_Py_Void();
33943 return resultobj;
33944 fail:
33945 return NULL;
33946 }
33947
33948
33949 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33950 PyObject *resultobj = 0;
33951 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33952 wxBitmap *result = 0 ;
33953 void *argp1 = 0 ;
33954 int res1 = 0 ;
33955 PyObject *swig_obj[1] ;
33956
33957 if (!args) SWIG_fail;
33958 swig_obj[0] = args;
33959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33960 if (!SWIG_IsOK(res1)) {
33961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33962 }
33963 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33964 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33965 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33966 return resultobj;
33967 fail:
33968 return NULL;
33969 }
33970
33971
33972 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33973 PyObject *resultobj = 0;
33974 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33975 int arg2 ;
33976 void *argp1 = 0 ;
33977 int res1 = 0 ;
33978 int val2 ;
33979 int ecode2 = 0 ;
33980 PyObject *swig_obj[2] ;
33981
33982 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33984 if (!SWIG_IsOK(res1)) {
33985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33986 }
33987 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33988 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33989 if (!SWIG_IsOK(ecode2)) {
33990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33991 }
33992 arg2 = static_cast< int >(val2);
33993 if (arg1) (arg1)->m_labelAlignment = arg2;
33994
33995 resultobj = SWIG_Py_Void();
33996 return resultobj;
33997 fail:
33998 return NULL;
33999 }
34000
34001
34002 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34003 PyObject *resultobj = 0;
34004 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34005 int result;
34006 void *argp1 = 0 ;
34007 int res1 = 0 ;
34008 PyObject *swig_obj[1] ;
34009
34010 if (!args) SWIG_fail;
34011 swig_obj[0] = args;
34012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34013 if (!SWIG_IsOK(res1)) {
34014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34015 }
34016 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34017 result = (int) ((arg1)->m_labelAlignment);
34018 resultobj = SWIG_From_int(static_cast< int >(result));
34019 return resultobj;
34020 fail:
34021 return NULL;
34022 }
34023
34024
34025 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34026 PyObject *obj;
34027 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34028 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34029 return SWIG_Py_Void();
34030 }
34031
34032 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34033 return SWIG_Python_InitShadowInstance(args);
34034 }
34035
34036 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34037 PyObject *resultobj = 0;
34038 int arg1 ;
34039 int arg2 ;
34040 wxRendererVersion *result = 0 ;
34041 int val1 ;
34042 int ecode1 = 0 ;
34043 int val2 ;
34044 int ecode2 = 0 ;
34045 PyObject * obj0 = 0 ;
34046 PyObject * obj1 = 0 ;
34047 char * kwnames[] = {
34048 (char *) "version_",(char *) "age_", NULL
34049 };
34050
34051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34052 ecode1 = SWIG_AsVal_int(obj0, &val1);
34053 if (!SWIG_IsOK(ecode1)) {
34054 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34055 }
34056 arg1 = static_cast< int >(val1);
34057 ecode2 = SWIG_AsVal_int(obj1, &val2);
34058 if (!SWIG_IsOK(ecode2)) {
34059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34060 }
34061 arg2 = static_cast< int >(val2);
34062 {
34063 PyThreadState* __tstate = wxPyBeginAllowThreads();
34064 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34065 wxPyEndAllowThreads(__tstate);
34066 if (PyErr_Occurred()) SWIG_fail;
34067 }
34068 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34069 return resultobj;
34070 fail:
34071 return NULL;
34072 }
34073
34074
34075 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34076 PyObject *resultobj = 0;
34077 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34078 void *argp1 = 0 ;
34079 int res1 = 0 ;
34080 PyObject *swig_obj[1] ;
34081
34082 if (!args) SWIG_fail;
34083 swig_obj[0] = args;
34084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34085 if (!SWIG_IsOK(res1)) {
34086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34087 }
34088 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34089 {
34090 PyThreadState* __tstate = wxPyBeginAllowThreads();
34091 delete arg1;
34092
34093 wxPyEndAllowThreads(__tstate);
34094 if (PyErr_Occurred()) SWIG_fail;
34095 }
34096 resultobj = SWIG_Py_Void();
34097 return resultobj;
34098 fail:
34099 return NULL;
34100 }
34101
34102
34103 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34104 PyObject *resultobj = 0;
34105 wxRendererVersion *arg1 = 0 ;
34106 bool result;
34107 void *argp1 = 0 ;
34108 int res1 = 0 ;
34109 PyObject * obj0 = 0 ;
34110 char * kwnames[] = {
34111 (char *) "ver", NULL
34112 };
34113
34114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34115 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34116 if (!SWIG_IsOK(res1)) {
34117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34118 }
34119 if (!argp1) {
34120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34121 }
34122 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34123 {
34124 PyThreadState* __tstate = wxPyBeginAllowThreads();
34125 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34126 wxPyEndAllowThreads(__tstate);
34127 if (PyErr_Occurred()) SWIG_fail;
34128 }
34129 {
34130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34131 }
34132 return resultobj;
34133 fail:
34134 return NULL;
34135 }
34136
34137
34138 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34139 PyObject *resultobj = 0;
34140 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34141 int result;
34142 void *argp1 = 0 ;
34143 int res1 = 0 ;
34144 PyObject *swig_obj[1] ;
34145
34146 if (!args) SWIG_fail;
34147 swig_obj[0] = args;
34148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34149 if (!SWIG_IsOK(res1)) {
34150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34151 }
34152 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34153 result = (int)(int) ((arg1)->version);
34154 resultobj = SWIG_From_int(static_cast< int >(result));
34155 return resultobj;
34156 fail:
34157 return NULL;
34158 }
34159
34160
34161 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34162 PyObject *resultobj = 0;
34163 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34164 int result;
34165 void *argp1 = 0 ;
34166 int res1 = 0 ;
34167 PyObject *swig_obj[1] ;
34168
34169 if (!args) SWIG_fail;
34170 swig_obj[0] = args;
34171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34172 if (!SWIG_IsOK(res1)) {
34173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34174 }
34175 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34176 result = (int)(int) ((arg1)->age);
34177 resultobj = SWIG_From_int(static_cast< int >(result));
34178 return resultobj;
34179 fail:
34180 return NULL;
34181 }
34182
34183
34184 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34185 PyObject *obj;
34186 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34187 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34188 return SWIG_Py_Void();
34189 }
34190
34191 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34192 return SWIG_Python_InitShadowInstance(args);
34193 }
34194
34195 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34196 PyObject *resultobj = 0;
34197 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34198 wxWindow *arg2 = (wxWindow *) 0 ;
34199 wxDC *arg3 = 0 ;
34200 wxRect *arg4 = 0 ;
34201 int arg5 = (int) 0 ;
34202 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34203 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34204 int result;
34205 void *argp1 = 0 ;
34206 int res1 = 0 ;
34207 void *argp2 = 0 ;
34208 int res2 = 0 ;
34209 void *argp3 = 0 ;
34210 int res3 = 0 ;
34211 wxRect temp4 ;
34212 int val5 ;
34213 int ecode5 = 0 ;
34214 int val6 ;
34215 int ecode6 = 0 ;
34216 void *argp7 = 0 ;
34217 int res7 = 0 ;
34218 PyObject * obj0 = 0 ;
34219 PyObject * obj1 = 0 ;
34220 PyObject * obj2 = 0 ;
34221 PyObject * obj3 = 0 ;
34222 PyObject * obj4 = 0 ;
34223 PyObject * obj5 = 0 ;
34224 PyObject * obj6 = 0 ;
34225 char * kwnames[] = {
34226 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34227 };
34228
34229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34231 if (!SWIG_IsOK(res1)) {
34232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34233 }
34234 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34235 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34236 if (!SWIG_IsOK(res2)) {
34237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34238 }
34239 arg2 = reinterpret_cast< wxWindow * >(argp2);
34240 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34241 if (!SWIG_IsOK(res3)) {
34242 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34243 }
34244 if (!argp3) {
34245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34246 }
34247 arg3 = reinterpret_cast< wxDC * >(argp3);
34248 {
34249 arg4 = &temp4;
34250 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34251 }
34252 if (obj4) {
34253 ecode5 = SWIG_AsVal_int(obj4, &val5);
34254 if (!SWIG_IsOK(ecode5)) {
34255 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34256 }
34257 arg5 = static_cast< int >(val5);
34258 }
34259 if (obj5) {
34260 ecode6 = SWIG_AsVal_int(obj5, &val6);
34261 if (!SWIG_IsOK(ecode6)) {
34262 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34263 }
34264 arg6 = static_cast< wxHeaderSortIconType >(val6);
34265 }
34266 if (obj6) {
34267 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34268 if (!SWIG_IsOK(res7)) {
34269 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34270 }
34271 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34272 }
34273 {
34274 PyThreadState* __tstate = wxPyBeginAllowThreads();
34275 result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34276 wxPyEndAllowThreads(__tstate);
34277 if (PyErr_Occurred()) SWIG_fail;
34278 }
34279 resultobj = SWIG_From_int(static_cast< int >(result));
34280 return resultobj;
34281 fail:
34282 return NULL;
34283 }
34284
34285
34286 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34287 PyObject *resultobj = 0;
34288 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34289 wxWindow *arg2 = (wxWindow *) 0 ;
34290 wxDC *arg3 = 0 ;
34291 wxRect *arg4 = 0 ;
34292 int arg5 = (int) 0 ;
34293 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34294 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34295 int result;
34296 void *argp1 = 0 ;
34297 int res1 = 0 ;
34298 void *argp2 = 0 ;
34299 int res2 = 0 ;
34300 void *argp3 = 0 ;
34301 int res3 = 0 ;
34302 wxRect temp4 ;
34303 int val5 ;
34304 int ecode5 = 0 ;
34305 int val6 ;
34306 int ecode6 = 0 ;
34307 void *argp7 = 0 ;
34308 int res7 = 0 ;
34309 PyObject * obj0 = 0 ;
34310 PyObject * obj1 = 0 ;
34311 PyObject * obj2 = 0 ;
34312 PyObject * obj3 = 0 ;
34313 PyObject * obj4 = 0 ;
34314 PyObject * obj5 = 0 ;
34315 PyObject * obj6 = 0 ;
34316 char * kwnames[] = {
34317 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34318 };
34319
34320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34322 if (!SWIG_IsOK(res1)) {
34323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34324 }
34325 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34326 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34327 if (!SWIG_IsOK(res2)) {
34328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34329 }
34330 arg2 = reinterpret_cast< wxWindow * >(argp2);
34331 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34332 if (!SWIG_IsOK(res3)) {
34333 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34334 }
34335 if (!argp3) {
34336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34337 }
34338 arg3 = reinterpret_cast< wxDC * >(argp3);
34339 {
34340 arg4 = &temp4;
34341 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34342 }
34343 if (obj4) {
34344 ecode5 = SWIG_AsVal_int(obj4, &val5);
34345 if (!SWIG_IsOK(ecode5)) {
34346 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34347 }
34348 arg5 = static_cast< int >(val5);
34349 }
34350 if (obj5) {
34351 ecode6 = SWIG_AsVal_int(obj5, &val6);
34352 if (!SWIG_IsOK(ecode6)) {
34353 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34354 }
34355 arg6 = static_cast< wxHeaderSortIconType >(val6);
34356 }
34357 if (obj6) {
34358 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34359 if (!SWIG_IsOK(res7)) {
34360 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34361 }
34362 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34363 }
34364 {
34365 PyThreadState* __tstate = wxPyBeginAllowThreads();
34366 result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34367 wxPyEndAllowThreads(__tstate);
34368 if (PyErr_Occurred()) SWIG_fail;
34369 }
34370 resultobj = SWIG_From_int(static_cast< int >(result));
34371 return resultobj;
34372 fail:
34373 return NULL;
34374 }
34375
34376
34377 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34378 PyObject *resultobj = 0;
34379 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34380 wxWindow *arg2 = (wxWindow *) 0 ;
34381 int result;
34382 void *argp1 = 0 ;
34383 int res1 = 0 ;
34384 void *argp2 = 0 ;
34385 int res2 = 0 ;
34386 PyObject * obj0 = 0 ;
34387 PyObject * obj1 = 0 ;
34388 char * kwnames[] = {
34389 (char *) "self",(char *) "win", NULL
34390 };
34391
34392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34394 if (!SWIG_IsOK(res1)) {
34395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34396 }
34397 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34398 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34399 if (!SWIG_IsOK(res2)) {
34400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34401 }
34402 arg2 = reinterpret_cast< wxWindow * >(argp2);
34403 {
34404 PyThreadState* __tstate = wxPyBeginAllowThreads();
34405 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34406 wxPyEndAllowThreads(__tstate);
34407 if (PyErr_Occurred()) SWIG_fail;
34408 }
34409 resultobj = SWIG_From_int(static_cast< int >(result));
34410 return resultobj;
34411 fail:
34412 return NULL;
34413 }
34414
34415
34416 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34417 PyObject *resultobj = 0;
34418 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34419 wxWindow *arg2 = (wxWindow *) 0 ;
34420 wxDC *arg3 = 0 ;
34421 wxRect *arg4 = 0 ;
34422 int arg5 = (int) 0 ;
34423 void *argp1 = 0 ;
34424 int res1 = 0 ;
34425 void *argp2 = 0 ;
34426 int res2 = 0 ;
34427 void *argp3 = 0 ;
34428 int res3 = 0 ;
34429 wxRect temp4 ;
34430 int val5 ;
34431 int ecode5 = 0 ;
34432 PyObject * obj0 = 0 ;
34433 PyObject * obj1 = 0 ;
34434 PyObject * obj2 = 0 ;
34435 PyObject * obj3 = 0 ;
34436 PyObject * obj4 = 0 ;
34437 char * kwnames[] = {
34438 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34439 };
34440
34441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34443 if (!SWIG_IsOK(res1)) {
34444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34445 }
34446 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34447 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34448 if (!SWIG_IsOK(res2)) {
34449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34450 }
34451 arg2 = reinterpret_cast< wxWindow * >(argp2);
34452 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34453 if (!SWIG_IsOK(res3)) {
34454 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34455 }
34456 if (!argp3) {
34457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34458 }
34459 arg3 = reinterpret_cast< wxDC * >(argp3);
34460 {
34461 arg4 = &temp4;
34462 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34463 }
34464 if (obj4) {
34465 ecode5 = SWIG_AsVal_int(obj4, &val5);
34466 if (!SWIG_IsOK(ecode5)) {
34467 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34468 }
34469 arg5 = static_cast< int >(val5);
34470 }
34471 {
34472 PyThreadState* __tstate = wxPyBeginAllowThreads();
34473 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34474 wxPyEndAllowThreads(__tstate);
34475 if (PyErr_Occurred()) SWIG_fail;
34476 }
34477 resultobj = SWIG_Py_Void();
34478 return resultobj;
34479 fail:
34480 return NULL;
34481 }
34482
34483
34484 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34485 PyObject *resultobj = 0;
34486 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34487 wxWindow *arg2 = (wxWindow *) 0 ;
34488 wxDC *arg3 = 0 ;
34489 wxRect *arg4 = 0 ;
34490 int arg5 = (int) 0 ;
34491 void *argp1 = 0 ;
34492 int res1 = 0 ;
34493 void *argp2 = 0 ;
34494 int res2 = 0 ;
34495 void *argp3 = 0 ;
34496 int res3 = 0 ;
34497 wxRect temp4 ;
34498 int val5 ;
34499 int ecode5 = 0 ;
34500 PyObject * obj0 = 0 ;
34501 PyObject * obj1 = 0 ;
34502 PyObject * obj2 = 0 ;
34503 PyObject * obj3 = 0 ;
34504 PyObject * obj4 = 0 ;
34505 char * kwnames[] = {
34506 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34507 };
34508
34509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34511 if (!SWIG_IsOK(res1)) {
34512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34513 }
34514 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34515 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34516 if (!SWIG_IsOK(res2)) {
34517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34518 }
34519 arg2 = reinterpret_cast< wxWindow * >(argp2);
34520 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34521 if (!SWIG_IsOK(res3)) {
34522 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34523 }
34524 if (!argp3) {
34525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34526 }
34527 arg3 = reinterpret_cast< wxDC * >(argp3);
34528 {
34529 arg4 = &temp4;
34530 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34531 }
34532 if (obj4) {
34533 ecode5 = SWIG_AsVal_int(obj4, &val5);
34534 if (!SWIG_IsOK(ecode5)) {
34535 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34536 }
34537 arg5 = static_cast< int >(val5);
34538 }
34539 {
34540 PyThreadState* __tstate = wxPyBeginAllowThreads();
34541 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34542 wxPyEndAllowThreads(__tstate);
34543 if (PyErr_Occurred()) SWIG_fail;
34544 }
34545 resultobj = SWIG_Py_Void();
34546 return resultobj;
34547 fail:
34548 return NULL;
34549 }
34550
34551
34552 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34553 PyObject *resultobj = 0;
34554 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34555 wxWindow *arg2 = (wxWindow *) 0 ;
34556 wxDC *arg3 = 0 ;
34557 wxSize *arg4 = 0 ;
34558 int arg5 ;
34559 wxOrientation arg6 ;
34560 int arg7 = (int) 0 ;
34561 void *argp1 = 0 ;
34562 int res1 = 0 ;
34563 void *argp2 = 0 ;
34564 int res2 = 0 ;
34565 void *argp3 = 0 ;
34566 int res3 = 0 ;
34567 wxSize temp4 ;
34568 int val5 ;
34569 int ecode5 = 0 ;
34570 int val6 ;
34571 int ecode6 = 0 ;
34572 int val7 ;
34573 int ecode7 = 0 ;
34574 PyObject * obj0 = 0 ;
34575 PyObject * obj1 = 0 ;
34576 PyObject * obj2 = 0 ;
34577 PyObject * obj3 = 0 ;
34578 PyObject * obj4 = 0 ;
34579 PyObject * obj5 = 0 ;
34580 PyObject * obj6 = 0 ;
34581 char * kwnames[] = {
34582 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34583 };
34584
34585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34587 if (!SWIG_IsOK(res1)) {
34588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34589 }
34590 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34591 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34592 if (!SWIG_IsOK(res2)) {
34593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34594 }
34595 arg2 = reinterpret_cast< wxWindow * >(argp2);
34596 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34597 if (!SWIG_IsOK(res3)) {
34598 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34599 }
34600 if (!argp3) {
34601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34602 }
34603 arg3 = reinterpret_cast< wxDC * >(argp3);
34604 {
34605 arg4 = &temp4;
34606 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34607 }
34608 ecode5 = SWIG_AsVal_int(obj4, &val5);
34609 if (!SWIG_IsOK(ecode5)) {
34610 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34611 }
34612 arg5 = static_cast< int >(val5);
34613 ecode6 = SWIG_AsVal_int(obj5, &val6);
34614 if (!SWIG_IsOK(ecode6)) {
34615 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34616 }
34617 arg6 = static_cast< wxOrientation >(val6);
34618 if (obj6) {
34619 ecode7 = SWIG_AsVal_int(obj6, &val7);
34620 if (!SWIG_IsOK(ecode7)) {
34621 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34622 }
34623 arg7 = static_cast< int >(val7);
34624 }
34625 {
34626 PyThreadState* __tstate = wxPyBeginAllowThreads();
34627 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34628 wxPyEndAllowThreads(__tstate);
34629 if (PyErr_Occurred()) SWIG_fail;
34630 }
34631 resultobj = SWIG_Py_Void();
34632 return resultobj;
34633 fail:
34634 return NULL;
34635 }
34636
34637
34638 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34639 PyObject *resultobj = 0;
34640 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34641 wxWindow *arg2 = (wxWindow *) 0 ;
34642 wxDC *arg3 = 0 ;
34643 wxRect *arg4 = 0 ;
34644 int arg5 = (int) 0 ;
34645 void *argp1 = 0 ;
34646 int res1 = 0 ;
34647 void *argp2 = 0 ;
34648 int res2 = 0 ;
34649 void *argp3 = 0 ;
34650 int res3 = 0 ;
34651 wxRect temp4 ;
34652 int val5 ;
34653 int ecode5 = 0 ;
34654 PyObject * obj0 = 0 ;
34655 PyObject * obj1 = 0 ;
34656 PyObject * obj2 = 0 ;
34657 PyObject * obj3 = 0 ;
34658 PyObject * obj4 = 0 ;
34659 char * kwnames[] = {
34660 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34661 };
34662
34663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34665 if (!SWIG_IsOK(res1)) {
34666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34667 }
34668 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34669 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34670 if (!SWIG_IsOK(res2)) {
34671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34672 }
34673 arg2 = reinterpret_cast< wxWindow * >(argp2);
34674 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34675 if (!SWIG_IsOK(res3)) {
34676 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34677 }
34678 if (!argp3) {
34679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34680 }
34681 arg3 = reinterpret_cast< wxDC * >(argp3);
34682 {
34683 arg4 = &temp4;
34684 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34685 }
34686 if (obj4) {
34687 ecode5 = SWIG_AsVal_int(obj4, &val5);
34688 if (!SWIG_IsOK(ecode5)) {
34689 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34690 }
34691 arg5 = static_cast< int >(val5);
34692 }
34693 {
34694 PyThreadState* __tstate = wxPyBeginAllowThreads();
34695 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34696 wxPyEndAllowThreads(__tstate);
34697 if (PyErr_Occurred()) SWIG_fail;
34698 }
34699 resultobj = SWIG_Py_Void();
34700 return resultobj;
34701 fail:
34702 return NULL;
34703 }
34704
34705
34706 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34707 PyObject *resultobj = 0;
34708 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34709 wxWindow *arg2 = (wxWindow *) 0 ;
34710 wxDC *arg3 = 0 ;
34711 wxRect *arg4 = 0 ;
34712 int arg5 = (int) 0 ;
34713 void *argp1 = 0 ;
34714 int res1 = 0 ;
34715 void *argp2 = 0 ;
34716 int res2 = 0 ;
34717 void *argp3 = 0 ;
34718 int res3 = 0 ;
34719 wxRect temp4 ;
34720 int val5 ;
34721 int ecode5 = 0 ;
34722 PyObject * obj0 = 0 ;
34723 PyObject * obj1 = 0 ;
34724 PyObject * obj2 = 0 ;
34725 PyObject * obj3 = 0 ;
34726 PyObject * obj4 = 0 ;
34727 char * kwnames[] = {
34728 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34729 };
34730
34731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34733 if (!SWIG_IsOK(res1)) {
34734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34735 }
34736 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34737 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34738 if (!SWIG_IsOK(res2)) {
34739 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34740 }
34741 arg2 = reinterpret_cast< wxWindow * >(argp2);
34742 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34743 if (!SWIG_IsOK(res3)) {
34744 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34745 }
34746 if (!argp3) {
34747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34748 }
34749 arg3 = reinterpret_cast< wxDC * >(argp3);
34750 {
34751 arg4 = &temp4;
34752 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34753 }
34754 if (obj4) {
34755 ecode5 = SWIG_AsVal_int(obj4, &val5);
34756 if (!SWIG_IsOK(ecode5)) {
34757 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34758 }
34759 arg5 = static_cast< int >(val5);
34760 }
34761 {
34762 PyThreadState* __tstate = wxPyBeginAllowThreads();
34763 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34764 wxPyEndAllowThreads(__tstate);
34765 if (PyErr_Occurred()) SWIG_fail;
34766 }
34767 resultobj = SWIG_Py_Void();
34768 return resultobj;
34769 fail:
34770 return NULL;
34771 }
34772
34773
34774 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34775 PyObject *resultobj = 0;
34776 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34777 wxWindow *arg2 = (wxWindow *) 0 ;
34778 wxDC *arg3 = 0 ;
34779 wxRect *arg4 = 0 ;
34780 int arg5 = (int) 0 ;
34781 void *argp1 = 0 ;
34782 int res1 = 0 ;
34783 void *argp2 = 0 ;
34784 int res2 = 0 ;
34785 void *argp3 = 0 ;
34786 int res3 = 0 ;
34787 wxRect temp4 ;
34788 int val5 ;
34789 int ecode5 = 0 ;
34790 PyObject * obj0 = 0 ;
34791 PyObject * obj1 = 0 ;
34792 PyObject * obj2 = 0 ;
34793 PyObject * obj3 = 0 ;
34794 PyObject * obj4 = 0 ;
34795 char * kwnames[] = {
34796 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34797 };
34798
34799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34801 if (!SWIG_IsOK(res1)) {
34802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34803 }
34804 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34805 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34806 if (!SWIG_IsOK(res2)) {
34807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
34808 }
34809 arg2 = reinterpret_cast< wxWindow * >(argp2);
34810 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34811 if (!SWIG_IsOK(res3)) {
34812 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34813 }
34814 if (!argp3) {
34815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34816 }
34817 arg3 = reinterpret_cast< wxDC * >(argp3);
34818 {
34819 arg4 = &temp4;
34820 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34821 }
34822 if (obj4) {
34823 ecode5 = SWIG_AsVal_int(obj4, &val5);
34824 if (!SWIG_IsOK(ecode5)) {
34825 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
34826 }
34827 arg5 = static_cast< int >(val5);
34828 }
34829 {
34830 PyThreadState* __tstate = wxPyBeginAllowThreads();
34831 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34832 wxPyEndAllowThreads(__tstate);
34833 if (PyErr_Occurred()) SWIG_fail;
34834 }
34835 resultobj = SWIG_Py_Void();
34836 return resultobj;
34837 fail:
34838 return NULL;
34839 }
34840
34841
34842 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34843 PyObject *resultobj = 0;
34844 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34845 wxWindow *arg2 = (wxWindow *) 0 ;
34846 wxDC *arg3 = 0 ;
34847 wxRect *arg4 = 0 ;
34848 int arg5 = (int) 0 ;
34849 void *argp1 = 0 ;
34850 int res1 = 0 ;
34851 void *argp2 = 0 ;
34852 int res2 = 0 ;
34853 void *argp3 = 0 ;
34854 int res3 = 0 ;
34855 wxRect temp4 ;
34856 int val5 ;
34857 int ecode5 = 0 ;
34858 PyObject * obj0 = 0 ;
34859 PyObject * obj1 = 0 ;
34860 PyObject * obj2 = 0 ;
34861 PyObject * obj3 = 0 ;
34862 PyObject * obj4 = 0 ;
34863 char * kwnames[] = {
34864 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34865 };
34866
34867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34869 if (!SWIG_IsOK(res1)) {
34870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34871 }
34872 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34873 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34874 if (!SWIG_IsOK(res2)) {
34875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34876 }
34877 arg2 = reinterpret_cast< wxWindow * >(argp2);
34878 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34879 if (!SWIG_IsOK(res3)) {
34880 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34881 }
34882 if (!argp3) {
34883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34884 }
34885 arg3 = reinterpret_cast< wxDC * >(argp3);
34886 {
34887 arg4 = &temp4;
34888 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34889 }
34890 if (obj4) {
34891 ecode5 = SWIG_AsVal_int(obj4, &val5);
34892 if (!SWIG_IsOK(ecode5)) {
34893 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34894 }
34895 arg5 = static_cast< int >(val5);
34896 }
34897 {
34898 PyThreadState* __tstate = wxPyBeginAllowThreads();
34899 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34900 wxPyEndAllowThreads(__tstate);
34901 if (PyErr_Occurred()) SWIG_fail;
34902 }
34903 resultobj = SWIG_Py_Void();
34904 return resultobj;
34905 fail:
34906 return NULL;
34907 }
34908
34909
34910 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34911 PyObject *resultobj = 0;
34912 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34913 wxWindow *arg2 = (wxWindow *) 0 ;
34914 wxDC *arg3 = 0 ;
34915 wxRect *arg4 = 0 ;
34916 int arg5 = (int) 0 ;
34917 void *argp1 = 0 ;
34918 int res1 = 0 ;
34919 void *argp2 = 0 ;
34920 int res2 = 0 ;
34921 void *argp3 = 0 ;
34922 int res3 = 0 ;
34923 wxRect temp4 ;
34924 int val5 ;
34925 int ecode5 = 0 ;
34926 PyObject * obj0 = 0 ;
34927 PyObject * obj1 = 0 ;
34928 PyObject * obj2 = 0 ;
34929 PyObject * obj3 = 0 ;
34930 PyObject * obj4 = 0 ;
34931 char * kwnames[] = {
34932 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34933 };
34934
34935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34937 if (!SWIG_IsOK(res1)) {
34938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34939 }
34940 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34941 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34942 if (!SWIG_IsOK(res2)) {
34943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
34944 }
34945 arg2 = reinterpret_cast< wxWindow * >(argp2);
34946 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34947 if (!SWIG_IsOK(res3)) {
34948 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34949 }
34950 if (!argp3) {
34951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34952 }
34953 arg3 = reinterpret_cast< wxDC * >(argp3);
34954 {
34955 arg4 = &temp4;
34956 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34957 }
34958 if (obj4) {
34959 ecode5 = SWIG_AsVal_int(obj4, &val5);
34960 if (!SWIG_IsOK(ecode5)) {
34961 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
34962 }
34963 arg5 = static_cast< int >(val5);
34964 }
34965 {
34966 PyThreadState* __tstate = wxPyBeginAllowThreads();
34967 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
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_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34979 PyObject *resultobj = 0;
34980 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34981 wxWindow *arg2 = (wxWindow *) 0 ;
34982 SwigValueWrapper<wxSplitterRenderParams > result;
34983 void *argp1 = 0 ;
34984 int res1 = 0 ;
34985 void *argp2 = 0 ;
34986 int res2 = 0 ;
34987 PyObject * obj0 = 0 ;
34988 PyObject * obj1 = 0 ;
34989 char * kwnames[] = {
34990 (char *) "self",(char *) "win", NULL
34991 };
34992
34993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34995 if (!SWIG_IsOK(res1)) {
34996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34997 }
34998 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34999 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35000 if (!SWIG_IsOK(res2)) {
35001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35002 }
35003 arg2 = reinterpret_cast< wxWindow * >(argp2);
35004 {
35005 PyThreadState* __tstate = wxPyBeginAllowThreads();
35006 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35007 wxPyEndAllowThreads(__tstate);
35008 if (PyErr_Occurred()) SWIG_fail;
35009 }
35010 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35011 return resultobj;
35012 fail:
35013 return NULL;
35014 }
35015
35016
35017 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35018 PyObject *resultobj = 0;
35019 wxRendererNative *result = 0 ;
35020
35021 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35022 {
35023 if (!wxPyCheckForApp()) SWIG_fail;
35024 PyThreadState* __tstate = wxPyBeginAllowThreads();
35025 {
35026 wxRendererNative &_result_ref = wxRendererNative::Get();
35027 result = (wxRendererNative *) &_result_ref;
35028 }
35029 wxPyEndAllowThreads(__tstate);
35030 if (PyErr_Occurred()) SWIG_fail;
35031 }
35032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35033 return resultobj;
35034 fail:
35035 return NULL;
35036 }
35037
35038
35039 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35040 PyObject *resultobj = 0;
35041 wxRendererNative *result = 0 ;
35042
35043 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35044 {
35045 if (!wxPyCheckForApp()) SWIG_fail;
35046 PyThreadState* __tstate = wxPyBeginAllowThreads();
35047 {
35048 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35049 result = (wxRendererNative *) &_result_ref;
35050 }
35051 wxPyEndAllowThreads(__tstate);
35052 if (PyErr_Occurred()) SWIG_fail;
35053 }
35054 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35055 return resultobj;
35056 fail:
35057 return NULL;
35058 }
35059
35060
35061 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35062 PyObject *resultobj = 0;
35063 wxRendererNative *result = 0 ;
35064
35065 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35066 {
35067 if (!wxPyCheckForApp()) SWIG_fail;
35068 PyThreadState* __tstate = wxPyBeginAllowThreads();
35069 {
35070 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35071 result = (wxRendererNative *) &_result_ref;
35072 }
35073 wxPyEndAllowThreads(__tstate);
35074 if (PyErr_Occurred()) SWIG_fail;
35075 }
35076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35077 return resultobj;
35078 fail:
35079 return NULL;
35080 }
35081
35082
35083 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35084 PyObject *resultobj = 0;
35085 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35086 wxRendererNative *result = 0 ;
35087 void *argp1 = 0 ;
35088 int res1 = 0 ;
35089 PyObject * obj0 = 0 ;
35090 char * kwnames[] = {
35091 (char *) "renderer", NULL
35092 };
35093
35094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35096 if (!SWIG_IsOK(res1)) {
35097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35098 }
35099 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35100 {
35101 if (!wxPyCheckForApp()) SWIG_fail;
35102 PyThreadState* __tstate = wxPyBeginAllowThreads();
35103 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35104 wxPyEndAllowThreads(__tstate);
35105 if (PyErr_Occurred()) SWIG_fail;
35106 }
35107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35108 return resultobj;
35109 fail:
35110 return NULL;
35111 }
35112
35113
35114 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35115 PyObject *resultobj = 0;
35116 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35117 SwigValueWrapper<wxRendererVersion > result;
35118 void *argp1 = 0 ;
35119 int res1 = 0 ;
35120 PyObject *swig_obj[1] ;
35121
35122 if (!args) SWIG_fail;
35123 swig_obj[0] = args;
35124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35125 if (!SWIG_IsOK(res1)) {
35126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35127 }
35128 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35129 {
35130 PyThreadState* __tstate = wxPyBeginAllowThreads();
35131 result = ((wxRendererNative const *)arg1)->GetVersion();
35132 wxPyEndAllowThreads(__tstate);
35133 if (PyErr_Occurred()) SWIG_fail;
35134 }
35135 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35136 return resultobj;
35137 fail:
35138 return NULL;
35139 }
35140
35141
35142 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35143 PyObject *obj;
35144 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35145 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35146 return SWIG_Py_Void();
35147 }
35148
35149 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35150 PyObject *resultobj = 0;
35151 wxPseudoDC *result = 0 ;
35152
35153 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35154 {
35155 PyThreadState* __tstate = wxPyBeginAllowThreads();
35156 result = (wxPseudoDC *)new wxPseudoDC();
35157 wxPyEndAllowThreads(__tstate);
35158 if (PyErr_Occurred()) SWIG_fail;
35159 }
35160 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35161 return resultobj;
35162 fail:
35163 return NULL;
35164 }
35165
35166
35167 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35168 PyObject *resultobj = 0;
35169 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35170 void *argp1 = 0 ;
35171 int res1 = 0 ;
35172 PyObject *swig_obj[1] ;
35173
35174 if (!args) SWIG_fail;
35175 swig_obj[0] = args;
35176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35177 if (!SWIG_IsOK(res1)) {
35178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35179 }
35180 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35181 {
35182 PyThreadState* __tstate = wxPyBeginAllowThreads();
35183 (arg1)->BeginDrawing();
35184 wxPyEndAllowThreads(__tstate);
35185 if (PyErr_Occurred()) SWIG_fail;
35186 }
35187 resultobj = SWIG_Py_Void();
35188 return resultobj;
35189 fail:
35190 return NULL;
35191 }
35192
35193
35194 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35195 PyObject *resultobj = 0;
35196 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35197 void *argp1 = 0 ;
35198 int res1 = 0 ;
35199 PyObject *swig_obj[1] ;
35200
35201 if (!args) SWIG_fail;
35202 swig_obj[0] = args;
35203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35204 if (!SWIG_IsOK(res1)) {
35205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35206 }
35207 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35208 {
35209 PyThreadState* __tstate = wxPyBeginAllowThreads();
35210 (arg1)->EndDrawing();
35211 wxPyEndAllowThreads(__tstate);
35212 if (PyErr_Occurred()) SWIG_fail;
35213 }
35214 resultobj = SWIG_Py_Void();
35215 return resultobj;
35216 fail:
35217 return NULL;
35218 }
35219
35220
35221 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35222 PyObject *resultobj = 0;
35223 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35224 void *argp1 = 0 ;
35225 int res1 = 0 ;
35226 PyObject *swig_obj[1] ;
35227
35228 if (!args) SWIG_fail;
35229 swig_obj[0] = args;
35230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35231 if (!SWIG_IsOK(res1)) {
35232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35233 }
35234 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35235 {
35236 PyThreadState* __tstate = wxPyBeginAllowThreads();
35237 delete arg1;
35238
35239 wxPyEndAllowThreads(__tstate);
35240 if (PyErr_Occurred()) SWIG_fail;
35241 }
35242 resultobj = SWIG_Py_Void();
35243 return resultobj;
35244 fail:
35245 return NULL;
35246 }
35247
35248
35249 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35250 PyObject *resultobj = 0;
35251 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35252 void *argp1 = 0 ;
35253 int res1 = 0 ;
35254 PyObject *swig_obj[1] ;
35255
35256 if (!args) SWIG_fail;
35257 swig_obj[0] = args;
35258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35259 if (!SWIG_IsOK(res1)) {
35260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35261 }
35262 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35263 {
35264 PyThreadState* __tstate = wxPyBeginAllowThreads();
35265 (arg1)->RemoveAll();
35266 wxPyEndAllowThreads(__tstate);
35267 if (PyErr_Occurred()) SWIG_fail;
35268 }
35269 resultobj = SWIG_Py_Void();
35270 return resultobj;
35271 fail:
35272 return NULL;
35273 }
35274
35275
35276 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35277 PyObject *resultobj = 0;
35278 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35279 int result;
35280 void *argp1 = 0 ;
35281 int res1 = 0 ;
35282 PyObject *swig_obj[1] ;
35283
35284 if (!args) SWIG_fail;
35285 swig_obj[0] = args;
35286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35287 if (!SWIG_IsOK(res1)) {
35288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35289 }
35290 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35291 {
35292 PyThreadState* __tstate = wxPyBeginAllowThreads();
35293 result = (int)(arg1)->GetLen();
35294 wxPyEndAllowThreads(__tstate);
35295 if (PyErr_Occurred()) SWIG_fail;
35296 }
35297 resultobj = SWIG_From_int(static_cast< int >(result));
35298 return resultobj;
35299 fail:
35300 return NULL;
35301 }
35302
35303
35304 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35305 PyObject *resultobj = 0;
35306 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35307 int arg2 ;
35308 void *argp1 = 0 ;
35309 int res1 = 0 ;
35310 int val2 ;
35311 int ecode2 = 0 ;
35312 PyObject * obj0 = 0 ;
35313 PyObject * obj1 = 0 ;
35314 char * kwnames[] = {
35315 (char *) "self",(char *) "id", NULL
35316 };
35317
35318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35320 if (!SWIG_IsOK(res1)) {
35321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35322 }
35323 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35324 ecode2 = SWIG_AsVal_int(obj1, &val2);
35325 if (!SWIG_IsOK(ecode2)) {
35326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35327 }
35328 arg2 = static_cast< int >(val2);
35329 {
35330 PyThreadState* __tstate = wxPyBeginAllowThreads();
35331 (arg1)->SetId(arg2);
35332 wxPyEndAllowThreads(__tstate);
35333 if (PyErr_Occurred()) SWIG_fail;
35334 }
35335 resultobj = SWIG_Py_Void();
35336 return resultobj;
35337 fail:
35338 return NULL;
35339 }
35340
35341
35342 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35343 PyObject *resultobj = 0;
35344 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35345 int arg2 ;
35346 void *argp1 = 0 ;
35347 int res1 = 0 ;
35348 int val2 ;
35349 int ecode2 = 0 ;
35350 PyObject * obj0 = 0 ;
35351 PyObject * obj1 = 0 ;
35352 char * kwnames[] = {
35353 (char *) "self",(char *) "id", NULL
35354 };
35355
35356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35358 if (!SWIG_IsOK(res1)) {
35359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35360 }
35361 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35362 ecode2 = SWIG_AsVal_int(obj1, &val2);
35363 if (!SWIG_IsOK(ecode2)) {
35364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35365 }
35366 arg2 = static_cast< int >(val2);
35367 {
35368 PyThreadState* __tstate = wxPyBeginAllowThreads();
35369 (arg1)->ClearId(arg2);
35370 wxPyEndAllowThreads(__tstate);
35371 if (PyErr_Occurred()) SWIG_fail;
35372 }
35373 resultobj = SWIG_Py_Void();
35374 return resultobj;
35375 fail:
35376 return NULL;
35377 }
35378
35379
35380 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35381 PyObject *resultobj = 0;
35382 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35383 int arg2 ;
35384 void *argp1 = 0 ;
35385 int res1 = 0 ;
35386 int val2 ;
35387 int ecode2 = 0 ;
35388 PyObject * obj0 = 0 ;
35389 PyObject * obj1 = 0 ;
35390 char * kwnames[] = {
35391 (char *) "self",(char *) "id", NULL
35392 };
35393
35394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35396 if (!SWIG_IsOK(res1)) {
35397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35398 }
35399 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35400 ecode2 = SWIG_AsVal_int(obj1, &val2);
35401 if (!SWIG_IsOK(ecode2)) {
35402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35403 }
35404 arg2 = static_cast< int >(val2);
35405 {
35406 PyThreadState* __tstate = wxPyBeginAllowThreads();
35407 (arg1)->RemoveId(arg2);
35408 wxPyEndAllowThreads(__tstate);
35409 if (PyErr_Occurred()) SWIG_fail;
35410 }
35411 resultobj = SWIG_Py_Void();
35412 return resultobj;
35413 fail:
35414 return NULL;
35415 }
35416
35417
35418 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35419 PyObject *resultobj = 0;
35420 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35421 int arg2 ;
35422 int arg3 ;
35423 int arg4 ;
35424 void *argp1 = 0 ;
35425 int res1 = 0 ;
35426 int val2 ;
35427 int ecode2 = 0 ;
35428 int val3 ;
35429 int ecode3 = 0 ;
35430 int val4 ;
35431 int ecode4 = 0 ;
35432 PyObject * obj0 = 0 ;
35433 PyObject * obj1 = 0 ;
35434 PyObject * obj2 = 0 ;
35435 PyObject * obj3 = 0 ;
35436 char * kwnames[] = {
35437 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35438 };
35439
35440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35442 if (!SWIG_IsOK(res1)) {
35443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35444 }
35445 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35446 ecode2 = SWIG_AsVal_int(obj1, &val2);
35447 if (!SWIG_IsOK(ecode2)) {
35448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35449 }
35450 arg2 = static_cast< int >(val2);
35451 ecode3 = SWIG_AsVal_int(obj2, &val3);
35452 if (!SWIG_IsOK(ecode3)) {
35453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35454 }
35455 arg3 = static_cast< int >(val3);
35456 ecode4 = SWIG_AsVal_int(obj3, &val4);
35457 if (!SWIG_IsOK(ecode4)) {
35458 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35459 }
35460 arg4 = static_cast< int >(val4);
35461 {
35462 PyThreadState* __tstate = wxPyBeginAllowThreads();
35463 (arg1)->TranslateId(arg2,arg3,arg4);
35464 wxPyEndAllowThreads(__tstate);
35465 if (PyErr_Occurred()) SWIG_fail;
35466 }
35467 resultobj = SWIG_Py_Void();
35468 return resultobj;
35469 fail:
35470 return NULL;
35471 }
35472
35473
35474 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35475 PyObject *resultobj = 0;
35476 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35477 int arg2 ;
35478 bool arg3 = (bool) true ;
35479 void *argp1 = 0 ;
35480 int res1 = 0 ;
35481 int val2 ;
35482 int ecode2 = 0 ;
35483 bool val3 ;
35484 int ecode3 = 0 ;
35485 PyObject * obj0 = 0 ;
35486 PyObject * obj1 = 0 ;
35487 PyObject * obj2 = 0 ;
35488 char * kwnames[] = {
35489 (char *) "self",(char *) "id",(char *) "greyout", NULL
35490 };
35491
35492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35494 if (!SWIG_IsOK(res1)) {
35495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35496 }
35497 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35498 ecode2 = SWIG_AsVal_int(obj1, &val2);
35499 if (!SWIG_IsOK(ecode2)) {
35500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35501 }
35502 arg2 = static_cast< int >(val2);
35503 if (obj2) {
35504 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35505 if (!SWIG_IsOK(ecode3)) {
35506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35507 }
35508 arg3 = static_cast< bool >(val3);
35509 }
35510 {
35511 PyThreadState* __tstate = wxPyBeginAllowThreads();
35512 (arg1)->SetIdGreyedOut(arg2,arg3);
35513 wxPyEndAllowThreads(__tstate);
35514 if (PyErr_Occurred()) SWIG_fail;
35515 }
35516 resultobj = SWIG_Py_Void();
35517 return resultobj;
35518 fail:
35519 return NULL;
35520 }
35521
35522
35523 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35524 PyObject *resultobj = 0;
35525 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35526 int arg2 ;
35527 bool result;
35528 void *argp1 = 0 ;
35529 int res1 = 0 ;
35530 int val2 ;
35531 int ecode2 = 0 ;
35532 PyObject * obj0 = 0 ;
35533 PyObject * obj1 = 0 ;
35534 char * kwnames[] = {
35535 (char *) "self",(char *) "id", NULL
35536 };
35537
35538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35540 if (!SWIG_IsOK(res1)) {
35541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35542 }
35543 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35544 ecode2 = SWIG_AsVal_int(obj1, &val2);
35545 if (!SWIG_IsOK(ecode2)) {
35546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35547 }
35548 arg2 = static_cast< int >(val2);
35549 {
35550 PyThreadState* __tstate = wxPyBeginAllowThreads();
35551 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35552 wxPyEndAllowThreads(__tstate);
35553 if (PyErr_Occurred()) SWIG_fail;
35554 }
35555 {
35556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35557 }
35558 return resultobj;
35559 fail:
35560 return NULL;
35561 }
35562
35563
35564 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35565 PyObject *resultobj = 0;
35566 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35567 int arg2 ;
35568 int arg3 ;
35569 int arg4 = (int) 1 ;
35570 wxColour const &arg5_defvalue = *wxWHITE ;
35571 wxColour *arg5 = (wxColour *) &arg5_defvalue ;
35572 PyObject *result = 0 ;
35573 void *argp1 = 0 ;
35574 int res1 = 0 ;
35575 int val2 ;
35576 int ecode2 = 0 ;
35577 int val3 ;
35578 int ecode3 = 0 ;
35579 int val4 ;
35580 int ecode4 = 0 ;
35581 wxColour temp5 ;
35582 PyObject * obj0 = 0 ;
35583 PyObject * obj1 = 0 ;
35584 PyObject * obj2 = 0 ;
35585 PyObject * obj3 = 0 ;
35586 PyObject * obj4 = 0 ;
35587 char * kwnames[] = {
35588 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35589 };
35590
35591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35593 if (!SWIG_IsOK(res1)) {
35594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35595 }
35596 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35597 ecode2 = SWIG_AsVal_int(obj1, &val2);
35598 if (!SWIG_IsOK(ecode2)) {
35599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35600 }
35601 arg2 = static_cast< int >(val2);
35602 ecode3 = SWIG_AsVal_int(obj2, &val3);
35603 if (!SWIG_IsOK(ecode3)) {
35604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35605 }
35606 arg3 = static_cast< int >(val3);
35607 if (obj3) {
35608 ecode4 = SWIG_AsVal_int(obj3, &val4);
35609 if (!SWIG_IsOK(ecode4)) {
35610 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35611 }
35612 arg4 = static_cast< int >(val4);
35613 }
35614 if (obj4) {
35615 {
35616 arg5 = &temp5;
35617 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
35618 }
35619 }
35620 {
35621 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColour const &)*arg5);
35622 if (PyErr_Occurred()) SWIG_fail;
35623 }
35624 resultobj = result;
35625 return resultobj;
35626 fail:
35627 return NULL;
35628 }
35629
35630
35631 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35632 PyObject *resultobj = 0;
35633 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35634 int arg2 ;
35635 int arg3 ;
35636 PyObject *result = 0 ;
35637 void *argp1 = 0 ;
35638 int res1 = 0 ;
35639 int val2 ;
35640 int ecode2 = 0 ;
35641 int val3 ;
35642 int ecode3 = 0 ;
35643 PyObject * obj0 = 0 ;
35644 PyObject * obj1 = 0 ;
35645 PyObject * obj2 = 0 ;
35646 char * kwnames[] = {
35647 (char *) "self",(char *) "x",(char *) "y", NULL
35648 };
35649
35650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35652 if (!SWIG_IsOK(res1)) {
35653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35654 }
35655 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35656 ecode2 = SWIG_AsVal_int(obj1, &val2);
35657 if (!SWIG_IsOK(ecode2)) {
35658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35659 }
35660 arg2 = static_cast< int >(val2);
35661 ecode3 = SWIG_AsVal_int(obj2, &val3);
35662 if (!SWIG_IsOK(ecode3)) {
35663 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35664 }
35665 arg3 = static_cast< int >(val3);
35666 {
35667 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35668 if (PyErr_Occurred()) SWIG_fail;
35669 }
35670 resultobj = result;
35671 return resultobj;
35672 fail:
35673 return NULL;
35674 }
35675
35676
35677 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35678 PyObject *resultobj = 0;
35679 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35680 int arg2 ;
35681 wxDC *arg3 = (wxDC *) 0 ;
35682 void *argp1 = 0 ;
35683 int res1 = 0 ;
35684 int val2 ;
35685 int ecode2 = 0 ;
35686 void *argp3 = 0 ;
35687 int res3 = 0 ;
35688 PyObject * obj0 = 0 ;
35689 PyObject * obj1 = 0 ;
35690 PyObject * obj2 = 0 ;
35691 char * kwnames[] = {
35692 (char *) "self",(char *) "id",(char *) "dc", NULL
35693 };
35694
35695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35697 if (!SWIG_IsOK(res1)) {
35698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35699 }
35700 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35701 ecode2 = SWIG_AsVal_int(obj1, &val2);
35702 if (!SWIG_IsOK(ecode2)) {
35703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35704 }
35705 arg2 = static_cast< int >(val2);
35706 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35707 if (!SWIG_IsOK(res3)) {
35708 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35709 }
35710 arg3 = reinterpret_cast< wxDC * >(argp3);
35711 {
35712 PyThreadState* __tstate = wxPyBeginAllowThreads();
35713 (arg1)->DrawIdToDC(arg2,arg3);
35714 wxPyEndAllowThreads(__tstate);
35715 if (PyErr_Occurred()) SWIG_fail;
35716 }
35717 resultobj = SWIG_Py_Void();
35718 return resultobj;
35719 fail:
35720 return NULL;
35721 }
35722
35723
35724 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35725 PyObject *resultobj = 0;
35726 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35727 int arg2 ;
35728 wxRect *arg3 = 0 ;
35729 void *argp1 = 0 ;
35730 int res1 = 0 ;
35731 int val2 ;
35732 int ecode2 = 0 ;
35733 wxRect temp3 ;
35734 PyObject * obj0 = 0 ;
35735 PyObject * obj1 = 0 ;
35736 PyObject * obj2 = 0 ;
35737 char * kwnames[] = {
35738 (char *) "self",(char *) "id",(char *) "rect", NULL
35739 };
35740
35741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35743 if (!SWIG_IsOK(res1)) {
35744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35745 }
35746 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35747 ecode2 = SWIG_AsVal_int(obj1, &val2);
35748 if (!SWIG_IsOK(ecode2)) {
35749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35750 }
35751 arg2 = static_cast< int >(val2);
35752 {
35753 arg3 = &temp3;
35754 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35755 }
35756 {
35757 PyThreadState* __tstate = wxPyBeginAllowThreads();
35758 (arg1)->SetIdBounds(arg2,*arg3);
35759 wxPyEndAllowThreads(__tstate);
35760 if (PyErr_Occurred()) SWIG_fail;
35761 }
35762 resultobj = SWIG_Py_Void();
35763 return resultobj;
35764 fail:
35765 return NULL;
35766 }
35767
35768
35769 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35770 PyObject *resultobj = 0;
35771 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35772 int arg2 ;
35773 wxRect result;
35774 void *argp1 = 0 ;
35775 int res1 = 0 ;
35776 int val2 ;
35777 int ecode2 = 0 ;
35778 PyObject * obj0 = 0 ;
35779 PyObject * obj1 = 0 ;
35780 char * kwnames[] = {
35781 (char *) "self",(char *) "id", NULL
35782 };
35783
35784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35786 if (!SWIG_IsOK(res1)) {
35787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35788 }
35789 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35790 ecode2 = SWIG_AsVal_int(obj1, &val2);
35791 if (!SWIG_IsOK(ecode2)) {
35792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35793 }
35794 arg2 = static_cast< int >(val2);
35795 {
35796 PyThreadState* __tstate = wxPyBeginAllowThreads();
35797 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35798 wxPyEndAllowThreads(__tstate);
35799 if (PyErr_Occurred()) SWIG_fail;
35800 }
35801 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35802 return resultobj;
35803 fail:
35804 return NULL;
35805 }
35806
35807
35808 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35809 PyObject *resultobj = 0;
35810 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35811 wxDC *arg2 = (wxDC *) 0 ;
35812 wxRect *arg3 = 0 ;
35813 void *argp1 = 0 ;
35814 int res1 = 0 ;
35815 void *argp2 = 0 ;
35816 int res2 = 0 ;
35817 wxRect temp3 ;
35818 PyObject * obj0 = 0 ;
35819 PyObject * obj1 = 0 ;
35820 PyObject * obj2 = 0 ;
35821 char * kwnames[] = {
35822 (char *) "self",(char *) "dc",(char *) "rect", NULL
35823 };
35824
35825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35827 if (!SWIG_IsOK(res1)) {
35828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35829 }
35830 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35831 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35832 if (!SWIG_IsOK(res2)) {
35833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35834 }
35835 arg2 = reinterpret_cast< wxDC * >(argp2);
35836 {
35837 arg3 = &temp3;
35838 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35839 }
35840 {
35841 PyThreadState* __tstate = wxPyBeginAllowThreads();
35842 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35843 wxPyEndAllowThreads(__tstate);
35844 if (PyErr_Occurred()) SWIG_fail;
35845 }
35846 resultobj = SWIG_Py_Void();
35847 return resultobj;
35848 fail:
35849 return NULL;
35850 }
35851
35852
35853 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35854 PyObject *resultobj = 0;
35855 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35856 wxDC *arg2 = (wxDC *) 0 ;
35857 wxRegion *arg3 = 0 ;
35858 void *argp1 = 0 ;
35859 int res1 = 0 ;
35860 void *argp2 = 0 ;
35861 int res2 = 0 ;
35862 void *argp3 = 0 ;
35863 int res3 = 0 ;
35864 PyObject * obj0 = 0 ;
35865 PyObject * obj1 = 0 ;
35866 PyObject * obj2 = 0 ;
35867 char * kwnames[] = {
35868 (char *) "self",(char *) "dc",(char *) "region", NULL
35869 };
35870
35871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35873 if (!SWIG_IsOK(res1)) {
35874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35875 }
35876 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35877 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35878 if (!SWIG_IsOK(res2)) {
35879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35880 }
35881 arg2 = reinterpret_cast< wxDC * >(argp2);
35882 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35883 if (!SWIG_IsOK(res3)) {
35884 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35885 }
35886 if (!argp3) {
35887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35888 }
35889 arg3 = reinterpret_cast< wxRegion * >(argp3);
35890 {
35891 PyThreadState* __tstate = wxPyBeginAllowThreads();
35892 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35893 wxPyEndAllowThreads(__tstate);
35894 if (PyErr_Occurred()) SWIG_fail;
35895 }
35896 resultobj = SWIG_Py_Void();
35897 return resultobj;
35898 fail:
35899 return NULL;
35900 }
35901
35902
35903 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35904 PyObject *resultobj = 0;
35905 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35906 wxDC *arg2 = (wxDC *) 0 ;
35907 void *argp1 = 0 ;
35908 int res1 = 0 ;
35909 void *argp2 = 0 ;
35910 int res2 = 0 ;
35911 PyObject * obj0 = 0 ;
35912 PyObject * obj1 = 0 ;
35913 char * kwnames[] = {
35914 (char *) "self",(char *) "dc", NULL
35915 };
35916
35917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35919 if (!SWIG_IsOK(res1)) {
35920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35921 }
35922 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35923 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35924 if (!SWIG_IsOK(res2)) {
35925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35926 }
35927 arg2 = reinterpret_cast< wxDC * >(argp2);
35928 {
35929 PyThreadState* __tstate = wxPyBeginAllowThreads();
35930 (arg1)->DrawToDC(arg2);
35931 wxPyEndAllowThreads(__tstate);
35932 if (PyErr_Occurred()) SWIG_fail;
35933 }
35934 resultobj = SWIG_Py_Void();
35935 return resultobj;
35936 fail:
35937 return NULL;
35938 }
35939
35940
35941 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35942 PyObject *resultobj = 0;
35943 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35944 int arg2 ;
35945 int arg3 ;
35946 wxColour *arg4 = 0 ;
35947 int arg5 = (int) wxFLOOD_SURFACE ;
35948 void *argp1 = 0 ;
35949 int res1 = 0 ;
35950 int val2 ;
35951 int ecode2 = 0 ;
35952 int val3 ;
35953 int ecode3 = 0 ;
35954 wxColour temp4 ;
35955 int val5 ;
35956 int ecode5 = 0 ;
35957 PyObject * obj0 = 0 ;
35958 PyObject * obj1 = 0 ;
35959 PyObject * obj2 = 0 ;
35960 PyObject * obj3 = 0 ;
35961 PyObject * obj4 = 0 ;
35962 char * kwnames[] = {
35963 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35964 };
35965
35966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35968 if (!SWIG_IsOK(res1)) {
35969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35970 }
35971 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35972 ecode2 = SWIG_AsVal_int(obj1, &val2);
35973 if (!SWIG_IsOK(ecode2)) {
35974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35975 }
35976 arg2 = static_cast< int >(val2);
35977 ecode3 = SWIG_AsVal_int(obj2, &val3);
35978 if (!SWIG_IsOK(ecode3)) {
35979 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35980 }
35981 arg3 = static_cast< int >(val3);
35982 {
35983 arg4 = &temp4;
35984 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35985 }
35986 if (obj4) {
35987 ecode5 = SWIG_AsVal_int(obj4, &val5);
35988 if (!SWIG_IsOK(ecode5)) {
35989 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35990 }
35991 arg5 = static_cast< int >(val5);
35992 }
35993 {
35994 PyThreadState* __tstate = wxPyBeginAllowThreads();
35995 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35996 wxPyEndAllowThreads(__tstate);
35997 if (PyErr_Occurred()) SWIG_fail;
35998 }
35999 resultobj = SWIG_Py_Void();
36000 return resultobj;
36001 fail:
36002 return NULL;
36003 }
36004
36005
36006 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36007 PyObject *resultobj = 0;
36008 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36009 wxPoint *arg2 = 0 ;
36010 wxColour *arg3 = 0 ;
36011 int arg4 = (int) wxFLOOD_SURFACE ;
36012 void *argp1 = 0 ;
36013 int res1 = 0 ;
36014 wxPoint temp2 ;
36015 wxColour temp3 ;
36016 int val4 ;
36017 int ecode4 = 0 ;
36018 PyObject * obj0 = 0 ;
36019 PyObject * obj1 = 0 ;
36020 PyObject * obj2 = 0 ;
36021 PyObject * obj3 = 0 ;
36022 char * kwnames[] = {
36023 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36024 };
36025
36026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36028 if (!SWIG_IsOK(res1)) {
36029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36030 }
36031 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36032 {
36033 arg2 = &temp2;
36034 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36035 }
36036 {
36037 arg3 = &temp3;
36038 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36039 }
36040 if (obj3) {
36041 ecode4 = SWIG_AsVal_int(obj3, &val4);
36042 if (!SWIG_IsOK(ecode4)) {
36043 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36044 }
36045 arg4 = static_cast< int >(val4);
36046 }
36047 {
36048 PyThreadState* __tstate = wxPyBeginAllowThreads();
36049 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36050 wxPyEndAllowThreads(__tstate);
36051 if (PyErr_Occurred()) SWIG_fail;
36052 }
36053 resultobj = SWIG_Py_Void();
36054 return resultobj;
36055 fail:
36056 return NULL;
36057 }
36058
36059
36060 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36061 PyObject *resultobj = 0;
36062 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36063 int arg2 ;
36064 int arg3 ;
36065 int arg4 ;
36066 int arg5 ;
36067 void *argp1 = 0 ;
36068 int res1 = 0 ;
36069 int val2 ;
36070 int ecode2 = 0 ;
36071 int val3 ;
36072 int ecode3 = 0 ;
36073 int val4 ;
36074 int ecode4 = 0 ;
36075 int val5 ;
36076 int ecode5 = 0 ;
36077 PyObject * obj0 = 0 ;
36078 PyObject * obj1 = 0 ;
36079 PyObject * obj2 = 0 ;
36080 PyObject * obj3 = 0 ;
36081 PyObject * obj4 = 0 ;
36082 char * kwnames[] = {
36083 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36084 };
36085
36086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36088 if (!SWIG_IsOK(res1)) {
36089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36090 }
36091 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36092 ecode2 = SWIG_AsVal_int(obj1, &val2);
36093 if (!SWIG_IsOK(ecode2)) {
36094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36095 }
36096 arg2 = static_cast< int >(val2);
36097 ecode3 = SWIG_AsVal_int(obj2, &val3);
36098 if (!SWIG_IsOK(ecode3)) {
36099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36100 }
36101 arg3 = static_cast< int >(val3);
36102 ecode4 = SWIG_AsVal_int(obj3, &val4);
36103 if (!SWIG_IsOK(ecode4)) {
36104 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36105 }
36106 arg4 = static_cast< int >(val4);
36107 ecode5 = SWIG_AsVal_int(obj4, &val5);
36108 if (!SWIG_IsOK(ecode5)) {
36109 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36110 }
36111 arg5 = static_cast< int >(val5);
36112 {
36113 PyThreadState* __tstate = wxPyBeginAllowThreads();
36114 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36115 wxPyEndAllowThreads(__tstate);
36116 if (PyErr_Occurred()) SWIG_fail;
36117 }
36118 resultobj = SWIG_Py_Void();
36119 return resultobj;
36120 fail:
36121 return NULL;
36122 }
36123
36124
36125 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36126 PyObject *resultobj = 0;
36127 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36128 wxPoint *arg2 = 0 ;
36129 wxPoint *arg3 = 0 ;
36130 void *argp1 = 0 ;
36131 int res1 = 0 ;
36132 wxPoint temp2 ;
36133 wxPoint temp3 ;
36134 PyObject * obj0 = 0 ;
36135 PyObject * obj1 = 0 ;
36136 PyObject * obj2 = 0 ;
36137 char * kwnames[] = {
36138 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36139 };
36140
36141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36143 if (!SWIG_IsOK(res1)) {
36144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36145 }
36146 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36147 {
36148 arg2 = &temp2;
36149 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36150 }
36151 {
36152 arg3 = &temp3;
36153 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36154 }
36155 {
36156 PyThreadState* __tstate = wxPyBeginAllowThreads();
36157 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36158 wxPyEndAllowThreads(__tstate);
36159 if (PyErr_Occurred()) SWIG_fail;
36160 }
36161 resultobj = SWIG_Py_Void();
36162 return resultobj;
36163 fail:
36164 return NULL;
36165 }
36166
36167
36168 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36169 PyObject *resultobj = 0;
36170 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36171 int arg2 ;
36172 int arg3 ;
36173 void *argp1 = 0 ;
36174 int res1 = 0 ;
36175 int val2 ;
36176 int ecode2 = 0 ;
36177 int val3 ;
36178 int ecode3 = 0 ;
36179 PyObject * obj0 = 0 ;
36180 PyObject * obj1 = 0 ;
36181 PyObject * obj2 = 0 ;
36182 char * kwnames[] = {
36183 (char *) "self",(char *) "x",(char *) "y", NULL
36184 };
36185
36186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36188 if (!SWIG_IsOK(res1)) {
36189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36190 }
36191 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36192 ecode2 = SWIG_AsVal_int(obj1, &val2);
36193 if (!SWIG_IsOK(ecode2)) {
36194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36195 }
36196 arg2 = static_cast< int >(val2);
36197 ecode3 = SWIG_AsVal_int(obj2, &val3);
36198 if (!SWIG_IsOK(ecode3)) {
36199 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36200 }
36201 arg3 = static_cast< int >(val3);
36202 {
36203 PyThreadState* __tstate = wxPyBeginAllowThreads();
36204 (arg1)->CrossHair(arg2,arg3);
36205 wxPyEndAllowThreads(__tstate);
36206 if (PyErr_Occurred()) SWIG_fail;
36207 }
36208 resultobj = SWIG_Py_Void();
36209 return resultobj;
36210 fail:
36211 return NULL;
36212 }
36213
36214
36215 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36216 PyObject *resultobj = 0;
36217 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36218 wxPoint *arg2 = 0 ;
36219 void *argp1 = 0 ;
36220 int res1 = 0 ;
36221 wxPoint temp2 ;
36222 PyObject * obj0 = 0 ;
36223 PyObject * obj1 = 0 ;
36224 char * kwnames[] = {
36225 (char *) "self",(char *) "pt", NULL
36226 };
36227
36228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36230 if (!SWIG_IsOK(res1)) {
36231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36232 }
36233 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36234 {
36235 arg2 = &temp2;
36236 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36237 }
36238 {
36239 PyThreadState* __tstate = wxPyBeginAllowThreads();
36240 (arg1)->CrossHair((wxPoint const &)*arg2);
36241 wxPyEndAllowThreads(__tstate);
36242 if (PyErr_Occurred()) SWIG_fail;
36243 }
36244 resultobj = SWIG_Py_Void();
36245 return resultobj;
36246 fail:
36247 return NULL;
36248 }
36249
36250
36251 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36252 PyObject *resultobj = 0;
36253 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36254 int arg2 ;
36255 int arg3 ;
36256 int arg4 ;
36257 int arg5 ;
36258 int arg6 ;
36259 int arg7 ;
36260 void *argp1 = 0 ;
36261 int res1 = 0 ;
36262 int val2 ;
36263 int ecode2 = 0 ;
36264 int val3 ;
36265 int ecode3 = 0 ;
36266 int val4 ;
36267 int ecode4 = 0 ;
36268 int val5 ;
36269 int ecode5 = 0 ;
36270 int val6 ;
36271 int ecode6 = 0 ;
36272 int val7 ;
36273 int ecode7 = 0 ;
36274 PyObject * obj0 = 0 ;
36275 PyObject * obj1 = 0 ;
36276 PyObject * obj2 = 0 ;
36277 PyObject * obj3 = 0 ;
36278 PyObject * obj4 = 0 ;
36279 PyObject * obj5 = 0 ;
36280 PyObject * obj6 = 0 ;
36281 char * kwnames[] = {
36282 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36283 };
36284
36285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36287 if (!SWIG_IsOK(res1)) {
36288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36289 }
36290 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36291 ecode2 = SWIG_AsVal_int(obj1, &val2);
36292 if (!SWIG_IsOK(ecode2)) {
36293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36294 }
36295 arg2 = static_cast< int >(val2);
36296 ecode3 = SWIG_AsVal_int(obj2, &val3);
36297 if (!SWIG_IsOK(ecode3)) {
36298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36299 }
36300 arg3 = static_cast< int >(val3);
36301 ecode4 = SWIG_AsVal_int(obj3, &val4);
36302 if (!SWIG_IsOK(ecode4)) {
36303 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36304 }
36305 arg4 = static_cast< int >(val4);
36306 ecode5 = SWIG_AsVal_int(obj4, &val5);
36307 if (!SWIG_IsOK(ecode5)) {
36308 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36309 }
36310 arg5 = static_cast< int >(val5);
36311 ecode6 = SWIG_AsVal_int(obj5, &val6);
36312 if (!SWIG_IsOK(ecode6)) {
36313 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36314 }
36315 arg6 = static_cast< int >(val6);
36316 ecode7 = SWIG_AsVal_int(obj6, &val7);
36317 if (!SWIG_IsOK(ecode7)) {
36318 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36319 }
36320 arg7 = static_cast< int >(val7);
36321 {
36322 PyThreadState* __tstate = wxPyBeginAllowThreads();
36323 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36324 wxPyEndAllowThreads(__tstate);
36325 if (PyErr_Occurred()) SWIG_fail;
36326 }
36327 resultobj = SWIG_Py_Void();
36328 return resultobj;
36329 fail:
36330 return NULL;
36331 }
36332
36333
36334 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36335 PyObject *resultobj = 0;
36336 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36337 wxPoint *arg2 = 0 ;
36338 wxPoint *arg3 = 0 ;
36339 wxPoint *arg4 = 0 ;
36340 void *argp1 = 0 ;
36341 int res1 = 0 ;
36342 wxPoint temp2 ;
36343 wxPoint temp3 ;
36344 wxPoint temp4 ;
36345 PyObject * obj0 = 0 ;
36346 PyObject * obj1 = 0 ;
36347 PyObject * obj2 = 0 ;
36348 PyObject * obj3 = 0 ;
36349 char * kwnames[] = {
36350 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36351 };
36352
36353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36355 if (!SWIG_IsOK(res1)) {
36356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36357 }
36358 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36359 {
36360 arg2 = &temp2;
36361 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36362 }
36363 {
36364 arg3 = &temp3;
36365 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36366 }
36367 {
36368 arg4 = &temp4;
36369 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36370 }
36371 {
36372 PyThreadState* __tstate = wxPyBeginAllowThreads();
36373 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36374 wxPyEndAllowThreads(__tstate);
36375 if (PyErr_Occurred()) SWIG_fail;
36376 }
36377 resultobj = SWIG_Py_Void();
36378 return resultobj;
36379 fail:
36380 return NULL;
36381 }
36382
36383
36384 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36385 PyObject *resultobj = 0;
36386 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36387 int arg2 ;
36388 int arg3 ;
36389 int arg4 ;
36390 int arg5 ;
36391 void *argp1 = 0 ;
36392 int res1 = 0 ;
36393 int val2 ;
36394 int ecode2 = 0 ;
36395 int val3 ;
36396 int ecode3 = 0 ;
36397 int val4 ;
36398 int ecode4 = 0 ;
36399 int val5 ;
36400 int ecode5 = 0 ;
36401 PyObject * obj0 = 0 ;
36402 PyObject * obj1 = 0 ;
36403 PyObject * obj2 = 0 ;
36404 PyObject * obj3 = 0 ;
36405 PyObject * obj4 = 0 ;
36406 char * kwnames[] = {
36407 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36408 };
36409
36410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36412 if (!SWIG_IsOK(res1)) {
36413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36414 }
36415 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36416 ecode2 = SWIG_AsVal_int(obj1, &val2);
36417 if (!SWIG_IsOK(ecode2)) {
36418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36419 }
36420 arg2 = static_cast< int >(val2);
36421 ecode3 = SWIG_AsVal_int(obj2, &val3);
36422 if (!SWIG_IsOK(ecode3)) {
36423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36424 }
36425 arg3 = static_cast< int >(val3);
36426 ecode4 = SWIG_AsVal_int(obj3, &val4);
36427 if (!SWIG_IsOK(ecode4)) {
36428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36429 }
36430 arg4 = static_cast< int >(val4);
36431 ecode5 = SWIG_AsVal_int(obj4, &val5);
36432 if (!SWIG_IsOK(ecode5)) {
36433 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36434 }
36435 arg5 = static_cast< int >(val5);
36436 {
36437 PyThreadState* __tstate = wxPyBeginAllowThreads();
36438 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36439 wxPyEndAllowThreads(__tstate);
36440 if (PyErr_Occurred()) SWIG_fail;
36441 }
36442 resultobj = SWIG_Py_Void();
36443 return resultobj;
36444 fail:
36445 return NULL;
36446 }
36447
36448
36449 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36450 PyObject *resultobj = 0;
36451 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36452 wxRect *arg2 = 0 ;
36453 void *argp1 = 0 ;
36454 int res1 = 0 ;
36455 wxRect temp2 ;
36456 PyObject * obj0 = 0 ;
36457 PyObject * obj1 = 0 ;
36458 char * kwnames[] = {
36459 (char *) "self",(char *) "rect", NULL
36460 };
36461
36462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36464 if (!SWIG_IsOK(res1)) {
36465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36466 }
36467 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36468 {
36469 arg2 = &temp2;
36470 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36471 }
36472 {
36473 PyThreadState* __tstate = wxPyBeginAllowThreads();
36474 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36475 wxPyEndAllowThreads(__tstate);
36476 if (PyErr_Occurred()) SWIG_fail;
36477 }
36478 resultobj = SWIG_Py_Void();
36479 return resultobj;
36480 fail:
36481 return NULL;
36482 }
36483
36484
36485 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36486 PyObject *resultobj = 0;
36487 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36488 int arg2 ;
36489 int arg3 ;
36490 int arg4 ;
36491 int arg5 ;
36492 double arg6 ;
36493 double arg7 ;
36494 void *argp1 = 0 ;
36495 int res1 = 0 ;
36496 int val2 ;
36497 int ecode2 = 0 ;
36498 int val3 ;
36499 int ecode3 = 0 ;
36500 int val4 ;
36501 int ecode4 = 0 ;
36502 int val5 ;
36503 int ecode5 = 0 ;
36504 double val6 ;
36505 int ecode6 = 0 ;
36506 double val7 ;
36507 int ecode7 = 0 ;
36508 PyObject * obj0 = 0 ;
36509 PyObject * obj1 = 0 ;
36510 PyObject * obj2 = 0 ;
36511 PyObject * obj3 = 0 ;
36512 PyObject * obj4 = 0 ;
36513 PyObject * obj5 = 0 ;
36514 PyObject * obj6 = 0 ;
36515 char * kwnames[] = {
36516 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36517 };
36518
36519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36521 if (!SWIG_IsOK(res1)) {
36522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36523 }
36524 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36525 ecode2 = SWIG_AsVal_int(obj1, &val2);
36526 if (!SWIG_IsOK(ecode2)) {
36527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36528 }
36529 arg2 = static_cast< int >(val2);
36530 ecode3 = SWIG_AsVal_int(obj2, &val3);
36531 if (!SWIG_IsOK(ecode3)) {
36532 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36533 }
36534 arg3 = static_cast< int >(val3);
36535 ecode4 = SWIG_AsVal_int(obj3, &val4);
36536 if (!SWIG_IsOK(ecode4)) {
36537 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36538 }
36539 arg4 = static_cast< int >(val4);
36540 ecode5 = SWIG_AsVal_int(obj4, &val5);
36541 if (!SWIG_IsOK(ecode5)) {
36542 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36543 }
36544 arg5 = static_cast< int >(val5);
36545 ecode6 = SWIG_AsVal_double(obj5, &val6);
36546 if (!SWIG_IsOK(ecode6)) {
36547 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36548 }
36549 arg6 = static_cast< double >(val6);
36550 ecode7 = SWIG_AsVal_double(obj6, &val7);
36551 if (!SWIG_IsOK(ecode7)) {
36552 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36553 }
36554 arg7 = static_cast< double >(val7);
36555 {
36556 PyThreadState* __tstate = wxPyBeginAllowThreads();
36557 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36558 wxPyEndAllowThreads(__tstate);
36559 if (PyErr_Occurred()) SWIG_fail;
36560 }
36561 resultobj = SWIG_Py_Void();
36562 return resultobj;
36563 fail:
36564 return NULL;
36565 }
36566
36567
36568 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36569 PyObject *resultobj = 0;
36570 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36571 wxPoint *arg2 = 0 ;
36572 wxSize *arg3 = 0 ;
36573 double arg4 ;
36574 double arg5 ;
36575 void *argp1 = 0 ;
36576 int res1 = 0 ;
36577 wxPoint temp2 ;
36578 wxSize temp3 ;
36579 double val4 ;
36580 int ecode4 = 0 ;
36581 double val5 ;
36582 int ecode5 = 0 ;
36583 PyObject * obj0 = 0 ;
36584 PyObject * obj1 = 0 ;
36585 PyObject * obj2 = 0 ;
36586 PyObject * obj3 = 0 ;
36587 PyObject * obj4 = 0 ;
36588 char * kwnames[] = {
36589 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36590 };
36591
36592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36594 if (!SWIG_IsOK(res1)) {
36595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36596 }
36597 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36598 {
36599 arg2 = &temp2;
36600 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36601 }
36602 {
36603 arg3 = &temp3;
36604 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36605 }
36606 ecode4 = SWIG_AsVal_double(obj3, &val4);
36607 if (!SWIG_IsOK(ecode4)) {
36608 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36609 }
36610 arg4 = static_cast< double >(val4);
36611 ecode5 = SWIG_AsVal_double(obj4, &val5);
36612 if (!SWIG_IsOK(ecode5)) {
36613 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36614 }
36615 arg5 = static_cast< double >(val5);
36616 {
36617 PyThreadState* __tstate = wxPyBeginAllowThreads();
36618 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36619 wxPyEndAllowThreads(__tstate);
36620 if (PyErr_Occurred()) SWIG_fail;
36621 }
36622 resultobj = SWIG_Py_Void();
36623 return resultobj;
36624 fail:
36625 return NULL;
36626 }
36627
36628
36629 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36630 PyObject *resultobj = 0;
36631 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36632 int arg2 ;
36633 int arg3 ;
36634 void *argp1 = 0 ;
36635 int res1 = 0 ;
36636 int val2 ;
36637 int ecode2 = 0 ;
36638 int val3 ;
36639 int ecode3 = 0 ;
36640 PyObject * obj0 = 0 ;
36641 PyObject * obj1 = 0 ;
36642 PyObject * obj2 = 0 ;
36643 char * kwnames[] = {
36644 (char *) "self",(char *) "x",(char *) "y", NULL
36645 };
36646
36647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36649 if (!SWIG_IsOK(res1)) {
36650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36651 }
36652 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36653 ecode2 = SWIG_AsVal_int(obj1, &val2);
36654 if (!SWIG_IsOK(ecode2)) {
36655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36656 }
36657 arg2 = static_cast< int >(val2);
36658 ecode3 = SWIG_AsVal_int(obj2, &val3);
36659 if (!SWIG_IsOK(ecode3)) {
36660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36661 }
36662 arg3 = static_cast< int >(val3);
36663 {
36664 PyThreadState* __tstate = wxPyBeginAllowThreads();
36665 (arg1)->DrawPoint(arg2,arg3);
36666 wxPyEndAllowThreads(__tstate);
36667 if (PyErr_Occurred()) SWIG_fail;
36668 }
36669 resultobj = SWIG_Py_Void();
36670 return resultobj;
36671 fail:
36672 return NULL;
36673 }
36674
36675
36676 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36677 PyObject *resultobj = 0;
36678 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36679 wxPoint *arg2 = 0 ;
36680 void *argp1 = 0 ;
36681 int res1 = 0 ;
36682 wxPoint temp2 ;
36683 PyObject * obj0 = 0 ;
36684 PyObject * obj1 = 0 ;
36685 char * kwnames[] = {
36686 (char *) "self",(char *) "pt", NULL
36687 };
36688
36689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36691 if (!SWIG_IsOK(res1)) {
36692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36693 }
36694 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36695 {
36696 arg2 = &temp2;
36697 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36698 }
36699 {
36700 PyThreadState* __tstate = wxPyBeginAllowThreads();
36701 (arg1)->DrawPoint((wxPoint const &)*arg2);
36702 wxPyEndAllowThreads(__tstate);
36703 if (PyErr_Occurred()) SWIG_fail;
36704 }
36705 resultobj = SWIG_Py_Void();
36706 return resultobj;
36707 fail:
36708 return NULL;
36709 }
36710
36711
36712 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36713 PyObject *resultobj = 0;
36714 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36715 int arg2 ;
36716 int arg3 ;
36717 int arg4 ;
36718 int arg5 ;
36719 void *argp1 = 0 ;
36720 int res1 = 0 ;
36721 int val2 ;
36722 int ecode2 = 0 ;
36723 int val3 ;
36724 int ecode3 = 0 ;
36725 int val4 ;
36726 int ecode4 = 0 ;
36727 int val5 ;
36728 int ecode5 = 0 ;
36729 PyObject * obj0 = 0 ;
36730 PyObject * obj1 = 0 ;
36731 PyObject * obj2 = 0 ;
36732 PyObject * obj3 = 0 ;
36733 PyObject * obj4 = 0 ;
36734 char * kwnames[] = {
36735 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36736 };
36737
36738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36740 if (!SWIG_IsOK(res1)) {
36741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36742 }
36743 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36744 ecode2 = SWIG_AsVal_int(obj1, &val2);
36745 if (!SWIG_IsOK(ecode2)) {
36746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36747 }
36748 arg2 = static_cast< int >(val2);
36749 ecode3 = SWIG_AsVal_int(obj2, &val3);
36750 if (!SWIG_IsOK(ecode3)) {
36751 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36752 }
36753 arg3 = static_cast< int >(val3);
36754 ecode4 = SWIG_AsVal_int(obj3, &val4);
36755 if (!SWIG_IsOK(ecode4)) {
36756 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36757 }
36758 arg4 = static_cast< int >(val4);
36759 ecode5 = SWIG_AsVal_int(obj4, &val5);
36760 if (!SWIG_IsOK(ecode5)) {
36761 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36762 }
36763 arg5 = static_cast< int >(val5);
36764 {
36765 PyThreadState* __tstate = wxPyBeginAllowThreads();
36766 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36767 wxPyEndAllowThreads(__tstate);
36768 if (PyErr_Occurred()) SWIG_fail;
36769 }
36770 resultobj = SWIG_Py_Void();
36771 return resultobj;
36772 fail:
36773 return NULL;
36774 }
36775
36776
36777 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36778 PyObject *resultobj = 0;
36779 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36780 wxRect *arg2 = 0 ;
36781 void *argp1 = 0 ;
36782 int res1 = 0 ;
36783 wxRect temp2 ;
36784 PyObject * obj0 = 0 ;
36785 PyObject * obj1 = 0 ;
36786 char * kwnames[] = {
36787 (char *) "self",(char *) "rect", NULL
36788 };
36789
36790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36792 if (!SWIG_IsOK(res1)) {
36793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36794 }
36795 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36796 {
36797 arg2 = &temp2;
36798 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36799 }
36800 {
36801 PyThreadState* __tstate = wxPyBeginAllowThreads();
36802 (arg1)->DrawRectangle((wxRect const &)*arg2);
36803 wxPyEndAllowThreads(__tstate);
36804 if (PyErr_Occurred()) SWIG_fail;
36805 }
36806 resultobj = SWIG_Py_Void();
36807 return resultobj;
36808 fail:
36809 return NULL;
36810 }
36811
36812
36813 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36814 PyObject *resultobj = 0;
36815 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36816 wxPoint *arg2 = 0 ;
36817 wxSize *arg3 = 0 ;
36818 void *argp1 = 0 ;
36819 int res1 = 0 ;
36820 wxPoint temp2 ;
36821 wxSize temp3 ;
36822 PyObject * obj0 = 0 ;
36823 PyObject * obj1 = 0 ;
36824 PyObject * obj2 = 0 ;
36825 char * kwnames[] = {
36826 (char *) "self",(char *) "pt",(char *) "sz", NULL
36827 };
36828
36829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36831 if (!SWIG_IsOK(res1)) {
36832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36833 }
36834 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36835 {
36836 arg2 = &temp2;
36837 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36838 }
36839 {
36840 arg3 = &temp3;
36841 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36842 }
36843 {
36844 PyThreadState* __tstate = wxPyBeginAllowThreads();
36845 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36846 wxPyEndAllowThreads(__tstate);
36847 if (PyErr_Occurred()) SWIG_fail;
36848 }
36849 resultobj = SWIG_Py_Void();
36850 return resultobj;
36851 fail:
36852 return NULL;
36853 }
36854
36855
36856 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36857 PyObject *resultobj = 0;
36858 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36859 int arg2 ;
36860 int arg3 ;
36861 int arg4 ;
36862 int arg5 ;
36863 double arg6 ;
36864 void *argp1 = 0 ;
36865 int res1 = 0 ;
36866 int val2 ;
36867 int ecode2 = 0 ;
36868 int val3 ;
36869 int ecode3 = 0 ;
36870 int val4 ;
36871 int ecode4 = 0 ;
36872 int val5 ;
36873 int ecode5 = 0 ;
36874 double val6 ;
36875 int ecode6 = 0 ;
36876 PyObject * obj0 = 0 ;
36877 PyObject * obj1 = 0 ;
36878 PyObject * obj2 = 0 ;
36879 PyObject * obj3 = 0 ;
36880 PyObject * obj4 = 0 ;
36881 PyObject * obj5 = 0 ;
36882 char * kwnames[] = {
36883 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36884 };
36885
36886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36888 if (!SWIG_IsOK(res1)) {
36889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36890 }
36891 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36892 ecode2 = SWIG_AsVal_int(obj1, &val2);
36893 if (!SWIG_IsOK(ecode2)) {
36894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36895 }
36896 arg2 = static_cast< int >(val2);
36897 ecode3 = SWIG_AsVal_int(obj2, &val3);
36898 if (!SWIG_IsOK(ecode3)) {
36899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36900 }
36901 arg3 = static_cast< int >(val3);
36902 ecode4 = SWIG_AsVal_int(obj3, &val4);
36903 if (!SWIG_IsOK(ecode4)) {
36904 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36905 }
36906 arg4 = static_cast< int >(val4);
36907 ecode5 = SWIG_AsVal_int(obj4, &val5);
36908 if (!SWIG_IsOK(ecode5)) {
36909 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36910 }
36911 arg5 = static_cast< int >(val5);
36912 ecode6 = SWIG_AsVal_double(obj5, &val6);
36913 if (!SWIG_IsOK(ecode6)) {
36914 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36915 }
36916 arg6 = static_cast< double >(val6);
36917 {
36918 PyThreadState* __tstate = wxPyBeginAllowThreads();
36919 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36920 wxPyEndAllowThreads(__tstate);
36921 if (PyErr_Occurred()) SWIG_fail;
36922 }
36923 resultobj = SWIG_Py_Void();
36924 return resultobj;
36925 fail:
36926 return NULL;
36927 }
36928
36929
36930 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36931 PyObject *resultobj = 0;
36932 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36933 wxRect *arg2 = 0 ;
36934 double arg3 ;
36935 void *argp1 = 0 ;
36936 int res1 = 0 ;
36937 wxRect temp2 ;
36938 double val3 ;
36939 int ecode3 = 0 ;
36940 PyObject * obj0 = 0 ;
36941 PyObject * obj1 = 0 ;
36942 PyObject * obj2 = 0 ;
36943 char * kwnames[] = {
36944 (char *) "self",(char *) "r",(char *) "radius", NULL
36945 };
36946
36947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36949 if (!SWIG_IsOK(res1)) {
36950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36951 }
36952 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36953 {
36954 arg2 = &temp2;
36955 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36956 }
36957 ecode3 = SWIG_AsVal_double(obj2, &val3);
36958 if (!SWIG_IsOK(ecode3)) {
36959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36960 }
36961 arg3 = static_cast< double >(val3);
36962 {
36963 PyThreadState* __tstate = wxPyBeginAllowThreads();
36964 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36965 wxPyEndAllowThreads(__tstate);
36966 if (PyErr_Occurred()) SWIG_fail;
36967 }
36968 resultobj = SWIG_Py_Void();
36969 return resultobj;
36970 fail:
36971 return NULL;
36972 }
36973
36974
36975 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36976 PyObject *resultobj = 0;
36977 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36978 wxPoint *arg2 = 0 ;
36979 wxSize *arg3 = 0 ;
36980 double arg4 ;
36981 void *argp1 = 0 ;
36982 int res1 = 0 ;
36983 wxPoint temp2 ;
36984 wxSize temp3 ;
36985 double val4 ;
36986 int ecode4 = 0 ;
36987 PyObject * obj0 = 0 ;
36988 PyObject * obj1 = 0 ;
36989 PyObject * obj2 = 0 ;
36990 PyObject * obj3 = 0 ;
36991 char * kwnames[] = {
36992 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36993 };
36994
36995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36999 }
37000 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37001 {
37002 arg2 = &temp2;
37003 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37004 }
37005 {
37006 arg3 = &temp3;
37007 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37008 }
37009 ecode4 = SWIG_AsVal_double(obj3, &val4);
37010 if (!SWIG_IsOK(ecode4)) {
37011 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37012 }
37013 arg4 = static_cast< double >(val4);
37014 {
37015 PyThreadState* __tstate = wxPyBeginAllowThreads();
37016 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37017 wxPyEndAllowThreads(__tstate);
37018 if (PyErr_Occurred()) SWIG_fail;
37019 }
37020 resultobj = SWIG_Py_Void();
37021 return resultobj;
37022 fail:
37023 return NULL;
37024 }
37025
37026
37027 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37028 PyObject *resultobj = 0;
37029 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37030 int arg2 ;
37031 int arg3 ;
37032 int arg4 ;
37033 void *argp1 = 0 ;
37034 int res1 = 0 ;
37035 int val2 ;
37036 int ecode2 = 0 ;
37037 int val3 ;
37038 int ecode3 = 0 ;
37039 int val4 ;
37040 int ecode4 = 0 ;
37041 PyObject * obj0 = 0 ;
37042 PyObject * obj1 = 0 ;
37043 PyObject * obj2 = 0 ;
37044 PyObject * obj3 = 0 ;
37045 char * kwnames[] = {
37046 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37047 };
37048
37049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37051 if (!SWIG_IsOK(res1)) {
37052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37053 }
37054 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37055 ecode2 = SWIG_AsVal_int(obj1, &val2);
37056 if (!SWIG_IsOK(ecode2)) {
37057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37058 }
37059 arg2 = static_cast< int >(val2);
37060 ecode3 = SWIG_AsVal_int(obj2, &val3);
37061 if (!SWIG_IsOK(ecode3)) {
37062 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37063 }
37064 arg3 = static_cast< int >(val3);
37065 ecode4 = SWIG_AsVal_int(obj3, &val4);
37066 if (!SWIG_IsOK(ecode4)) {
37067 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37068 }
37069 arg4 = static_cast< int >(val4);
37070 {
37071 PyThreadState* __tstate = wxPyBeginAllowThreads();
37072 (arg1)->DrawCircle(arg2,arg3,arg4);
37073 wxPyEndAllowThreads(__tstate);
37074 if (PyErr_Occurred()) SWIG_fail;
37075 }
37076 resultobj = SWIG_Py_Void();
37077 return resultobj;
37078 fail:
37079 return NULL;
37080 }
37081
37082
37083 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37084 PyObject *resultobj = 0;
37085 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37086 wxPoint *arg2 = 0 ;
37087 int arg3 ;
37088 void *argp1 = 0 ;
37089 int res1 = 0 ;
37090 wxPoint temp2 ;
37091 int val3 ;
37092 int ecode3 = 0 ;
37093 PyObject * obj0 = 0 ;
37094 PyObject * obj1 = 0 ;
37095 PyObject * obj2 = 0 ;
37096 char * kwnames[] = {
37097 (char *) "self",(char *) "pt",(char *) "radius", NULL
37098 };
37099
37100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37102 if (!SWIG_IsOK(res1)) {
37103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37104 }
37105 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37106 {
37107 arg2 = &temp2;
37108 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37109 }
37110 ecode3 = SWIG_AsVal_int(obj2, &val3);
37111 if (!SWIG_IsOK(ecode3)) {
37112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37113 }
37114 arg3 = static_cast< int >(val3);
37115 {
37116 PyThreadState* __tstate = wxPyBeginAllowThreads();
37117 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37118 wxPyEndAllowThreads(__tstate);
37119 if (PyErr_Occurred()) SWIG_fail;
37120 }
37121 resultobj = SWIG_Py_Void();
37122 return resultobj;
37123 fail:
37124 return NULL;
37125 }
37126
37127
37128 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37129 PyObject *resultobj = 0;
37130 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37131 int arg2 ;
37132 int arg3 ;
37133 int arg4 ;
37134 int arg5 ;
37135 void *argp1 = 0 ;
37136 int res1 = 0 ;
37137 int val2 ;
37138 int ecode2 = 0 ;
37139 int val3 ;
37140 int ecode3 = 0 ;
37141 int val4 ;
37142 int ecode4 = 0 ;
37143 int val5 ;
37144 int ecode5 = 0 ;
37145 PyObject * obj0 = 0 ;
37146 PyObject * obj1 = 0 ;
37147 PyObject * obj2 = 0 ;
37148 PyObject * obj3 = 0 ;
37149 PyObject * obj4 = 0 ;
37150 char * kwnames[] = {
37151 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37152 };
37153
37154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37156 if (!SWIG_IsOK(res1)) {
37157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37158 }
37159 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37160 ecode2 = SWIG_AsVal_int(obj1, &val2);
37161 if (!SWIG_IsOK(ecode2)) {
37162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37163 }
37164 arg2 = static_cast< int >(val2);
37165 ecode3 = SWIG_AsVal_int(obj2, &val3);
37166 if (!SWIG_IsOK(ecode3)) {
37167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37168 }
37169 arg3 = static_cast< int >(val3);
37170 ecode4 = SWIG_AsVal_int(obj3, &val4);
37171 if (!SWIG_IsOK(ecode4)) {
37172 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37173 }
37174 arg4 = static_cast< int >(val4);
37175 ecode5 = SWIG_AsVal_int(obj4, &val5);
37176 if (!SWIG_IsOK(ecode5)) {
37177 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37178 }
37179 arg5 = static_cast< int >(val5);
37180 {
37181 PyThreadState* __tstate = wxPyBeginAllowThreads();
37182 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37183 wxPyEndAllowThreads(__tstate);
37184 if (PyErr_Occurred()) SWIG_fail;
37185 }
37186 resultobj = SWIG_Py_Void();
37187 return resultobj;
37188 fail:
37189 return NULL;
37190 }
37191
37192
37193 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37194 PyObject *resultobj = 0;
37195 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37196 wxRect *arg2 = 0 ;
37197 void *argp1 = 0 ;
37198 int res1 = 0 ;
37199 wxRect temp2 ;
37200 PyObject * obj0 = 0 ;
37201 PyObject * obj1 = 0 ;
37202 char * kwnames[] = {
37203 (char *) "self",(char *) "rect", NULL
37204 };
37205
37206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37208 if (!SWIG_IsOK(res1)) {
37209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37210 }
37211 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37212 {
37213 arg2 = &temp2;
37214 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37215 }
37216 {
37217 PyThreadState* __tstate = wxPyBeginAllowThreads();
37218 (arg1)->DrawEllipse((wxRect const &)*arg2);
37219 wxPyEndAllowThreads(__tstate);
37220 if (PyErr_Occurred()) SWIG_fail;
37221 }
37222 resultobj = SWIG_Py_Void();
37223 return resultobj;
37224 fail:
37225 return NULL;
37226 }
37227
37228
37229 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37230 PyObject *resultobj = 0;
37231 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37232 wxPoint *arg2 = 0 ;
37233 wxSize *arg3 = 0 ;
37234 void *argp1 = 0 ;
37235 int res1 = 0 ;
37236 wxPoint temp2 ;
37237 wxSize temp3 ;
37238 PyObject * obj0 = 0 ;
37239 PyObject * obj1 = 0 ;
37240 PyObject * obj2 = 0 ;
37241 char * kwnames[] = {
37242 (char *) "self",(char *) "pt",(char *) "sz", NULL
37243 };
37244
37245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37247 if (!SWIG_IsOK(res1)) {
37248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37249 }
37250 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37251 {
37252 arg2 = &temp2;
37253 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37254 }
37255 {
37256 arg3 = &temp3;
37257 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37258 }
37259 {
37260 PyThreadState* __tstate = wxPyBeginAllowThreads();
37261 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37262 wxPyEndAllowThreads(__tstate);
37263 if (PyErr_Occurred()) SWIG_fail;
37264 }
37265 resultobj = SWIG_Py_Void();
37266 return resultobj;
37267 fail:
37268 return NULL;
37269 }
37270
37271
37272 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37273 PyObject *resultobj = 0;
37274 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37275 wxIcon *arg2 = 0 ;
37276 int arg3 ;
37277 int arg4 ;
37278 void *argp1 = 0 ;
37279 int res1 = 0 ;
37280 void *argp2 = 0 ;
37281 int res2 = 0 ;
37282 int val3 ;
37283 int ecode3 = 0 ;
37284 int val4 ;
37285 int ecode4 = 0 ;
37286 PyObject * obj0 = 0 ;
37287 PyObject * obj1 = 0 ;
37288 PyObject * obj2 = 0 ;
37289 PyObject * obj3 = 0 ;
37290 char * kwnames[] = {
37291 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37292 };
37293
37294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37296 if (!SWIG_IsOK(res1)) {
37297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37298 }
37299 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37300 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37301 if (!SWIG_IsOK(res2)) {
37302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37303 }
37304 if (!argp2) {
37305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37306 }
37307 arg2 = reinterpret_cast< wxIcon * >(argp2);
37308 ecode3 = SWIG_AsVal_int(obj2, &val3);
37309 if (!SWIG_IsOK(ecode3)) {
37310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37311 }
37312 arg3 = static_cast< int >(val3);
37313 ecode4 = SWIG_AsVal_int(obj3, &val4);
37314 if (!SWIG_IsOK(ecode4)) {
37315 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37316 }
37317 arg4 = static_cast< int >(val4);
37318 {
37319 PyThreadState* __tstate = wxPyBeginAllowThreads();
37320 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37321 wxPyEndAllowThreads(__tstate);
37322 if (PyErr_Occurred()) SWIG_fail;
37323 }
37324 resultobj = SWIG_Py_Void();
37325 return resultobj;
37326 fail:
37327 return NULL;
37328 }
37329
37330
37331 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37332 PyObject *resultobj = 0;
37333 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37334 wxIcon *arg2 = 0 ;
37335 wxPoint *arg3 = 0 ;
37336 void *argp1 = 0 ;
37337 int res1 = 0 ;
37338 void *argp2 = 0 ;
37339 int res2 = 0 ;
37340 wxPoint temp3 ;
37341 PyObject * obj0 = 0 ;
37342 PyObject * obj1 = 0 ;
37343 PyObject * obj2 = 0 ;
37344 char * kwnames[] = {
37345 (char *) "self",(char *) "icon",(char *) "pt", NULL
37346 };
37347
37348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37350 if (!SWIG_IsOK(res1)) {
37351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37352 }
37353 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37354 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37355 if (!SWIG_IsOK(res2)) {
37356 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37357 }
37358 if (!argp2) {
37359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37360 }
37361 arg2 = reinterpret_cast< wxIcon * >(argp2);
37362 {
37363 arg3 = &temp3;
37364 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37365 }
37366 {
37367 PyThreadState* __tstate = wxPyBeginAllowThreads();
37368 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37369 wxPyEndAllowThreads(__tstate);
37370 if (PyErr_Occurred()) SWIG_fail;
37371 }
37372 resultobj = SWIG_Py_Void();
37373 return resultobj;
37374 fail:
37375 return NULL;
37376 }
37377
37378
37379 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37380 PyObject *resultobj = 0;
37381 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37382 wxBitmap *arg2 = 0 ;
37383 int arg3 ;
37384 int arg4 ;
37385 bool arg5 = (bool) false ;
37386 void *argp1 = 0 ;
37387 int res1 = 0 ;
37388 void *argp2 = 0 ;
37389 int res2 = 0 ;
37390 int val3 ;
37391 int ecode3 = 0 ;
37392 int val4 ;
37393 int ecode4 = 0 ;
37394 bool val5 ;
37395 int ecode5 = 0 ;
37396 PyObject * obj0 = 0 ;
37397 PyObject * obj1 = 0 ;
37398 PyObject * obj2 = 0 ;
37399 PyObject * obj3 = 0 ;
37400 PyObject * obj4 = 0 ;
37401 char * kwnames[] = {
37402 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37403 };
37404
37405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37407 if (!SWIG_IsOK(res1)) {
37408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37409 }
37410 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37411 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37412 if (!SWIG_IsOK(res2)) {
37413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37414 }
37415 if (!argp2) {
37416 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37417 }
37418 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37419 ecode3 = SWIG_AsVal_int(obj2, &val3);
37420 if (!SWIG_IsOK(ecode3)) {
37421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37422 }
37423 arg3 = static_cast< int >(val3);
37424 ecode4 = SWIG_AsVal_int(obj3, &val4);
37425 if (!SWIG_IsOK(ecode4)) {
37426 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37427 }
37428 arg4 = static_cast< int >(val4);
37429 if (obj4) {
37430 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37431 if (!SWIG_IsOK(ecode5)) {
37432 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37433 }
37434 arg5 = static_cast< bool >(val5);
37435 }
37436 {
37437 PyThreadState* __tstate = wxPyBeginAllowThreads();
37438 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37439 wxPyEndAllowThreads(__tstate);
37440 if (PyErr_Occurred()) SWIG_fail;
37441 }
37442 resultobj = SWIG_Py_Void();
37443 return resultobj;
37444 fail:
37445 return NULL;
37446 }
37447
37448
37449 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37450 PyObject *resultobj = 0;
37451 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37452 wxBitmap *arg2 = 0 ;
37453 wxPoint *arg3 = 0 ;
37454 bool arg4 = (bool) false ;
37455 void *argp1 = 0 ;
37456 int res1 = 0 ;
37457 void *argp2 = 0 ;
37458 int res2 = 0 ;
37459 wxPoint temp3 ;
37460 bool val4 ;
37461 int ecode4 = 0 ;
37462 PyObject * obj0 = 0 ;
37463 PyObject * obj1 = 0 ;
37464 PyObject * obj2 = 0 ;
37465 PyObject * obj3 = 0 ;
37466 char * kwnames[] = {
37467 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37468 };
37469
37470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37472 if (!SWIG_IsOK(res1)) {
37473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37474 }
37475 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37476 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37477 if (!SWIG_IsOK(res2)) {
37478 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37479 }
37480 if (!argp2) {
37481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37482 }
37483 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37484 {
37485 arg3 = &temp3;
37486 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37487 }
37488 if (obj3) {
37489 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37490 if (!SWIG_IsOK(ecode4)) {
37491 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37492 }
37493 arg4 = static_cast< bool >(val4);
37494 }
37495 {
37496 PyThreadState* __tstate = wxPyBeginAllowThreads();
37497 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37498 wxPyEndAllowThreads(__tstate);
37499 if (PyErr_Occurred()) SWIG_fail;
37500 }
37501 resultobj = SWIG_Py_Void();
37502 return resultobj;
37503 fail:
37504 return NULL;
37505 }
37506
37507
37508 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37509 PyObject *resultobj = 0;
37510 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37511 wxString *arg2 = 0 ;
37512 int arg3 ;
37513 int arg4 ;
37514 void *argp1 = 0 ;
37515 int res1 = 0 ;
37516 bool temp2 = false ;
37517 int val3 ;
37518 int ecode3 = 0 ;
37519 int val4 ;
37520 int ecode4 = 0 ;
37521 PyObject * obj0 = 0 ;
37522 PyObject * obj1 = 0 ;
37523 PyObject * obj2 = 0 ;
37524 PyObject * obj3 = 0 ;
37525 char * kwnames[] = {
37526 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37527 };
37528
37529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37531 if (!SWIG_IsOK(res1)) {
37532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37533 }
37534 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37535 {
37536 arg2 = wxString_in_helper(obj1);
37537 if (arg2 == NULL) SWIG_fail;
37538 temp2 = true;
37539 }
37540 ecode3 = SWIG_AsVal_int(obj2, &val3);
37541 if (!SWIG_IsOK(ecode3)) {
37542 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37543 }
37544 arg3 = static_cast< int >(val3);
37545 ecode4 = SWIG_AsVal_int(obj3, &val4);
37546 if (!SWIG_IsOK(ecode4)) {
37547 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37548 }
37549 arg4 = static_cast< int >(val4);
37550 {
37551 PyThreadState* __tstate = wxPyBeginAllowThreads();
37552 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37553 wxPyEndAllowThreads(__tstate);
37554 if (PyErr_Occurred()) SWIG_fail;
37555 }
37556 resultobj = SWIG_Py_Void();
37557 {
37558 if (temp2)
37559 delete arg2;
37560 }
37561 return resultobj;
37562 fail:
37563 {
37564 if (temp2)
37565 delete arg2;
37566 }
37567 return NULL;
37568 }
37569
37570
37571 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37572 PyObject *resultobj = 0;
37573 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37574 wxString *arg2 = 0 ;
37575 wxPoint *arg3 = 0 ;
37576 void *argp1 = 0 ;
37577 int res1 = 0 ;
37578 bool temp2 = false ;
37579 wxPoint temp3 ;
37580 PyObject * obj0 = 0 ;
37581 PyObject * obj1 = 0 ;
37582 PyObject * obj2 = 0 ;
37583 char * kwnames[] = {
37584 (char *) "self",(char *) "text",(char *) "pt", NULL
37585 };
37586
37587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37589 if (!SWIG_IsOK(res1)) {
37590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37591 }
37592 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37593 {
37594 arg2 = wxString_in_helper(obj1);
37595 if (arg2 == NULL) SWIG_fail;
37596 temp2 = true;
37597 }
37598 {
37599 arg3 = &temp3;
37600 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37601 }
37602 {
37603 PyThreadState* __tstate = wxPyBeginAllowThreads();
37604 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37605 wxPyEndAllowThreads(__tstate);
37606 if (PyErr_Occurred()) SWIG_fail;
37607 }
37608 resultobj = SWIG_Py_Void();
37609 {
37610 if (temp2)
37611 delete arg2;
37612 }
37613 return resultobj;
37614 fail:
37615 {
37616 if (temp2)
37617 delete arg2;
37618 }
37619 return NULL;
37620 }
37621
37622
37623 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37624 PyObject *resultobj = 0;
37625 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37626 wxString *arg2 = 0 ;
37627 int arg3 ;
37628 int arg4 ;
37629 double arg5 ;
37630 void *argp1 = 0 ;
37631 int res1 = 0 ;
37632 bool temp2 = false ;
37633 int val3 ;
37634 int ecode3 = 0 ;
37635 int val4 ;
37636 int ecode4 = 0 ;
37637 double val5 ;
37638 int ecode5 = 0 ;
37639 PyObject * obj0 = 0 ;
37640 PyObject * obj1 = 0 ;
37641 PyObject * obj2 = 0 ;
37642 PyObject * obj3 = 0 ;
37643 PyObject * obj4 = 0 ;
37644 char * kwnames[] = {
37645 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37646 };
37647
37648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37650 if (!SWIG_IsOK(res1)) {
37651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37652 }
37653 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37654 {
37655 arg2 = wxString_in_helper(obj1);
37656 if (arg2 == NULL) SWIG_fail;
37657 temp2 = true;
37658 }
37659 ecode3 = SWIG_AsVal_int(obj2, &val3);
37660 if (!SWIG_IsOK(ecode3)) {
37661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37662 }
37663 arg3 = static_cast< int >(val3);
37664 ecode4 = SWIG_AsVal_int(obj3, &val4);
37665 if (!SWIG_IsOK(ecode4)) {
37666 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37667 }
37668 arg4 = static_cast< int >(val4);
37669 ecode5 = SWIG_AsVal_double(obj4, &val5);
37670 if (!SWIG_IsOK(ecode5)) {
37671 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37672 }
37673 arg5 = static_cast< double >(val5);
37674 {
37675 PyThreadState* __tstate = wxPyBeginAllowThreads();
37676 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37677 wxPyEndAllowThreads(__tstate);
37678 if (PyErr_Occurred()) SWIG_fail;
37679 }
37680 resultobj = SWIG_Py_Void();
37681 {
37682 if (temp2)
37683 delete arg2;
37684 }
37685 return resultobj;
37686 fail:
37687 {
37688 if (temp2)
37689 delete arg2;
37690 }
37691 return NULL;
37692 }
37693
37694
37695 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37696 PyObject *resultobj = 0;
37697 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37698 wxString *arg2 = 0 ;
37699 wxPoint *arg3 = 0 ;
37700 double arg4 ;
37701 void *argp1 = 0 ;
37702 int res1 = 0 ;
37703 bool temp2 = false ;
37704 wxPoint temp3 ;
37705 double val4 ;
37706 int ecode4 = 0 ;
37707 PyObject * obj0 = 0 ;
37708 PyObject * obj1 = 0 ;
37709 PyObject * obj2 = 0 ;
37710 PyObject * obj3 = 0 ;
37711 char * kwnames[] = {
37712 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37713 };
37714
37715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37717 if (!SWIG_IsOK(res1)) {
37718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37719 }
37720 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37721 {
37722 arg2 = wxString_in_helper(obj1);
37723 if (arg2 == NULL) SWIG_fail;
37724 temp2 = true;
37725 }
37726 {
37727 arg3 = &temp3;
37728 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37729 }
37730 ecode4 = SWIG_AsVal_double(obj3, &val4);
37731 if (!SWIG_IsOK(ecode4)) {
37732 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37733 }
37734 arg4 = static_cast< double >(val4);
37735 {
37736 PyThreadState* __tstate = wxPyBeginAllowThreads();
37737 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37738 wxPyEndAllowThreads(__tstate);
37739 if (PyErr_Occurred()) SWIG_fail;
37740 }
37741 resultobj = SWIG_Py_Void();
37742 {
37743 if (temp2)
37744 delete arg2;
37745 }
37746 return resultobj;
37747 fail:
37748 {
37749 if (temp2)
37750 delete arg2;
37751 }
37752 return NULL;
37753 }
37754
37755
37756 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37757 PyObject *resultobj = 0;
37758 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37759 int arg2 ;
37760 wxPoint *arg3 = (wxPoint *) 0 ;
37761 int arg4 = (int) 0 ;
37762 int arg5 = (int) 0 ;
37763 void *argp1 = 0 ;
37764 int res1 = 0 ;
37765 int val4 ;
37766 int ecode4 = 0 ;
37767 int val5 ;
37768 int ecode5 = 0 ;
37769 PyObject * obj0 = 0 ;
37770 PyObject * obj1 = 0 ;
37771 PyObject * obj2 = 0 ;
37772 PyObject * obj3 = 0 ;
37773 char * kwnames[] = {
37774 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37775 };
37776
37777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37779 if (!SWIG_IsOK(res1)) {
37780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37781 }
37782 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37783 {
37784 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37785 if (arg3 == NULL) SWIG_fail;
37786 }
37787 if (obj2) {
37788 ecode4 = SWIG_AsVal_int(obj2, &val4);
37789 if (!SWIG_IsOK(ecode4)) {
37790 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37791 }
37792 arg4 = static_cast< int >(val4);
37793 }
37794 if (obj3) {
37795 ecode5 = SWIG_AsVal_int(obj3, &val5);
37796 if (!SWIG_IsOK(ecode5)) {
37797 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37798 }
37799 arg5 = static_cast< int >(val5);
37800 }
37801 {
37802 PyThreadState* __tstate = wxPyBeginAllowThreads();
37803 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37804 wxPyEndAllowThreads(__tstate);
37805 if (PyErr_Occurred()) SWIG_fail;
37806 }
37807 resultobj = SWIG_Py_Void();
37808 {
37809 if (arg3) delete [] arg3;
37810 }
37811 return resultobj;
37812 fail:
37813 {
37814 if (arg3) delete [] arg3;
37815 }
37816 return NULL;
37817 }
37818
37819
37820 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37821 PyObject *resultobj = 0;
37822 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37823 int arg2 ;
37824 wxPoint *arg3 = (wxPoint *) 0 ;
37825 int arg4 = (int) 0 ;
37826 int arg5 = (int) 0 ;
37827 int arg6 = (int) wxODDEVEN_RULE ;
37828 void *argp1 = 0 ;
37829 int res1 = 0 ;
37830 int val4 ;
37831 int ecode4 = 0 ;
37832 int val5 ;
37833 int ecode5 = 0 ;
37834 int val6 ;
37835 int ecode6 = 0 ;
37836 PyObject * obj0 = 0 ;
37837 PyObject * obj1 = 0 ;
37838 PyObject * obj2 = 0 ;
37839 PyObject * obj3 = 0 ;
37840 PyObject * obj4 = 0 ;
37841 char * kwnames[] = {
37842 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37843 };
37844
37845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37847 if (!SWIG_IsOK(res1)) {
37848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37849 }
37850 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37851 {
37852 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37853 if (arg3 == NULL) SWIG_fail;
37854 }
37855 if (obj2) {
37856 ecode4 = SWIG_AsVal_int(obj2, &val4);
37857 if (!SWIG_IsOK(ecode4)) {
37858 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37859 }
37860 arg4 = static_cast< int >(val4);
37861 }
37862 if (obj3) {
37863 ecode5 = SWIG_AsVal_int(obj3, &val5);
37864 if (!SWIG_IsOK(ecode5)) {
37865 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37866 }
37867 arg5 = static_cast< int >(val5);
37868 }
37869 if (obj4) {
37870 ecode6 = SWIG_AsVal_int(obj4, &val6);
37871 if (!SWIG_IsOK(ecode6)) {
37872 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37873 }
37874 arg6 = static_cast< int >(val6);
37875 }
37876 {
37877 PyThreadState* __tstate = wxPyBeginAllowThreads();
37878 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37879 wxPyEndAllowThreads(__tstate);
37880 if (PyErr_Occurred()) SWIG_fail;
37881 }
37882 resultobj = SWIG_Py_Void();
37883 {
37884 if (arg3) delete [] arg3;
37885 }
37886 return resultobj;
37887 fail:
37888 {
37889 if (arg3) delete [] arg3;
37890 }
37891 return NULL;
37892 }
37893
37894
37895 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37896 PyObject *resultobj = 0;
37897 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37898 wxString *arg2 = 0 ;
37899 wxRect *arg3 = 0 ;
37900 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37901 int arg5 = (int) -1 ;
37902 void *argp1 = 0 ;
37903 int res1 = 0 ;
37904 bool temp2 = false ;
37905 wxRect temp3 ;
37906 int val4 ;
37907 int ecode4 = 0 ;
37908 int val5 ;
37909 int ecode5 = 0 ;
37910 PyObject * obj0 = 0 ;
37911 PyObject * obj1 = 0 ;
37912 PyObject * obj2 = 0 ;
37913 PyObject * obj3 = 0 ;
37914 PyObject * obj4 = 0 ;
37915 char * kwnames[] = {
37916 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37917 };
37918
37919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37921 if (!SWIG_IsOK(res1)) {
37922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37923 }
37924 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37925 {
37926 arg2 = wxString_in_helper(obj1);
37927 if (arg2 == NULL) SWIG_fail;
37928 temp2 = true;
37929 }
37930 {
37931 arg3 = &temp3;
37932 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37933 }
37934 if (obj3) {
37935 ecode4 = SWIG_AsVal_int(obj3, &val4);
37936 if (!SWIG_IsOK(ecode4)) {
37937 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37938 }
37939 arg4 = static_cast< int >(val4);
37940 }
37941 if (obj4) {
37942 ecode5 = SWIG_AsVal_int(obj4, &val5);
37943 if (!SWIG_IsOK(ecode5)) {
37944 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37945 }
37946 arg5 = static_cast< int >(val5);
37947 }
37948 {
37949 PyThreadState* __tstate = wxPyBeginAllowThreads();
37950 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37951 wxPyEndAllowThreads(__tstate);
37952 if (PyErr_Occurred()) SWIG_fail;
37953 }
37954 resultobj = SWIG_Py_Void();
37955 {
37956 if (temp2)
37957 delete arg2;
37958 }
37959 return resultobj;
37960 fail:
37961 {
37962 if (temp2)
37963 delete arg2;
37964 }
37965 return NULL;
37966 }
37967
37968
37969 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37970 PyObject *resultobj = 0;
37971 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37972 wxString *arg2 = 0 ;
37973 wxBitmap *arg3 = 0 ;
37974 wxRect *arg4 = 0 ;
37975 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37976 int arg6 = (int) -1 ;
37977 void *argp1 = 0 ;
37978 int res1 = 0 ;
37979 bool temp2 = false ;
37980 void *argp3 = 0 ;
37981 int res3 = 0 ;
37982 wxRect temp4 ;
37983 int val5 ;
37984 int ecode5 = 0 ;
37985 int val6 ;
37986 int ecode6 = 0 ;
37987 PyObject * obj0 = 0 ;
37988 PyObject * obj1 = 0 ;
37989 PyObject * obj2 = 0 ;
37990 PyObject * obj3 = 0 ;
37991 PyObject * obj4 = 0 ;
37992 PyObject * obj5 = 0 ;
37993 char * kwnames[] = {
37994 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37995 };
37996
37997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37999 if (!SWIG_IsOK(res1)) {
38000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38001 }
38002 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38003 {
38004 arg2 = wxString_in_helper(obj1);
38005 if (arg2 == NULL) SWIG_fail;
38006 temp2 = true;
38007 }
38008 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38009 if (!SWIG_IsOK(res3)) {
38010 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38011 }
38012 if (!argp3) {
38013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38014 }
38015 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38016 {
38017 arg4 = &temp4;
38018 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38019 }
38020 if (obj4) {
38021 ecode5 = SWIG_AsVal_int(obj4, &val5);
38022 if (!SWIG_IsOK(ecode5)) {
38023 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38024 }
38025 arg5 = static_cast< int >(val5);
38026 }
38027 if (obj5) {
38028 ecode6 = SWIG_AsVal_int(obj5, &val6);
38029 if (!SWIG_IsOK(ecode6)) {
38030 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38031 }
38032 arg6 = static_cast< int >(val6);
38033 }
38034 {
38035 PyThreadState* __tstate = wxPyBeginAllowThreads();
38036 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38037 wxPyEndAllowThreads(__tstate);
38038 if (PyErr_Occurred()) SWIG_fail;
38039 }
38040 resultobj = SWIG_Py_Void();
38041 {
38042 if (temp2)
38043 delete arg2;
38044 }
38045 return resultobj;
38046 fail:
38047 {
38048 if (temp2)
38049 delete arg2;
38050 }
38051 return NULL;
38052 }
38053
38054
38055 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38056 PyObject *resultobj = 0;
38057 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38058 int arg2 ;
38059 wxPoint *arg3 = (wxPoint *) 0 ;
38060 void *argp1 = 0 ;
38061 int res1 = 0 ;
38062 PyObject * obj0 = 0 ;
38063 PyObject * obj1 = 0 ;
38064 char * kwnames[] = {
38065 (char *) "self",(char *) "points", NULL
38066 };
38067
38068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38070 if (!SWIG_IsOK(res1)) {
38071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38072 }
38073 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38074 {
38075 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38076 if (arg3 == NULL) SWIG_fail;
38077 }
38078 {
38079 PyThreadState* __tstate = wxPyBeginAllowThreads();
38080 (arg1)->DrawSpline(arg2,arg3);
38081 wxPyEndAllowThreads(__tstate);
38082 if (PyErr_Occurred()) SWIG_fail;
38083 }
38084 resultobj = SWIG_Py_Void();
38085 {
38086 if (arg3) delete [] arg3;
38087 }
38088 return resultobj;
38089 fail:
38090 {
38091 if (arg3) delete [] arg3;
38092 }
38093 return NULL;
38094 }
38095
38096
38097 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38098 PyObject *resultobj = 0;
38099 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38100 void *argp1 = 0 ;
38101 int res1 = 0 ;
38102 PyObject *swig_obj[1] ;
38103
38104 if (!args) SWIG_fail;
38105 swig_obj[0] = args;
38106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38107 if (!SWIG_IsOK(res1)) {
38108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38109 }
38110 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38111 {
38112 PyThreadState* __tstate = wxPyBeginAllowThreads();
38113 (arg1)->Clear();
38114 wxPyEndAllowThreads(__tstate);
38115 if (PyErr_Occurred()) SWIG_fail;
38116 }
38117 resultobj = SWIG_Py_Void();
38118 return resultobj;
38119 fail:
38120 return NULL;
38121 }
38122
38123
38124 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38125 PyObject *resultobj = 0;
38126 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38127 wxFont *arg2 = 0 ;
38128 void *argp1 = 0 ;
38129 int res1 = 0 ;
38130 void *argp2 = 0 ;
38131 int res2 = 0 ;
38132 PyObject * obj0 = 0 ;
38133 PyObject * obj1 = 0 ;
38134 char * kwnames[] = {
38135 (char *) "self",(char *) "font", NULL
38136 };
38137
38138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38140 if (!SWIG_IsOK(res1)) {
38141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38142 }
38143 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38144 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38145 if (!SWIG_IsOK(res2)) {
38146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38147 }
38148 if (!argp2) {
38149 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38150 }
38151 arg2 = reinterpret_cast< wxFont * >(argp2);
38152 {
38153 PyThreadState* __tstate = wxPyBeginAllowThreads();
38154 (arg1)->SetFont((wxFont const &)*arg2);
38155 wxPyEndAllowThreads(__tstate);
38156 if (PyErr_Occurred()) SWIG_fail;
38157 }
38158 resultobj = SWIG_Py_Void();
38159 return resultobj;
38160 fail:
38161 return NULL;
38162 }
38163
38164
38165 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38166 PyObject *resultobj = 0;
38167 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38168 wxPen *arg2 = 0 ;
38169 void *argp1 = 0 ;
38170 int res1 = 0 ;
38171 void *argp2 = 0 ;
38172 int res2 = 0 ;
38173 PyObject * obj0 = 0 ;
38174 PyObject * obj1 = 0 ;
38175 char * kwnames[] = {
38176 (char *) "self",(char *) "pen", NULL
38177 };
38178
38179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38181 if (!SWIG_IsOK(res1)) {
38182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38183 }
38184 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38185 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38186 if (!SWIG_IsOK(res2)) {
38187 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38188 }
38189 if (!argp2) {
38190 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38191 }
38192 arg2 = reinterpret_cast< wxPen * >(argp2);
38193 {
38194 PyThreadState* __tstate = wxPyBeginAllowThreads();
38195 (arg1)->SetPen((wxPen const &)*arg2);
38196 wxPyEndAllowThreads(__tstate);
38197 if (PyErr_Occurred()) SWIG_fail;
38198 }
38199 resultobj = SWIG_Py_Void();
38200 return resultobj;
38201 fail:
38202 return NULL;
38203 }
38204
38205
38206 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38207 PyObject *resultobj = 0;
38208 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38209 wxBrush *arg2 = 0 ;
38210 void *argp1 = 0 ;
38211 int res1 = 0 ;
38212 void *argp2 = 0 ;
38213 int res2 = 0 ;
38214 PyObject * obj0 = 0 ;
38215 PyObject * obj1 = 0 ;
38216 char * kwnames[] = {
38217 (char *) "self",(char *) "brush", NULL
38218 };
38219
38220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38222 if (!SWIG_IsOK(res1)) {
38223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38224 }
38225 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38226 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38227 if (!SWIG_IsOK(res2)) {
38228 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38229 }
38230 if (!argp2) {
38231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38232 }
38233 arg2 = reinterpret_cast< wxBrush * >(argp2);
38234 {
38235 PyThreadState* __tstate = wxPyBeginAllowThreads();
38236 (arg1)->SetBrush((wxBrush const &)*arg2);
38237 wxPyEndAllowThreads(__tstate);
38238 if (PyErr_Occurred()) SWIG_fail;
38239 }
38240 resultobj = SWIG_Py_Void();
38241 return resultobj;
38242 fail:
38243 return NULL;
38244 }
38245
38246
38247 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38248 PyObject *resultobj = 0;
38249 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38250 wxBrush *arg2 = 0 ;
38251 void *argp1 = 0 ;
38252 int res1 = 0 ;
38253 void *argp2 = 0 ;
38254 int res2 = 0 ;
38255 PyObject * obj0 = 0 ;
38256 PyObject * obj1 = 0 ;
38257 char * kwnames[] = {
38258 (char *) "self",(char *) "brush", NULL
38259 };
38260
38261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38263 if (!SWIG_IsOK(res1)) {
38264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38265 }
38266 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38267 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38268 if (!SWIG_IsOK(res2)) {
38269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38270 }
38271 if (!argp2) {
38272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38273 }
38274 arg2 = reinterpret_cast< wxBrush * >(argp2);
38275 {
38276 PyThreadState* __tstate = wxPyBeginAllowThreads();
38277 (arg1)->SetBackground((wxBrush const &)*arg2);
38278 wxPyEndAllowThreads(__tstate);
38279 if (PyErr_Occurred()) SWIG_fail;
38280 }
38281 resultobj = SWIG_Py_Void();
38282 return resultobj;
38283 fail:
38284 return NULL;
38285 }
38286
38287
38288 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38289 PyObject *resultobj = 0;
38290 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38291 int arg2 ;
38292 void *argp1 = 0 ;
38293 int res1 = 0 ;
38294 int val2 ;
38295 int ecode2 = 0 ;
38296 PyObject * obj0 = 0 ;
38297 PyObject * obj1 = 0 ;
38298 char * kwnames[] = {
38299 (char *) "self",(char *) "mode", NULL
38300 };
38301
38302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38304 if (!SWIG_IsOK(res1)) {
38305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38306 }
38307 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38308 ecode2 = SWIG_AsVal_int(obj1, &val2);
38309 if (!SWIG_IsOK(ecode2)) {
38310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38311 }
38312 arg2 = static_cast< int >(val2);
38313 {
38314 PyThreadState* __tstate = wxPyBeginAllowThreads();
38315 (arg1)->SetBackgroundMode(arg2);
38316 wxPyEndAllowThreads(__tstate);
38317 if (PyErr_Occurred()) SWIG_fail;
38318 }
38319 resultobj = SWIG_Py_Void();
38320 return resultobj;
38321 fail:
38322 return NULL;
38323 }
38324
38325
38326 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38327 PyObject *resultobj = 0;
38328 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38329 wxPalette *arg2 = 0 ;
38330 void *argp1 = 0 ;
38331 int res1 = 0 ;
38332 void *argp2 = 0 ;
38333 int res2 = 0 ;
38334 PyObject * obj0 = 0 ;
38335 PyObject * obj1 = 0 ;
38336 char * kwnames[] = {
38337 (char *) "self",(char *) "palette", NULL
38338 };
38339
38340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38342 if (!SWIG_IsOK(res1)) {
38343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38344 }
38345 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38346 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38347 if (!SWIG_IsOK(res2)) {
38348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38349 }
38350 if (!argp2) {
38351 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38352 }
38353 arg2 = reinterpret_cast< wxPalette * >(argp2);
38354 {
38355 PyThreadState* __tstate = wxPyBeginAllowThreads();
38356 (arg1)->SetPalette((wxPalette const &)*arg2);
38357 wxPyEndAllowThreads(__tstate);
38358 if (PyErr_Occurred()) SWIG_fail;
38359 }
38360 resultobj = SWIG_Py_Void();
38361 return resultobj;
38362 fail:
38363 return NULL;
38364 }
38365
38366
38367 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38368 PyObject *resultobj = 0;
38369 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38370 wxColour *arg2 = 0 ;
38371 void *argp1 = 0 ;
38372 int res1 = 0 ;
38373 wxColour temp2 ;
38374 PyObject * obj0 = 0 ;
38375 PyObject * obj1 = 0 ;
38376 char * kwnames[] = {
38377 (char *) "self",(char *) "colour", NULL
38378 };
38379
38380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38382 if (!SWIG_IsOK(res1)) {
38383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38384 }
38385 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38386 {
38387 arg2 = &temp2;
38388 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38389 }
38390 {
38391 PyThreadState* __tstate = wxPyBeginAllowThreads();
38392 (arg1)->SetTextForeground((wxColour const &)*arg2);
38393 wxPyEndAllowThreads(__tstate);
38394 if (PyErr_Occurred()) SWIG_fail;
38395 }
38396 resultobj = SWIG_Py_Void();
38397 return resultobj;
38398 fail:
38399 return NULL;
38400 }
38401
38402
38403 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38404 PyObject *resultobj = 0;
38405 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38406 wxColour *arg2 = 0 ;
38407 void *argp1 = 0 ;
38408 int res1 = 0 ;
38409 wxColour temp2 ;
38410 PyObject * obj0 = 0 ;
38411 PyObject * obj1 = 0 ;
38412 char * kwnames[] = {
38413 (char *) "self",(char *) "colour", NULL
38414 };
38415
38416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38418 if (!SWIG_IsOK(res1)) {
38419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38420 }
38421 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38422 {
38423 arg2 = &temp2;
38424 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38425 }
38426 {
38427 PyThreadState* __tstate = wxPyBeginAllowThreads();
38428 (arg1)->SetTextBackground((wxColour const &)*arg2);
38429 wxPyEndAllowThreads(__tstate);
38430 if (PyErr_Occurred()) SWIG_fail;
38431 }
38432 resultobj = SWIG_Py_Void();
38433 return resultobj;
38434 fail:
38435 return NULL;
38436 }
38437
38438
38439 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38440 PyObject *resultobj = 0;
38441 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38442 int arg2 ;
38443 void *argp1 = 0 ;
38444 int res1 = 0 ;
38445 int val2 ;
38446 int ecode2 = 0 ;
38447 PyObject * obj0 = 0 ;
38448 PyObject * obj1 = 0 ;
38449 char * kwnames[] = {
38450 (char *) "self",(char *) "function", NULL
38451 };
38452
38453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38455 if (!SWIG_IsOK(res1)) {
38456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38457 }
38458 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38459 ecode2 = SWIG_AsVal_int(obj1, &val2);
38460 if (!SWIG_IsOK(ecode2)) {
38461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38462 }
38463 arg2 = static_cast< int >(val2);
38464 {
38465 PyThreadState* __tstate = wxPyBeginAllowThreads();
38466 (arg1)->SetLogicalFunction(arg2);
38467 wxPyEndAllowThreads(__tstate);
38468 if (PyErr_Occurred()) SWIG_fail;
38469 }
38470 resultobj = SWIG_Py_Void();
38471 return resultobj;
38472 fail:
38473 return NULL;
38474 }
38475
38476
38477 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38478 PyObject *obj;
38479 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38480 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38481 return SWIG_Py_Void();
38482 }
38483
38484 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38485 return SWIG_Python_InitShadowInstance(args);
38486 }
38487
38488 static PyMethodDef SwigMethods[] = {
38489 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38490 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38491 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38492 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38493 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38494 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38495 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38496 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38497 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38498 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38499 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38500 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
38501 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
38502 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
38503 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38504 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38505 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38506 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38507 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38508 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38509 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38510 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
38511 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38512 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38513 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38514 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38515 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38516 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38517 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38518 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
38519 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
38520 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38521 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38522 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38523 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38524 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38525 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38526 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38527 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38528 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
38529 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
38530 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38531 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38532 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38533 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38534 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38535 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38536 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38537 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38538 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
38539 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38540 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38541 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38542 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38543 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38544 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38545 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38546 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38547 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38548 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38549 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38550 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38551 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38552 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
38553 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
38554 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38555 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38556 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38557 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38558 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38559 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38560 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38561 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38562 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
38563 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
38564 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38565 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38566 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38567 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38568 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38569 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38570 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38571 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38572 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38573 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38574 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38575 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38576 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38577 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38578 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38579 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38580 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38581 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38582 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38583 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38584 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38585 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38586 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
38587 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38588 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38589 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38590 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38591 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38592 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38593 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38594 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38595 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38596 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38597 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38598 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38599 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38600 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38601 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38602 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38603 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38604 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38605 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38606 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38607 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38608 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38609 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38610 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38611 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38612 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38613 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38614 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38615 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38616 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38617 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38618 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38619 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38620 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38621 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38622 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38623 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38624 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38625 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38626 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38627 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38628 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38629 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38630 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38631 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38632 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38633 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38634 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38635 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
38636 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38637 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38638 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38639 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38640 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38641 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38642 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38643 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38644 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38645 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38646 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38647 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
38648 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38649 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38650 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38651 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38652 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38653 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38654 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38655 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38656 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38657 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38658 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38659 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38660 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38661 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38662 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38663 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38664 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38665 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38666 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38667 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38668 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38669 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38670 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38671 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38672 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38673 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38674 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38675 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38676 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38677 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38678 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38679 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
38680 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38681 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38682 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38683 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38684 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38685 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38686 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38687 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38688 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38689 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38690 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38691 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38692 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38693 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38694 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38695 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38696 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38697 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
38698 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38699 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38700 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38701 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38702 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38703 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38704 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38705 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38706 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38707 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38708 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38709 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38710 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38711 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38712 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38713 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38714 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38715 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38716 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38717 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38718 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38719 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38720 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38721 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38722 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38723 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38724 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38725 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38726 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38727 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38728 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38729 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38730 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38731 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38732 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38733 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38734 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38735 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38736 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38737 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38738 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38739 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38741 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38742 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38743 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38744 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38745 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38746 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38747 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38748 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38749 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38750 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38751 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38752 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38753 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38754 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38755 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38756 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38757 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38758 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38759 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38760 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38761 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38762 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38763 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38764 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38765 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38766 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38767 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38768 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38769 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38770 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38771 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38772 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38773 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38774 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38775 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38777 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38778 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38779 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38780 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38781 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38782 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38783 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38784 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38785 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38786 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38787 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38788 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38789 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38790 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
38791 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38792 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38793 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38794 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38795 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38796 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38797 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38798 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38799 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38800 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38801 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38802 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38803 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38804 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38805 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38806 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38807 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38808 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38809 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38810 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38811 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38812 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38813 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38814 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38815 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38816 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38817 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38818 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38819 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38820 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38821 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38822 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38823 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38824 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38825 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38826 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38827 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38828 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38829 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38830 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
38831 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38832 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38833 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
38834 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38835 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38836 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38837 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38838 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38839 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38840 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38841 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38842 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38843 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38844 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38845 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38846 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38847 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38848 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38849 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38850 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38851 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38852 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38853 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38854 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38855 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38856 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
38857 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38858 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38859 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38860 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38861 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38862 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38863 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38864 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38865 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38866 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
38867 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38868 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38869 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38870 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38871 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38872 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38873 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
38874 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38875 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38876 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38877 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38878 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38879 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38880 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38881 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38882 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38883 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38884 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38885 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38886 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38887 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38888 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38889 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38890 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38891 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38892 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38893 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38894 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38895 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38896 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38897 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38898 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38899 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38900 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38901 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38902 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38903 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38904 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38906 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38907 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38908 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38909 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38910 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38911 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38912 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38913 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38914 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38915 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38916 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38917 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38918 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38919 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38920 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38921 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38922 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38923 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38924 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38925 { (char *)"DC_StretchBlit", (PyCFunction) _wrap_DC_StretchBlit, METH_VARARGS | METH_KEYWORDS, NULL},
38926 { (char *)"DC_StretchBlitPointSize", (PyCFunction) _wrap_DC_StretchBlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38927 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38928 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38931 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38932 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38933 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38934 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38935 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38936 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38937 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38938 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38939 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38940 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38941 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38942 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38943 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38944 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38945 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38946 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38947 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38948 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38949 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38950 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38951 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38952 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38953 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38954 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38955 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38956 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38957 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38958 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38959 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38960 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38961 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38962 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38963 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38964 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38965 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38966 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38967 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38968 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38969 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38970 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38971 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38972 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
38973 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
38974 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38975 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38976 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38977 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38978 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38979 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38980 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38981 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38982 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38983 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38984 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38985 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38986 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38987 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38988 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38990 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38991 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38992 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38993 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38994 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38995 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38996 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38997 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38998 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38999 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39000 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39001 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39002 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39003 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39004 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39005 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39006 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39007 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39008 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
39009 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39010 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
39011 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39012 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39013 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39014 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39015 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39016 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39017 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
39018 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39019 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39020 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39021 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39022 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39023 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39024 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39025 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39026 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39027 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39028 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39029 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39030 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39031 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39032 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39033 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
39034 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39035 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39036 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39037 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39038 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39039 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
39040 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39041 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39042 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
39043 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39044 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39045 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39046 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39047 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39048 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
39049 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39050 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39051 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39052 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39054 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
39055 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39056 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39057 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
39058 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39059 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
39060 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39061 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39062 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39063 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39064 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39065 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39066 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39067 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
39068 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39071 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39072 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39073 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39074 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39075 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39076 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39077 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39078 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39079 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39080 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39081 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39082 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39083 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39084 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39085 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39086 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39087 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
39088 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39089 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39090 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39091 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39092 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39093 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39094 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39095 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39096 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39097 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39098 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39099 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39100 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39101 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39102 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39103 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39104 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39105 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
39106 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39107 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
39108 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39109 { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL},
39110 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39111 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39112 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39113 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39114 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39115 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39116 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39117 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39118 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39119 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
39120 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
39121 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39122 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39123 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39124 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
39125 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39126 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
39127 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
39128 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39129 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39130 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39131 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39132 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39133 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39134 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39135 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39137 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39138 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
39139 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
39140 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
39141 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
39142 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
39143 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
39144 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39145 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
39146 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39147 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39148 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39149 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39150 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39151 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39152 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39153 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
39154 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39155 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
39156 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39157 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
39158 { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL},
39159 { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39160 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39161 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39162 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
39166 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39167 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39168 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
39169 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39170 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39171 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
39172 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39173 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39174 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39176 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39177 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39178 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39179 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
39180 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
39181 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
39182 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39183 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39184 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39185 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39186 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
39187 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
39188 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39189 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39190 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39191 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
39192 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39193 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39194 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39195 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39196 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39197 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39198 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39199 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39201 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
39202 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
39203 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
39204 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39205 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39207 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
39208 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39209 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39210 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39211 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39212 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39213 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39214 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39215 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39216 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39217 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
39218 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39219 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39220 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39221 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39222 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39223 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39224 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39225 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39226 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39227 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39228 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39229 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39230 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39231 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39232 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
39233 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39234 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39235 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39236 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39237 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39238 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39239 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39240 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39241 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39242 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39243 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39244 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39245 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39246 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39247 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
39248 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39249 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
39250 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39251 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
39252 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39253 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
39254 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39255 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39256 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39257 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39258 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39259 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39260 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39261 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
39262 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39263 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39264 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39265 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
39266 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39267 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39268 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39269 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39270 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39271 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39272 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39273 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39274 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39275 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39276 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39277 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39278 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39279 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39280 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39281 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39282 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39283 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39284 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39285 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39286 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39287 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39288 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
39289 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39290 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39291 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39292 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39293 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39294 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39295 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39296 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39297 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39298 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39299 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39300 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39301 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39302 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39303 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39304 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39305 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39306 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
39307 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39308 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39309 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39310 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39311 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39312 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39313 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39314 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
39315 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39316 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39317 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39318 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39319 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39320 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39321 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
39322 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39323 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39324 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39325 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39326 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39327 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39328 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39329 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39330 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39331 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
39332 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39333 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39334 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39335 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39336 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39337 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39338 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39339 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39340 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39341 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
39342 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39343 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39344 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39345 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
39346 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39347 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39348 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39349 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39350 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39351 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39352 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39353 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39354 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39355 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39356 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39357 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39358 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39359 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39360 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39361 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39362 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39363 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39364 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39365 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39366 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39367 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39368 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39369 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39370 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39371 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39372 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39373 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39374 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39375 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39376 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39377 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39378 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39379 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39380 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39381 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39382 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39383 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39384 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39385 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39386 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39387 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39388 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39389 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39390 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39391 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39392 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39393 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39394 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39395 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39396 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39397 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39398 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39399 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39400 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39401 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
39402 { NULL, NULL, 0, NULL }
39403 };
39404
39405
39406 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39407
39408 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39409 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39410 }
39411 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39412 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39413 }
39414 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39415 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39416 }
39417 static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39418 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39419 }
39420 static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39421 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39422 }
39423 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39424 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39425 }
39426 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39427 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39428 }
39429 static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39430 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39431 }
39432 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39433 return (void *)((wxLocale *) ((wxPyLocale *) x));
39434 }
39435 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39436 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39437 }
39438 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39439 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39440 }
39441 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39442 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39443 }
39444 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39445 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39446 }
39447 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39448 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39449 }
39450 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39451 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39452 }
39453 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39454 return (void *)((wxGDIObject *) ((wxIcon *) x));
39455 }
39456 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39457 return (void *)((wxGDIObject *) ((wxPalette *) x));
39458 }
39459 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39460 return (void *)((wxGDIObject *) ((wxPen *) x));
39461 }
39462 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39463 return (void *)((wxGDIObject *) ((wxFont *) x));
39464 }
39465 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39466 return (void *)((wxGDIObject *) ((wxCursor *) x));
39467 }
39468 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39469 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39470 }
39471 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39472 return (void *)((wxGDIObject *) ((wxRegion *) x));
39473 }
39474 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39475 return (void *)((wxGDIObject *) ((wxBrush *) x));
39476 }
39477 static void *_p_wxGCDCTo_p_wxDC(void *x) {
39478 return (void *)((wxDC *) ((wxGCDC *) x));
39479 }
39480 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39481 return (void *)((wxDC *) ((wxScreenDC *) x));
39482 }
39483 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
39484 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39485 }
39486 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39487 return (void *)((wxDC *) ((wxMirrorDC *) x));
39488 }
39489 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39490 return (void *)((wxDC *) ((wxWindowDC *) x));
39491 }
39492 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39493 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39494 }
39495 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39496 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39497 }
39498 static void *_p_wxClientDCTo_p_wxDC(void *x) {
39499 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
39500 }
39501 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
39502 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39503 }
39504 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
39505 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39506 }
39507 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39508 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39509 }
39510 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39511 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39512 }
39513 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39514 return (void *)((wxDC *) ((wxPrinterDC *) x));
39515 }
39516 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39517 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39518 }
39519 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39520 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39521 }
39522 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39523 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39524 }
39525 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39526 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39527 }
39528 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39529 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39530 }
39531 static void *_p_wxPenTo_p_wxObject(void *x) {
39532 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39533 }
39534 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39535 return (void *)((wxObject *) ((wxRegionIterator *) x));
39536 }
39537 static void *_p_wxEventBlockerTo_p_wxObject(void *x) {
39538 return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x));
39539 }
39540 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39541 return (void *)((wxObject *) ((wxSizerItem *) x));
39542 }
39543 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39544 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39545 }
39546 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39547 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39548 }
39549 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39550 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39551 }
39552 static void *_p_wxIconTo_p_wxObject(void *x) {
39553 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39554 }
39555 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39556 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39557 }
39558 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39559 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39560 }
39561 static void *_p_wxSizerTo_p_wxObject(void *x) {
39562 return (void *)((wxObject *) ((wxSizer *) x));
39563 }
39564 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39565 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39566 }
39567 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39568 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39569 }
39570 static void *_p_wxEventTo_p_wxObject(void *x) {
39571 return (void *)((wxObject *) ((wxEvent *) x));
39572 }
39573 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39574 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39575 }
39576 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39577 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39578 }
39579 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39580 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39581 }
39582 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39583 return (void *)((wxObject *) ((wxPseudoDC *) x));
39584 }
39585 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39586 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39587 }
39588 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39589 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39590 }
39591 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39592 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39593 }
39594 static void *_p_wxDCTo_p_wxObject(void *x) {
39595 return (void *)((wxObject *) ((wxDC *) x));
39596 }
39597 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39598 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39599 }
39600 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39601 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39602 }
39603 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39604 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39605 }
39606 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39607 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39608 }
39609 static void *_p_wxControlTo_p_wxObject(void *x) {
39610 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39611 }
39612 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39613 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39614 }
39615 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39616 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39617 }
39618 static void *_p_wxClientDCTo_p_wxObject(void *x) {
39619 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
39620 }
39621 static void *_p_wxFSFileTo_p_wxObject(void *x) {
39622 return (void *)((wxObject *) ((wxFSFile *) x));
39623 }
39624 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
39625 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
39626 }
39627 static void *_p_wxRegionTo_p_wxObject(void *x) {
39628 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39629 }
39630 static void *_p_wxPySizerTo_p_wxObject(void *x) {
39631 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39632 }
39633 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39634 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39635 }
39636 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39637 return (void *)((wxObject *) ((wxGDIObject *) x));
39638 }
39639 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39640 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39641 }
39642 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39643 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39644 }
39645 static void *_p_wxEffectsTo_p_wxObject(void *x) {
39646 return (void *)((wxObject *) ((wxEffects *) x));
39647 }
39648 static void *_p_wxPyEventTo_p_wxObject(void *x) {
39649 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39650 }
39651 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39652 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39653 }
39654 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39655 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39656 }
39657 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39658 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39659 }
39660 static void *_p_wxShowEventTo_p_wxObject(void *x) {
39661 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39662 }
39663 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39664 return (void *)((wxObject *) ((wxMenuItem *) x));
39665 }
39666 static void *_p_wxDateEventTo_p_wxObject(void *x) {
39667 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39668 }
39669 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39670 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39671 }
39672 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39673 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39674 }
39675 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39676 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39677 }
39678 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39679 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39680 }
39681 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39682 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39683 }
39684 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39685 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39686 }
39687 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39688 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39689 }
39690 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39691 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39692 }
39693 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39694 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39695 }
39696 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39697 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39698 }
39699 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39700 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39701 }
39702 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39703 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39704 }
39705 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39706 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39707 }
39708 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39709 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39710 }
39711 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39712 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39713 }
39714 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39715 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39716 }
39717 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39718 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39719 }
39720 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39721 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39722 }
39723 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39724 return (void *)((wxObject *) ((wxImageHandler *) x));
39725 }
39726 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39727 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39728 }
39729 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39730 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39731 }
39732 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39733 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39734 }
39735 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39736 return (void *)((wxObject *) ((wxEvtHandler *) x));
39737 }
39738 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39739 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39740 }
39741 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39742 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39743 }
39744 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
39745 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39746 }
39747 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39748 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
39749 }
39750 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39751 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39752 }
39753 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39754 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39755 }
39756 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39757 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39758 }
39759 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39760 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39761 }
39762 static void *_p_wxImageTo_p_wxObject(void *x) {
39763 return (void *)((wxObject *) ((wxImage *) x));
39764 }
39765 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39766 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39767 }
39768 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39769 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39770 }
39771 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39772 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39773 }
39774 static void *_p_wxPaletteTo_p_wxObject(void *x) {
39775 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39776 }
39777 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
39778 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39779 }
39780 static void *_p_wxImageListTo_p_wxObject(void *x) {
39781 return (void *)((wxObject *) ((wxImageList *) x));
39782 }
39783 static void *_p_wxGCDCTo_p_wxObject(void *x) {
39784 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39785 }
39786 static void *_p_wxCursorTo_p_wxObject(void *x) {
39787 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39788 }
39789 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39790 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39791 }
39792 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39793 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39794 }
39795 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39796 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39797 }
39798 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39799 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39800 }
39801 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39802 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39803 }
39804 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39805 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39806 }
39807 static void *_p_wxWindowTo_p_wxObject(void *x) {
39808 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39809 }
39810 static void *_p_wxMenuTo_p_wxObject(void *x) {
39811 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39812 }
39813 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39814 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39815 }
39816 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39817 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39818 }
39819 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39820 return (void *)((wxObject *) ((wxFileSystem *) x));
39821 }
39822 static void *_p_wxBitmapTo_p_wxObject(void *x) {
39823 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39824 }
39825 static void *_p_wxMaskTo_p_wxObject(void *x) {
39826 return (void *)((wxObject *) ((wxMask *) x));
39827 }
39828 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39829 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39830 }
39831 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39832 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39833 }
39834 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39835 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39836 }
39837 static void *_p_wxPyAppTo_p_wxObject(void *x) {
39838 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39839 }
39840 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39841 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39842 }
39843 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39844 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39845 }
39846 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39847 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39848 }
39849 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39850 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39851 }
39852 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39853 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39854 }
39855 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39856 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39857 }
39858 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39859 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39860 }
39861 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39862 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39863 }
39864 static void *_p_wxFontTo_p_wxObject(void *x) {
39865 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39866 }
39867 static void *_p_wxBrushTo_p_wxObject(void *x) {
39868 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39869 }
39870 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39871 return (void *)((wxObject *) ((wxMetaFile *) x));
39872 }
39873 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39874 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39875 }
39876 static void *_p_wxColourTo_p_wxObject(void *x) {
39877 return (void *)((wxObject *) ((wxColour *) x));
39878 }
39879 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39880 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39881 }
39882 static void *_p_wxValidatorTo_p_wxObject(void *x) {
39883 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39884 }
39885 static void *_p_wxControlTo_p_wxWindow(void *x) {
39886 return (void *)((wxWindow *) ((wxControl *) x));
39887 }
39888 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39889 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39890 }
39891 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39892 return (void *)((wxWindow *) ((wxMenuBar *) x));
39893 }
39894 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39895 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39896 }
39897 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39898 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39899 }
39900 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
39901 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
39902 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
39903 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};
39904 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39905 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39906 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39907 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
39908 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
39909 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39910 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
39911 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
39912 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39913 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39914 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39915 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39916 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
39917 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
39918 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39919 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39920 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39921 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
39922 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39923 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
39924 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
39925 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39926 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
39927 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39928 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39929 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39930 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39931 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39932 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39933 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
39934 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
39935 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
39936 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
39937 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
39938 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
39939 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39940 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39941 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
39942 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
39943 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39944 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
39945 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
39946 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39947 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39948 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39949 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39950 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39951 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39952 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39953 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39954 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39955 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39956 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39957 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39958 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39959 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
39960 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39961 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
39962 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39963 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
39964 static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0};
39965 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
39966 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
39967 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39968 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39969 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39970 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39971 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39972 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39973 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39974 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39975 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39976 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39977 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39978 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
39979 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
39980 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39981 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39982 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39983 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39984 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39985 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39986 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39987 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39988 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39989 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39990 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39991 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39992 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39993 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39994 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39995 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39996 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39997 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39998 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39999 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40000 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40001 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
40002 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40003 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
40004 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
40005 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40006 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40007 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40008 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40009 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40010 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
40011 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
40012 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
40013 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
40014 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
40015 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40016 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40017 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
40018 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
40019 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
40020 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
40021 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40022 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40023 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40024 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40025 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40026 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40027 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40028 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40029 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40030 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40031 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40032 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40033 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40034 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40035 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40036 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40037 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40038 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40039 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40040 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
40041 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
40042 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40043 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40044 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40045 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40046 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
40047 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
40048 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
40049 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
40050 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40051 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40052 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
40053 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
40054 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
40055 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
40056 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
40057 static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0};
40058 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40059 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40060 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40061 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40062 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40063 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40064 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
40065 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
40066 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40067 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40068 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40069
40070 static swig_type_info *swig_type_initial[] = {
40071 &_swigt__p_buffer,
40072 &_swigt__p_char,
40073 &_swigt__p_double,
40074 &_swigt__p_form_ops_t,
40075 &_swigt__p_int,
40076 &_swigt__p_unsigned_char,
40077 &_swigt__p_unsigned_int,
40078 &_swigt__p_unsigned_long,
40079 &_swigt__p_void,
40080 &_swigt__p_wxANIHandler,
40081 &_swigt__p_wxAcceleratorTable,
40082 &_swigt__p_wxActivateEvent,
40083 &_swigt__p_wxAlphaPixelData,
40084 &_swigt__p_wxAlphaPixelData_Accessor,
40085 &_swigt__p_wxAutoBufferedPaintDC,
40086 &_swigt__p_wxBMPHandler,
40087 &_swigt__p_wxBitmap,
40088 &_swigt__p_wxBoxSizer,
40089 &_swigt__p_wxBrush,
40090 &_swigt__p_wxBrushList,
40091 &_swigt__p_wxBufferedDC,
40092 &_swigt__p_wxBufferedPaintDC,
40093 &_swigt__p_wxCURHandler,
40094 &_swigt__p_wxChildFocusEvent,
40095 &_swigt__p_wxClientDC,
40096 &_swigt__p_wxClipboardTextEvent,
40097 &_swigt__p_wxCloseEvent,
40098 &_swigt__p_wxColour,
40099 &_swigt__p_wxColourDatabase,
40100 &_swigt__p_wxCommandEvent,
40101 &_swigt__p_wxContextMenuEvent,
40102 &_swigt__p_wxControl,
40103 &_swigt__p_wxControlWithItems,
40104 &_swigt__p_wxCursor,
40105 &_swigt__p_wxDC,
40106 &_swigt__p_wxDCBrushChanger,
40107 &_swigt__p_wxDCClipper,
40108 &_swigt__p_wxDCOverlay,
40109 &_swigt__p_wxDCPenChanger,
40110 &_swigt__p_wxDCTextColourChanger,
40111 &_swigt__p_wxDash,
40112 &_swigt__p_wxDateEvent,
40113 &_swigt__p_wxDisplayChangedEvent,
40114 &_swigt__p_wxDropFilesEvent,
40115 &_swigt__p_wxDuplexMode,
40116 &_swigt__p_wxEffects,
40117 &_swigt__p_wxEncodingConverter,
40118 &_swigt__p_wxEraseEvent,
40119 &_swigt__p_wxEvent,
40120 &_swigt__p_wxEventBlocker,
40121 &_swigt__p_wxEvtHandler,
40122 &_swigt__p_wxFSFile,
40123 &_swigt__p_wxFileSystem,
40124 &_swigt__p_wxFlexGridSizer,
40125 &_swigt__p_wxFocusEvent,
40126 &_swigt__p_wxFont,
40127 &_swigt__p_wxFontList,
40128 &_swigt__p_wxFontMapper,
40129 &_swigt__p_wxGBSizerItem,
40130 &_swigt__p_wxGCDC,
40131 &_swigt__p_wxGDIObjListBase,
40132 &_swigt__p_wxGDIObject,
40133 &_swigt__p_wxGIFHandler,
40134 &_swigt__p_wxGraphicsBrush,
40135 &_swigt__p_wxGraphicsContext,
40136 &_swigt__p_wxGraphicsFont,
40137 &_swigt__p_wxGraphicsMatrix,
40138 &_swigt__p_wxGraphicsObject,
40139 &_swigt__p_wxGraphicsPath,
40140 &_swigt__p_wxGraphicsPen,
40141 &_swigt__p_wxGraphicsRenderer,
40142 &_swigt__p_wxGridBagSizer,
40143 &_swigt__p_wxGridSizer,
40144 &_swigt__p_wxHeaderButtonParams,
40145 &_swigt__p_wxICOHandler,
40146 &_swigt__p_wxIcon,
40147 &_swigt__p_wxIconBundle,
40148 &_swigt__p_wxIconLocation,
40149 &_swigt__p_wxIconizeEvent,
40150 &_swigt__p_wxIdleEvent,
40151 &_swigt__p_wxImage,
40152 &_swigt__p_wxImageHandler,
40153 &_swigt__p_wxImageList,
40154 &_swigt__p_wxIndividualLayoutConstraint,
40155 &_swigt__p_wxInitDialogEvent,
40156 &_swigt__p_wxJPEGHandler,
40157 &_swigt__p_wxKeyEvent,
40158 &_swigt__p_wxLanguageInfo,
40159 &_swigt__p_wxLayoutConstraints,
40160 &_swigt__p_wxLocale,
40161 &_swigt__p_wxMask,
40162 &_swigt__p_wxMaximizeEvent,
40163 &_swigt__p_wxMemoryDC,
40164 &_swigt__p_wxMenu,
40165 &_swigt__p_wxMenuBar,
40166 &_swigt__p_wxMenuEvent,
40167 &_swigt__p_wxMenuItem,
40168 &_swigt__p_wxMetaFile,
40169 &_swigt__p_wxMetaFileDC,
40170 &_swigt__p_wxMirrorDC,
40171 &_swigt__p_wxMouseCaptureChangedEvent,
40172 &_swigt__p_wxMouseCaptureLostEvent,
40173 &_swigt__p_wxMouseEvent,
40174 &_swigt__p_wxMoveEvent,
40175 &_swigt__p_wxNativeEncodingInfo,
40176 &_swigt__p_wxNativeFontInfo,
40177 &_swigt__p_wxNativePixelData,
40178 &_swigt__p_wxNativePixelData_Accessor,
40179 &_swigt__p_wxNavigationKeyEvent,
40180 &_swigt__p_wxNcPaintEvent,
40181 &_swigt__p_wxNotifyEvent,
40182 &_swigt__p_wxObject,
40183 &_swigt__p_wxOverlay,
40184 &_swigt__p_wxPCXHandler,
40185 &_swigt__p_wxPNGHandler,
40186 &_swigt__p_wxPNMHandler,
40187 &_swigt__p_wxPaintDC,
40188 &_swigt__p_wxPaintEvent,
40189 &_swigt__p_wxPalette,
40190 &_swigt__p_wxPaletteChangedEvent,
40191 &_swigt__p_wxPaperSize,
40192 &_swigt__p_wxPen,
40193 &_swigt__p_wxPenList,
40194 &_swigt__p_wxPixelDataBase,
40195 &_swigt__p_wxPoint,
40196 &_swigt__p_wxPoint2D,
40197 &_swigt__p_wxPostScriptDC,
40198 &_swigt__p_wxPrintData,
40199 &_swigt__p_wxPrinterDC,
40200 &_swigt__p_wxPseudoDC,
40201 &_swigt__p_wxPyApp,
40202 &_swigt__p_wxPyCommandEvent,
40203 &_swigt__p_wxPyEvent,
40204 &_swigt__p_wxPyFontEnumerator,
40205 &_swigt__p_wxPyImageHandler,
40206 &_swigt__p_wxPyLocale,
40207 &_swigt__p_wxPySizer,
40208 &_swigt__p_wxPyValidator,
40209 &_swigt__p_wxQueryNewPaletteEvent,
40210 &_swigt__p_wxRect,
40211 &_swigt__p_wxRect2D,
40212 &_swigt__p_wxRegion,
40213 &_swigt__p_wxRegionIterator,
40214 &_swigt__p_wxRendererNative,
40215 &_swigt__p_wxRendererVersion,
40216 &_swigt__p_wxScreenDC,
40217 &_swigt__p_wxScrollEvent,
40218 &_swigt__p_wxScrollWinEvent,
40219 &_swigt__p_wxSetCursorEvent,
40220 &_swigt__p_wxShowEvent,
40221 &_swigt__p_wxSize,
40222 &_swigt__p_wxSizeEvent,
40223 &_swigt__p_wxSizer,
40224 &_swigt__p_wxSizerItem,
40225 &_swigt__p_wxSplitterRenderParams,
40226 &_swigt__p_wxStaticBoxSizer,
40227 &_swigt__p_wxStdDialogButtonSizer,
40228 &_swigt__p_wxStockGDI,
40229 &_swigt__p_wxString,
40230 &_swigt__p_wxSysColourChangedEvent,
40231 &_swigt__p_wxTGAHandler,
40232 &_swigt__p_wxTIFFHandler,
40233 &_swigt__p_wxUpdateUIEvent,
40234 &_swigt__p_wxValidator,
40235 &_swigt__p_wxWindow,
40236 &_swigt__p_wxWindowCreateEvent,
40237 &_swigt__p_wxWindowDC,
40238 &_swigt__p_wxWindowDestroyEvent,
40239 &_swigt__p_wxXPMHandler,
40240 };
40241
40242 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
40243 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40244 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40245 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40246 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40247 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40248 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40249 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
40250 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
40251 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40252 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40253 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40254 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40255 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40256 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40257 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}};
40258 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40259 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}};
40260 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40261 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40262 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
40263 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}};
40264 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40265 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
40266 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
40267 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40268 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
40269 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40270 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40271 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40272 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40273 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40274 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40275 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
40276 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
40277 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}};
40278 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}};
40279 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
40280 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
40281 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40282 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40283 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}};
40284 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
40285 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40286 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
40287 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
40288 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40289 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40290 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40291 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40292 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40293 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
40294 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}};
40295 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
40296 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}};
40297 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40298 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40299 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40300 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40301 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
40302 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40303 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40304 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
40305 static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}};
40306 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40307 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40308 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40309 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40310 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40311 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40312 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40313 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40314 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40315 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40316 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40317 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40318 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40319 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
40320 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
40321 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40322 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40323 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40324 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40325 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40326 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40327 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40328 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40329 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40330 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40331 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40332 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40333 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40334 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40335 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40336 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40337 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40338 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40339 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40340 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40341 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40342 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
40343 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40344 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
40345 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
40346 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40347 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40348 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40349 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40350 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40351 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
40352 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
40353 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
40354 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
40355 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
40356 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40357 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40358 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
40359 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
40360 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
40361 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
40362 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40363 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40364 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40365 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40366 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40367 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40368 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40369 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40370 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40371 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40372 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40373 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40374 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40375 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40376 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40377 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40378 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40379 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40380 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40381 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
40382 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxEventBlocker, _p_wxEventBlockerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
40383 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
40384 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40385 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40386 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40387 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40388 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
40389 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}};
40390 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
40391 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
40392 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40393 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40394 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
40395 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
40396 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
40397 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
40398 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
40399 static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}};
40400 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40401 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40402 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40403 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40404 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40405 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40406 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
40407 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
40408 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40409 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}};
40410 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}};
40411
40412 static swig_cast_info *swig_cast_initial[] = {
40413 _swigc__p_buffer,
40414 _swigc__p_char,
40415 _swigc__p_double,
40416 _swigc__p_form_ops_t,
40417 _swigc__p_int,
40418 _swigc__p_unsigned_char,
40419 _swigc__p_unsigned_int,
40420 _swigc__p_unsigned_long,
40421 _swigc__p_void,
40422 _swigc__p_wxANIHandler,
40423 _swigc__p_wxAcceleratorTable,
40424 _swigc__p_wxActivateEvent,
40425 _swigc__p_wxAlphaPixelData,
40426 _swigc__p_wxAlphaPixelData_Accessor,
40427 _swigc__p_wxAutoBufferedPaintDC,
40428 _swigc__p_wxBMPHandler,
40429 _swigc__p_wxBitmap,
40430 _swigc__p_wxBoxSizer,
40431 _swigc__p_wxBrush,
40432 _swigc__p_wxBrushList,
40433 _swigc__p_wxBufferedDC,
40434 _swigc__p_wxBufferedPaintDC,
40435 _swigc__p_wxCURHandler,
40436 _swigc__p_wxChildFocusEvent,
40437 _swigc__p_wxClientDC,
40438 _swigc__p_wxClipboardTextEvent,
40439 _swigc__p_wxCloseEvent,
40440 _swigc__p_wxColour,
40441 _swigc__p_wxColourDatabase,
40442 _swigc__p_wxCommandEvent,
40443 _swigc__p_wxContextMenuEvent,
40444 _swigc__p_wxControl,
40445 _swigc__p_wxControlWithItems,
40446 _swigc__p_wxCursor,
40447 _swigc__p_wxDC,
40448 _swigc__p_wxDCBrushChanger,
40449 _swigc__p_wxDCClipper,
40450 _swigc__p_wxDCOverlay,
40451 _swigc__p_wxDCPenChanger,
40452 _swigc__p_wxDCTextColourChanger,
40453 _swigc__p_wxDash,
40454 _swigc__p_wxDateEvent,
40455 _swigc__p_wxDisplayChangedEvent,
40456 _swigc__p_wxDropFilesEvent,
40457 _swigc__p_wxDuplexMode,
40458 _swigc__p_wxEffects,
40459 _swigc__p_wxEncodingConverter,
40460 _swigc__p_wxEraseEvent,
40461 _swigc__p_wxEvent,
40462 _swigc__p_wxEventBlocker,
40463 _swigc__p_wxEvtHandler,
40464 _swigc__p_wxFSFile,
40465 _swigc__p_wxFileSystem,
40466 _swigc__p_wxFlexGridSizer,
40467 _swigc__p_wxFocusEvent,
40468 _swigc__p_wxFont,
40469 _swigc__p_wxFontList,
40470 _swigc__p_wxFontMapper,
40471 _swigc__p_wxGBSizerItem,
40472 _swigc__p_wxGCDC,
40473 _swigc__p_wxGDIObjListBase,
40474 _swigc__p_wxGDIObject,
40475 _swigc__p_wxGIFHandler,
40476 _swigc__p_wxGraphicsBrush,
40477 _swigc__p_wxGraphicsContext,
40478 _swigc__p_wxGraphicsFont,
40479 _swigc__p_wxGraphicsMatrix,
40480 _swigc__p_wxGraphicsObject,
40481 _swigc__p_wxGraphicsPath,
40482 _swigc__p_wxGraphicsPen,
40483 _swigc__p_wxGraphicsRenderer,
40484 _swigc__p_wxGridBagSizer,
40485 _swigc__p_wxGridSizer,
40486 _swigc__p_wxHeaderButtonParams,
40487 _swigc__p_wxICOHandler,
40488 _swigc__p_wxIcon,
40489 _swigc__p_wxIconBundle,
40490 _swigc__p_wxIconLocation,
40491 _swigc__p_wxIconizeEvent,
40492 _swigc__p_wxIdleEvent,
40493 _swigc__p_wxImage,
40494 _swigc__p_wxImageHandler,
40495 _swigc__p_wxImageList,
40496 _swigc__p_wxIndividualLayoutConstraint,
40497 _swigc__p_wxInitDialogEvent,
40498 _swigc__p_wxJPEGHandler,
40499 _swigc__p_wxKeyEvent,
40500 _swigc__p_wxLanguageInfo,
40501 _swigc__p_wxLayoutConstraints,
40502 _swigc__p_wxLocale,
40503 _swigc__p_wxMask,
40504 _swigc__p_wxMaximizeEvent,
40505 _swigc__p_wxMemoryDC,
40506 _swigc__p_wxMenu,
40507 _swigc__p_wxMenuBar,
40508 _swigc__p_wxMenuEvent,
40509 _swigc__p_wxMenuItem,
40510 _swigc__p_wxMetaFile,
40511 _swigc__p_wxMetaFileDC,
40512 _swigc__p_wxMirrorDC,
40513 _swigc__p_wxMouseCaptureChangedEvent,
40514 _swigc__p_wxMouseCaptureLostEvent,
40515 _swigc__p_wxMouseEvent,
40516 _swigc__p_wxMoveEvent,
40517 _swigc__p_wxNativeEncodingInfo,
40518 _swigc__p_wxNativeFontInfo,
40519 _swigc__p_wxNativePixelData,
40520 _swigc__p_wxNativePixelData_Accessor,
40521 _swigc__p_wxNavigationKeyEvent,
40522 _swigc__p_wxNcPaintEvent,
40523 _swigc__p_wxNotifyEvent,
40524 _swigc__p_wxObject,
40525 _swigc__p_wxOverlay,
40526 _swigc__p_wxPCXHandler,
40527 _swigc__p_wxPNGHandler,
40528 _swigc__p_wxPNMHandler,
40529 _swigc__p_wxPaintDC,
40530 _swigc__p_wxPaintEvent,
40531 _swigc__p_wxPalette,
40532 _swigc__p_wxPaletteChangedEvent,
40533 _swigc__p_wxPaperSize,
40534 _swigc__p_wxPen,
40535 _swigc__p_wxPenList,
40536 _swigc__p_wxPixelDataBase,
40537 _swigc__p_wxPoint,
40538 _swigc__p_wxPoint2D,
40539 _swigc__p_wxPostScriptDC,
40540 _swigc__p_wxPrintData,
40541 _swigc__p_wxPrinterDC,
40542 _swigc__p_wxPseudoDC,
40543 _swigc__p_wxPyApp,
40544 _swigc__p_wxPyCommandEvent,
40545 _swigc__p_wxPyEvent,
40546 _swigc__p_wxPyFontEnumerator,
40547 _swigc__p_wxPyImageHandler,
40548 _swigc__p_wxPyLocale,
40549 _swigc__p_wxPySizer,
40550 _swigc__p_wxPyValidator,
40551 _swigc__p_wxQueryNewPaletteEvent,
40552 _swigc__p_wxRect,
40553 _swigc__p_wxRect2D,
40554 _swigc__p_wxRegion,
40555 _swigc__p_wxRegionIterator,
40556 _swigc__p_wxRendererNative,
40557 _swigc__p_wxRendererVersion,
40558 _swigc__p_wxScreenDC,
40559 _swigc__p_wxScrollEvent,
40560 _swigc__p_wxScrollWinEvent,
40561 _swigc__p_wxSetCursorEvent,
40562 _swigc__p_wxShowEvent,
40563 _swigc__p_wxSize,
40564 _swigc__p_wxSizeEvent,
40565 _swigc__p_wxSizer,
40566 _swigc__p_wxSizerItem,
40567 _swigc__p_wxSplitterRenderParams,
40568 _swigc__p_wxStaticBoxSizer,
40569 _swigc__p_wxStdDialogButtonSizer,
40570 _swigc__p_wxStockGDI,
40571 _swigc__p_wxString,
40572 _swigc__p_wxSysColourChangedEvent,
40573 _swigc__p_wxTGAHandler,
40574 _swigc__p_wxTIFFHandler,
40575 _swigc__p_wxUpdateUIEvent,
40576 _swigc__p_wxValidator,
40577 _swigc__p_wxWindow,
40578 _swigc__p_wxWindowCreateEvent,
40579 _swigc__p_wxWindowDC,
40580 _swigc__p_wxWindowDestroyEvent,
40581 _swigc__p_wxXPMHandler,
40582 };
40583
40584
40585 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40586
40587 static swig_const_info swig_const_table[] = {
40588 {0, 0, 0, 0.0, 0, 0}};
40589
40590 #ifdef __cplusplus
40591 }
40592 #endif
40593 /* -----------------------------------------------------------------------------
40594 * Type initialization:
40595 * This problem is tough by the requirement that no dynamic
40596 * memory is used. Also, since swig_type_info structures store pointers to
40597 * swig_cast_info structures and swig_cast_info structures store pointers back
40598 * to swig_type_info structures, we need some lookup code at initialization.
40599 * The idea is that swig generates all the structures that are needed.
40600 * The runtime then collects these partially filled structures.
40601 * The SWIG_InitializeModule function takes these initial arrays out of
40602 * swig_module, and does all the lookup, filling in the swig_module.types
40603 * array with the correct data and linking the correct swig_cast_info
40604 * structures together.
40605 *
40606 * The generated swig_type_info structures are assigned staticly to an initial
40607 * array. We just loop though that array, and handle each type individually.
40608 * First we lookup if this type has been already loaded, and if so, use the
40609 * loaded structure instead of the generated one. Then we have to fill in the
40610 * cast linked list. The cast data is initially stored in something like a
40611 * two-dimensional array. Each row corresponds to a type (there are the same
40612 * number of rows as there are in the swig_type_initial array). Each entry in
40613 * a column is one of the swig_cast_info structures for that type.
40614 * The cast_initial array is actually an array of arrays, because each row has
40615 * a variable number of columns. So to actually build the cast linked list,
40616 * we find the array of casts associated with the type, and loop through it
40617 * adding the casts to the list. The one last trick we need to do is making
40618 * sure the type pointer in the swig_cast_info struct is correct.
40619 *
40620 * First off, we lookup the cast->type name to see if it is already loaded.
40621 * There are three cases to handle:
40622 * 1) If the cast->type has already been loaded AND the type we are adding
40623 * casting info to has not been loaded (it is in this module), THEN we
40624 * replace the cast->type pointer with the type pointer that has already
40625 * been loaded.
40626 * 2) If BOTH types (the one we are adding casting info to, and the
40627 * cast->type) are loaded, THEN the cast info has already been loaded by
40628 * the previous module so we just ignore it.
40629 * 3) Finally, if cast->type has not already been loaded, then we add that
40630 * swig_cast_info to the linked list (because the cast->type) pointer will
40631 * be correct.
40632 * ----------------------------------------------------------------------------- */
40633
40634 #ifdef __cplusplus
40635 extern "C" {
40636 #if 0
40637 } /* c-mode */
40638 #endif
40639 #endif
40640
40641 #if 0
40642 #define SWIGRUNTIME_DEBUG
40643 #endif
40644
40645 SWIGRUNTIME void
40646 SWIG_InitializeModule(void *clientdata) {
40647 size_t i;
40648 swig_module_info *module_head;
40649 static int init_run = 0;
40650
40651 clientdata = clientdata;
40652
40653 if (init_run) return;
40654 init_run = 1;
40655
40656 /* Initialize the swig_module */
40657 swig_module.type_initial = swig_type_initial;
40658 swig_module.cast_initial = swig_cast_initial;
40659
40660 /* Try and load any already created modules */
40661 module_head = SWIG_GetModule(clientdata);
40662 if (module_head) {
40663 swig_module.next = module_head->next;
40664 module_head->next = &swig_module;
40665 } else {
40666 /* This is the first module loaded */
40667 swig_module.next = &swig_module;
40668 SWIG_SetModule(clientdata, &swig_module);
40669 }
40670
40671 /* Now work on filling in swig_module.types */
40672 #ifdef SWIGRUNTIME_DEBUG
40673 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40674 #endif
40675 for (i = 0; i < swig_module.size; ++i) {
40676 swig_type_info *type = 0;
40677 swig_type_info *ret;
40678 swig_cast_info *cast;
40679
40680 #ifdef SWIGRUNTIME_DEBUG
40681 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40682 #endif
40683
40684 /* if there is another module already loaded */
40685 if (swig_module.next != &swig_module) {
40686 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
40687 }
40688 if (type) {
40689 /* Overwrite clientdata field */
40690 #ifdef SWIGRUNTIME_DEBUG
40691 printf("SWIG_InitializeModule: found type %s\n", type->name);
40692 #endif
40693 if (swig_module.type_initial[i]->clientdata) {
40694 type->clientdata = swig_module.type_initial[i]->clientdata;
40695 #ifdef SWIGRUNTIME_DEBUG
40696 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40697 #endif
40698 }
40699 } else {
40700 type = swig_module.type_initial[i];
40701 }
40702
40703 /* Insert casting types */
40704 cast = swig_module.cast_initial[i];
40705 while (cast->type) {
40706 /* Don't need to add information already in the list */
40707 ret = 0;
40708 #ifdef SWIGRUNTIME_DEBUG
40709 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40710 #endif
40711 if (swig_module.next != &swig_module) {
40712 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40713 #ifdef SWIGRUNTIME_DEBUG
40714 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40715 #endif
40716 }
40717 if (ret) {
40718 if (type == swig_module.type_initial[i]) {
40719 #ifdef SWIGRUNTIME_DEBUG
40720 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40721 #endif
40722 cast->type = ret;
40723 ret = 0;
40724 } else {
40725 /* Check for casting already in the list */
40726 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40727 #ifdef SWIGRUNTIME_DEBUG
40728 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40729 #endif
40730 if (!ocast) ret = 0;
40731 }
40732 }
40733
40734 if (!ret) {
40735 #ifdef SWIGRUNTIME_DEBUG
40736 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40737 #endif
40738 if (type->cast) {
40739 type->cast->prev = cast;
40740 cast->next = type->cast;
40741 }
40742 type->cast = cast;
40743 }
40744 cast++;
40745 }
40746 /* Set entry in modules->types array equal to the type */
40747 swig_module.types[i] = type;
40748 }
40749 swig_module.types[i] = 0;
40750
40751 #ifdef SWIGRUNTIME_DEBUG
40752 printf("**** SWIG_InitializeModule: Cast List ******\n");
40753 for (i = 0; i < swig_module.size; ++i) {
40754 int j = 0;
40755 swig_cast_info *cast = swig_module.cast_initial[i];
40756 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40757 while (cast->type) {
40758 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40759 cast++;
40760 ++j;
40761 }
40762 printf("---- Total casts: %d\n",j);
40763 }
40764 printf("**** SWIG_InitializeModule: Cast List ******\n");
40765 #endif
40766 }
40767
40768 /* This function will propagate the clientdata field of type to
40769 * any new swig_type_info structures that have been added into the list
40770 * of equivalent types. It is like calling
40771 * SWIG_TypeClientData(type, clientdata) a second time.
40772 */
40773 SWIGRUNTIME void
40774 SWIG_PropagateClientData(void) {
40775 size_t i;
40776 swig_cast_info *equiv;
40777 static int init_run = 0;
40778
40779 if (init_run) return;
40780 init_run = 1;
40781
40782 for (i = 0; i < swig_module.size; i++) {
40783 if (swig_module.types[i]->clientdata) {
40784 equiv = swig_module.types[i]->cast;
40785 while (equiv) {
40786 if (!equiv->converter) {
40787 if (equiv->type && !equiv->type->clientdata)
40788 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40789 }
40790 equiv = equiv->next;
40791 }
40792 }
40793 }
40794 }
40795
40796 #ifdef __cplusplus
40797 #if 0
40798 {
40799 /* c-mode */
40800 #endif
40801 }
40802 #endif
40803
40804
40805
40806 #ifdef __cplusplus
40807 extern "C" {
40808 #endif
40809
40810 /* Python-specific SWIG API */
40811 #define SWIG_newvarlink() SWIG_Python_newvarlink()
40812 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40813 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40814
40815 /* -----------------------------------------------------------------------------
40816 * global variable support code.
40817 * ----------------------------------------------------------------------------- */
40818
40819 typedef struct swig_globalvar {
40820 char *name; /* Name of global variable */
40821 PyObject *(*get_attr)(void); /* Return the current value */
40822 int (*set_attr)(PyObject *); /* Set the value */
40823 struct swig_globalvar *next;
40824 } swig_globalvar;
40825
40826 typedef struct swig_varlinkobject {
40827 PyObject_HEAD
40828 swig_globalvar *vars;
40829 } swig_varlinkobject;
40830
40831 SWIGINTERN PyObject *
40832 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40833 return PyString_FromString("<Swig global variables>");
40834 }
40835
40836 SWIGINTERN PyObject *
40837 swig_varlink_str(swig_varlinkobject *v) {
40838 PyObject *str = PyString_FromString("(");
40839 swig_globalvar *var;
40840 for (var = v->vars; var; var=var->next) {
40841 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40842 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40843 }
40844 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40845 return str;
40846 }
40847
40848 SWIGINTERN int
40849 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40850 PyObject *str = swig_varlink_str(v);
40851 fprintf(fp,"Swig global variables ");
40852 fprintf(fp,"%s\n", PyString_AsString(str));
40853 Py_DECREF(str);
40854 return 0;
40855 }
40856
40857 SWIGINTERN void
40858 swig_varlink_dealloc(swig_varlinkobject *v) {
40859 swig_globalvar *var = v->vars;
40860 while (var) {
40861 swig_globalvar *n = var->next;
40862 free(var->name);
40863 free(var);
40864 var = n;
40865 }
40866 }
40867
40868 SWIGINTERN PyObject *
40869 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40870 PyObject *res = NULL;
40871 swig_globalvar *var = v->vars;
40872 while (var) {
40873 if (strcmp(var->name,n) == 0) {
40874 res = (*var->get_attr)();
40875 break;
40876 }
40877 var = var->next;
40878 }
40879 if (res == NULL && !PyErr_Occurred()) {
40880 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
40881 }
40882 return res;
40883 }
40884
40885 SWIGINTERN int
40886 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40887 int res = 1;
40888 swig_globalvar *var = v->vars;
40889 while (var) {
40890 if (strcmp(var->name,n) == 0) {
40891 res = (*var->set_attr)(p);
40892 break;
40893 }
40894 var = var->next;
40895 }
40896 if (res == 1 && !PyErr_Occurred()) {
40897 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
40898 }
40899 return res;
40900 }
40901
40902 SWIGINTERN PyTypeObject*
40903 swig_varlink_type(void) {
40904 static char varlink__doc__[] = "Swig var link object";
40905 static PyTypeObject varlink_type;
40906 static int type_init = 0;
40907 if (!type_init) {
40908 const PyTypeObject tmp
40909 = {
40910 PyObject_HEAD_INIT(NULL)
40911 0, /* Number of items in variable part (ob_size) */
40912 (char *)"swigvarlink", /* Type name (tp_name) */
40913 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40914 0, /* Itemsize (tp_itemsize) */
40915 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40916 (printfunc) swig_varlink_print, /* Print (tp_print) */
40917 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40918 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40919 0, /* tp_compare */
40920 (reprfunc) swig_varlink_repr, /* tp_repr */
40921 0, /* tp_as_number */
40922 0, /* tp_as_sequence */
40923 0, /* tp_as_mapping */
40924 0, /* tp_hash */
40925 0, /* tp_call */
40926 (reprfunc)swig_varlink_str, /* tp_str */
40927 0, /* tp_getattro */
40928 0, /* tp_setattro */
40929 0, /* tp_as_buffer */
40930 0, /* tp_flags */
40931 varlink__doc__, /* tp_doc */
40932 0, /* tp_traverse */
40933 0, /* tp_clear */
40934 0, /* tp_richcompare */
40935 0, /* tp_weaklistoffset */
40936 #if PY_VERSION_HEX >= 0x02020000
40937 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40938 #endif
40939 #if PY_VERSION_HEX >= 0x02030000
40940 0, /* tp_del */
40941 #endif
40942 #ifdef COUNT_ALLOCS
40943 0,0,0,0 /* tp_alloc -> tp_next */
40944 #endif
40945 };
40946 varlink_type = tmp;
40947 varlink_type.ob_type = &PyType_Type;
40948 type_init = 1;
40949 }
40950 return &varlink_type;
40951 }
40952
40953 /* Create a variable linking object for use later */
40954 SWIGINTERN PyObject *
40955 SWIG_Python_newvarlink(void) {
40956 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40957 if (result) {
40958 result->vars = 0;
40959 }
40960 return ((PyObject*) result);
40961 }
40962
40963 SWIGINTERN void
40964 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40965 swig_varlinkobject *v = (swig_varlinkobject *) p;
40966 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40967 if (gv) {
40968 size_t size = strlen(name)+1;
40969 gv->name = (char *)malloc(size);
40970 if (gv->name) {
40971 strncpy(gv->name,name,size);
40972 gv->get_attr = get_attr;
40973 gv->set_attr = set_attr;
40974 gv->next = v->vars;
40975 }
40976 }
40977 v->vars = gv;
40978 }
40979
40980 SWIGINTERN PyObject *
40981 SWIG_globals() {
40982 static PyObject *_SWIG_globals = 0;
40983 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40984 return _SWIG_globals;
40985 }
40986
40987 /* -----------------------------------------------------------------------------
40988 * constants/methods manipulation
40989 * ----------------------------------------------------------------------------- */
40990
40991 /* Install Constants */
40992 SWIGINTERN void
40993 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40994 PyObject *obj = 0;
40995 size_t i;
40996 for (i = 0; constants[i].type; ++i) {
40997 switch(constants[i].type) {
40998 case SWIG_PY_POINTER:
40999 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41000 break;
41001 case SWIG_PY_BINARY:
41002 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41003 break;
41004 default:
41005 obj = 0;
41006 break;
41007 }
41008 if (obj) {
41009 PyDict_SetItemString(d, constants[i].name, obj);
41010 Py_DECREF(obj);
41011 }
41012 }
41013 }
41014
41015 /* -----------------------------------------------------------------------------*/
41016 /* Fix SwigMethods to carry the callback ptrs when needed */
41017 /* -----------------------------------------------------------------------------*/
41018
41019 SWIGINTERN void
41020 SWIG_Python_FixMethods(PyMethodDef *methods,
41021 swig_const_info *const_table,
41022 swig_type_info **types,
41023 swig_type_info **types_initial) {
41024 size_t i;
41025 for (i = 0; methods[i].ml_name; ++i) {
41026 const char *c = methods[i].ml_doc;
41027 if (c && (c = strstr(c, "swig_ptr: "))) {
41028 int j;
41029 swig_const_info *ci = 0;
41030 const char *name = c + 10;
41031 for (j = 0; const_table[j].type; ++j) {
41032 if (strncmp(const_table[j].name, name,
41033 strlen(const_table[j].name)) == 0) {
41034 ci = &(const_table[j]);
41035 break;
41036 }
41037 }
41038 if (ci) {
41039 size_t shift = (ci->ptype) - types;
41040 swig_type_info *ty = types_initial[shift];
41041 size_t ldoc = (c - methods[i].ml_doc);
41042 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41043 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41044 if (ndoc) {
41045 char *buff = ndoc;
41046 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41047 if (ptr) {
41048 strncpy(buff, methods[i].ml_doc, ldoc);
41049 buff += ldoc;
41050 strncpy(buff, "swig_ptr: ", 10);
41051 buff += 10;
41052 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41053 methods[i].ml_doc = ndoc;
41054 }
41055 }
41056 }
41057 }
41058 }
41059 }
41060
41061 #ifdef __cplusplus
41062 }
41063 #endif
41064
41065 /* -----------------------------------------------------------------------------*
41066 * Partial Init method
41067 * -----------------------------------------------------------------------------*/
41068
41069 #ifdef __cplusplus
41070 extern "C"
41071 #endif
41072 SWIGEXPORT void SWIG_init(void) {
41073 PyObject *m, *d;
41074
41075 /* Fix SwigMethods to carry the callback ptrs when needed */
41076 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41077
41078 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41079 d = PyModule_GetDict(m);
41080
41081 SWIG_InitializeModule(0);
41082 SWIG_InstallConstants(d,swig_const_table);
41083
41084
41085 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41086 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41087 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
41088 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41089 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
41090 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41091 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41092 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41093 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41094 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41095 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41096 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41097 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41098 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41099 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41100 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41101 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41102 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41103 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41104 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41105 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41106 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41107 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41108 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41109 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41110 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41111 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41112 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41113 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41114 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41115 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41116 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41117 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41118 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41119 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41120 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41121 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41122 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41123 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41124 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41125 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41126 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41127 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41128 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41129 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41130 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41131 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41132 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41133 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41134 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41135 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41136 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41137 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41138 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41139 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41140 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41141 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41142 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41143 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41144 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41145 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41146 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41147 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41148 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41149 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41150 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41151 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41152 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41153 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41154 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41155 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41156 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41157 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41158 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41159 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41160 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41161 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41162 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41163 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41164 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41165 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41166 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41167 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41168 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41169 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41170 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41171 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41172 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41173 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41174 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41175 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41176 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41177 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41178 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41179 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41180 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41181 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41182 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41183 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41184 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41185 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41186 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41187 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41188 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41189 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41190 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41191 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41192 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41193 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41194 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41195 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41196 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41197 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41198 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41199 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41200 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41201 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41202 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41203 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41204 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41205 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41206 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41207 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41208 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41209 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41210 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41211 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41212 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41213 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41214 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41215 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41216 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41217
41218 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41219
41220 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41221 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41222 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41223 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41224 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41225 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41226 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41227 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41228 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41229 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41230 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41231 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41232 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41233 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41234 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41235 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41236 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41237 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41238 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41239 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41240 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41241 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41242 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41243 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41244 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41245 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41246 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41247 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41248 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41249 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41250 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41251 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41252 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41253 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41254 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41255 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41256 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41257 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41258 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41259 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41260 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41261 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41262 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41263 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41264 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41265 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41266 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41267 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41268 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41269 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41270 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41271 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41272 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41273 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41274 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41275 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41276 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41277 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41278 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41279 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41280 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41281 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41282 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41283 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41284 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41285 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41286 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41287 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41288 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41289 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41290 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41291 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41292 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41293 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41294 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41295 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41296 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41297 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41298 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41299 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41300 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41301 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41302 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41303 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41304 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41305 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41306 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41307 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41308 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41309 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41310 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41311 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41312 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41313 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41314 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41315 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41316 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41317 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41318 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41319 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41320 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41321 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41322 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41323 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41324 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41325 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41326 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41327 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41328 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41329 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41330 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41331 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41332 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41333 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41334 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41335 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41336 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41337 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41338 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41339 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41340 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41341 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41342 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41343 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41344 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41345 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41346 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41347 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41348 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41349 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41350 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41351 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41352 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41353 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41354 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41355 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41356 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41357 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41358 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41359 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41360 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41361 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41362 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41363 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41364 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41365 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41366 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41367 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41368 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41369 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41370 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41371 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41372 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41373 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41374 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41375 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41376 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41377 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41378 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41379 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41380 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41381 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41382 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41383 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41384 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41385 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41386 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41387 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41388 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41389 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41390 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41391 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41392 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41393 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41394 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41395 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41396 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41397 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41398 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41399 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41400 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41401 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41402 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41403 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41404 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41405 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41406 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41407 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41408 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41409 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41410 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41411 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41412 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41413 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41414 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41415 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41416 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41417 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41418 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41419 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41420 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41421 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41422 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41423 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41424 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41425 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41426 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41427 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41428 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41429 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41430 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41431 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41432 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41433 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41434 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41435 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41436 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41437 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41438 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41439 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41440 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41441 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41442 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41443 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41444 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41445 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41446 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41447 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41448 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41449 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41450 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41451 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41452 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41453 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41454 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41455 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41456 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41457 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41458 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41459 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41460 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41461 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41462 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41463 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41464 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41465 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41466 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41467 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
41468 SWIG_Python_SetConstant(d, "BUFFER_USES_SHARED_BUFFER",SWIG_From_int(static_cast< int >(wxBUFFER_USES_SHARED_BUFFER)));
41469 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41470 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41471 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41472 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
41473 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41474 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
41475 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41476 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41477 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41478 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41479 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41480 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41481 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
41482 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41483 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41484 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41485 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41486 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41487 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41488 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41489 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41490 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41491 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41492 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41493 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41494 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41495 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41496 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41497 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41498 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41499 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41500 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41501 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41502 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41503 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41504 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41505 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41506 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41507 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41508 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41509 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41510 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41511 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41512 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41513 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41514 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41515 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41516 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
41517 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41518 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41519 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41520 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41521 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41522 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41523 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41524 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
41525 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41526 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41527 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
41528 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
41529 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41530 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41531 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
41532 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
41533 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41534 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41535 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41536 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41537 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41538 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41539 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
41540 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41541 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41542 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
41543 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41544 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41545
41546 // Work around a chicken/egg problem in drawlist.cpp
41547 wxPyDrawList_SetAPIPtr();
41548
41549 }
41550